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-next>] [day] [month] [year] [list]
Date:	Thu, 17 Mar 2016 08:14:24 +0100
From:	Markus Trippelsdorf <markus@...ppelsdorf.de>
To:	Ard Biesheuvel <ard.biesheuvel@...aro.org>
Cc:	Guenter Roeck <linux@...ck-us.net>,
	Kees Cook <keescook@...omium.org>,
	Heiko Carstens <heiko.carstens@...ibm.com>,
	Michael Ellerman <mpe@...erman.id.au>,
	Ingo Molnar <mingo@...nel.org>,
	"H. Peter Anvin" <hpa@...or.com>,
	Benjamin Herrenschmidt <benh@...nel.crashing.org>,
	Michal Marek <mmarek@...e.cz>,
	Rusty Russell <rusty@...tcorp.com.au>,
	Arnd Bergmann <arnd@...db.de>,
	Andrew Morton <akpm@...ux-foundation.org>,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	linux-kernel@...r.kernel.org
Subject: Re: kallsyms failure: relative symbol value 0xffffffff810002a0 out
 of range in relative mode

On 2016.03.17 at 08:03 +0100, Ard Biesheuvel wrote:
> On 16 March 2016 at 22:25, Markus Trippelsdorf <markus@...ppelsdorf.de> wrote:
> > Since:
> > commit 2213e9a66bb87d8344a1256b4ef568220d9587fb
> > Author: Ard Biesheuvel <ard.biesheuvel@...aro.org>
> > Date:   Tue Mar 15 14:58:19 2016 -0700
> >
> >     kallsyms: add support for relative offsets in kallsyms address table
> >
> > kernels linked with ld.gold are broken:
> >
> 
> Could you elaborate? I tried building x86_64_defconfig with
> -fuse-ld=gold added to LDFLAGS, and it builds fine.
> 
> Could you share your config, please? And instructions how to invoke
> the gold linker?

I'm using gold trunk and ld.gold is my system linker (just a hard link
to ld). My config is attached.

(For testing I use the following qemu command:
 qemu-system-x86_64 -s -enable-kvm -net nic,vlan=0,model=virtio -net user -fsdev local,security_model=none,id=root,path=/ -device virtio-9p-pci,id=root,fsdev=root,mount_tag=/dev/root -m 512 -smp 2 -kernel /usr/src/linux/arch/x86/boot/bzImage -nographic -append "init=/bin/zsh root=/dev/root console=ttyS0 kgdboc=ttyS0 rootflags=rw,trans=virtio rootfstype=9p ip=dhcp earlyprintk=ttyS0" )

> >   KSYM    .tmp_kallsyms1.o
> > kallsyms failure: relative symbol value 0xffffffff810002a0 out of range in relative mode
> >   KSYM    .tmp_kallsyms2.o
> > kallsyms failure: relative symbol value 0xffffffff810002a0 out of range in relative mode
> >   LD      vmlinux
> >
> > They die early during boot:
> >
> 
> Note that there is a patch queued in the kbuild tree to at least abort
> the build if such failures happens.

Yes. That would be much better. 

-- 
Markus

View attachment "config" of type "text/plain" (76270 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ