diff options
author | Benjamin Coddington <bcodding@redhat.com> | 2021-07-26 09:33:28 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-09-15 09:47:35 +0200 |
commit | 81e69d3fdd9e47287a0f3705c154263fe08fa2a7 (patch) | |
tree | e51aeeb270bef5fa3561cf54d4562b4cccb5d807 /fs/nfsd | |
parent | e1c02e2e6a7ad0d65dd7f5ecc23a33a02eb10a54 (diff) |
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: 646d73e91b42 ("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>
Diffstat (limited to 'fs/nfsd')
0 files changed, 0 insertions, 0 deletions