summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/blocklayout.c
diff options
context:
space:
mode:
authorVasily Averin <vvs@virtuozzo.com>2017-11-10 10:19:26 +0300
committerJ. Bruce Fields <bfields@redhat.com>2017-11-27 16:45:11 -0500
commit6b18dd1c03e07262ea0866084856b2a3c5ba8d09 (patch)
tree0e9780bbbd7ae2aa0913a5ebbff8822d5fa7edd4 /fs/nfsd/blocklayout.c
parentee24eac3ebb781c12a654985e33ecaa07f4d0f95 (diff)
downloadop-kernel-dev-6b18dd1c03e07262ea0866084856b2a3c5ba8d09.zip
op-kernel-dev-6b18dd1c03e07262ea0866084856b2a3c5ba8d09.tar.gz
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 <vvs@virtuozzo.com> Tested-by: Scott Mayhew <smayhew@redhat.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/blocklayout.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud