aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorVasily Averin <[email protected]>2017-11-10 07:19:26 +0000
committerJ. Bruce Fields <[email protected]>2017-11-27 21:45:11 +0000
commit6b18dd1c03e07262ea0866084856b2a3c5ba8d09 (patch)
tree0e9780bbbd7ae2aa0913a5ebbff8822d5fa7edd4 /net/unix/af_unix.c
parentSUNRPC: make cache_detail structures const (diff)
downloadkernel-6b18dd1c03e07262ea0866084856b2a3c5ba8d09.tar.gz
kernel-6b18dd1c03e07262ea0866084856b2a3c5ba8d09.zip
race of lockd inetaddr notifiers vs nlmsvc_rqst change
lockd_inet[6]addr_event use nlmsvc_rqst without taken nlmsvc_mutex, nlmsvc_rqst can be changed during execution of notifiers and crash the host. Patch enables access to nlmsvc_rqst only when it was correctly initialized and delays its cleanup until notifiers are no longer in use. Note that nlmsvc_rqst can be temporally set to ERR_PTR, so the "if (nlmsvc_rqst)" check in notifiers is insufficient on its own. Signed-off-by: Vasily Averin <[email protected]> Tested-by: Scott Mayhew <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions