All of lore.kernel.org
 help / color / mirror / Atom feed
From: Will Deacon <will@kernel.org>
To: Tian Tao <tiantao6@hisilicon.com>,
	catalin.marinas@arm.com, mark.rutland@arm.com
Cc: kernel-team@android.com, Will Deacon <will@kernel.org>,
	linux-perf-users@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] arm64: perf: Convert snprintf to sysfs_emit
Date: Tue,  1 Jun 2021 19:21:01 +0100	[thread overview]
Message-ID: <162255350340.566186.10036396302405143953.b4-ty@kernel.org> (raw)
In-Reply-To: <1621497585-30887-1-git-send-email-tiantao6@hisilicon.com>

On Thu, 20 May 2021 15:59:45 +0800, Tian Tao wrote:
> Use sysfs_emit instead of snprintf to avoid buf overrun,because in
> sysfs_emit it strictly checks whether buf is null or buf whether
> pagesize aligned, otherwise it returns an error.

Applied to will (for-next/perf), thanks!

[1/1] arm64: perf: Convert snprintf to sysfs_emit
      https://git.kernel.org/will/c/a5740e955540

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev

WARNING: multiple messages have this Message-ID (diff)
From: Will Deacon <will@kernel.org>
To: Tian Tao <tiantao6@hisilicon.com>,
	catalin.marinas@arm.com, mark.rutland@arm.com
Cc: kernel-team@android.com, Will Deacon <will@kernel.org>,
	linux-perf-users@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] arm64: perf: Convert snprintf to sysfs_emit
Date: Tue,  1 Jun 2021 19:21:01 +0100	[thread overview]
Message-ID: <162255350340.566186.10036396302405143953.b4-ty@kernel.org> (raw)
In-Reply-To: <1621497585-30887-1-git-send-email-tiantao6@hisilicon.com>

On Thu, 20 May 2021 15:59:45 +0800, Tian Tao wrote:
> Use sysfs_emit instead of snprintf to avoid buf overrun,because in
> sysfs_emit it strictly checks whether buf is null or buf whether
> pagesize aligned, otherwise it returns an error.

Applied to will (for-next/perf), thanks!

[1/1] arm64: perf: Convert snprintf to sysfs_emit
      https://git.kernel.org/will/c/a5740e955540

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2021-06-01 18:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-20  7:59 [PATCH] arm64: perf: Convert snprintf to sysfs_emit Tian Tao
2021-05-20  7:59 ` Tian Tao
2021-06-01 18:21 ` Will Deacon [this message]
2021-06-01 18:21   ` Will Deacon

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=162255350340.566186.10036396302405143953.b4-ty@kernel.org \
    --to=will@kernel.org \
    --cc=catalin.marinas@arm.com \
    --cc=kernel-team@android.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=tiantao6@hisilicon.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.