[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4091309.WcpKHNDlqE@silver>
Date: Mon, 04 Mar 2024 14:35:07 +0100
From: Christian Schoenebeck <linux_oss@...debyte.com>
To: Eric Van Hensbergen <ericvh@...nel.org>,
Latchesar Ionkov <lucho@...kov.net>,
Dominique Martinet <asmadeus@...ewreck.org>
Cc: v9fs@...ts.linux.dev, linux-kernel@...r.kernel.org,
Christian Brauner <brauner@...nel.org>, xingwei lee <xrivendell7@...il.com>,
sam sun <samsun1006219@...il.com>,
Dominique Martinet <asmadeus@...ewreck.org>
Subject: Re: [PATCH] 9p: cap xattr max size to XATTR_SIZE_MAX
On Monday, March 4, 2024 1:42:43 PM CET Dominique Martinet wrote:
> We probably shouldn't ever get an xattr bigger than that, and the current check
> of SSIZE_MAX is a bit too large.
Maybe, OTOH e.g. ACLs (dynamic size) are implemented by storing them as xattrs
on 9p server as well, and this change somewhat expects server to run Linux as
well. So maybe s/XATTR_SIZE_MAX/KMALLOC_MAX_SIZE/ might be more appropriate,
considering that this patch is about fixing a potential kmalloc() warning?
Worth to mention in the commit log BTW what the issue was.
/Christian
Powered by blists - more mailing lists