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=1796424609; b=GCzYTioRiJz8O4dUVk/owtNNnjp83arMYNHIAua8aZqffaPWdu+/CAGdlbeslwz2/Lwf CL4QTbu7eQcydTnN8x6bwCxhYslFK3EtI9R2REo0DCZhnoyBkAiTmMD0JrfwmfOswPkhi tvY0pyRHNc1f7jIFpozpc9VMJ27J/iPX1chntF2RZxVHfMAhZUTgY0+EEzn9VDLiYq9k+ 3dJEytU8cSasyE+udyoGjhpZ19wmlN5B07RkPEj4Y5o7IrFAueLg8a9UB0X656odCyNlh iDcaIjRluOrW+OGmxxs2Ix56vQBTintj9bNveStkEthxpJDjiwunR+mDVWNmjPa9TBg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796424609; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=G7R1GJts2yOa7kk3yuAlEcddYqiUNFhrMlKpKCn/VJg=; b=l62HCLB7YN2npVNky8OJK80tqL9sVnpzVDxSzGoXls9CaoLzUDHSC+6PFC6Xf1+iu/A8 Vte6OcU1bg69eFpbL5gRWazmSDgRC6w3LvVYSI/MGO+1KDNMvRJazYHAGV/C5/j6UWaI+ QTVxKMDHoodoHZCrvYN93Z5xzoLSs5PsjSRE9JaSXPc0YcrKZiW3dO+nKKzz7pgywtq3w WOEc5IFiZ+PIfmCDT4FUpdv/QrqJTbvKEZL6Z8PNqVGZgoFoCgp7mRZScY1qbSEz7ghR+ 8icx9vyYi4scyUHvdqSgBLb+zQ6IxfQfDJamnD7jOknU8MCGThGyWvTrHNqG9l9Kzug== 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=JeKACdaz; 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 60C65606A32D; Fri, 4 Dec 2026 22:50:09 +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=JeKACdaz Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5FBD21F00936; Fri, 4 Dec 2026 22:50:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796424609; bh=G7R1GJts2yOa7kk3yuAlEcddYqiUNFhrMlKpKCn/VJg=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=JeKACdazvQXFtKB47owd77HHsSIOns+iyevKx9hjWXecoGB9dTZjTkLvJWG4Gipkd M+qtupQWWXAblv2u3RRTedp/wwmxxEk1xuxgVQeHeB+nIOQZAatpK8gV4CMd4xFoyK +xUx9tgKEVTMfv48XBBmZ21ZciIl1/MvU13qbQWJMHhgKFGzFCAJWzyXUy61h+zxYi sQSqk9LRN3UpcR/BNeHJCTwcB/jH9syre8aTwV9R3hIA0tnehGGaI8IHCWgm3AIyUY PXnQ9sQiKlKyrGMCyZtZsd0JaKixb91T0K9EbweVm37553QoiYq52c1bThyLa0AV35 oZe479QixuBAg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 01/11] kconfig-audit: Add schema for policy files 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-2-darwi@linutronix.de> References: <20261203224916.118064-1-darwi@linutronix.de> <20261203224916.118064-2-darwi@linutronix.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 22:50:07 +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: - [Low] kconfig-audit: policy schema name pattern rejects lowercase Kconfig symbols - [Low] kconfig-audit: non-canonical https:// URI in Draft-07 $schema - [Low] kconfig-audit: docs_hint schema pattern allows # in URI fragments -- commit 922516e5e1ce33b868280571209d1adde89b4e80 Author: Ahmed S. Darwish kconfig-audit: Add schema for policy files This commit defines the JSON Schema for kconfig-audit policy files in tools/kconfig-audit/schema/policy-v1.yml and documents the purpose of each field. > diff --git a/tools/kconfig-audit/schema/policy-v1.yml b/tools/kconfig-aud= it/schema/policy-v1.yml > new file mode 100644 > index 0000000000000..10672226415be > --- /dev/null > +++ b/tools/kconfig-audit/schema/policy-v1.yml > @@ -0,0 +1,139 @@ > +# SPDX-License-Identifier: GPL-2.0-only > + > +"$schema": "https://json-schema.org/draft-07/schema#" [Severity: Low] Should $schema use the canonical Draft-07 URI "http://json-schema.org/draft-07/schema#" instead of https://? Draft-07 identifies its meta-schema with http://, and validators match $schema as a literal URI identifier rather than following HTTP redirects. External validators that dispatch on $schema (such as check-jsonschema) will not recognize the https:// URI as Draft-07 and will reject it or warn. [ ... ] > + # > + # Exact kernel configuration symbol to check. > + # > + # Example: CONFIG_PREEMPT_RT > + # > + name: > + type: string > + pattern: '^CONFIG_[A-Z0-9_]+$' [Severity: Low] Does this pattern reject valid Kconfig symbols that contain lowercase letters? scripts/kconfig/lexer.l allows [A-Za-z0-9_-] in symbol names, and mainline Kconfig files define symbols such as CONFIG_VFPv3 and CONFIG_SCx200. Any policy referencing one of those symbols will fail schema validation; relaxing the pattern to '^CONFIG_[A-Za-z0-9_-]+$' would match Kconfig. [ ... ] > + # If `docs_hint` is any other string, that string is used direct= ly as > + # the HTML fragment identifier. > + # > + docs_hint: > + type: string > + anyOf: > + - const: config > + - pattern: '^\S+$' # URI fragments cannot have spaces [Severity: Low] Can docs_hint accept '#' characters and produce malformed rationale URLs? Because '#' is non-whitespace, '^\S+$' allows values like "#my-section", which is an easy mistake given the "#config-drm" example above and causes the checker to emit a double-hash URL ("##my-section"). Tightening the pattern to '^[^\s#]+$' and noting to omit a leading '#' would prevent this. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203224916.1180= 64-1-darwi@linutronix.de?part=3D1