Re: [PATCH] ext4: Fix memory leak in ext4_ext_shift_extents()
From: Theodore Ts'o
Date: Wed Jan 28 2026 - 13:09:33 EST
On Thu, 25 Dec 2025 08:48:00 +0000, Zilin Guan wrote:
> In ext4_ext_shift_extents(), if the extent is NULL in the while loop, the
> function returns immediately without releasing the path obtained via
> ext4_find_extent(), leading to a memory leak.
>
> Fix this by jumping to the out label to ensure the path is properly
> released.
>
> [...]
Applied, thanks!
[1/1] ext4: Fix memory leak in ext4_ext_shift_extents()
commit: ca81109d4a8f192dc1cbad4a1ee25246363c2833
Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>