summaryrefslogtreecommitdiffstats
path: root/crypto/dh_helper.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2019-02-20 18:54:50 +0100
committerJ. Bruce Fields <bfields@redhat.com>2019-02-21 16:17:36 +0100
commitb7e5034cbecf5a65b7bfdc2b20a8378039577706 (patch)
treec870f31de77d6108b2b58b57ff0b1863853c39fc /crypto/dh_helper.c
parentsvcrdma: Remove syslog warnings in work completion handlers (diff)
downloadlinux-b7e5034cbecf5a65b7bfdc2b20a8378039577706.tar.xz
linux-b7e5034cbecf5a65b7bfdc2b20a8378039577706.zip
svcrpc: fix UDP on servers with lots of threads
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>
Diffstat (limited to 'crypto/dh_helper.c')
0 files changed, 0 insertions, 0 deletions