Files
linux/net/sunrpc
J. Bruce Fields 43bceddcd7 svcrpc: fix UDP on servers with lots of threads
commit b7e5034cbe upstream.

James Pearson found that an NFS server stopped responding to UDP
requests if started with more than 1017 threads.

sv_max_mesg is about 2^20, so that is probably where the calculation
performed by

	svc_sock_setbufsize(svsk->sk_sock,
                            (serv->sv_nrthreads+3) * serv->sv_max_mesg,
                            (serv->sv_nrthreads+3) * serv->sv_max_mesg);

starts to overflow an int.

Reported-by: James Pearson <jcpearson@gmail.com>
Tested-by: James Pearson <jcpearson@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-03-23 20:10:10 +01:00
..
2014-07-12 18:45:49 -04:00
2018-07-31 12:53:40 -04:00
2018-07-31 12:53:40 -04:00
2018-07-31 12:53:40 -04:00
2012-04-15 12:44:40 -04:00