Skip to content

gfs2: Fix potential glock use-after-free on unmount

Andreas Gruenbacher gfs2 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3gfs2: Remove ill-placed consistency checkfs/gfs2/glock.c+0 -10 replies
2/3gfs2: Fix potential glock use-after-free on unmountfs/gfs2/glock.c fs/gfs2/glock.h fs/gfs2/incore.h +3 more+55 -130 replies
3/3gfs2: Unlock fewer glocks on unmountfs/gfs2/lock_dlm.c+8 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] gfs2: Fix potential glock use-after-free on unmount

On top of what we already have on for-next, here are three more patches.

gfs2: Remove ill-placed consistency check

Removes a consistency check that isn't needed anymore and only gets in the way of the next patch.

gfs2: Fix potential glock use-after-free on unmount

Prevent DLM bast callbacks from accessing glock objects after they have been freed.

gfs2: Unlock fewer glocks on unmount

We can be a little more aggressive in avoiding to unlock DLM locks immediately before the lockspace is released.

Thanks,
Andreas

Andreas Gruenbacher (3):
gfs2: Remove ill-placed consistency check
gfs2: Fix potential glock use-after-free on unmount
gfs2: Unlock fewer glocks on unmount

 fs/gfs2/glock.c      | 32 ++++++++++++++++++++++++++++----
 fs/gfs2/glock.h      |  2 ++
 fs/gfs2/incore.h     |  1 +
 fs/gfs2/lock_dlm.c   | 40 +++++++++++++++++++++++++++++-----------
 fs/gfs2/ops_fstype.c |  1 +
 fs/gfs2/super.c      |  1 +
 6 files changed, 62 insertions(+), 15 deletions(-)
Signature · 1 line
2.44.0