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
| ||
|
Message-ID: <1356525527.7010.34.camel@shinybook.infradead.org>
Date: Wed, 26 Dec 2012 12:38:47 +0000
From: David Woodhouse <dwmw2@...radead.org>
To: David Rientjes <rientjes@...gle.com>
Cc: Ingo Molnar <mingo@...nel.org>, "H. Peter Anvin" <hpa@...or.com>,
tglx@...utronix.de, "H. Peter Anvin" <hpa@...ux.intel.com>,
linux-kernel@...r.kernel.org, linux-tip-commits@...r.kernel.org
Subject: Re: [tip:x86/build] x86: Default to ARCH= x86 to avoid overriding
CONFIG_64BIT
On Wed, 2012-12-26 at 02:44 -0800, David Rientjes wrote:
> I'm sure it's a 32-bit issue, nothing has changed recently in auto-latest
> related to these subsystems and I'm sure it's just because my randconfig
> builds were exposed to this combination solely because of this patch.
Hm, that's an unexpected benefit of this patch. I didn't think it would
noticeably improve 'make randconfig' coverage of configs without
CONFIG_64BIT, because I thought enough people were doing such tests
already. But evidently I was wrong.
We introduced 'make randconfig' as a tool to generate meaningless
configs just to test various permutations — to ensure that we got our
dependencies right both in Kconfig and the code itself. It was
artificially limiting its test coverage and thus we were failing to
discover real bugs. Now I've fixed that problem, and 'make randconfig'
is actually random and is thus doing its job even better than before.
Yay!
> > Please could you provide the .config file?
> Attached.
Didn't seem to be.
> > > When I do "make randconfig" and uname -m is x86_64, I expect
> > > CONFIG_64BIT to always be set. This commit makes this random…
> >
> > We've had this bizarre "I don't really want randconfig to be random"
> > conversation before.
>
> If it were truly random then it would be generating sparc configs, hppa
> configs, etc. Randconfig has always generated random configurations for
> the underlying architecture (just like you respect the architecture with
> defconfig with your patch),
Yes, but the underlying architecture is "x86". Just like the
architecture is "powerpc", not "ppc" or "ppc64". CONFIG_64BIT is just
another config option. And AFAICT this is also true for ARCH=sparc,
ARCH=parisc, ARCH=s390, ARCH=mips and ARCH=tile. We just hadn't
completed the merge of arch/i386 and arch/x86_64 into arch/x86 yet, so
it was inconsistent.
The architecture is *not* "i486", "i686 with PAT", "i686 with cmov",
"x86_64 with 3DNow", "x86_64 with AHCI and ext4", or anything else Aunt
Tillie-ish which actually stands a chance of booting on your current
hardware. If you want to fix the values of certain config options, we
*have* mechanisms to do that.
> the fact that it's been unified into a single
> x86 architecture changes the behavior of plain old "make randconfig". I
> certainly understand how to override that with ARCH=x86_64. However, the
> reverse can also be said: make the same adjustment for randconfig that you
> made for defconfig so the old behavior is maintained and allow users on
> x86_64 to do "make ARCH=i386 randconfig" for 32-bit builds.
You can already do 'make ARCH=i386 randconfig' for 32-bit builds. You
always could. Or, as less of a special-case hack, you could use other
methods to override *any* config option, rather than just CONFIG_64BIT.
I just don't buy this "OMG you made randconfig actually random" crap.
It's a stupid thing to complain about. Making some effort to pick
i386_defconfig or x86_64_defconfig according to the build host, we can
tolerate. But randconfig is *supposed* to be random. Get over it.
--
dwmw2
Download attachment "smime.p7s" of type "application/x-pkcs7-signature" (6171 bytes)
Powered by blists - more mailing lists