Re: [PATCH] jfs: allow xattr values of USHRT_MAX bytes
From: Hungyu Lin
Date: Fri Dec 04 2026 - 03:17:53 EST
On Mon, Nov 2, 2026 at 1:42 PM Hungyu Lin <dennylin0707@xxxxxxxxx> wrote:
> The on-disk EA value length is __le16, which can represent 65535 bytes.
> However, __jfs_setxattr() rejects values whose length is equal to
> USHRT_MAX as well as values that exceed it. This prevents setfattr from
> storing a 65535-byte value and cp --preserve=xattr from preserving such
> an attribute when copying a file to JFS.
Gentle ping. The comment added with the check in 0439e091e3b1 also
says the overflow happens at XATTR_SIZE_MAX (65536).
Could this be picked up?
Thanks,
Hungyu