All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Yuan Tan <yuant@nebusec.ai>
Cc: linux-mm@kvack.org, david@kernel.org, ljs@kernel.org,
	liam@infradead.org, vbabka@kernel.org, rppt@kernel.org,
	surenb@google.com, mhocko@suse.com, notasas@gmail.com,
	rakukuip@gmail.com, Ren Wei <weir@nebusec.ai>
Subject: Re: [PATCH v3 1/1] mm/memory: constrain generic_access_phys() to page boundary
Date: Sun, 13 Sep 2026 15:47:26 -0700	[thread overview]
Message-ID: <20260913154726.be94acada0a925cf6dabfbcd@linux-foundation.org> (raw)
In-Reply-To: <1146fc8a-94c8-4e28-aa38-cd0322bea9a4@nebusec.ai>

On Sun, 13 Sep 2026 01:28:18 -0700 Yuan Tan <yuant@nebusec.ai> wrote:

> 
> >> +	    (phys_addr != ((resource_size_t)args.pfn << PAGE_SHIFT)) ||
> > hoo boy we've made a mess of the types in there, but I don't see a
> > feasible improvement in the context of this patch.
> >
> > Also, a [0/N] isn't needed or desirable when N==1!  I'll consolidate
> > both into a singleton patch.
> 
> Hi,
> 
> 
> Luxiao is helping us fix some of the bugs found by our bug finding tool.

> 
> 
> Normally, our patch series includes a reproducer in the cover letter, so
> we usually send these patches with a cover letter. I believe Luxiao
> simply forgot to include the reproducer in this version. The reproducer
> for this bug can be found here:
> https://lore.kernel.org/all/cover.1784428532.git.rakukuip@gmail.com/


Great, thanks.

See, what I'm always looking for in bug fixes is a solid description
of the significance/impact/risk which that bug has upon our users. 

This impact ranges between "Impossibly improbable thing which some AI
scan found but which nobody is ever going to hit" through to "this
crashes our entire fleet 12 times per day".

The range really is that broad and this information matters.  And
people care about it.  I look to authors to help us understand and
assess this impact.  So please do whatever you can (organization-wide)
to ensure that this info is made available to its potential audience.


> For future patches, if we are sending a single patch without a cover
> letter, what would be the preferred way to include the reproducer?
> Should we put it directly in the commit message, or place it below the
> --- separator so that the reproducer itself does not become part of the
> permanent git history?


It depends.

Formally, the reproducer should be made part of selftests/, so the bug
can never reappear.  I think that's excessive for this project and the
risk of reintroduction is so low that this isn't worthwhile.

Pasting it in to the formal changelog is reasonable.  Putting it below
the --- is probably better, as long as the permanent changelog mentions
its existence.  Then highly motivated people can follow the Link: and
find the reproducer.

The main value in the reproducer is knowing that it exists!  That this
bug can really be hit from userspace.

> 
> Also, I have been collecting the bug report by llm into a syzbot-like
> tracking system[1].
> The tracker aggregates bug reports from multiple sources, including
> Sashiko, and then attempts to validate the reports and generate
> reproducers to make sure it is not a false positive . It also
> automatically tracks whether a bug has been fixed.


That's a great initiative, thanks.

> 
> For the networking side, I have already imported the Sashiko reports
> into the bug tracker and shared it with the net maintainers. I am
> planning to do the same for mm, but haven't gotten to it yet. There are
> already a few mm bugs in the tracker that were found by our own tool,
> and none of them seem to have security implications.
> 
> If you have a chance, I'd be interested to hear what you think. Any
> suggestions on how to make it more useful for mm maintainers would be
> very welcome.

I saw.  I'd love to spend time with this but you know how it is.  We're
all overwhelmed by the bot invasion at present, and none more than me. 
I view your contributions as "parallelization of effort".  Keep the
fixes coming and I'll do my best to get them through our pipeline and
out to our users.


  reply	other threads:[~2026-09-13 22:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-10  3:42 [PATCH v3 0/1] mm/memory: constrain generic_access_phys() to page boundary Ren Wei
2026-09-10  3:42 ` [PATCH v3 1/1] " Ren Wei
2026-09-10  6:18   ` Andrew Morton
2026-09-13  8:28     ` Yuan Tan
2026-09-13 22:47       ` Andrew Morton [this message]
2026-09-10  8:16   ` David Hildenbrand (Arm)

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=20260913154726.be94acada0a925cf6dabfbcd@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=david@kernel.org \
    --cc=liam@infradead.org \
    --cc=linux-mm@kvack.org \
    --cc=ljs@kernel.org \
    --cc=mhocko@suse.com \
    --cc=notasas@gmail.com \
    --cc=rakukuip@gmail.com \
    --cc=rppt@kernel.org \
    --cc=surenb@google.com \
    --cc=vbabka@kernel.org \
    --cc=weir@nebusec.ai \
    --cc=yuant@nebusec.ai \
    /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.