linux/fs/jbd2
Ye Bin 243d1a5d50 jbd2: fix potential use-after-free in jbd2_fc_wait_bufs
In 'jbd2_fc_wait_bufs' use 'bh' after put buffer head reference count
which may lead to use-after-free.
So judge buffer if uptodate before put buffer head reference count.

Cc: stable@kernel.org
Signed-off-by: Ye Bin <yebin10@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20220914100812.1414768-3-yebin10@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2022-09-30 23:46:52 -04:00
..
checkpoint.c jbd2: rename jbd_debug() to jbd2_debug() 2022-08-02 23:52:19 -04:00
commit.c jbd2: wake up journal waiters in FIFO order, not LIFO 2022-09-30 23:46:52 -04:00
journal.c jbd2: fix potential use-after-free in jbd2_fc_wait_bufs 2022-09-30 23:46:52 -04:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
recovery.c Add new ioctls to set and get the file system UUID in the ext4 2022-08-04 20:13:46 -07:00
revoke.c jbd2: rename jbd_debug() to jbd2_debug() 2022-08-02 23:52:19 -04:00
transaction.c jbd2: wake up journal waiters in FIFO order, not LIFO 2022-09-30 23:46:52 -04:00