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=1796424619; b=wiKArVGs8yLMsnmsvv1IUc+WihpvkO+26o9urm77Xd02cghnwVM1sNtlKzuo2wssL1Qt nbsE5Rttvl4FuYT1/W6XfKtIBmOqHShD8aHqdpnLSC+7g3QKmHMcq82K2mY7RwpPOjWcy NSV1kXyi8brm9UkvZFnUH+x0Xzy3392dDHUiO+VP1H+ezE4S0Q5RFx2i+rDNsLzBANJG2 HNe4PASyGgEnEXNzlWi0zaJQF3blNXSbShWqi+zx/R5wokaLqWw/Au79yEx+h5ElfO+EB Rgh33Re+wPNmTE7br5+vPZT9R7o9Dgi9mhddF9RuKS4I+hD0tginRJpXg7Vo+6PsVJw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796424619; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=DWYKQHpJdzcgQI2jh5ltm8fHOhQQNz77leyxKpIlgUk=; b=bNP0a9gAK0+aQOqvnCRM2Wqa7l0NetvxDDo8Q8bqmBWaDNYyI5GuSiGp2O65r/VbAR36 So+izrAhSq1sw4AJjizqCPBgVitJbFuvgdWBLHEIWAW+2qXnjcLeaxwosiXLTmKccvfFs UaHfdkiMyuyFMxPMnXClR6mTmvsiyv6NPb92Q9Sb/V0hAKsi7SFAd0pShKnxb+oioW80b 0hkhqbb39KSPVkeYXuaFBHkMK9kD3czj5xW8ZpYrPpMHpNFEl7y56K5AxPo1ZgxgVoGlT EJWEAeQe3O933LkZ6ySdSdxReXFWGv0OgOxCeO64ldPMkWy6cFENUdA59DalzBXRnRQ== 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=DPOV6S7f; 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 922A1606A332; Fri, 4 Dec 2026 22:50:19 +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=DPOV6S7f Received: by smtp.kernel.org (Postfix) with ESMTPSA id 536441F0093B; Fri, 4 Dec 2026 22:50:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796424619; bh=DWYKQHpJdzcgQI2jh5ltm8fHOhQQNz77leyxKpIlgUk=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=DPOV6S7f2XYAY3NE0uL5jSG0STm9aEmCZfneul7Qs67XMTAzTKebxXpHgYa9Y1UVO lkHV5xGOy7F/EmQwNgn1Lt9kN8UCjNogWKy4loq7U2FoKaWZXut/vtaX9m6/n8Ixen eJoYEFWP9FUY738JN3nhOi5xbz9myCPpx4qZjWgX5PlyfMSvlusvPjcg7vz6yGVApS lg7e0+6a7nErx6e04DoQciCMMFh59MIA/YPcg13vhdvntGtgaH/MLUmKQ0Q9SVBqKA XvH0EMXSDmkqkr3lt+nZoU6VFI/e5pOJ3ClqHu0YWodvYyPhh26MMNgW/VM+2Yazh4 IcDWPH0ICQkoA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 08/11] Documentation: kconfig-audit: Describe policy overlays 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-9-darwi@linutronix.de> References: <20261203224916.118064-1-darwi@linutronix.de> <20261203224916.118064-9-darwi@linutronix.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 22:50:16 +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 3 potential issues to consider: - [Medium] kconfig-audit: pattern_prio documented for overlays but ignored in audit.py - [Low] Documentation: kconfig-audit: Rule fields intro contradicts overlay rules - [Low] Documentation: kconfig-audit: docs_url global overlay override undocumented -- commit 181019824e3f6389f3fdc27e65e9f5241c313cc3 Author: Ahmed S. Darwish Documentation: kconfig-audit: Describe policy overlays This commit documents the format, usage, and field reference for kconfig-audit policy overlay files in Documentation/tools/kconfig-audit.rst. > diff --git a/Documentation/tools/kconfig-audit.rst b/Documentation/tools/= kconfig-audit.rst > index 5b8e2fa842b1e..e83eb56e43ede 100644 > --- a/Documentation/tools/kconfig-audit.rst > +++ b/Documentation/tools/kconfig-audit.rst [ ... ] > +Overriding an existing rule > +--------------------------- > + > +An overlay identifies an existing rule by its exact ``name`` or exact > +``name_pattern`` string. It changes only the fields it supplies. Omitt= ed > +fields keep their values from the base policy. [Severity: Medium] Does policy overlay support actually honor pattern_prio on name_pattern rules? This section and the Policy files reference describe pattern_prio as supported, and schema/policy-overlay-v1.yml accepts it. In audit.py, however, PolicyOverlayFile._parse_rule() drops pattern_prio and Overlayer._update_rule() / _new_rule() never propagate it. An overlay that sets pattern_prio to adjust precedence or add a higher-priority neutral exemption therefore silently gets priority 0, causing wrong rule precedence or ambiguous-policy errors in Checker._map_pattern_rules(). Either audit.py should propagate pattern_prio for overlays, or the overlay schema and documentation should reject and note that it is unsupported. [ ... ] > @@ -304,11 +402,16 @@ tag is supported so far:: > ``kind`` > ++++++++ > =20 > -*Required*. Identifies the YAML document's type. For a configuration > -policy file, the value must be:: > +*Required*. Identifies the YAML document's type. > + > +For a configuration policy file, the value must be:: > =20 > Policy > =20 > +For a policy overlay file, the value must be:: > + > + PolicyOverlay > + > ``docs_url`` > ++++++++++++ [Severity: Low] Should this section document how docs_url behaves in a PolicyOverlay file? schema/policy-overlay-v1.yml accepts top-level docs_url in overlays, and Overlayer.apply() replaces policy.docs_url with it. Since Policy.get_docs_url_for() prepends that single base URL to every rule's docs_hint, setting it in an overlay rewrites links for all inherited rules. [ ... ] > @@ -408,10 +511,12 @@ an exact ``name`` rule. > ``expected`` > ++++++++++++ > =20 > -*Required*. Describes the expected state of the matching symbol or > -symbols. > +*Required for all rules in policy files*. > + > +*Required for newly-added rules in policy overlays*. [Severity: Low] Does the Rule fields introduction above this section contradict the new overlay requirements for expected and severity? Policy files reference now covers both policy and overlay files, but the Rule fields intro still states unconditionally that each rule must contain one expected value and one severity, even though overlay overrides may omit both. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203224916.1180= 64-1-darwi@linutronix.de?part=3D8