From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.42 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796179749; b=VFZqIlPKVQlXFq0ia6/Wry2bHDIF8d4vkZs6RiU3sthU3ThkL0HAwTSayX/iOEtIEWEi 5ldw5sf7lj1oBFB4nxk1Fyzmm56axNg+JyYxcAebn40ZPX+qzmZ03oMZkCOF4THCQI5Ps TJKT21YAFqNKdY1eYTlby03bI8Yh5QTxBvD+HpUek7zTxhlb4jZMO/3ktKjePmGjrnMhP Y7qVJE+KuMPMQ7jRIZaq/zA0jdLWKASDQgEAx+JkbPJ8eWzSIq1fr02zsl0aq7cG5HGCm hfaTvCSi8/HGK7nLz9FXdpDcJfBHlcer0n2cvD7VYB1GfwZbCbQHwswsncjNTNiprkw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796179749; 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=adssx8uZHAkkxDublMsaHhZctcZgqA0ikoDxnIW8Oq8Gn+hwOT5hFzqTElrerybV1RIB eZ0uJSBMUq2GIWlI/ELhlcDd2gJOws1px2Xkpbue8XASoH43jqz7ibG2kz5rO4K3Sqi84 BZSRCEVG5L1mvjIPVcOveHk21cGsnUYopZQwwqNre1qD02qD2PPGgB/B0r7pg4F8p3Y4p 4BC+ugAsNUaY7J0BB+/+aX/kpsRRwjgK0dBNpw8U9b7zcM6WPOUgftQc5BQdCVloyJUQ/ bxOSimKH6VfzWHqkd8XhWVRxY8A83VEzW20ZkP8V6KlM8YMlWvQx1UANqWmv/gbvqbA== 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.42 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 EBDC8606A685 for ; Wed, 2 Dec 2026 02:49:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EBDC8606A685 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-f42.google.com with SMTP id 5b1f17b1804b1-4bb702a7548so114382135e9.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=0CysyeQcwP5iUgr/leNxU6ueIJ0hUT+AHxTt0rBXK4n0pw1QDwKYneVjYIlZEz1J/D xIQDyHXrO4M6GemIqbxYxcd+9q7V4YEE5SkJ8HdeG5dCMY522E7cwpCA8PZJLQKEIDQW iFZ9xDlUrKHWp8X+V5dUfv9vp6h8P102x+J6ZaqPxRujZijeCDUb/fy3ljY61ytm+2tp JXlAFcUOX8iHEVFFvwGaank5JM/R5QGzCoPh9OrG8gyij7/GFC437MkZU/VB02ZYb7Aa uGTds4gVANIWOJ3KiQf9/TtXJ5L7R1/lnLaMWQV9y2vM3k5vQB6t8GRQA4TC+VTMpZtC VQuw== X-Forwarded-Encrypted: i=1; AL+hErGsZw3Yl9LOZjNA9XrXDp6G7q91qs0NXHE5dZPhp+EFYfyZH7MWzor+/DLGnrqQ//S4rRbag+JL7VwGIETYLWU=@vger.kernel.org X-Gm-Message-State: APuU4Z9Rl7+sGug+NZvb7Ze8SWaqQVmwJmblvxOhLcv4NbiN9bIZHZiD AYu09vsj7sL5P6fnXgTlmZqCn510XccAyEVaOGvrarlEVeStkkkTy0Ye X-Gm-Gg: AZFdTZdklOtQii0CqNyLmqxI4TVmax6oZgLr7tvj6kVLDxPhsuwVRk6xtzvAvkSY+Tg YYmLn00gTvr8JsekIs6dEoqaaHM6e6qu2dbtE/V+i+tD5KZA7VfjJoW8trwTZ6F3MPFpqOLHZkO ghNxXiibo9TiCWtEdL3DPn107pFH4DHxCXa77si2HAAoh4wMFRkcNEUOMNHxgoz+CoYR5JILwpJ vpVQfpmJdvNPisIxNTweJNJ1d+onmQDVlGj1f5YCC+tR6gDoU67GWrO/P7sJT7IhBfcioC0f/f6 h922Fe+aI18xqj3MBHl9PiOa+CvJyhkc0eD5dKzW72h+2KBTbB1AhgKeXgJ2qghCApxeDHO2nnK w0sLYA4KcsN9ZPhObbzKd0CprmCibHtJ6omSdIy12a9bbLDO13KWkGQwZlbj6YlM0ar+d3x5xlf ciGAd4Dc6CL2QrzzXhEJwSZfz35SFDs3eWzZ17LSb+7EL6mYHo3tC3EnKxh4NvVgQcuQTLpN39c caTXf6J9kv1fssTF6YVvQ9z68HIr8hVgYL5q9CBdprSrPNcA4WfGzN9yPjCylZAMs+6rtwg2eQY McFzUEi9QxWkVkQafNbsdHEa0jRjVw1CtximivlNhMegwUyQl0cTNW5I0pLeCQZdezBD4ZOKBCR 79N13t7wory1YbNTsX6Sjp6sbytnWrE03jsm/dKiTvsoet3ckd5/sH2X/Uj/Umo2aX5y3JE1yu4 /9jf5WH5aEtupDIm6P9oDCL9v5yrVZ0UP2QsTDbsHr5n5FVjJGw1FhWFtQ0UVaEbXS77s= 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-kselftest@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