mbox series

[0/3] ext4: fix two issue about bdev_try_to_free_page()

Message ID 20210408113618.1033785-1-yi.zhang@huawei.com
Headers show
Series ext4: fix two issue about bdev_try_to_free_page() | expand

Message

Zhang Yi April 8, 2021, 11:36 a.m. UTC
Hi,

This first patch fix a potential filesystem inconsistency problem and
other two fix a use after free problem.

Zhang Yi (3):
  jbd2: protect buffers release with j_checkpoint_mutex
  jbd2: do not free buffers in jbd2_journal_try_to_free_buffers()
  ext4: add rcu to prevent use after free when umount filesystem

 fs/ext4/inode.c       |  6 ++++--
 fs/ext4/super.c       | 41 +++++++++++++++++++++++++++++------------
 fs/jbd2/journal.c     | 30 +++++++++++++++++++++++++++---
 fs/jbd2/transaction.c | 20 ++++++++++----------
 include/linux/jbd2.h  | 11 ++++++++++-
 5 files changed, 80 insertions(+), 28 deletions(-)