public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
From: SeongJae Park <sj@kernel.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: SeongJae Park <sj@kernel.org>,
	mm-commits@vger.kernel.org, stable@vger.kernel.org
Subject: Re: + mm-damon-core-validate-damos_quota_goal-nid-for-node_mem_usedfree_bp.patch added to mm-hotfixes-unstable branch
Date: Tue, 31 Mar 2026 21:38:43 -0700	[thread overview]
Message-ID: <20260401043843.23448-1-sj@kernel.org> (raw)
In-Reply-To: <20260401033151.CB9DAC4CEF7@smtp.kernel.org>

Hello Andrew,

On Tue, 31 Mar 2026 20:31:51 -0700 Andrew Morton <akpm@linux-foundation.org> wrote:

> 
> The patch titled
>      Subject: mm/damon/core: validate damos_quota_goal->nid for node_mem_{used,free}_bp
> has been added to the -mm mm-hotfixes-unstable branch.  Its filename is
>      mm-damon-core-validate-damos_quota_goal-nid-for-node_mem_usedfree_bp.patch
[...]
> ------------------------------------------------------
> From: SeongJae Park <sj@kernel.org>
> Subject: mm/damon/core: validate damos_quota_goal->nid for node_mem_{used,free}_bp
> Date: Sat, 28 Mar 2026 21:38:59 -0700
> 
> Patch series "mm/damon/core: validate damos_quota_goal->nid".
> 
> node_mem[cg]_{used,free}_bp DAMOS quota goals receive the node id.  The
> node id is used for si_meminfo_node() and NODE_DATA() without proper
> validation.  As a result, privileged users can trigger an out of bounds
> memory access using DAMON_SYSFS.  Fix the issues.
> 
> The issue was originally reported [1] with a fix by another author.  The
> original author announced [2] that they will stop working including the
> fix that was still in the review stage.  Hence I'm restarting this.
> 
> 
> Users can set damos_quota_goal->nid with arbitrary value for
> node_mem_{used,free}_bp.  But DAMON core is using those for
> si_meminfo_node() without the validation of the value.  This can result in
> out of bounds memory access.  The issue can actually triggered using DAMON
> user-space tool (damo), like below.

Seems "This patch (of X):" line before the above paragraph is missed.


Thanks,
SJ

[...]

      reply	other threads:[~2026-04-01  4:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-01  3:31 + mm-damon-core-validate-damos_quota_goal-nid-for-node_mem_usedfree_bp.patch added to mm-hotfixes-unstable branch Andrew Morton
2026-04-01  4:38 ` SeongJae Park [this message]

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=20260401043843.23448-1-sj@kernel.org \
    --to=sj@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=mm-commits@vger.kernel.org \
    --cc=stable@vger.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