Re: [PATCH AUTOSEL 4.19 02/12] loop: use sysfs_emit() in the sysfs xxx show()
From: Joe Perches
Date: Mon Mar 28 2022 - 07:51:52 EST
On Mon, 2022-03-28 at 07:24 -0400, Sasha Levin wrote:
> From: Chaitanya Kulkarni <kch@xxxxxxxxxx>
>
> [ Upstream commit b27824d31f09ea7b4a6ba2c1b18bd328df3e8bed ]
>
> sprintf does not know the PAGE_SIZE maximum of the temporary buffer
> used for outputting sysfs content and it's possible to overrun the
> PAGE_SIZE buffer length.
IMOP This isn't something that should be backported.