Re: [PATCH v3] ext4: publish jinode after initialization

From: Theodore Ts'o

Date: Thu Mar 26 2026 - 08:05:34 EST



On Wed, 25 Feb 2026 16:26:16 +0800, Li Chen wrote:
> ext4_inode_attach_jinode() publishes ei->jinode to concurrent users.
> It used to set ei->jinode before jbd2_journal_init_jbd_inode(),
> allowing a reader to observe a non-NULL jinode with i_vfs_inode
> still unset.
>
> The fast commit flush path can then pass this jinode to
> jbd2_wait_inode_data(), which dereferences i_vfs_inode->i_mapping and
> may crash.
>
> [...]

Applied, thanks!

[1/1] ext4: publish jinode after initialization
commit: d4dfb4e294f762f0567c50ac6cd71ba02c976575

Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>