From: Julian Braha <julianbraha@gmail.com>
To: nathan@kernel.org, nsc@kernel.org
Cc: n.schier@fritz.com, grahamr@qti.qualcomm.com,
rdunlap@infradead.org, nico@fluxnic.net,
linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org,
Julian Braha <julianbraha@gmail.com>
Subject: [PATCH 0/2] kconfig: error on reverse range
Date: Tue, 22 Sep 2026 17:37:47 +0100 [thread overview]
Message-ID: <20260922163749.2031594-1-julianbraha@gmail.com> (raw)
This series adds more input validation to Kconfig, specifically checking
that ranges for numeric options are properly ordered. This check was
originally introduced as part of kconfirm [1], but there are no findings
for this across the tree, so the check can be added directly into Kconfig.
Patch 1/2 adds a prop_err() function to match the existing prop_warn(),
which is then used in patch 2/2 where the check is introduced.
[1] https://lore.kernel.org/all/20260904220559.GB2787252@ax162/
---
Julian Braha (2):
kconfig: add prop_err function to simplify property error handling
kconfig: error on reverse range
scripts/kconfig/menu.c | 45 +++++++---
.../tests/err_num_bounds/expected_stderr | 20 ++---
.../tests/err_num_mismatch/expected_stderr | 8 +-
.../err_num_non_numeric_ref/expected_stderr | 32 +++----
.../tests/err_num_reverse_range/Kconfig | 90 +++++++++++++++++++
.../tests/err_num_reverse_range/__init__.py | 9 ++
.../err_num_reverse_range/expected_stderr | 7 ++
7 files changed, 169 insertions(+), 42 deletions(-)
create mode 100644 scripts/kconfig/tests/err_num_reverse_range/Kconfig
create mode 100644 scripts/kconfig/tests/err_num_reverse_range/__init__.py
create mode 100644 scripts/kconfig/tests/err_num_reverse_range/expected_stderr
--
2.55.0
next reply other threads:[~2026-09-22 16:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-22 16:37 Julian Braha [this message]
2026-09-22 16:37 ` [PATCH 1/2] kconfig: add prop_err function to simplify property error handling Julian Braha
2026-09-24 10:57 ` Nicolas Schier
2026-09-25 18:40 ` Julian Braha
2026-09-22 16:37 ` [PATCH 2/2] kconfig: error on reverse range Julian Braha
2026-09-24 10:57 ` Nicolas Schier
2026-09-25 18:38 ` Julian Braha
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260922163749.2031594-1-julianbraha@gmail.com \
--to=julianbraha@gmail.com \
--cc=grahamr@qti.qualcomm.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=n.schier@fritz.com \
--cc=nathan@kernel.org \
--cc=nico@fluxnic.net \
--cc=nsc@kernel.org \
--cc=rdunlap@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®