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

ZhengYuan Huang <[email protected]> Mon, 3 Aug 2026 10:55:38 +0800
Newsgroups dev.linux.lists.ocfs2-devel,org.kernel.vger.linux-kernel
Message-ID <CAOmEq9WnynOwO2DOwFv3XEfX2YgiHGr9XoCUVmw_29Qj=+cBWQ@mail.gmail.com>
On Thu, Jul 23, 2026 at 11:40=E2=80=AFAM Joseph Qi <[email protected]=
.com> wrote:
> It seems I've missed the thread.
>
> And I've found a similar one in:
> https://lore.kernel.org/ocfs2-devel/[email protected]/
>
> 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