linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/2] ceph: fix the use-after-free bug for file_lock
@ 2022-12-14  3:35 xiubli
  2022-12-14  3:35 ` [PATCH v5 1/2] ceph: switch to vfs_inode_has_locks() to fix file lock bug xiubli
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: xiubli @ 2022-12-14  3:35 UTC (permalink / raw)
  To: jlayton, idryomov, ceph-devel
  Cc: mchangir, lhenriques, viro, linux-kernel, linux-fsdevel, Xiubo Li

From: Xiubo Li <xiubli@redhat.com>

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(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-01-03  0:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-14  3:35 [PATCH v5 0/2] ceph: fix the use-after-free bug for file_lock xiubli
2022-12-14  3:35 ` [PATCH v5 1/2] ceph: switch to vfs_inode_has_locks() to fix file lock bug xiubli
2022-12-15 13:20   ` Ilya Dryomov
2022-12-16  0:23     ` Xiubo Li
2022-12-16  6:45     ` Xiubo Li
2022-12-14  3:35 ` [PATCH v5 2/2] ceph: add ceph specific member support for file_lock xiubli
2023-01-02 11:50 ` [PATCH v5 0/2] ceph: fix the use-after-free bug " Ilya Dryomov
2023-01-03  0:35   ` Xiubo Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).