From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.47 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796179748; b=47bngKFy30IPn/2i21KK2czm99ecxJuI2xUtZEgY2gNU4DaU08mQAtbIT8jJ0cdYCdiF 7ltzZQl9vF/Mwf+A0iBz/vaw3eU3lNtJHo1pdLXC08dvV3zAR4ZIiCkLDpgGIBkr1zOBK c7aD7SzhFP9g+8qGkTBXrKoBSNGCEGdO7eiCp8yXILbDSzCxgYbSvho2TVlTlJMPyfRRr N2ckVae8J/YbSJ41cxPF89GsMIF4rjwWid7dM9v03JIMGXe49BIguh46uw8JUeY7CYw1l VldxGrEJM6pgt5gYHVei9wDKBK8Gx7zPOgZ2J9a9tKrB/i1k5rBztlQ9pvYQBBXCbxg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796179748; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=+VX6o4yWv1zjpUfnPPQ2Gr5215d8sODKmGqMb+9yanw=; b=CnAGxbQIaA9CXTAVQI8sHaG+KowaBU8D8AEvpfId+IOdA6p73enzVjKt5b5qk8Qb6TUH 9IpMeDN786hIbCA+kZSW1phPqTXZsOGC45IdGL2wEDGZXj8ryoI1isFLi7Snbz7td6lWc D5myE8DgVPDMnA6IEpHVvatFhd4bsgkcwidI6p0ZyWQ6/PONuAVcvaOwpfoL+0k5ntgWK sBX3biPgi5hYRWKkhcVi+ajQRT5mzaZE8ST4TDBBCsG8kXBlNegrO7+gANYg7LKbgrwuT zTtLsfqFQgG02p4IwoFvKSfFVMsc2xyvXQrkJpl7sIyLATiDeZTG1ofVsXGDI5Qui3w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=Gy0iOyn5; arc=none smtp.remote-ip=209.85.128.47 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F3766606A687 for ; Wed, 2 Dec 2026 02:49:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F3766606A687 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=Gy0iOyn5 Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4bb70074ab2so130872425e9.0 for ; Tue, 01 Dec 2026 18:49:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796179745; x=1796784545; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=+VX6o4yWv1zjpUfnPPQ2Gr5215d8sODKmGqMb+9yanw=; b=Gy0iOyn5J8bvQytmbZEqVPD8xoQnMdF/36CReqvF6hzQDipSuQmKYU4CkLKixaP2WO a6NtVpZBxCJEbu62E0f406yBOcNXONpgDeju9bcpVh9x733+4ZcK9PIdyH6L26OIEgbL 5xhvNOsJZytzQNQMoaumTXXPhY+nBN2MpBJi7+y2AwMLCohsS2u6batZX/QJLJbNiGqe c/B3CPsWZQ2b7K6xno2KtCPgP20XklAnPKUJ/QjfE2I6n+jmwzTYZZ1LcNJH1J6r3Mz5 m/WGpm2TuyKqYtvUWpMqYkDbRU5SsmIoTWQUkEjwuuC1ABOacBURElQebOEPX8DltQ4s 8jbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796179745; x=1796784545; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=+VX6o4yWv1zjpUfnPPQ2Gr5215d8sODKmGqMb+9yanw=; b=jeUURBNf4ts9S/ttYyDbKQrF2NNokZSx41QCpyN2tsgEUl8nwdEWQ6I9+ZzYrcMx8b TOF997HNL/V+KhVGFqUVeWTfzv73qGyFEy8Hreh8Crl8AntUvUUT2EEyQf2zUNknwJrr e3LaDuXIcbCRdUi0bayzo5CrKxHVV/Be7vowzE1mvDm2GTXgyFI02SVr+Yx2KeZ52A6k 6nQUIvzb9icQUs9iIigHopIDOX0Oya9ACoH2hbZobuLQsAQNNklqk1W04OLSO3ifu+k5 a3QN5SdGmP7uaGt5wDg9JaHjiWRL3F3Ab3TECgvZAPUujGMRUipDHlHYyJs6wPk9aB45 r8IQ== X-Forwarded-Encrypted: i=1; AL+hErHRAfbBfy+yQ3ig5REs/UrK6q8Ft8hApM2/Ve2mTwlIiVhuU0mzdF4gYuNqoYWsIqrtjhAwIM3acyfoZyI=@vger.kernel.org X-Gm-Message-State: APuU4Z8+XjL2CvJexEBlrz7W/Vv1/Pvc+P1mHzv8bmdoRTyKN/l1QZYh tPiAW0X6Wd+uT/ZBCweRV5X+bMHxXuodp4PgAfmgwavBPi0Iydejx1ae X-Gm-Gg: AZFdTZePP1jmO5sx/lLhNIWia/jMNB2fZpUjnBrbdO5ppxgv5C/kv11j+w+v0mFUkHK uAdo9UWStoVs65+WqkRA80QoWfAuvAf1WgJtKwCTEE62lMsDXmWs94ls1RmCPXjH0/cPbhWF61Q BPrHyy5uA+hy8bfbWF/OJI9B88jyW86N0do8wjEQvq6UDWLgwckHGDrOhE1r9224MKJ4Jw1K1Rr SpJrym9OkhBaKopUVq14Dy4AuQn50vtNJg13s/45m6hQosjuc3goTMor4uKzN25WGJW79p16119 T62Rc/j8BGL7Zq5/0qtihfjMdv11eEdnWzBszYw6XEa0zy3Zs/CJwgT5t1lnWf4oZitFEhx7ZXx 8cX3mZD86G3Nrhh7Y08k/iDx0/oi0r4GgvjNOjolaM+sBCSW+PbwWVkYRrv5VsrMCchbHl0AZD7 1biqCDk1cw1iOmPefiFIz2aB7d7/gI4iXd2Yx0JalCPDhtxLR+3Q1QKu4FS6T464gP4dl+4tMag FsN2waycXngSb6BkW1jpLu/zVXQqK9i73jGHJVBPSDMxrc7WR2d9RuOnm7geRIZZOHPwBhZSF/T NXqjn1od9jX1+iy46lHl9UD/dtRcMgJ06NXMvGbsRZVFn4UUcxt30+ni8pkGj05N9e1lHhoyVZI ot6wnDOnott+F3zwnsUDltWkgFrYxhiUgpdgzmD7VeOW7uiocTTPz9JKdsoLseKkUTYUML1VlT8 z2vF0KT1GfVAjUf62u1bPydPhRin9/fZ87bkrg/f7TF1Ab3GPfSVHG41CbkCidepNn9pE= X-Received: by 2002:a05:600c:468b:b0:4ab:cc03:7f60 with SMTP id 5b1f17b1804b1-4bb8881b511mr796344035e9.18.1796179745354; Tue, 01 Dec 2026 18:49:05 -0800 (PST) Received: from MacBook-Pro-von-Karl.localdomain (dynamic-2a02-3100-a5c9-8d01-34fb-c870-a93e-3922.310.pool.telefonica.de. [2a02:3100:a5c9:8d01:34fb:c870:a93e:3922]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb9065744esm613193065e9.1.2026.12.01.18.49.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 18:49:04 -0800 (PST) Date: Wed, 2 Dec 2026 03:49:02 +0100 From: Karl Mehltretter To: Mathieu Desnoyers 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 Message-ID: References: X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 I was assisted by an LLM agent. Thanks, Karl