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=1796424613; b=llsR4aSFyRa4XnFUeXU6Oc0F6urtOwlAumW8CZfrm5+L6SqkK52ZzKm3y6yaWa9RC0Eh bDKCjBEk6Pl2EW3lAvg37l/I4zgk/Squw1sz71WLjBPRIBsrXbXQZhwc+YNsX0VS8iCjv k5G+IIBgozq3JZAtLEImButPiBUVBJvIrkwJ7QAbKEoFvs/7PcRb2VBkPowmwrjajdFT2 W1rKp3XHxGdaMhBUGQSmx+y87MstAtKKRjCXylZSmVCKlh9QooiPcHL/ACNavEl0ITqII M/sBB/r/56yeqNLlD659hfrqQAbj/7YWvYJT+0gXW+s3zxsQHONTQ24o8Vco3ACmhlg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796424613; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=FYutg8QdIK1nieTWb9VlVxJja272RQ174c7sKZMSyFE=; b=olem+3lDgWJ3C0CoYQNgydBSAAIZP2UfTvGYK2SjUwlqGca3ujLpDWg1XJQj5/XGIAma pHJNIBqew5DRM4kxrf8oNme/b/nwvgk0v+CDIr6MzDY6C144qtYXR6niqEysYFn8YbKvL 8g0lvUxsDcDgA9PuUYuaL3cHOlyoHo5SUZi9+E3XtWRDk1MOoz+T8FMiqSeRaX3/tZJ2A eg+rqlV0iD93M5j827IHkmSTUxvxujN33ZFEdLGHPo/mHVRAJTSDHK7nZzSi71HYhfRQV iPRa/VVFxJh3qYTYcUuF3TRSCQttVt+4njvQnM/9l50daIqsHvkm57H5dRU6WuaivsA== 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=iyFr+exx; 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 5E4A2606A681; Fri, 4 Dec 2026 22:50:13 +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=iyFr+exx Received: by smtp.kernel.org (Postfix) with ESMTPSA id 379D81F00A18; Fri, 4 Dec 2026 22:50:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796424613; bh=FYutg8QdIK1nieTWb9VlVxJja272RQ174c7sKZMSyFE=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=iyFr+exx4eqKtGqPf2Fb1Mh/cMiE6UR0pM+6WHcVO9SfHLLmjHruTt+IOecc0m4Hh Oh/oLcBXQRyVjEoD4lSBwMGHQFF3gLkyv6VNmdg9zWLRhBOhBmDUr3j6XDaKUDcJ4F 02dhjWP7DIalyjTI97OASQR3bbFuTEOVnYGnpz5boWiWEcBIG8q9THPWRKXWsWspKm ldQtyyePczuTplFnooNlv+7GPJxFIrGTbyFBonIdqbqGrw3gbKgMLubAJvldXLWLth j1FPqKjnregUstG6D/tbDMjaSe4kX9iNRoEkvzswVLyqOyFq429K2vv8odsPu1cYGo hqcp6j2IyUYlw== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 04/11] Documentation: Describe kconfig-audit usage and design 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-5-darwi@linutronix.de> References: <20261203224916.118064-1-darwi@linutronix.de> <20261203224916.118064-5-darwi@linutronix.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 22:50:11 +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 4 potential issues to consider: - [Low] docs: kconfig-audit exact-rule precedence contradicts _map_pattern_rules() - [Low] docs: kconfig-audit enabled pattern rule misses zero-match failure - [Low] docs: kconfig-audit Invocation section omits -P / --policy-file option - [Low] docs: kconfig-audit omits duplicate name_pattern rule rejection -- commit b13b53469deef91d63f2604f80547d95c6a4d51c Author: Ahmed S. Darwish Documentation: Describe kconfig-audit usage and design This commit documents kconfig-audit usage, policy format, and dependencies, links it from the PREEMPT_RT configuration guide, and references the new documentation in the missing-dependency error message. > diff --git a/Documentation/tools/kconfig-audit.rst b/Documentation/tools/= kconfig-audit.rst > new file mode 100644 > index 0000000000000..5b8e2fa842b1e > --- /dev/null > +++ b/Documentation/tools/kconfig-audit.rst > @@ -0,0 +1,517 @@ [ ... ] > +Check a ``.config`` against a policy known to the checker:: > + > + audit.py check -c path/to/.config -p preempt_rt [Severity: Low] Should this section also document -P / --policy-file? parse_args() in tools/kconfig-audit/audit.py supports checking against a custom policy file, but this option is not mentioned anywhere in the document despite the policy authoring guide below. [ ... ] > +Note that pattern priority conflicts are detected only for symbols prese= nt > +in the checked ``.config``. An exact ``name`` rule continues to take > +precedence over all pattern rules for such symbols. [Severity: Low] Does this match Checker._map_pattern_rules() in tools/kconfig-audit/audit.py? Checker.__post_init__() calls _map_pattern_rules() before _find_pattern_rule_issues() checks exact rule precedence. When a symbol in .config matches multiple highest-priority pattern rules, audit.py aborts with EX_DATAERR even if an exact name rule covers that symbol. Either _map_pattern_rules() should skip symbols covered by an exact rule, or this note should reflect that conflicts are still rejected. > + > +Duplicate rules are rejected > +---------------------------- > + > +Duplicate exact symbol rules are rejected. The policy below: [Severity: Low] Should this section also mention duplicate name_pattern rules? Policy.add_rule() in tools/kconfig-audit/audit.py rejects identical name_pattern strings at parse time with EX_DATAERR, even when they have different pattern_prio values or match no symbols in .config. [ ... ] > +``enabled`` > + The symbol must be set to ``y`` or ``m``. > + > + For an exact ``name`` rule, a missing symbol fails an ``enabled`` rul= e. > + An explicitly unset symbol also fails. For a ``name_pattern`` rule, = the > + rule applies only to symbols matched in the checked ``.config``. [Severity: Low] Is this accurate for an enabled name_pattern rule that matches nothing in .config? In tools/kconfig-audit/audit.py, Checker._find_pattern_rule_issues() reports an issue and exits with EX_CONFIG when an expected: enabled pattern rule matches zero symbols in .config, unless an exact symbol rule in the policy matches the regex. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203224916.1180= 64-1-darwi@linutronix.de?part=3D4