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]
Message-Id: <20071210140457.7a93de20.akpm@linux-foundation.org>
Date:	Mon, 10 Dec 2007 14:04:57 -0800
From:	Andrew Morton <akpm@...ux-foundation.org>
To:	"H. Peter Anvin" <hpa@...or.com>
Cc:	linux-kernel@...r.kernel.org, "Luck, Tony" <tony.luck@...el.com>
Subject: Re: [PATCH] Avoid overflows in kernel/time.c

On Mon, 10 Dec 2007 10:59:20 -0800
"H. Peter Anvin" <hpa@...or.com> wrote:

> Andrew Morton wrote:
> > 
> > My ia64 allmodconfig build has taken
> > 
> > akpm     15700 89.6  0.0   8256   700 pts/4    RN+  03:09  10:41 bc -q kernel/timeconst.bc
> > 
> > 11 minutes so far.  fc6/x86_64.
> > 
> 
> I just tried this on my system, using your cross-compiler chain.  I got 
> a different error:
> 
> /opt/crosstool/gcc-3.4.5-glibc-2.3.6/ia64-unknown-linux-gnu/lib/gcc/ia64-unknown-linux-gnu/3.4.5/../../../../ia64-unknown-linux-gnu/bin/ld: 
> section .data.patch [a000000000000500 -> a000000000000507] overlaps 
> section .dynamic [a0000000000003c8 -> a000000000000507]
> collect2: ld returned 1 exit status
> make[2]: *** [arch/ia64/kernel/gate.so] Error 1

You'll need rc4-mm1's ia64-increase-datapatch-offset.patch.  That's now in
Tony's tree and should go into 2.6.24 IMO.

> ... but the timeconst stuff worked fine.  I tried it both from the 
> command line and using your xb script.
> 
> This is on a fc7/x86-64 box.  I also ran through all the values from 48 
> to 1024 on both an fc5 and an fc7 box (no fc6 box readily available, 
> although bc has been at 1.06 since 2000...)
> 
> In short, this is highly weird.  Could you possibly do me a favour and 
> just run, at the command line:
> 
> echo 250 | bc -q kernel/timeconst.bc

That works OK.

> ... and see if it reproduces the lockup (I'm assuming HZ == 250 in your 
> config, since that's what I get when I do "make allmodconfig" on IA64.)
> 
> (No need to wait 11 minutes.  It should run in a small fraction of a 
> second.)

I retested 2.6.24-rc4-mm1 plus avoid-overflows-in-kernel-timec.patch and
the failure has magically gone away.

Ho hum.  I'll reconstitute the patch and will keep an eye on it.
It'd be nice to avoid the introduction of the bc dependency though.
--
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