[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <175206897980.965177.5326786325935383585.b4-ty@kernel.org>
Date: Wed, 09 Jul 2025 15:49:39 +0200
From: Niklas Cassel <cassel@...nel.org>
To: dlemoal@...nel.org, Jonathan Velez <jonvelez12345@...il.com>
Cc: linux-kernel@...r.kernel.org, linux-ide@...r.kernel.org,
shuah@...nel.org
Subject: Re: [PATCH] ata: libata-transport: replace scnprintf with
sysfs_emit for simple attributes
On Wed, 09 Jul 2025 13:33:30 +0000, Jonathan Velez wrote:
> sprintf, snprintf, and scnprintf do not consider the PAGE_SIZE maximum
> of the temporary buffer used for outputting sysfs content and they may
> overrun the PAGE_SIZE buffer length.
>
> To avoid output defects with the ATA transport class simple attributes,
> use sysfs_emit instead of scnprintf().
>
> [...]
Applied to libata/linux.git (for-6.17), thanks!
[1/1] ata: libata-transport: replace scnprintf with sysfs_emit for simple attributes
https://git.kernel.org/libata/linux/c/48925ba7
Kind regards,
Niklas
Powered by blists - more mailing lists