diff options
author | Ye Bin <yebin10@huawei.com> | 2022-09-14 12:08:12 +0200 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2022-10-01 05:46:52 +0200 |
commit | 243d1a5d505d0b0460c9af0ad56ed4a56ef0bebd (patch) | |
tree | 03104b6889bdf97ca76bd508ab80c03f1838d4af /fs/char_dev.c | |
parent | jbd2: fix potential buffer head reference count leak (diff) | |
download | linux-243d1a5d505d0b0460c9af0ad56ed4a56ef0bebd.tar.xz linux-243d1a5d505d0b0460c9af0ad56ed4a56ef0bebd.zip |
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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions