mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Seth Forshee <sforshee@kernel.org>
To: Dave Hansen <dave.hansen@intel.com>
Cc: Stephen Dolan <sdolan@janestreet.com>,
	Andy Lutomirski <luto@kernel.org>,
	Peter Zijlstra <peterz@infradead.org>,
	linux-kernel@vger.kernel.org,
	Eric Hagberg <ehagberg@janestreet.com>,
	Nick Barnes <nbarnes@janestreet.com>
Subject: Re: x86/mm: Finishing off the fix for a should_flush_tlb race
Date: Tue, 17 Feb 2026 09:20:02 -0600	[thread overview]
Message-ID: <aZSHIuEweRIU-cPU@do-x1carbon> (raw)
In-Reply-To: <aZSFa277nwbgJaFY@do-x1carbon>

On Tue, Feb 17, 2026 at 09:12:43AM -0600, Seth Forshee wrote:
> On Fri, Oct 10, 2025 at 01:45:45PM -0700, Dave Hansen wrote:
> > On 10/9/25 07:01, Stephen Dolan wrote:
> > > That way, either shootdown sees LOADED_MM_SWITCHING and sends an IPI, or
> > > switch_mm_irqs_off sees the updated tlb_gen. The problem in both cases
> > > is about the *before*-ness in switch_mm_irqs_off:
> > > 
> > >   - in the latest tree, there isn't enough fencing to enforce this
> > >     ordering.
> > 
> > Stephen, thank you again for the stunningly great bug report!
> > 
> > I'll plan to stick the upstream fix into our x86/urgent pile early next
> > week.
> > 
> > >   - in the stable kernel trees (6.1, 6.6, 6.12), the code is in the
> > >     wrong order.
> > 
> > This fix also makes sense to me. It's a bummer that the stable fixes are
> > diverging, but I don't have a better idea. So:
> > 
> > Acked-by: Dave Hansen <dave.hansen@intel.com>
> > 
> > It would be best if you could just submit that patch directly to the
> > stable trees:
> > 
> > https://www.kernel.org/doc/Documentation/process/stable-kernel-rules.rst
> > 
> > after the equivalent upstream fix lands (even though it is a different
> > logical patch).
> 
> I wanted to check on the status of the stable patches, since I see the
> upstream fix went into 6.18 but there's still no fix in the 6.12 stable
> tree. We've been seeing segfaults during a test case with 6.12, and
> after bisecting we found that reverting both "x86/mm: Eliminate window
> where TLB flushes may be inadvertently skipped" and "x86/mm/tlb: Only
> trim the mm_cpumask once a second" seems to get rid of the segfaults.
> I'll try to get some testing with the proposed stable patch today.

Sorry, had something wrong in my mail config that messed up the From:
address in the last email. Please reply to this addrees instead.

  reply	other threads:[~2026-02-17 15:20 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-09 14:01 Stephen Dolan
2025-10-10 20:45 ` Dave Hansen
2026-02-17 15:12   ` Seth Forshee
2026-02-17 15:20     ` Seth Forshee [this message]
2026-02-17 17:21       ` Stephen Dolan
2026-02-18 19:43         ` Seth Forshee
2026-02-24  9:38           ` Stephen Dolan
2026-03-10 17:22             ` Greg Thelen
2026-03-12 21:06               ` Dave Hansen

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=aZSHIuEweRIU-cPU@do-x1carbon \
    --to=sforshee@kernel.org \
    --cc=dave.hansen@intel.com \
    --cc=ehagberg@janestreet.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luto@kernel.org \
    --cc=nbarnes@janestreet.com \
    --cc=peterz@infradead.org \
    --cc=sdolan@janestreet.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome