Skip to content

dlm: pending fixes based on v7.3-rc1

Alexander Aring gfs2 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8dlm: gate dlm_plock device on CAP_SYS_ADMINfs/dlm/plock.c+13 -10 replies
2/8dlm: require CAP_SYS_ADMIN for dlm-monitor devicefs/dlm/user.c+6 -00 replies
3/8dlm: validate userspace lock resource name lengthfs/dlm/user.c+17 -00 replies
4/8dlm: fix buffer overflow from negative len in dlm_search_rsb_treefs/dlm/lock.c fs/dlm/lock.h+6 -40 replies
5/8dlm: validate lock modes in recovery messagesfs/dlm/lock.c+4 -00 replies
6/8dlm: fix NULL pointer dereference in dlm_dump_rsb_name()fs/dlm/lock.c+1 -10 replies
7/8dlm: wait for outstanding SRCU callbacks to complete in exit pathsfs/dlm/lowcomms.c fs/dlm/midcomms.c+2 -01 reply
8/8dlm: fix variable key length lookupfs/dlm/config.c fs/dlm/dlm_internal.h fs/dlm/lock.c+37 -40 replies

Reviews trailers per patch

7 of 8 patches have a Reviewed-by or Acked-by.

PatchAlexander Aring
1/8A-b
2/8A-b
3/8A-b
4/8A-b
5/8A-b
6/8A-b
7/8A-b
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH RESEND dlm/next 0/8] dlm: pending fixes based on v7.3-rc1

Hi David,

this patch series contains pending fixed for dlm.

Some critical to be ensure that monitor/plock chardevs are only be opened under administrator rights which should be as e.g. dlm_controld is using them running as root and can conflict with additional multiple usages. To forbid any misusage we forbid to open those devices for normal users.

Then we switch back to rhashtables to dynamic key lengths as this might get conflicts for DLM users who actually using different resource name lengths in DLM.

Additional malformed packets drops to avoid kernel crashes, however we still cannot recover from those drops but this is another problem.

Then there are missing barriers for srcu as call_srcu() uses the srcu static structures which can end in an use after free when the module is removed.

- Alex

Alexander Aring (1):
dlm: fix variable key length lookup

Danila Chernetsov (2):
dlm: validate lock modes in recovery messages
dlm: fix NULL pointer dereference in dlm_dump_rsb_name()

Haofeng Li (2):
dlm: gate dlm_plock device on CAP_SYS_ADMIN
dlm: require CAP_SYS_ADMIN for dlm-monitor device

Joseph Qi (1):
dlm: fix buffer overflow from negative len in dlm_search_rsb_tree

Samuel Moelius (1):
dlm: validate userspace lock resource name length

Zqiang (1):
dlm: wait for outstanding SRCU callbacks to complete in exit paths

 fs/dlm/config.c       | 30 ++++++++++++++++++++++++++++--
 fs/dlm/dlm_internal.h |  5 +++++
 fs/dlm/lock.c         | 18 +++++++++++++-----
 fs/dlm/lock.h         |  4 ++--
 fs/dlm/lowcomms.c     |  1 +
 fs/dlm/midcomms.c     |  1 +
 fs/dlm/plock.c        | 14 +++++++++++++-
 fs/dlm/user.c         | 23 +++++++++++++++++++++++
 8 files changed, 86 insertions(+), 10 deletions(-)
Signature · 1 line
2.43.0