summaryrefslogtreecommitdiffstats
path: root/include/linux/sunrpc
diff options
context:
space:
mode:
authorJ. Bruce Fields2010-12-24 20:03:38 +0100
committerJ. Bruce Fields2011-01-04 22:47:29 +0100
commit31f7aa65f536995c6d933c57230919ae408952a5 (patch)
tree61b9620af68d846b70a1b256d29c2a0b91febef0 /include/linux/sunrpc
parentnfsd4: fix oops on secinfo_no_name result encoding (diff)
downloadkernel-qcow2-linux-31f7aa65f536995c6d933c57230919ae408952a5.tar.gz
kernel-qcow2-linux-31f7aa65f536995c6d933c57230919ae408952a5.tar.xz
kernel-qcow2-linux-31f7aa65f536995c6d933c57230919ae408952a5.zip
svcrpc: modifying valid sunrpc cache entries is racy
Once a sunrpc cache entry is VALID, we should be replacing it (and allowing any concurrent users to destroy it on last put) instead of trying to update it in place. Otherwise someone referencing the ip_map we're modifying here could try to use the m_client just as we're putting the last reference. The bug should only be seen by users of the legacy nfsd interfaces. (Thanks to Neil for suggestion to use sunrpc_invalidate.) Reviewed-by: NeilBrown <neilb@suse.de> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include/linux/sunrpc')
0 files changed, 0 insertions, 0 deletions