aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorTrond Myklebust <[email protected]>2019-05-29 12:49:52 -0400
committerAnna Schumaker <[email protected]>2019-05-30 15:29:41 -0400
commit7987b694ade8cc465ce10fb3dceaa614f13ceaf3 (patch)
tree5c71e423c301bd079f8bcf7f298ffd6688600d1d /net/unix/sysctl_net_unix.c
parentec6017d9035986a36de064f48a63245930bfad6f (diff)
SUNRPC: Fix a use after free when a server rejects the RPCSEC_GSS credential
The addition of rpc_check_timeout() to call_decode causes an Oops when the RPCSEC_GSS credential is rejected. The reason is that rpc_decode_header() will call xprt_release() in order to free task->tk_rqstp, which is needed by rpc_check_timeout() to check whether or not we should exit due to a soft timeout. The fix is to move the call to xprt_release() into call_decode() so we can perform it after rpc_check_timeout(). Reported-by: Olga Kornievskaia <[email protected]> Reported-by: Nick Bowler <[email protected]> Fixes: cea57789e408 ("SUNRPC: Clean up") Cc: [email protected] # v5.1+ Signed-off-by: Trond Myklebust <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions