Re: [PATCH] ocfs2: validate truncate log dinode before caching

From: ZhengYuan Huang

Date: Sun Aug 02 2026 - 22:57:21 EST


On Thu, Jul 23, 2026 at 11:40 AM Joseph Qi <joseph.qi@xxxxxxxxxxxxxxxxx> wrote:
> It seems I've missed the thread.
>
> And I've found a similar one in:
> https://lore.kernel.org/ocfs2-devel/20260713205625.92391-1-doruk@xxxxxxx/
>
> Could you please check if it fixes the same issue?

Yes, this patch fixes the use-after-free in ocfs2_dx_dir_search.

Our analysis indicates that the kernel BUG in
__ocfs2_flush_truncate_log was caused by the same use-after-free
issue. Therefore, at this point, it seems that no additional fix is
needed.

Thanks,
ZhengYuan Huang