linux/fs/dlm
Alexander Aring 7adcc32eb5 fs: dlm: fix mismatch of plock results from userspace
commit 57e2c2f2d9 upstream.

When a waiting plock request (F_SETLKW) is sent to userspace
for processing (dlm_controld), the result is returned at a
later time. That result could be incorrectly matched to a
different waiting request in cases where the owner field is
the same (e.g. different threads in a process.) This is fixed
by comparing all the properties in the request and reply.

The results for non-waiting plock requests are now matched
based on list order because the results are returned in the
same order they were sent.

Cc: stable@vger.kernel.org
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-07-23 13:49:38 +02:00
..
ast.c
ast.h
config.c
config.h
debug_fs.c
dir.c
dir.h
dlm_internal.h
Kconfig
lock.c fd: dlm: trace send/recv of dlm message and rcom 2023-03-17 08:50:18 +01:00
lock.h
lockspace.c fs: dlm: revert check required context while close 2023-07-23 13:49:34 +02:00
lockspace.h fs: dlm: revert check required context while close 2023-07-23 13:49:34 +02:00
lowcomms.c fs: dlm: add midcomms init/start functions 2023-03-17 08:50:18 +01:00
lowcomms.h fs: dlm: add midcomms init/start functions 2023-03-17 08:50:18 +01:00
lvb_table.h
main.c fs: dlm: add midcomms init/start functions 2023-03-17 08:50:18 +01:00
Makefile
member.c
member.h
memory.c
memory.h
midcomms.c fs: dlm: revert check required context while close 2023-07-23 13:49:34 +02:00
midcomms.h fd: dlm: trace send/recv of dlm message and rcom 2023-03-17 08:50:18 +01:00
netlink.c
plock.c fs: dlm: fix mismatch of plock results from userspace 2023-07-23 13:49:38 +02:00
rcom.c fd: dlm: trace send/recv of dlm message and rcom 2023-03-17 08:50:18 +01:00
rcom.h
recover.c
recover.h
recoverd.c
recoverd.h
requestqueue.c
requestqueue.h
user.c
user.h
util.c
util.h