From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.58 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794394316; b=OSOEKuNCNUcfvAe88fWuBAfEOPOfemt/swBfe9+HIGupB9SRzAdTFdZbG3iFWdMU0BOz Jok5OnJNlx3HVN8psGVLFb2LXQjvDOFJZxB5p/j4GtJCEt7LSeV06P628+nrQS1ktaDa3 rdj6DoZfk21GNvVju0UZCtXUyJoEXpZPtIcTom3Taj8VAzck/BzuXaK0syvpwR7WsmZP2 nnMckynw1jAv5Sr3yBjp8Y2Za6p7Dy4CoZUldGO9aZ99qjkCyVHtT6xI25J7F8I0iRNX4 qRPwEsdL7tRNoWaJ3JvHaLRXfTZ64xIgUWzaH6FPGwwvwUawzfRJujd5aLiinfOeE0w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794394316; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:Content-Language:From:In-Reply-To: Content-Type:Content-Transfer-Encoding; bh=5AVpUvbziS4tLtkl71xz9vkUGVuY/mbFEqqFLF/VE2U=; b=QZWoemCS/9LK4jVE3t7U+6uJO4CMjLT9QNT/RBAbKCZktPo5hEQana5XgHKa7iPrIDE3 axL9Cbs9VniwyKdd9T3mmPcLHUMBb7vWB8uCV1aSID6PJRT55q9/z/SMytCdyO9LH2EvS BbpKn4m+Ej7FAi4bTIQnnVQfP/wEeDt+/0CRu81acNSUJpEsVTvE7/WhSJ4S6zr2hpYVX 6T54jUXMi7CJ27tGr65t+KyLs/Z4qZaRIN2xGVNRmCzrQHJEgekUK+z8TnfnfP8RLcFLQ 35wNy0wr+z8HnLFHazRM+S57iya70/AXVGclFXlM37fNUkn0x28lW9E4jV4K8sgYkGw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=aKLbtLzK; arc=none smtp.remote-ip=91.218.175.58 Received: from mta0.migadu.com (out-58.mta0.migadu.com [91.218.175.58]) (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 AF5B4606A33D for ; Wed, 11 Nov 2026 10:51:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org AF5B4606A33D Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=aKLbtLzK X-Envelope-To: linux-kselftest@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=w8Ajrj08Qy2iipL85FFRK03LHNYTUCHQy59AnCWVRj4=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1794394312; v=1; x=1794999112; b=aKLbtLzKuV1HlEwkwP3ApoFgaPivMXLvlSHlz+a/wlESPJMeSXG7C7Run9+sJhiMMDSxhBa0 yGsuK6bZBJXePZ1mZammjvcXu76ySG3FNVcGBlPL1o+PRxlLIck38iZ8p7AMgDJLS+cgGh4j5IB LN8Io8Dy3V5aCv6UwV/nRALU= X-Envelope-To: linux-kselftest@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id f93127dded52155e; Wed, 11 Nov 2026 10:51:52 +0000 X-Mizu-Trace-ID: f93127dded52155e X-Migadu-Flow: FLOW_OUT Message-ID: Date: Wed, 11 Nov 2026 18:51:47 +0800 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 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/3] cgroup/cpuset: Reject updates that empty the top sched domain To: Ridong Chen , Waiman Long , Tejun Heo Cc: Johannes Weiner , =?UTF-8?Q?Michal_Koutn=C3=BD?= , Shuah Khan , Mathieu Desnoyers , cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Guopeng Zhang References: <20261110050324.173461-1-guopeng.zhang@linux.dev> <20261110050324.173461-2-guopeng.zhang@linux.dev> <0c302879-0d06-4c90-970d-6c9b40946f0f@linux.dev> Content-Language: en-US From: Guopeng Zhang In-Reply-To: <0c302879-0d06-4c90-970d-6c9b40946f0f@linux.dev> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 2026/11/10 20:13, Ridong Chen 写道: > > > On 11/10/2026 1:03 PM, Guopeng Zhang wrote: >> From: Guopeng Zhang >> >> Boot-isolated CPUs remain in top_cpuset.effective_cpus, but are excluded >> from its scheduling domain by generate_sched_domains(). Checking only >> effective_cpus when distributing CPUs to partitions can therefore allow >> all boot domain housekeeping CPUs to be taken from the top cpuset. >> >> The resulting empty domain triggers a warning in build_sched_domains() >> and can cause an out-of-bounds CPU access in build_perf_domains(). Both >> root and isolated partitions can trigger this, whether local or remote. >> For example, on a 32-CPU system booted with isolcpus=domain,10-31: >> >>    echo 0-9 > A/cpuset.cpus >>    echo root > A/cpuset.cpus.partition >>    Oops: general protection fault >>    RIP: 0010:build_perf_domains+... >> >> Require local and remote partition creation and CPU mask updates to >> leave an active boot domain housekeeping CPU in the top cpuset, >> accounting for CPUs returned by the same update. >> >> Add test cases to test_cpuset_prs.sh to verify that every partition >> update leaves an active boot domain housekeeping CPU in the top cpuset. >> >> Fixes: 9b496a8bbed9 ("cgroup/cpuset: Prevent leakage of isolated CPUs into sched domains") >> Co-developed-by: Ridong Chen >> Signed-off-by: Ridong Chen > > It would be better with: Ridong Chen > Yeah, I'll update it. Thanks, Guopeng