linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Matthew Wilcox <willy@infradead.org>
To: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	linux-mm@kvack.org, Suren Baghdasaryan <surenb@google.com>,
	Chris Li <chriscli@google.com>,
	"Liam R. Howlett" <Liam.Howlett@oracle.com>,
	Vlastimil Babka <vbabka@suse.cz>,
	Shakeel Butt <shakeel.butt@linux.dev>,
	Jann Horn <jannh@google.com>, Pedro Falcato <pfalcato@suse.de>
Subject: Re: [PATCH v2 2/2] mm: Use vma_start_write_killable() in dup_mmap()
Date: Thu, 13 Nov 2025 14:30:57 +0000	[thread overview]
Message-ID: <aRXroZ7MhcZRLY-X@casper.infradead.org> (raw)
In-Reply-To: <01ab3958-8a3d-457f-86de-2c7959b01d10@lucifer.local>

On Thu, Nov 13, 2025 at 01:25:40PM +0000, Lorenzo Stoakes wrote:
> On Mon, Nov 10, 2025 at 08:32:02PM +0000, Matthew Wilcox (Oracle) wrote:
> > Allow waiting for the VMA write lock to be interrupted by fatal signals.
> > The explicit check for fatal_signal_pending() can be removed as it
> > is checked during vma_start_write_killable().  Improves the latency
> > of killing the task as we do not wait for the reader to finish before
> > checking for signals.
> 
> Does this fix Chris's issues or is a forthcoming series required for that?
> I'm guessing not, as his issue was w.r.t. reclaim right rather than at the
> point of forking?
> 
> If it does we should say so I think. If not then obviously not!

No, it won't fix Chris's issue.  I just wanted to have one user in tree
(which was a good idea because syzbot promptly caught the lockdep bug).
This one is an obvious one which already has a good fallback path.
Most of the other places need a fallback path written, which requires
more time and attention than I can devote to the task right now.

> Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>

Thanks!

> > -		vma_start_write(mpnt);
> > +		retval = vma_start_write_killable(mpnt);
> 
> Maybe worth explicitly adding a comment to say we handle fatal signals
> here? I guess it is implied but still maybe useful?

I think that would be over-commenting, tbh.



      reply	other threads:[~2025-11-13 14:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-10 20:32 [PATCH v2 0/2] vma_start_write_killable Matthew Wilcox (Oracle)
2025-11-10 20:32 ` [PATCH v2 1/2] mm: Add vma_start_write_killable() Matthew Wilcox (Oracle)
2025-11-11  8:58   ` Vlastimil Babka
2025-11-13 13:20   ` Lorenzo Stoakes
2025-11-13 14:40     ` Matthew Wilcox
2025-11-17 19:50       ` Suren Baghdasaryan
2025-11-10 20:32 ` [PATCH v2 2/2] mm: Use vma_start_write_killable() in dup_mmap() Matthew Wilcox (Oracle)
2025-11-11  9:16   ` Vlastimil Babka
2025-11-13 13:25   ` Lorenzo Stoakes
2025-11-13 14:30     ` Matthew Wilcox [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=aRXroZ7MhcZRLY-X@casper.infradead.org \
    --to=willy@infradead.org \
    --cc=Liam.Howlett@oracle.com \
    --cc=akpm@linux-foundation.org \
    --cc=chriscli@google.com \
    --cc=jannh@google.com \
    --cc=linux-mm@kvack.org \
    --cc=lorenzo.stoakes@oracle.com \
    --cc=pfalcato@suse.de \
    --cc=shakeel.butt@linux.dev \
    --cc=surenb@google.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