From: Matthew Wilcox <willy@infradead.org>
To: Vlastimil Babka <vbabka@suse.cz>
Cc: Suren Baghdasaryan <surenb@google.com>,
Lorenzo Stoakes <lorenzo.stoakes@oracle.com>,
Andrew Morton <akpm@linux-foundation.org>,
linux-mm@kvack.org,
syzbot+5b19bad23ac7f44bf8b8@syzkaller.appspotmail.com,
"Liam R. Howlett" <Liam.Howlett@oracle.com>
Subject: Re: [PATCH v2] mm: fix vma_start_write_killable() signal handling
Date: Wed, 26 Nov 2025 19:34:31 +0000 [thread overview]
Message-ID: <aSdWR9GRe93VfrcC@casper.infradead.org> (raw)
In-Reply-To: <ae18d781-86a3-4539-9441-079b7f45e726@suse.cz>
On Wed, Nov 26, 2025 at 07:53:13PM +0100, Vlastimil Babka wrote:
> On 11/26/25 7:43 PM, Suren Baghdasaryan wrote:
> > On Wed, Nov 26, 2025 at 6:28 PM Matthew Wilcox <willy@infradead.org> wrote:
> >>
> >> On Wed, Nov 26, 2025 at 06:06:53PM +0000, Lorenzo Stoakes wrote:
> >>> On Wed, Nov 26, 2025 at 05:44:58PM +0000, Matthew Wilcox (Oracle) wrote:
> >>>> If we get a signal, we need to restore the vm_refcnt. We don't think
> >>>> that the refcount can actually be decremented to zero here as it
> >>>> requires the VMA to be detached, and the vma_mark_detached() uses
> >>>> TASK_UNINTERRUPTIBLE. However, that's a bit subtle, so handle it
> >>>> as if the refcount was zero at the start of this function.
> >>>>
> >>>> Reported-by: syzbot+5b19bad23ac7f44bf8b8@syzkaller.appspotmail.com
>
> Closes: https://lore.kernel.org/all/69252076.a70a0220.d98e3.009b.GAE@google.com/
>
> Unfortunately the reported-by code doesn't work as message id
Hm, that seems like a bug in syzbot. The mail it sends doesn't use
the word "Closes:" anywhere; it just asks for Reported-by: and Fixes:
If that's not enough, then it should also ask for Closes.
> >>> Really think we should WARN_ON_ONCE() as Vlasta suggested.
>
> Thanks Lorenzo!
>
> Can we at least add a "WARN_ON_ONCE(!detaching);" before "err = 0;".
That makes sense; it mirrors the similar calls in the callers of
__vma_exit_locked().
next prev parent reply other threads:[~2025-11-26 19:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-26 17:44 Matthew Wilcox (Oracle)
2025-11-26 18:06 ` Lorenzo Stoakes
2025-11-26 18:28 ` Matthew Wilcox
2025-11-26 18:43 ` Suren Baghdasaryan
2025-11-26 18:53 ` Vlastimil Babka
2025-11-26 19:34 ` Matthew Wilcox [this message]
2025-11-26 19:00 ` Lorenzo Stoakes
2025-11-26 18:55 ` Lorenzo Stoakes
2025-11-26 19:44 ` Matthew Wilcox
2025-11-26 20:33 ` Lorenzo Stoakes
2025-11-26 20:35 ` Lorenzo Stoakes
2025-11-26 22:09 ` Matthew Wilcox
2025-11-27 6:26 ` Lorenzo Stoakes
2025-11-27 9:05 ` Vlastimil Babka
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=aSdWR9GRe93VfrcC@casper.infradead.org \
--to=willy@infradead.org \
--cc=Liam.Howlett@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=lorenzo.stoakes@oracle.com \
--cc=surenb@google.com \
--cc=syzbot+5b19bad23ac7f44bf8b8@syzkaller.appspotmail.com \
--cc=vbabka@suse.cz \
/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