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

xiubli@redhat.com posted 2 patches 3 years, 5 months ago
There is a newer version of this series
fs/ceph/file.c                  |  9 +++++++++
fs/ceph/inode.c                 |  4 ++++
fs/ceph/locks.c                 | 35 +++++++++++++++++++++++++++++----
fs/ceph/super.h                 |  4 ++++
include/linux/ceph/ceph_fs_fl.h | 26 ++++++++++++++++++++++++
include/linux/fs.h              |  2 ++
6 files changed, 76 insertions(+), 4 deletions(-)
create mode 100644 include/linux/ceph/ceph_fs_fl.h
[PATCH 0/2 v2] ceph: fix the use-after-free bug for file_lock
Posted by xiubli@redhat.com 3 years, 5 months ago
From: Xiubo Li <xiubli@redhat.com>

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: add ceph_lock_info support for file_lock
  ceph: use a xarray to record all the opened files for each inode

 fs/ceph/file.c                  |  9 +++++++++
 fs/ceph/inode.c                 |  4 ++++
 fs/ceph/locks.c                 | 35 +++++++++++++++++++++++++++++----
 fs/ceph/super.h                 |  4 ++++
 include/linux/ceph/ceph_fs_fl.h | 26 ++++++++++++++++++++++++
 include/linux/fs.h              |  2 ++
 6 files changed, 76 insertions(+), 4 deletions(-)
 create mode 100644 include/linux/ceph/ceph_fs_fl.h

-- 
2.31.1