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:	Tue, 5 Dec 2006 19:33:57 +0000
From:	Russell King <rmk+lkml@....linux.org.uk>
To:	Linux Kernel List <linux-kernel@...r.kernel.org>
Cc:	Sam Ravnborg <sam@...nborg.org>
Subject: More ARM binutils fuckage

There's not much to say about this, other than scream and go hide in the
corner.  ARM toolchains are just basically fscked.

  arm-linux-ld -EL  -p --no-undefined -X -o .tmp_vmlinux1 -T
 arch/arm/kernel/vmlinux.lds arch/arm/kernel/head.o
 arch/arm/kernel/init_task.o  init/built-in.o --start-group
  usr/built-in.o  arch/arm/kernel/built-in.o  arch/arm/mm/built-in.o
  arch/arm/common/built-in.o  arch/arm/mach-versatile/built-in.o
  arch/arm/nwfpe/built-in.o  arch/arm/vfp/built-in.o  kernel/built-in.o
  mm/built-in.o  fs/built-in.o  ipc/built-in.o  security/built-in.o
  crypto/built-in.o  block/built-in.o  arch/arm/lib/lib.a  lib/lib.a
  arch/arm/lib/built-in.o  lib/built-in.o  drivers/built-in.o
  sound/built-in.o  net/built-in.o --end-group

Produces no error, but:

$ arm-linux-nm ../build/versatile/.tmp_vmlinux1 |grep ' U '
         U __divdi3
         U __udivdi3
         U __umoddi3

Duh.

Result is you get successful kernel builds without any error, but a *bad*
incomplete image.  IOW, you do not know whether or not your kernel is
_safe_ to execute.

That's binutils 2.17.  binutils 2.16 had this problem and I tried to get a
patch into the kernel to use 'nm' to detect this fsckage.  We *need* this
patch in the kernel.

Sam, can we resurrect my attempts to do this please?

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:
-
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