kernel_samsung_a53x/include/linux/lockd
Benjamin Coddington e2a434f8c8 NLM: Defend against file_lock changes after vfs_test_lock()
[ Upstream commit 184cefbe62627730c30282df12bcff9aae4816ea ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 12:27:59 +01:00
..
bind.h Keep read and write fds with each nlm_file 2024-11-19 12:27:44 +01:00
debug.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lockd.h NLM: Defend against file_lock changes after vfs_test_lock() 2024-11-19 12:27:59 +01:00
nlm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
share.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xdr.h SUNRPC: Change return value type of .pc_encode 2024-11-19 12:27:48 +01:00
xdr4.h SUNRPC: Change return value type of .pc_encode 2024-11-19 12:27:48 +01:00