lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <01f772073dba88daf7f5acd824d10fc37412c99e.camel@linux.ibm.com>
Date: Wed, 01 Oct 2025 14:21:07 +1000
From: Andrew Donnellan <ajd@...ux.ibm.com>
To: Kees Cook <kees@...nel.org>, Vegard Nossum <vegard.nossum@...cle.com>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>,
        Masahiro Yamada	
 <masahiroy@...nel.org>,
        Nathan Chancellor <nathan@...nel.org>, Petr Vorel	
 <pvorel@...e.cz>,
        linux-kernel@...r.kernel.org, linux-kbuild@...r.kernel.org,
        linux-hardening@...r.kernel.org
Subject: Re: [PATCH v2] kconfig: Avoid prompting for transitional symbols

On Tue, 2025-09-30 at 08:45 -0700, Kees Cook wrote:
> The "transitional" symbol keyword, while working with the "olddefconfig"
> target, was prompting during "oldconfig". This occurred because these
> symbols were not being marked as user-defined when they received values
> from transitional symbols that had user values. The "olddefconfig" target
> explicitly doesn't prompt for anything, so this deficiency wasn't noticed.
> 
> The issue manifested when a symbol's value came from a transitional
> symbol's user value but the receiving symbol wasn't marked with
> SYMBOL_DEF_USER. Thus the "oldconfig" logic would then prompt for these
> symbols unnecessarily.
> 
> Check after value calculation whether a symbol without a user value
> gets its value from a single transitional symbol that does have a user
> value. In such cases, mark the receiving symbol as user-defined to
> prevent prompting.
> 
> Update regression tests to verify that symbols with transitional defaults
> are not prompted in "oldconfig", except when conditional defaults evaluate
> to 'no' and should legitimately be prompted.
> 
> Build tested with "make testconfig".
> 
> Reported-by: Linus Torvalds <torvalds@...ux-foundation.org>
> Closes:
> https://lore.kernel.org/lkml/CAHk-=wgZjUk4Cy2XgNkTrQoO8XCmNUHrTe5D519Fij1POK+3qw@mail.gmail.com/
> Fixes: 05020835c86e ("kconfig: Add transitional symbol attribute for migration
> support")

I think this should be f9afce4f32e9.

Andrew


-- 
Andrew Donnellan    OzLabs, ADL Canberra
ajd@...ux.ibm.com   IBM Australia Limited

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ