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] [day] [month] [year] [list]
Date:	Thu, 18 Mar 2010 11:12:22 +0100
From:	Michal Marek <mmarek@...e.cz>
To:	Jan Engelhardt <jengelh@...ozas.de>
Cc:	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: kconfig: report select on a depending option

On 18.3.2010 10:21, Jan Engelhardt wrote:
> Hi,
> 
> 
> With the following combination of Kconfig config options, I can select 
> TEST_Z, which will select TEST_X, even if TEST_Y=n. It also allows for 
> awkward situations like TEST_Y=M, TEST_X=y, TEST_Z=y, which would yield 
> a link time error when X uses Y's symbols.

That's a known bug unfortunatelly
(Documentation/kbuild/kconfig-language.txt):
  Note:
        select should be used with care. select will force
        a symbol to a value without visiting the dependencies.
        By abusing select you are able to select a symbol FOO even
        if FOO depends on BAR that is not set.
        In general use select only for non-visible symbols
        (no prompts anywhere) and for symbols with no dependencies.
        That will limit the usefulness but on the other hand avoid
        the illegal configurations all over.
        kconfig should one day warn about such things.



> Is there a way to have such potential errors reported with kconfig?

No there isn't. There is a guy who wants to work on improving/rewriting
the kconfig depsolver during GSoC, let's see :). But a warning should be
easy to add now, I think.

Michal
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ