Re: [PATCH v2 0/2] kconfig: error on reverse range
From: Nathan Chancellor
Date: Wed Nov 04 2026 - 23:36:28 EST
> 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/
> ---
> Changes since v1:
> - fix typo in commit message: where -> there (Nicolas)
> - adjust warning and error printing to match gcc (Nicolas)
> - handle case with multiple (conditional) ranges (sashiko)
>
> Link to v1:
> https://lore.kernel.org/linux-kbuild/20260922163749.2031594-1-julianbraha@xxxxxxxxx/
> ---
> Julian Braha (2):
> kconfig: add prop_err function to simplify property error handling
> kconfig: error on reverse range
Reviewed-by: Nathan Chancellor <nathan@xxxxxxxxxx>
--
Cheers,
Nathan