[lvc-project] [PATCH] fs/ntfs3: check return values in indx_delete_entry()

Fedor Pchelkin pchelkin at ispras.ru
Thu Jul 16 11:38:34 MSK 2026


On Sun, 12. Jul 15:15, Dmitry Morgun wrote:
> When the index tree collapses down to an empty root,
> indx_delete_entry() calls attr_set_size() and ni_remove_attr() for
> both ATTR_ALLOC and ATTR_BITMAP, but their return values are
> overwritten by the following call without being checked.
> 
> In most other call sites of these functions the return value is
> checked, so add the same checks here in case an error at this point
> is meaningful.
> 
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
> 
> Fixes: 82cae269cfa9 ("fs/ntfs3: Add initialization of super block")
> Signed-off-by: Dmitry Morgun <d.morgun at ispras.ru>
> ---

Есть что ещё поисследовать в контексте целесообразности исправления
https://sashiko.dev/#/patchset/20260712151549.1781-1-d.morgun%40ispras.ru



More information about the lvc-project mailing list