From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796179753; b=Gv5QMaZN/2mNXglewCH9APhXwbwe6ucfwodhdU8ysPLzcDsJo96a0tDlpVl50+55iyKS tdDXXp9/4Iy5lgn3ndwjqTcQT60LmyVoZw607QbNwQzNVvaw+0kPmIsY23BV6YzmuUSvt KDcV1E7gKSS8Ec1zs8fahpHznntbJ0QnVgi22qPGFO6TKXnuYGgegoVlrQ8/nEPmk3Vcq A5XerIUOnK7fXrr7Jybopa3t7edmnmFKL751UKgvBB8u2fT2HDLHIyDSb6Bmg/qggcm9U CKdeyWGJ/d49l+3AaEBW1IxqVVSDPXwnMOmYeLVnVe8dGJ3GTUOrPKchcSKUdRCHSyQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796179753; 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=sze7cAPJ4goh4JjuGwBJQiGF7X03ivTe1uBBUkdVTgLBA3CDlvQlIU6s7G8g3Mml71D4 KlCrVAg6UV492ti0IOL4ItJhBs3tkpHADhvUGHMSiyXC+aNbfqvd9Uh7zhBwl7ubYGEQK 70XEL6arzJ+A9BMUVHn3aWiCrHEJo+CTY8zbBbJzdN32v2yOK6fnV0z9W0ZNzJrtA9aj2 /t3tlUbSbBQVi0b6W/SXRnVgsj7Kct86IdY8e8BURO6YUSNFx8NKCvHKSrABT6Wn0rjhh Pu5UpbkvMQLeNyIpvKlLvYOXvTeBttj4UTnbattHRfx1nX0MpAN3vzJU4hhaYe+Wrzw== 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.41 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 ED755606A686 for ; Wed, 2 Dec 2026 02:49:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org ED755606A686 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-f41.google.com with SMTP id 5b1f17b1804b1-4bb702a7548so114382175e9.1 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=q9zRmij7JJeXT9rDhaphreMulMkJuI6q8ELx0CvqCjCMDQTnTlvU1YBFSqTDcqyL+k wmCTjHfio7IBWX3+sDB1+FLHNlFI/0F/xkoPcHq8RgYT3dgNG7aRSsExvMphh7hSsHmT aF0iLM4RpVvc2o4iWfL45VVzML/tVm6PiQ44poRYh0ycrLSLAEmSLtS92+FN9ZFrCAtS NxIZQiRWI0LbVg9L0k0gljP4OPl0jOl2OhYR1h76BcS57IcO7R0KmVDXaQiHNwnozA8O 8pO0QqcJloHLjKlEV9/jJ6P0QvVxj3UzCS+6bP26xIhpEB8c2JM25ISUXN9tY95ZsjTQ /12g== X-Forwarded-Encrypted: i=1; AL+hErEImohPl6T8szO97Z+8N+FptkhFeiLH0VHSDoqM9GwcYhGD3eul0X8OU2saJxEUsi2SfCxb26j4JEAP54IA@vger.kernel.org X-Gm-Message-State: APuU4Z/yfZ3dq3pBlRGkvF9Ym4ofZXW13lNRlI5DyTPpRZ9ERIRlVlTK DkD0exrWJGf55SsKc+/rQNqGG7pdaBtTZM1aE0/aO//v7cV5T5S5kS5B X-Gm-Gg: AZFdTZd7shF7/rYFQOrEanbA6gLAbOdKT8kUw89KsD6zN0t5gqlGEOKO9NCBv6RfhPf gAVgc4aWU4ASRxWqhGY4wAKduvlKnfdop18Eb1N7525gBuraiws2pfMniKYUNIdMDnX5bnXNNy/ PrqzVbOQeY5rQqKxEGJJFy9alLBtwA9Rbz2lJZ2b34On7rtAXrz9xC6MSA3Xp1BO7zc49/7S3oZ vQGCeOPneGpQ71WHvEE57IPN6cvJ/GV7tqIAzmovyhn5NneBcX1YZvDzpaHPUiIN1SpQb2zaS88 5rRe7VGoTmc/lfIFeg9yLCEjN7EZa/ebVYz5dv/TvlrxuAUZt4HkhpSi9IugAHDQo8ykPoKvnMd 5ebe+RYFWaykYaXrj2oBmQ/jg7V8ZOeBvyVDPKBdvJSpjnvph3TCv9dTjoN31JzdiiWbItDY5tN tOmdN5ee+iNkpetElV9xKAhVNG+CU7ycl95oqqrsXjNxO9CvxHFFzps5sO67On112SuEwBhhqDV q5KvuvNujIfK/8u8ea62MnQVslYgmUf5XhNiDwzjxSSFs0R4Vmi/ieP9zUcoK5vwjYmAYxqCsuE FvVH8tc6JkcomjA1i39pmBmrDahyq3m8z/lpbl3Q0zeqDZMk9oVYdgLQybDYY7KuPFYJL1in2W9 e+JHPbg71lzi+6gk9S7smVBavMKznIz9eyrgPf7eP1i5vNZ1LcBb31K9Tl6yRXRI8HIrTg2lsTV yXk9jHqxxHBtvS72AC4j8oQ+Db1jJSSPqGwkdVUyJbyXL0i7EjD4YuVdUuT8yFpmX6s0M= 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-fsdevel@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