kernel_samsung_a53x/fs/lockd
Jeff Layton b4046b2336 lockd: fix file selection in nlmsvc_cancel_blocked
[ Upstream commit 9f27783b4dd235ef3c8dbf69fc6322777450323c ]

We currently do a lock_to_openmode call based on the arguments from the
NLM_UNLOCK call, but that will always set the fl_type of the lock to
F_UNLCK, and the O_RDONLY descriptor is always chosen.

Fix it to use the file_lock from the block instead.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 12:28:28 +01:00
..
clnt4xdr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clntlock.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clntproc.c SUNRPC: Trace calls to .rpc_call_done 2024-11-19 12:27:47 +01:00
clntxdr.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
host.c lockd: move from strlcpy with unused retval to strscpy 2024-11-19 12:28:21 +01:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
netns.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
procfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
procfs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
svc.c NFSD: Move svc_serv_ops::svo_function into struct svc_serv 2024-11-19 12:27:54 +01:00
svc4proc.c lockd: set missing fl_flags field when retrieving args 2024-11-19 12:28:28 +01:00
svclock.c lockd: fix file selection in nlmsvc_cancel_blocked 2024-11-19 12:28:28 +01:00
svcproc.c lockd: set missing fl_flags field when retrieving args 2024-11-19 12:28:28 +01:00
svcshare.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
svcsubs.c lockd: set other missing fields when unlocking files 2024-11-19 12:28:28 +01:00
svcxdr.h NLM: Fix svcxdr_encode_owner() 2024-11-19 12:27:45 +01:00
xdr.c SUNRPC: Change return value type of .pc_encode 2024-11-19 12:27:48 +01:00
xdr4.c lockd: detect and reject lock arguments that overflow 2024-11-19 12:28:20 +01:00