Re: [PATCH] ext4: fix inode use after free in ext4_end_io_rsv_work()
From: Theodore Ts'o
Date: Sat Jul 19 2025 - 17:46:58 EST
On Tue, 08 Jul 2025 19:15:04 +0800, libaokun@xxxxxxxxxxxxxxx wrote:
> In ext4_io_end_defer_completion(), check if io_end->list_vec is empty to
> avoid adding an io_end that requires no conversion to the
> i_rsv_conversion_list, which in turn prevents starting an unnecessary
> worker. An ext4_emergency_state() check is also added to avoid attempting
> to abort the journal in an emergency state.
>
> Additionally, ext4_put_io_end_defer() is refactored to call
> ext4_io_end_defer_completion() directly instead of being open-coded.
> This also prevents starting an unnecessary worker when EXT4_IO_END_FAILED
> is set but data_err=abort is not enabled.
>
> [...]
Applied, thanks!
[1/1] ext4: fix inode use after free in ext4_end_io_rsv_work()
commit: c678bdc998754589cea2e6afab9401d7d8312ac4
Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>