[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 2 Mar 2022 19:41:24 -0500
From: "Theodore Ts'o" <tytso@....edu>
To: Ritesh Harjani <riteshh@...ux.ibm.com>, linux-ext4@...r.kernel.org
Cc: "Theodore Ts'o" <tytso@....edu>,
syzbot+afa2ca5171d93e44b348@...kaller.appspotmail.com,
Jan Kara <jack@...e.cz>
Subject: Re: [PATCH] jbd2: Fix use-after-free of transaction_t race
On Thu, 10 Feb 2022 21:07:11 +0530, Ritesh Harjani wrote:
> jbd2_journal_wait_updates() is called with j_state_lock held. But if
> there is a commit in progress, then this transaction might get committed
> and freed via jbd2_journal_commit_transaction() ->
> jbd2_journal_free_transaction(), when we release j_state_lock.
> So check for journal->j_running_transaction everytime we release and
> acquire j_state_lock to avoid use-after-free issue.
>
> [...]
Applied, thanks!
[1/1] jbd2: Fix use-after-free of transaction_t race
commit: cc16eecae687912238ee6efbff71ad31e2bc414e
Best regards,
--
Theodore Ts'o <tytso@....edu>
Powered by blists - more mailing lists