linux/fs/dlm
Alexander Aring 7c53e847ff dlm: fix plock lookup when using multiple lockspaces
All posix lock ops, for all lockspaces (gfs2 file systems) are
sent to userspace (dlm_controld) through a single misc device.
The dlm_controld daemon reads the ops from the misc device
and sends them to other cluster nodes using separate, per-lockspace
cluster api communication channels.  The ops for a single lockspace
are ordered at this level, so that the results are received in
the same sequence that the requests were sent.  When the results
are sent back to the kernel via the misc device, they are again
funneled through the single misc device for all lockspaces.  When
the dlm code in the kernel processes the results from the misc
device, these results will be returned in the same sequence that
the requests were sent, on a per-lockspace basis.  A recent change
in this request/reply matching code missed the "per-lockspace"
check (fsid comparison) when matching request and reply, so replies
could be incorrectly matched to requests from other lockspaces.

Cc: stable@vger.kernel.org
Reported-by: Barry Marson <bmarson@redhat.com>
Fixes: 57e2c2f2d9 ("fs: dlm: fix mismatch of plock results from userspace")
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
2023-08-25 10:31:39 -05:00
..
ast.c fs: dlm: move dlm_purge_lkb_callbacks to user module 2023-06-14 10:17:33 -05:00
ast.h fs: dlm: move dlm_purge_lkb_callbacks to user module 2023-06-14 10:17:33 -05:00
config.c fs: dlm: create midcomms nodes when configure 2023-08-10 10:33:03 -05:00
config.h fs: dlm: remove deprecated code parts 2023-03-06 15:49:07 -06:00
debug_fs.c fs: dlm: debugfs for queued callbacks 2023-08-10 10:33:03 -05:00
dir.c fs: dlm: constify receive buffer 2023-08-10 10:33:03 -05:00
dir.h fs: dlm: constify receive buffer 2023-08-10 10:33:03 -05:00
dlm_internal.h fs: dlm: debugfs for queued callbacks 2023-08-10 10:33:03 -05:00
Kconfig fs: dlm: remove deprecated code parts 2023-03-06 15:49:07 -06:00
lock.c fs: dlm: constify receive buffer 2023-08-10 10:33:03 -05:00
lock.h fs: dlm: constify receive buffer 2023-08-10 10:33:03 -05:00
lockspace.c fs: dlm: revert check required context while close 2023-06-14 10:17:33 -05:00
lockspace.h fs: dlm: revert check required context while close 2023-06-14 10:17:33 -05:00
lowcomms.c fs: dlm: remove unused processed_nodes 2023-08-10 10:33:03 -05:00
lowcomms.h fs: dlm: remove socket shutdown handling 2022-11-21 09:45:49 -06:00
lvb_table.h
main.c fs: dlm: unregister memory at the very last 2023-06-14 10:17:33 -05:00
Makefile fs: dlm: remove deprecated code parts 2023-03-06 15:49:07 -06:00
member.c fs: dlm: constify receive buffer 2023-08-10 10:33:03 -05:00
member.h fs: dlm: constify receive buffer 2023-08-10 10:33:03 -05:00
memory.c fs: dlm: change dflags to use atomic bits 2023-03-06 15:49:07 -06:00
memory.h fs: dlm: allow different allocation context per _create_message 2022-11-08 12:59:41 -06:00
midcomms.c fs: dlm: create midcomms nodes when configure 2023-08-10 10:33:03 -05:00
midcomms.h fs: dlm: create midcomms nodes when configure 2023-08-10 10:33:03 -05:00
plock.c dlm: fix plock lookup when using multiple lockspaces 2023-08-25 10:31:39 -05:00
rcom.c fs: dlm: don't use RCOM_NAMES for version detection 2023-08-10 10:33:03 -05:00
rcom.h fs: dlm: constify receive buffer 2023-08-10 10:33:03 -05:00
recover.c fs: dlm: constify receive buffer 2023-08-10 10:33:03 -05:00
recover.h fs: dlm: constify receive buffer 2023-08-10 10:33:03 -05:00
recoverd.c fs: dlm: get recovery sequence number as parameter 2023-08-10 10:33:03 -05:00
recoverd.h
requestqueue.c fs: dlm: constify receive buffer 2023-08-10 10:33:03 -05:00
requestqueue.h fs: dlm: constify receive buffer 2023-08-10 10:33:03 -05:00
user.c fs: dlm: move dlm_purge_lkb_callbacks to user module 2023-06-14 10:17:33 -05:00
user.h fs: dlm: move dlm_purge_lkb_callbacks to user module 2023-06-14 10:17:33 -05:00
util.c dlm: use __le types for dlm messages 2022-04-06 14:02:37 -05:00
util.h dlm: use __le types for dlm messages 2022-04-06 14:02:37 -05:00