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=1796424615; b=FnxZReWSJewHN5fXyIFDzyh7adKAt1nAwh01Cqhs6uUBBlVIEiAvLALYRGSJ5BNEvxOt f/8+6tnF29OkZqtxWvghMDDdYCugHjohl5Yx0P+qEyTnLzbP0zC3QBU7IGxKBhALt1+bW 0vc02my1x+jZGajPZjnSm8q/KRxKcezGhbin3PYfIaiCuns2zI5PfKHY9k9x/PJu2xskM iEWalmwSDZDJH696DMz3Hj3rBf8B/vZ1dIjvTTW+Rf+Z9X38RdF4cWWWgSrAvQOvA/ra8 jnnAKDe25qMGg25SU11ZnLV0t7P2s+FGjHNmg3j1/DX9lu50BB/O07rTcCmGcRgCmPg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796424615; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=teiye2vuG2dg/MfrGr0L2V4Ta6zQlXSq9GY0h8USJ4E=; b=UXkxrl7rPpXD2ZHPUBPKzPmvYPWcDrWzP95WSPQqp7GCBAtHERdJaK6leabkRJveKCy9 +NkzjpQpXKvlAsofu/XH6L4bsHdmG/aq0I0taSUJLt3xUJtrNuT2zsw4FT/NT+AwbahBM rjVUoTd75K3bHgk9RVu5gFdPT3TVO3gDbdGD153xcEZ2SnqiVeuG2HPawc40P2WjKda2w 1bWnGksmQ/I/FR5GcSueZkv5+uqgyc1nkuvH2V7O/1/I6aMpmYmYoFSEJFJWYu36Sc2XD ZF3jn/TivU1pbauB7vK6lOQ1oVq1HMevj4WzKajXyprO3uV4llAO188oQVel3GNCNFw== 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=TYd5KFBT; 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 DA6EA606A68F; Fri, 4 Dec 2026 22:50:15 +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=TYd5KFBT Received: by smtp.kernel.org (Postfix) with ESMTPSA id C49951F00A14; Fri, 4 Dec 2026 22:50:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796424615; bh=teiye2vuG2dg/MfrGr0L2V4Ta6zQlXSq9GY0h8USJ4E=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=TYd5KFBT8VlpI3mLNU6wdzSvLPmVAGuboVGCwrFqV4nstjnW9FsD8QQtDWC9d/WXw /ovEOqbLwf6ejil5Ethgs7ZULAp3ZOMk4NTk9X6nkQHwF6tLlmfFT7NYTFD+mJ/wpI D5d5RWKitfjw4B8dmkIcvWC5R30Um2N+9WDznNIvA7F37p+xwPeP3IdpUMrhdblXHp PsBPtey7RA4H8G4XtykBzplXcw7hKGPJbQUMa19UqUBxTyy7mUef7rd2VOMDGrmO2Y EE2uLXRQleDMZ+fMXftN2mnubs7gLXfxJ7iyjE03HS8WZlGHHJpJ5ZqklcfgRmb1uv KmqSqejtXVBvQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 06/11] kconfig-audit: Introduce policy overlays schema 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-7-darwi@linutronix.de> References: <20261203224916.118064-1-darwi@linutronix.de> <20261203224916.118064-7-darwi@linutronix.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 22:50:14 +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 2 potential issues to consider: - [Low] kconfig-audit: overlay schema accepts selector-only no-op rule entries - [Low] kconfig-audit: policy-overlay-v1.yml title omits overlay -- commit 58352cb3df2432252016c1d667a0a661fb223c7b Author: Ahmed S. Darwish kconfig-audit: Introduce policy overlays schema This commit adds the JSON Schema for kconfig-audit policy overlay files, reusing the shared rule definitions in rule.yml, and updates the neutral rule description to mention overlays. > diff --git a/tools/kconfig-audit/schema/policy-overlay-v1.yml b/tools/kco= nfig-audit/schema/policy-overlay-v1.yml > new file mode 100644 > index 0000000000000..d95e9197a53c5 > --- /dev/null > +++ b/tools/kconfig-audit/schema/policy-overlay-v1.yml > @@ -0,0 +1,49 @@ > +# SPDX-License-Identifier: GPL-2.0-only > + > +"$schema": "https://json-schema.org/draft-07/schema#" > + > +title: kconfig-audit policy schema [Severity: Low] This title matches policy-v1.yml; should it be "kconfig-audit policy overlay schema"? [ ... ] > + rules: > + type: array > + minItems: 1 > + items: > + allOf: > + - $ref: "rule.yml#/definitions/rule" [Severity: Low] Can an overlay rule entry pass validation with only name or name_pattern and no override fields? definitions.rule in rule.yml only requires name or name_pattern and leaves all override fields optional. Since audit.py relies on the schema rather than re-validating during parsing, a selector-only rule (such as forgetting expected: neutral) silently becomes a no-op against an existing base rule. Adding minProperties: 2 alongside the rule $ref in allOf would reject selector-only entries. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203224916.1180= 64-1-darwi@linutronix.de?part=3D6