Skip to content

ceph: fix the use-after-free bug for file_lock

[email protected] ceph-devel linux-fsdevel lkml stable 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 5 repliesIn review
  2. v42 patches 3 repliesSuperseded
  3. v32 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v22 patches5 repliesSuperseded

Changes in v5 from the cover letter

- s/fl_inode/inode/

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ceph: switch to vfs_inode_has_locks() to fix file lock bugfs/ceph/caps.c fs/ceph/locks.c fs/ceph/super.h+1 -63 replies
2/2ceph: add ceph specific member support for file_lockfs/ceph/locks.c include/linux/fs.h+21 -20 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJeff LaytonIlya Dryomov
SeriesR-b
1/2R-b
2/2R-b

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

Read the v5 thread

Cover letter [PATCH v5 0/2] ceph: fix the use-after-free bug for file_lock

From: Xiubo Li <[email protected]>

Changed in V5:
- s/fl_inode/inode/

Changed in V4:
- repeat the afs in fs.h instead of adding ceph specific header file

Changed in V3:
- switched to vfs_inode_has_locks() helper to fix another ceph file lock bug, thanks Jeff!
- this patch series is based on Jeff's previous VFS lock patch:
https://patchwork.kernel.org/project/ceph-devel/list/?series=695950

Changed in V2:
- switch to file_lock.fl_u to fix the race bug
- and the most code will be in the ceph layer

Xiubo Li (2):
ceph: switch to vfs_inode_has_locks() to fix file lock bug
ceph: add ceph specific member support for file_lock

 fs/ceph/caps.c     |  2 +-
 fs/ceph/locks.c    | 24 ++++++++++++++++++------
 fs/ceph/super.h    |  1 -
 include/linux/fs.h |  3 +++
 4 files changed, 22 insertions(+), 8 deletions(-)
Signature · 1 line
2.31.1