This is a note to let you know that I've just added the patch titled jbd2: add miss release buffer head in fc_do_one_pass() to the 5.10-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: jbd2-add-miss-release-buffer-head-in-fc_do_one_pass.patch and it can be found in the queue-5.10 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From dfff66f30f66b9524b661f311bbed8ff3d2ca49f Mon Sep 17 00:00:00 2001 From: Ye Bin <yebin10@xxxxxxxxxx> Date: Sat, 17 Sep 2022 17:38:05 +0800 Subject: jbd2: add miss release buffer head in fc_do_one_pass() From: Ye Bin <yebin10@xxxxxxxxxx> commit dfff66f30f66b9524b661f311bbed8ff3d2ca49f upstream. In fc_do_one_pass() miss release buffer head after use which will lead to reference count leak. Cc: stable@xxxxxxxxxx Signed-off-by: Ye Bin <yebin10@xxxxxxxxxx> Reviewed-by: Jan Kara <jack@xxxxxxx> Link: https://lore.kernel.org/r/20220917093805.1782845-1-yebin10@xxxxxxxxxx Signed-off-by: Theodore Ts'o <tytso@xxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- fs/jbd2/recovery.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/jbd2/recovery.c +++ b/fs/jbd2/recovery.c @@ -256,6 +256,7 @@ static int fc_do_one_pass(journal_t *jou err = journal->j_fc_replay_callback(journal, bh, pass, next_fc_block - journal->j_fc_first, expected_commit_id); + brelse(bh); next_fc_block++; if (err < 0 || err == JBD2_FC_REPLAY_STOP) break; Patches currently in stable-queue which might be from yebin10@xxxxxxxxxx are queue-5.10/jbd2-fix-potential-buffer-head-reference-count-leak.patch queue-5.10/jbd2-fix-potential-use-after-free-in-jbd2_fc_wait_bufs.patch queue-5.10/btrfs-fix-race-between-quota-enable-and-quota-rescan-ioctl.patch queue-5.10/jbd2-add-miss-release-buffer-head-in-fc_do_one_pass.patch