linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* arm32 binaries work with CONFIG_COMPAT as root but not as user?
@ 2015-01-28 10:52 Riku Voipio
  2015-01-28 11:22 ` Catalin Marinas
  0 siblings, 1 reply; 6+ messages in thread
From: Riku Voipio @ 2015-01-28 10:52 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

Perhaps I'm missing here something, but seems I can only run 32bit arm
programs on arm64 system if I am root. So far even the simplest hello
world will be killed/segfaulted on startup. This is on mustang hw.

taking on 3.19-rc3 with arch=arm64 and make defconfig:

wget http://kos.to/hello-test/hello
# file hello
hello: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV),
statically linked, for GNU/Linux 2.6.32,
BuildID[sha1]=c37a3b366d645eee600963a535370fa0bad9b2c0, not stripped
# ./hello
hello world
# su - linaro
$ /root/hello
Segmentation fault
$ gdb /root/hello
(gdb) run
Starting program: /root/hello
During startup program terminated with signal SIGSEGV, Segmentation fault.

If you have a debian/ubuntu system, you can also reproduce it with multiarch:

dpkg --add-architecture armhf
apt-get update
apt-get install hello:armhf
# hello
Hello, world!
# su - ubuntu
$ hello
Segmentation fault
$

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-01-28 14:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-28 10:52 arm32 binaries work with CONFIG_COMPAT as root but not as user? Riku Voipio
2015-01-28 11:22 ` Catalin Marinas
2015-01-28 11:36   ` Marc Zyngier
2015-01-28 11:42   ` Riku Voipio
2015-01-28 11:47     ` Catalin Marinas
2015-01-28 14:16       ` Riku Voipio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).