diff options
author | Vasily Averin <vvs@virtuozzo.com> | 2017-11-02 13:03:42 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2017-11-27 16:45:11 -0500 |
commit | 3a2b19d1ee5633f76ae8a88da7bc039a5d1732aa (patch) | |
tree | 80d14fdd5067ee6d26a13765daa50a50abf18ebf /samples/mei | |
parent | a3152f1440c762128a626d90718ba6535c81c1b4 (diff) | |
download | linux-3a2b19d1ee5633f76ae8a88da7bc039a5d1732aa.tar.gz linux-3a2b19d1ee5633f76ae8a88da7bc039a5d1732aa.tar.bz2 linux-3a2b19d1ee5633f76ae8a88da7bc039a5d1732aa.zip |
lockd: lost rollback of set_grace_period() in lockd_down_net()
Commit efda760fe95ea ("lockd: fix lockd shutdown race") is incorrect,
it removes lockd_manager and disarm grace_period_end for init_net only.
If nfsd was started from another net namespace lockd_up_net() calls
set_grace_period() that adds lockd_manager into per-netns list
and queues grace_period_end delayed work.
These action should be reverted in lockd_down_net().
Otherwise it can lead to double list_add on after restart nfsd in netns,
and to use-after-free if non-disarmed delayed work will be executed after netns destroy.
Fixes: efda760fe95e ("lockd: fix lockd shutdown race")
Cc: stable@vger.kernel.org
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'samples/mei')
0 files changed, 0 insertions, 0 deletions