Re: [PATCH v1] ntfs: use kvfree when ascending an index tree
From: Namjae Jeon
Date: Fri Nov 20 2026 - 06:56:54 EST
On Fri, Nov 20, 2026 at 6:20 PM Dandan Wu <dand_wu@xxxxxxx> wrote:
>
> From: Dandan Wu <wudandan@xxxxxxxxxx>
>
> ntfs_index_walk_down() allocates the index block with kvzalloc(), which
> may return vmalloc memory. When traversal ascends back to the root,
> ntfs_index_walk_up() passes that block to kfree(), which cannot free a
> vmalloc allocation.
>
> Use kvfree(), as the index context cleanup already does, to handle both
> allocation types.
>
> Fixes: 0a8ac0c1fa0b ("ntfs: update directory operations")
> Signed-off-by: Dandan Wu <wudandan@xxxxxxxxxx>
Applied it to #ntfs-next.
Thanks!