Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Karl Mehltretter <kmehltretter@gmail.com>
To: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: tglx@kernel.org, peterz@infradead.org,
	linux-kernel@vger.kernel.org,  mingo@redhat.com,
	juri.lelli@redhat.com, vincent.guittot@linaro.org,
	 dietmar.eggemann@arm.com, rostedt@goodmis.org,
	bsegall@google.com, mgorman@suse.de,  vschneid@redhat.com,
	kprateek.nayak@amd.com, paulmck@kernel.org, boqun@kernel.org,
	 shuah@kernel.org, kees@kernel.org, viro@zeniv.linux.org.uk,
	brauner@kernel.org,  jack@suse.cz, oleg@redhat.com,
	bestswngs@gmail.com, xmei5@asu.edu,  xujiakai24@mails.ucas.ac.cn,
	linux-mm@kvack.org, linux-fsdevel@vger.kernel.org,
	 linux-kselftest@vger.kernel.org
Subject: Re: [PATCH v2 00/13] sched/mmcid: fixes for execve, mode switches and affinity
Date: Wed, 2 Dec 2026 03:49:02 +0100	[thread overview]
Message-ID: <aw-G53yuwO8BNjZH@gmail.com> (raw)
In-Reply-To: <cover.1796169827.git.mathieu.desnoyers@efficios.com>

On Tue, Dec 01, 2026 at 07:27:48PM +0100, Mathieu Desnoyers wrote:
> Mathieu Desnoyers (13):
>   sched/mmcid: Move the execve() hooks into exec_mmap()
>   sched/mmcid: Add the allowed CPUs of each joining task to the mm
>   sched/mmcid: Serialize joins and exits with affinity changes by
>     pi_lock
>   sched/mmcid: Give no concurrency ID to user workers
>   selftests/rseq: Test the concurrency ID after a failed execve
>   selftests/rseq: Test the concurrency IDs across ownership mode
>     switches
>   selftests/rseq: Test the upper bound of the concurrency IDs
>   selftests/rseq: Test an affinity change by another process during
>     execve
>   selftests/rseq: Test the concurrency IDs after the affinity is widened
>   selftests/rseq: Test two race windows of the concurrency ID mode
>     switches
>   selftests/rseq: Test the last user after an affinity change during
>     execve
>   selftests/rseq: Test the concurrency IDs with an io_uring SQPOLL
>     thread
>   selftests/rseq: Test the concurrency IDs after clone3() into a wider
>     cpuset
> 

Two minor non-functional nits:
- In 02/13, mm_alloc_cid_noprof(mm, p) still takes an unused @p
  parameter.
- In 03/13, sched_mm_cid_remove_user() adds lockdep_assert_held(&t->pi_lock),
  whereas sched_mm_cid_add_user() does not.

Tested the full v2 series on edf8ee401674 in x86_64 KVM across KASAN and
PREEMPT_RT kernels (both with PROVE_LOCKING=y), on 2 and 4 vCPUs, plus
W=1 (fs/exec.o, kernel/sched/core.o) and CONFIG_RSEQ=n build checks:

- All five mm_cid_*_test selftests pass with zero failures (on 4 vCPUs,
  mm_cid_bound_test cases 4 and 6 skip because they require >= 8 CPUs;
  case 5 io_uring SQPOLL passes).
- CLONE_VM / vfork() allocation-failure injection, lock-wait signal
  tests, and ptrace SIGSEGV-suppression tests all pass with valid
  mm_cid and no kernel or lockdep warnings.

Tested-by: Karl Mehltretter <kmehltretter@gmail.com>

I was assisted by an LLM agent.

Thanks,
Karl


      parent reply	other threads:[~2026-12-02  2:49 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02  0:27 [PATCH v2 00/13] sched/mmcid: fixes for execve, mode switches and affinity Mathieu Desnoyers
2026-12-02  0:27 ` [PATCH v2 01/13] sched/mmcid: Move the execve() hooks into exec_mmap() Mathieu Desnoyers
2026-12-02  0:27 ` [PATCH v2 02/13] sched/mmcid: Add the allowed CPUs of each joining task to the mm Mathieu Desnoyers
2026-12-02  0:27 ` [PATCH v2 03/13] sched/mmcid: Serialize joins and exits with affinity changes by pi_lock Mathieu Desnoyers
2026-12-02  0:27 ` [PATCH v2 04/13] sched/mmcid: Give no concurrency ID to user workers Mathieu Desnoyers
2026-12-02  0:27 ` [PATCH v2 05/13] selftests/rseq: Test the concurrency ID after a failed execve Mathieu Desnoyers
2026-12-02  0:27 ` [PATCH v2 06/13] selftests/rseq: Test the concurrency IDs across ownership mode switches Mathieu Desnoyers
2026-12-02  0:27 ` [PATCH v2 07/13] selftests/rseq: Test the upper bound of the concurrency IDs Mathieu Desnoyers
2026-12-02  0:27 ` [PATCH v2 08/13] selftests/rseq: Test an affinity change by another process during execve Mathieu Desnoyers
2026-12-02  0:27 ` [PATCH v2 09/13] selftests/rseq: Test the concurrency IDs after the affinity is widened Mathieu Desnoyers
2026-12-02  0:27 ` [PATCH v2 10/13] selftests/rseq: Test two race windows of the concurrency ID mode switches Mathieu Desnoyers
2026-12-02  0:27 ` [PATCH v2 11/13] selftests/rseq: Test the last user after an affinity change during execve Mathieu Desnoyers
2026-12-02  0:28 ` [PATCH v2 12/13] selftests/rseq: Test the concurrency IDs with an io_uring SQPOLL thread Mathieu Desnoyers
2026-12-02  0:28 ` [PATCH v2 13/13] selftests/rseq: Test the concurrency IDs after clone3() into a wider cpuset Mathieu Desnoyers
2026-12-02  2:49 ` Karl Mehltretter [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=aw-G53yuwO8BNjZH@gmail.com \
    --to=kmehltretter@gmail.com \
    --cc=bestswngs@gmail.com \
    --cc=boqun@kernel.org \
    --cc=brauner@kernel.org \
    --cc=bsegall@google.com \
    --cc=dietmar.eggemann@arm.com \
    --cc=jack@suse.cz \
    --cc=juri.lelli@redhat.com \
    --cc=kees@kernel.org \
    --cc=kprateek.nayak@amd.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=mgorman@suse.de \
    --cc=mingo@redhat.com \
    --cc=oleg@redhat.com \
    --cc=paulmck@kernel.org \
    --cc=peterz@infradead.org \
    --cc=rostedt@goodmis.org \
    --cc=shuah@kernel.org \
    --cc=tglx@kernel.org \
    --cc=vincent.guittot@linaro.org \
    --cc=viro@zeniv.linux.org.uk \
    --cc=vschneid@redhat.com \
    --cc=xmei5@asu.edu \
    --cc=xujiakai24@mails.ucas.ac.cn \
    /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