Re: [PATCH] ext4: pass strlen() of the symlink instead of i_size to inode_set_cached_link()

From: Mateusz Guzik
Date: Wed Feb 05 2025 - 11:34:32 EST


On Wed, Feb 5, 2025 at 5:28 PM Mateusz Guzik <mjguzik@xxxxxxxxx> wrote:
>
> The call to nd_terminate_link() clamps the size to min(i_size,
> sizeof(ei->i_data) - 1), while the subsequent call to
> inode_set_cached_link() fails the possible update.
>

oof.. that should be:
> inode_set_cached_link() fails to take it into account

--
Mateusz Guzik <mjguzik gmail.com>