From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=193.142.43.55 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796338173; b=bbAZFWcUjV8Vfhjo+DbqokjGKzL6nAjbZTXH/onzKsm6aPtjFgb3uVq+HArnseiXv+VW bj67sFVxnCH0RxkxbWtF0gS29DQwV71qVi1LtkxE2owi/RZ2vTPSH7oPXHTFuGMfWb0nt 4gMhe5um8t8fb6PMCBF2PZoPCx+XiRNviwl7XeEluD/tW8Nt+Ypqq0Ec8LF/C5R73jlKr 3eq/nzH/Rp+9a94k6/SX8ipN8OlupTLSMkw7nvc4DHfFCMUChy90w9GoeQwCOqbxN0eak ouZkqAfcWZjFCGv/pS5UXijqP0XVXR4o31yAid3EJopp/Ftf42AulXNO533j7ojVpiQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796338173; h=DMARC-Filter:From:DKIM-Signature:DKIM-Signature:To:Cc:Subject:Date: Message-ID:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=sF1OkvNkLAiq54rfo4M5GD/Ibe3Jbuv28Fy5Fi3os6M=; b=LLIrFhdNd7p+NZb4hplC/jMmDbLUp6E4K2ZC3cHRl39oSDHvMd0u4lUZF3pTLY03SMFb 6NSO9uMDCVMmD4f240Lgreb7+Oc+/+8LUsb9KrEJa+4dvHzM9a/+CTiiRyz7LMCw3BF2p 46cYqainTCOoZAtgFkdRUwYMheBKUOnoaw8Y/HbTcwbLGpuP1It79IpQ7nUDMipiPPBp6 gN//DntSld0uWeEHLTDeG5EQOq4KYHxXTPqPGjSEMNeVqsM1ZrntjOxmDNMNZqO9LUo24 ZXlDeMrbSvvBUK5s5CjD4ZG2K6DqCh0P+rvrjZzWx1kLwwh4CyWF4StzPqjZXFHNIPw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=c5S+PKxq; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=hXpPG1B5; arc=none smtp.remote-ip=193.142.43.55 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 C8259606A334; Thu, 3 Dec 2026 22:49:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C8259606A334 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=c5S+PKxq; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=hXpPG1B5 From: "Ahmed S. Darwish" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1796338170; 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: in-reply-to:in-reply-to:references:references; bh=sF1OkvNkLAiq54rfo4M5GD/Ibe3Jbuv28Fy5Fi3os6M=; b=c5S+PKxqJvxSncz8FXQsgGReNQxfY7nI4Y2M2+Nx57RleHo+EzXclP9xUOMWSFMkUs6dOT KzO38mRaxKHCN6z3/mxJ+jfilhMlwxv+9w/Go1bCWjijPAqD3Jx7iTuGhSm29C6Xt/rxu5 93V20uMvgqKoVa737ubvmGWJkBpvtewblQSf6MFgAimTCD5PEkYeMVCcHHPZ3qChGuJ8xo QBdpxs7lywKhrmAB++7ebWKyHgaabrkKoj0W7xEJqkYMV/BqSO7Dhw9D/VqZXeJcXa1Kgl i9jhndsg3BZxZ4+kdq2zbKXoehCpKuVleq7mPyywy4b4p19TbSB6Mf/1lygTsg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1796338170; 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: in-reply-to:in-reply-to:references:references; bh=sF1OkvNkLAiq54rfo4M5GD/Ibe3Jbuv28Fy5Fi3os6M=; b=hXpPG1B5QCVLSrUuqbsWuL5DbnSRHxPVOLLe5EJg4XQ/V22rF+hNr7QQ7plFHC/mPZGtxy OMnuzDWpbYk+dIAg== To: 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?q?Zbigniew=20J=C4=99drzejewski-Szmek?= , Daan De Meyer , Luca Boccassi , linux-rt-devel@lists.linux.dev, debian-kernel@lists.debian.org, linux-kbuild@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, "Ahmed S. Darwish" Subject: [PATCH v2 02/11] kconfig-audit: Introduce a PREEMPT_RT configuration policy Date: Thu, 3 Dec 2026 23:49:03 +0100 Message-ID: <20261203224916.118064-3-darwi@linutronix.de> In-Reply-To: <20261203224916.118064-1-darwi@linutronix.de> References: <20261203224916.118064-1-darwi@linutronix.de> X-Mailing-List: linux-kernel@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 Add a kconfig-audit policy for PREEMPT_RT configuration requirements. Keep it aligned with Documentation/core-api/real-time/kernel-configuration.rst. Signed-off-by: Ahmed S. Darwish --- tools/kconfig-audit/policy/preempt_rt.yml | 179 ++++++++++++++++++++++ 1 file changed, 179 insertions(+) create mode 100644 tools/kconfig-audit/policy/preempt_rt.yml diff --git a/tools/kconfig-audit/policy/preempt_rt.yml b/tools/kconfig-audit/policy/preempt_rt.yml new file mode 100644 index 000000000000..a9972e3c3453 --- /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 +# +# List all config options in alphabetic order, per group +--- + +api_version: kconfig-audit.kernel.org/v1 +kind: Policy + +docs_url: https://docs.kernel.org/core-api/real-time/kernel-configuration.html +rules: + - name: CONFIG_CPU_FREQ + expected: enabled + severity: high + docs_hint: config + + - name: CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE + expected: enabled + severity: high + docs_hint: config + + # Changing the CPU frequency while a real-time task is running is quite + # dangerous. Set a high severity to all dynamic scaling governors. + - name_pattern: CONFIG_CPU_FREQ_GOV_(CONSERVATIVE|ONDEMAND|SCHEDUTIL) + expected: disabled + severity: high + docs_hint: non-performance-cpu-frequency-governors + + - name_pattern: CONFIG_CPU_FREQ_GOV_(POWERSAVE|USERSPACE) + expected: disabled + severity: medium + docs_hint: non-performance-cpu-frequency-governors + + - name: CONFIG_CPU_IDLE + expected: enabled + severity: info + docs_hint: config + + - name: CONFIG_DRM + expected: disabled + severity: info + docs_hint: config + + - name: CONFIG_EFI_DISABLE_RUNTIME + expected: enabled + severity: medium + docs_hint: config + + - name_pattern: CONFIG_NO_HZ(_FULL|_IDLE)? + expected: disabled + severity: medium + docs_hint: config-no-hz-config-no-hz-full + + - name: CONFIG_PREEMPT_RT + expected: enabled + severity: fatal + docs_hint: config + + - name: CONFIG_RCU_NOCB_CPU + expected: enabled + severity: low + docs_hint: config + + # + # Tracing + # + + - name: CONFIG_DYNAMIC_FTRACE + expected: enabled + severity: info + docs_hint: config-tracing-and-tracing-options + + - name: CONFIG_FUNCTION_GRAPH_TRACER + expected: enabled + severity: info + docs_hint: config-tracing-and-tracing-options + + - name: CONFIG_HWLAT_TRACER + expected: enabled + severity: info + docs_hint: config-tracing-and-tracing-options + + - name: CONFIG_IRQSOFF_TRACER + expected: disabled + severity: high + docs_hint: config-irqsoff-tracer-and-config-preempt-tracer + + - name: CONFIG_KPROBE_EVENTS + expected: enabled + severity: info + docs_hint: config-tracing-and-tracing-options + + - name: CONFIG_PREEMPT_TRACER + expected: disabled + severity: high + docs_hint: config-irqsoff-tracer-and-config-preempt-tracer + + - name: CONFIG_SCHED_TRACER + expected: enabled + severity: info + docs_hint: config-tracing-and-tracing-options + + - name: CONFIG_TRACING + expected: enabled + severity: info + docs_hint: config-tracing-and-tracing-options + + - name: CONFIG_UPROBE_EVENTS + expected: enabled + severity: info + docs_hint: config-tracing-and-tracing-options + + # + # Debug symbols + # + + - name_pattern: CONFIG_DEBUG + expected: disabled + severity: medium + docs_hint: kernel-debug-options + + - name_pattern: CONFIG_DEBUG_INFO + pattern_prio: 1 + expected: neutral + severity: low + + - name: CONFIG_DEBUG_ATOMIC_SLEEP + expected: neutral + severity: low + + - name: CONFIG_DEBUG_BOOT_PARAMS + expected: neutral + severity: low + + - name: CONFIG_DEBUG_BUGVERBOSE + expected: neutral + severity: low + + - name: CONFIG_DEBUG_FS + expected: neutral + severity: low + + - name: CONFIG_DEBUG_FS_ALLOW_ALL + expected: neutral + severity: low + + - name: CONFIG_DEBUG_FS_ALLOW_NONE + expected: neutral + severity: low + + - name: CONFIG_DEBUG_KERNEL + expected: neutral + severity: low + rationale: + A menu option which enables the display of other debug symbols. + + - name: CONFIG_DEBUG_MISC + expected: neutral + severity: low + + # + # Debugging features + # + + - name: CONFIG_LOCKUP_DETECTOR + expected: disabled + severity: high + docs_hint: config + + - name: CONFIG_PROVE_LOCKING + expected: disabled + severity: high + docs_hint: config + + - name_pattern: CONFIG_SLUB_DEBUG.* + expected: disabled + severity: high + docs_hint: kernel-debug-options -- 2.56.0