From: Mike Fara <mjfara@gmail.com>
To: <mathieu.desnoyers@efficios.com>
Cc: <peterz@infradead.org>,<mingo@redhat.com>,<linux-kernel@vger.kernel.org>,<mjfara@gmail.com>
Subject: Re: [BUG] sched_mm_cid_exit+0xe2: page fault on CID bitmap write with nopti on 6.19.0
Date: Thu, 12 Feb 2026 22:28:55 +0000 [thread overview]
Message-ID: <20260212222855.2C9B92A1C1D@windowsforum.com> (raw)
To: mathieu.desnoyers@efficios.com
Cc: peterz@infradead.org, mingo@redhat.com, linux-kernel@vger.kernel.org, mjfara@gmail.com
Subject: Re: [BUG] sched_mm_cid_exit+0xe2: page fault on CID bitmap write with nopti on 6.19.0
Hi Mathieu,
Confirmed. Rebuilt 6.19.0 with commit 1e83ccd5921a cherry-picked,
CONFIG_SCHED_MM_CID=y, and nopti still on the cmdline. Clean boot,
no oopses.
Verified the fix is compiled in by disassembling sched_mm_cid_exit
from the running kernel. The inlined mm_drop_cid_on_cpu() now has
the cid_on_cpu() guard before the lock btr:
mm_drop_cid_on_cpu (inlined at sched_mm_cid_exit+0xc4):
mov (%rcx),%eax # Load pcp->cid
test $0x40000000,%eax # Test ONCPU bit (bit 30)
je <skip> # Not CPU-owned? Skip drop entirely
and $0xbfffffff,%eax # Clear ONCPU: cpu_cid_to_cid()
mov %eax,(%rcx) # Store back
...
lock btr %rax,(%rcx) # mm_drop_cid (bitmap clear)
<skip>:
... # Continue safely
Without the fix, the code would fall through to lock btr with a
garbage bit number derived from the TRANSIT flag (bit 29), causing
the out-of-bounds write we reported.
System info:
# uname -a
6.19.0-gce #2 SMP PREEMPT_DYNAMIC Thu Feb 12 21:42:52 UTC 2026 x86_64
# grep SCHED_MM_CID /boot/config-$(uname -r)
CONFIG_SCHED_MM_CID=y
# Boot cmdline includes: nopti mitigations=off
# dmesg | grep -i 'BUG\|oops\|sched_mm\|page.fault'
(clean - no errors)
Will continue soak testing and report back if anything surfaces.
Tested-by: Mike Fara <mjfara@gmail.com>
Thanks,
Mike Fara
mjfara@gmail.com
next reply other threads:[~2026-02-12 22:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-12 22:28 Mike Fara [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-02-12 21:33 Mike Fara
2026-02-12 21:14 mjfara
2026-02-12 21:13 mjfara
2026-02-12 21:12 root
2026-02-12 21:19 ` Mathieu Desnoyers
2026-02-12 23:21 ` Thomas Gleixner
2026-02-13 11:16 ` Greg Kroah-Hartman
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=20260212222855.2C9B92A1C1D@windowsforum.com \
--to=mjfara@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=mingo@redhat.com \
--cc=peterz@infradead.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
all inboxes | Powered by JetHome®