Re: [PATCH v2] ocfs2: reject inconsistent local xattr entries

From: Andrew Morton

Date: Wed Aug 26 2026 - 22:14:55 EST


On Thu, 6 Aug 2026 16:50:12 +0800 ZhengYuan Huang <gality369@xxxxxxxxx> wrote:

> [BUG]
> A corrupt OCFS2 xattr entry can set OCFS2_XATTR_ENTRY_LOCAL while
> keeping xe_value_size larger than OCFS2_XATTR_INLINE_SIZE. When that
> entry reaches namevalue_size_xe(), the filesystem hits its BUG_ON:
>
> kernel BUG at fs/ocfs2/xattr.c:231!
>
> ...
>
> [FIX]
>
> ...

Thanks. AI review might have found several issues - two are
pre-existing and two introduced by this patch:

https://sashiko.dev/#/patchset/20260806085012.2650042-1-gality369@xxxxxxxxx