]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r344402 (by sef):
authormav <mav@FreeBSD.org>
Fri, 26 Apr 2019 21:34:08 +0000 (21:34 +0000)
committermav <mav@FreeBSD.org>
Fri, 26 Apr 2019 21:34:08 +0000 (21:34 +0000)
commite46d21fcd6bdea01b5ef2549edb90919dd88756e
tree20620214782541d6da31fdb2c5c008da8ed080d4
parent228661cfaab3f4a94ea4fd71cbb43da7fffcd882
MFC r344402 (by sef):

* Handle SIGPIPE in gssd
We've got some cases where the other end of gssd's AF_LOCAL socket gets
closed, resulting in an error (and SIGPIPE) when it tries to do I/O to it.
Closing without cleaning up means the next time nfsd starts up, it hangs,
unkillably; this allows gssd to handle that particular error.

* Limit the retry cound in gssd_syscall to 5.
The default is INT_MAX, which effectively means forever.  And it's an
uninterruptable RPC call, so it will never stop.

The two changes mitigate the problem.
sys/kgssapi/gss_impl.c
usr.sbin/gssd/gssd.c