Re: [PATCH v2] ext4: refresh inline data size before write operations
From: Theodore Ts'o
Date: Mon Nov 17 2025 - 14:19:26 EST
On Mon, 20 Oct 2025 11:39:36 +0530, Deepanshu Kartikey wrote:
> The cached ei->i_inline_size can become stale between the initial size
> check and when ext4_update_inline_data()/ext4_create_inline_data() use
> it. Although ext4_get_max_inline_size() reads the correct value at the
> time of the check, concurrent xattr operations can modify i_inline_size
> before ext4_write_lock_xattr() is acquired.
>
> This causes ext4_update_inline_data() and ext4_create_inline_data() to
> work with stale capacity values, leading to a BUG_ON() crash in
> ext4_write_inline_data():
>
> [...]
Applied, thanks!
[1/1] ext4: refresh inline data size before write operations
commit: 892e1cf17555735e9d021ab036c36bc7b58b0e3b
Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>