android_kernel_motorola_sm6375/fs/lockd
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Benjamin Coddington 81e69d3fdd lockd: Fix invalid lockowner cast after vfs_test_lock
[ Upstream commit cd2d644ddba183ec7b451b7c20d5c7cc06fcf0d7 ]

After calling vfs_test_lock() the pointer to a conflicting lock can be
returned, and that lock is not guarunteed to be owned by nlm.  In that
case, we cannot cast it to struct nlm_lockowner.  Instead return the pid
of that conflicting lock.

Fixes: 646d73e91b ("lockd: Show pid of lockd for remote locks")
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>
2021-09-15 09:47:35 +02:00
..
clnt4xdr.c
clntlock.c
clntproc.c lockd: Make two symbols static 2019-07-03 17:52:09 -04:00
clntxdr.c
host.c lockd: don't use interval-based rebinding over TCP 2020-12-30 11:51:16 +01:00
Makefile
mon.c
netns.h
procfs.c
procfs.h
svc.c
svc4proc.c lockd: Show pid of lockd for remote locks 2019-07-03 17:52:09 -04:00
svclock.c lockd: Fix invalid lockowner cast after vfs_test_lock 2021-09-15 09:47:35 +02:00
svcproc.c lockd: Show pid of lockd for remote locks 2019-07-03 17:52:09 -04:00
svcshare.c
svcsubs.c
xdr.c lockd: Show pid of lockd for remote locks 2019-07-03 17:52:09 -04:00
xdr4.c lockd: Show pid of lockd for remote locks 2019-07-03 17:52:09 -04:00