Re: [PATCH] 9p: cap xattr max size to XATTR_SIZE_MAX
From: Fedor Pchelkin
Date: Sun Sep 01 2024 - 03:17:18 EST
Hi Dominique and Christian,
the issue is still present in upstream kernel [1].
Considering the remark from Christian that limiting the allocation to
XATTR_SIZE_MAX seems too Linux-specific, maybe just fail silently with
__GFP_NOWARN flag passed to the allocator and return ENOMEM? I submitted
the patch [2] sometime ago which looks still applicable to the mainline
kernel. It was superseded with current discussion.
[1]: https://syzkaller.appspot.com/bug?extid=a83dc51a78f0f4cf20da
[2]: https://lore.kernel.org/lkml/20240202121319.21743-1-pchelkin@xxxxxxxxx/