WSL2-Linux-Kernel/include/linux/lockd
Benjamin Coddington 6345e92a9d NLM: Defend against file_lock changes after vfs_test_lock()
[ Upstream commit 184cefbe62 ]

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>
2024-04-10 16:19:08 +02:00
..
bind.h
debug.h
lockd.h NLM: Defend against file_lock changes after vfs_test_lock() 2024-04-10 16:19:08 +02:00
nlm.h
share.h
xdr.h SUNRPC: Change return value type of .pc_encode 2024-04-10 16:18:54 +02:00
xdr4.h SUNRPC: Change return value type of .pc_encode 2024-04-10 16:18:54 +02:00