diff options
author | Benjamin Coddington <bcodding@redhat.com> | 2022-06-13 09:40:06 -0400 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2022-07-29 20:08:56 -0400 |
commit | 184cefbe62627730c30282df12bcff9aae4816ea (patch) | |
tree | 5c26908a40480fae4d402c57ef1720dadf1e6532 /net | |
parent | c770f31d8f580ed4b965c64f924ec1cc50e41734 (diff) |
NLM: Defend against file_lock changes after vfs_test_lock()
Instead of trusting that struct file_lock returns completely unchanged
after vfs_test_lock() when there's no conflicting lock, stash away our
nlm_lockowner reference so we can properly release it for all cases.
This defends against another file_lock implementation overwriting fl_owner
when the return type is F_UNLCK.
Reported-by: Roberto Bergantinos Corpas <rbergant@redhat.com>
Tested-by: Roberto Bergantinos Corpas <rbergant@redhat.com>
Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions