mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Niklas Cassel <cassel@kernel.org>
To: dlemoal@kernel.org, Jonathan Velez <jonvelez12345@gmail.com>
Cc: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org,
	 shuah@kernel.org
Subject: Re: [PATCH] ata: libata-transport: replace scnprintf with sysfs_emit for simple attributes
Date: Wed, 09 Jul 2025 15:49:39 +0200	[thread overview]
Message-ID: <175206897980.965177.5326786325935383585.b4-ty@kernel.org> (raw)
In-Reply-To: <20250709133330.3546-1-jonvelez12345@gmail.com>

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


  parent reply	other threads:[~2025-07-09 13:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-09 13:33 Jonathan Velez
2025-07-09 13:47 ` Niklas Cassel
2025-07-09 13:49 ` Niklas Cassel [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-07-07 12:20 Jonathan Velez
2025-07-08  1:15 ` Damien Le Moal
2025-07-09 13:16   ` Jonathan Velez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=175206897980.965177.5326786325935383585.b4-ty@kernel.org \
    --to=cassel@kernel.org \
    --cc=dlemoal@kernel.org \
    --cc=jonvelez12345@gmail.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shuah@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®