From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796424610; b=44Un/Po/Htsjcy6K0KNTiLAGOU+SjLhVzHau6v4OIfnzTUUBO5w9HDKBimvhQbEM7C9M mlts8ZW/tbyG5gU2BP6Ey5RjHe8jVYP0HVJzV2lgxooqnz3v3lbc65BhKQvDfY3qzTbpw Zts35LBi543T45dnVgNhb/+1Ourq+vH/4gL1pD1KxEzl/SHQYzxcNi/7LF0Mb3zQuTrqN y3UnDTkT8C97XrfRxyIpFuQIUp9CejyqETB8901MbvaMPgN4u7uPtW0KwzXCvQvSITTMf h7Igjxo2d8XY3XvnRnnq4S/Hujel7Sz5dS9pX+ixm+Duc3IBIrB8SXrkn/aGR1ma3Ew== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796424610; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=IdISLaEap3kUAyuLTo5FHLi+1sMRqGZKIrEiFqstnAA=; b=W27q2k/JVisp9HUS5sKtURenN3khcY0EqRkygrqdlZZiKLyrV9XX6QfL7cnsPbghKS5f oS8ZTyVIu7kwlfLwvHdKigWMcp5GX1bD868owGWLQncUsS5wHc+wH95EFexeZzg6Svegw V9nwOOhVfwjHVCD6COn8sXr7uWte06teVwYioSgf1FcAlEx9XoQhpc2rTgAwHgaveL6vH Yo/l/aPHsqftDgEt1eW0mCoI026T8yxc793cViu7KFJJohEXQmXPbYhPPgPhkjgoz2qOR 1dEG8qJ5t9/D64Jqwaqj0daNRtly4SvI7+4Fhh2KIr1ofIy7+4RbZMYOH9rwjL7K6/Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=oA7TNwkb; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BC2EA606A339; Fri, 4 Dec 2026 22:50:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=oA7TNwkb Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95F1B1F00936; Fri, 4 Dec 2026 22:50:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796424610; bh=IdISLaEap3kUAyuLTo5FHLi+1sMRqGZKIrEiFqstnAA=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=oA7TNwkb8Odr3b3mdOEDKkmlIh1SVM+YGe2rw/YqC/UcBwz9t5pt+Q+eu499ue+jL OLqHU23/gmaEOXRcgDAHadKkAtCSyFi7awWaZRb/KFVR04/DHr3mYfhjug+EQVcrJu qZN5lLyg/JJj6szmus99aNEHl41VfmFQ/A3TFbCzqq7KXObAfiq9IgjqnRzGpMPZqo VIHDyuKnwmWTSg1TC7NbvD+WJrijFLnDtzYmjvfV3ZOjaeIWTITpPr8fUdjjTqXwLj Xa2JtzW1qc8IesKiNO3ce9hLLgIRNSyPW5jw6XqlD6aRleIqYBCIiTMeOmAXu49khq 0rS2wpgvGJIiw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 02/11] kconfig-audit: Introduce a PREEMPT_RT configuration policy Reply-To: sashiko-reviews@lists.linux.dev To: "Ahmed S. Darwish" , "Nathan Chancellor" , "Nicolas Schier" , "Julian Braha" , "Emanuele Rocca" , "Clark Williams" , "Steven Rostedt" , "Ingo Molnar" Cc: "Sebastian Andrzej Siewior" , "Frederic Weisbecker" , "John Ogness" , "Derek Barbosa" , =?utf-8?b?WmJpZ25pZXcgSsSZZHJ6ZWpld3Nr?= =?utf-8?b?aS1Tem1law==?= , "Daan De Meyer" , "Luca Boccassi" , linux-rt-devel@lists.linux.dev, debian-kernel@lists.debian.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20261203224916.118064-3-darwi@linutronix.de> References: <20261203224916.118064-1-darwi@linutronix.de> <20261203224916.118064-3-darwi@linutronix.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 22:50:09 +0000 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 6 potential issues to consider: - [Low] kconfig-audit: dead docs_hint anchor for CONFIG_RCU_NOCB_CPU - [Low] kconfig-audit: SPDX-License-Identifier placed on line 3 instead of line 1 - [Low] kconfig-audit: unanchored CONFIG_NO_HZ regex in preempt_rt.yml over-matches - [Low] kconfig-audit: preempt_rt policy flags CONFIG_SLUB_DEBUG at high severity - [Low] kconfig-audit: preempt_rt requires CONFIG_EFI_DISABLE_RUNTIME without EFI - [Low] kconfig-audit: preempt_rt flags DEBUG_ALIGN_RODATA and DEBUG_MEMORY_INIT -- commit 7aa69801eececedf40a26be60e739042d6c45696 Author: Ahmed S. Darwish kconfig-audit: Introduce a PREEMPT_RT configuration policy This commit adds a kconfig-audit policy file defining expected kernel configuration options for PREEMPT_RT kernels, intended to stay aligned with Documentation/core-api/real-time/kernel-configuration.rst. > diff --git a/tools/kconfig-audit/policy/preempt_rt.yml b/tools/kconfig-au= dit/policy/preempt_rt.yml > new file mode 100644 > index 0000000000000..a9972e3c34534 > --- /dev/null > +++ b/tools/kconfig-audit/policy/preempt_rt.yml > @@ -0,0 +1,179 @@ > +# PREEMPT_RT .config sanitization > +# > +# SPDX-License-Identifier: GPL-2.0-only [Severity: Low] Should SPDX-License-Identifier be on the first line of the file? Documentation/process/license-rules.rst requires the SPDX tag on the first comment line for non-shebang files, which checkpatch.pl and license checks expect. [ ... ] > + - name: CONFIG_EFI_DISABLE_RUNTIME > + expected: enabled > + severity: medium > + docs_hint: config [Severity: Low] Will requiring CONFIG_EFI_DISABLE_RUNTIME to be enabled cause false positives on non-EFI builds? CONFIG_EFI_DISABLE_RUNTIME depends on CONFIG_EFI in drivers/firmware/efi/Kconfig, so it is absent from .config on non-EFI targets. Because audit.py flags missing symbols when expected is enabled, non-EFI builds fail the audit even though EFI runtime services are gone. > + > + - name_pattern: CONFIG_NO_HZ(_FULL|_IDLE)? > + expected: disabled > + severity: medium > + docs_hint: config-no-hz-config-no-hz-full [Severity: Low] Should this pattern be anchored as ^CONFIG_NO_HZ(_FULL|_IDLE)?$? KernelConfig.get_matching_symbols() uses unanchored re.search(), so the optional (_FULL|_IDLE)? suffix matches the empty string and the rule also matches the hidden CONFIG_NO_HZ_COMMON symbol. If a PolicyOverlay exempts CONFIG_NO_HZ_FULL, CONFIG_NO_HZ_COMMON=3Dy still fails the audit. Similarly, the unanchored CONFIG_DEBUG pattern below has no trailing underscore and also matches the hidden PowerPC CONFIG_DEBUGGER symbol. [ ... ] > + - name: CONFIG_RCU_NOCB_CPU > + expected: enabled > + severity: low > + docs_hint: config [Severity: Low] Does docs_hint: config resolve to a dead link for CONFIG_RCU_NOCB_CPU? With docs_url pointing to kernel-configuration.html, this generates #config-rcu-nocb-cpu, but Documentation/core-api/real-time/kernel-configuration.rst has no section for CONFIG_RCU_NOCB_CPU. Because CONFIG_RCU_NOCB_CPU defaults to n and depends on CONFIG_RCU_EXPERT when CONFIG_NO_HZ_FULL is disabled, most configs will trigger this rule with no working documentation link or inline rationale. [ ... ] > + - name_pattern: CONFIG_DEBUG > + expected: disabled > + severity: medium > + docs_hint: kernel-debug-options [Severity: Low] Should CONFIG_DEBUG_ALIGN_RODATA and CONFIG_DEBUG_MEMORY_INIT have neutral exemptions under this catch-all rule? CONFIG_DEBUG_ALIGN_RODATA defaults to y on ARMv7 with STRICT_KERNEL_RWX and only aligns .rodata in arch/arm/kernel/vmlinux.lds.S for NX hardening, with zero runtime overhead. Flagging it advises disabling a link-time security feature on default ARMv7 PREEMPT_RT configs. CONFIG_DEBUG_MEMORY_INIT is also preserved when enabling EXPERT and PREEMPT_RT on top of standard defconfigs, and only compiles __init and __meminit checks with no normal runtime RT latency impact. [ ... ] > + - name_pattern: CONFIG_SLUB_DEBUG.* > + expected: disabled > + severity: high > + docs_hint: kernel-debug-options [Severity: Low] Should this high-severity rule target CONFIG_SLUB_DEBUG_ON rather than matching CONFIG_SLUB_DEBUG as well? CONFIG_SLUB_DEBUG defaults to y and is needed for /proc/slabinfo, while runtime SLUB debug checks remain patched out behind slub_debug_enabled unless CONFIG_SLUB_DEBUG_ON is set. Flagging CONFIG_SLUB_DEBUG.* at high severity fails standard PREEMPT_RT configs that keep SLUB debugging off. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203224916.1180= 64-1-darwi@linutronix.de?part=3D2