From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795230853; b=CLZ0R0NxDxBS6zVi+NLMume7i61BKXTOXJM7KAgrIG8eI0Ja+C3ACI3x1ry4f81Soa1y MsCWvTyfHffKm8Df7kA0xHTXzCmKjSajyDhTaVxlQPbMpz3kxbq+wO5IxZ2YK6sO8goi1 eiBs5oIe/HXEwLdRwDLaEJ1dsjgR+eTcJuYjq1fLT/AMsobZbznBxNzv8uEkDi/s8/rqt VPcvdVFBHyscb5G4tSslkFpKD+Dn2vqPBDaPBCMiJD9OK9OQ8W+1wag1ek08M8DPiTlFb MtDU7n41oQs/acEf+eQx6IGMcUUmg0msPYOKAcgonY8AGFYLtQ82pjMGCOD+A3fVPSg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795230853; h=DMARC-Filter:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:Received:From:To:Cc:Subject:Date: Message-ID:MIME-Version:Content-Transfer-Encoding:X-Scanned-By; bh=w/twyn5fL4Un2evBmHGKFGo65M7JVmRl736VHcYrZPU=; b=NUnwD2faS6XYW4QIB3MDf+gb3w/dmQqMMqcA1ZEGPVT0XkjZnbjSyOA/1yfDZ+LhnFRk tF9m+5k2361ppTEToWk3OUJY8qie1mlVGB4F/uWCFFLJ3FRUkf2LjzrCRtKHvAT7KsLjY /vsH52jtoT1iB7xCkHURA70eeCQAexuVqmy+/+/nfb34dMF4rnaM9Khm/Zhx4V0HzeT4M Kv+CW+ryhhpSMXgHALvx9Tp1hK/gs3CbYhc6qZKkhThjUqKl1dg++F2BavRrVcHSUPxqg o5FSINclZun9aMgUAeX2VwkHL4zdSyBr6ebDyAXYlFrkqlc81sPhCDRqjHmjYd1nLMQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=in537rOl; arc=none smtp.remote-ip=170.10.133.124 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C4581606A696 for ; Sat, 21 Nov 2026 03:14:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C4581606A696 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=in537rOl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1795230848; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=w/twyn5fL4Un2evBmHGKFGo65M7JVmRl736VHcYrZPU=; b=in537rOl5LVvLVVmJ0wFXqp6oh3yDJ79LKfPGXY4/a73zQL/YNJ7L3Cx+ck7J3DANfrEj4 x9/dQaq5vP1IlqrZ+CQroJwfMBlu2VrNlu7WdhDft9rGGfUBBr0T6+F9fEMMrlep/Mw3L/ PnqnAc7AwBoA0r+zpn6Bc+5h6dU5HMI= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-338-MXA2E3_bPqS-dh1paShKgQ-1; Sat, 21 Nov 2026 03:14:05 +0000 X-MC-Unique: MXA2E3_bPqS-dh1paShKgQ-1 X-Mimecast-MFC-AGG-ID: MXA2E3_bPqS-dh1paShKgQ_1795230842 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 56AD0195608B; Sat, 21 Nov 2026 03:14:01 +0000 (UTC) Received: from llong-thinkpadp16vgen1.redhat.corp (headnet04.pony-001.prod.iad2.dc.redhat.com [10.2.32.116]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 517701956087; Sat, 21 Nov 2026 03:13:56 +0000 (UTC) From: Waiman Long To: Tejun Heo , Johannes Weiner , =?UTF-8?q?Michal=20Koutn=C3=BD?= , Jonathan Corbet , Shuah Khan , Randy Dunlap , Ridong Chen , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , K Prateek Nayak , Anna-Maria Behnsen , Frederic Weisbecker , Thomas Gleixner Cc: cgroups@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Guopeng Zhang , Mathieu Desnoyers , Waiman Long Subject: [PATCH-next 0/3] Skip boot CPU or don't allow it from being used in isolcpus and isolated partitions Date: Fri, 20 Nov 2026 22:13:26 -0500 Message-ID: <20261121031329.240177-1-longman@redhat.com> X-Mailing-List: linux-doc@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 It is reported that having CPU 0 being domain isolated can cause problems in the some kernel subystems which don't take into account that the boot CPU (CPU 0) may not be a HK_TYPE_DOMAIN housekeeping CPU. As a result, it makes sense to just disallow CPU 0 from being used in the isolcpus=domain boot parameter as well as in cpuset isolated partitions instead of trying to fix the problems when they show up. The first patch fixes the inconsistency problems between tick_nohz_full_mask and HK_TYPE_KERNEL_NOISE cpumask. The second patch removes the boot CPU from the isolcpus=domain parameter if set. The third patch disallows isolated partitions from being created if CPU 0 is specified in its effective exclusive cpumask. Waiman Long (3): tick/sched: Make tick_nohz_full_mask and HK_TYPE_KERNEL_NOISE cpumask consistent sched/isolation: Forbid the boot CPU from being isolated cgroup/cpuset: Disallow CPU 0 from being used in isolated partition Documentation/admin-guide/cgroup-v2.rst | 1 + .../admin-guide/kernel-parameters.txt | 7 +-- include/linux/sched/isolation.h | 2 + kernel/cgroup/cpuset-internal.h | 1 + kernel/cgroup/cpuset.c | 6 +++ kernel/sched/isolation.c | 31 ++++++++++--- kernel/time/tick-sched.c | 8 +++- .../selftests/cgroup/test_cpuset_prs.sh | 43 ++++++++++++------- 8 files changed, 74 insertions(+), 25 deletions(-) -- 2.56.1