summaryrefslogtreecommitdiffstats
path: root/net/tls
diff options
context:
space:
mode:
authorJ. Bruce Fields2019-02-20 18:54:50 +0100
committerGreg Kroah-Hartman2019-03-23 20:10:10 +0100
commit43bceddcd7e2aa182d8a04c37682e9b49948e925 (patch)
treead83519332b8da4d85b27cccfeaf6b22648f3c1d /net/tls
parentNFSv4.1: Reinitialise sequence results before retransmitting a request (diff)
downloadkernel-qcow2-linux-43bceddcd7e2aa182d8a04c37682e9b49948e925.tar.gz
kernel-qcow2-linux-43bceddcd7e2aa182d8a04c37682e9b49948e925.tar.xz
kernel-qcow2-linux-43bceddcd7e2aa182d8a04c37682e9b49948e925.zip
svcrpc: fix UDP on servers with lots of threads
commit b7e5034cbecf5a65b7bfdc2b20a8378039577706 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>
Diffstat (limited to 'net/tls')
0 files changed, 0 insertions, 0 deletions