From: marc.zyngier@arm.com (Marc Zyngier)
To: linux-arm-kernel@lists.infradead.org
Subject: arm32 binaries work with CONFIG_COMPAT as root but not as user?
Date: Wed, 28 Jan 2015 11:36:38 +0000 [thread overview]
Message-ID: <54C8C9C6.8060001@arm.com> (raw)
In-Reply-To: <20150128112249.GD6646@e104818-lin.cambridge.arm.com>
On 28/01/15 11:22, Catalin Marinas wrote:
> On Wed, Jan 28, 2015 at 10:52:21AM +0000, Riku Voipio wrote:
>> 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:
>
> It works for me with the arm64 for-next/core branch, I haven't tried
> vanilla 3.19-rc3 yet. Do you have other patches applied?
I'm running -rc5 on mustang, and this works perfectly fine:
maz at mystery-roach:~$ uname -a
Linux mystery-roach 3.19.0-rc5+ #3704 SMP Wed Jan 28 11:25:36 GMT 2015 aarch64 GNU/Linux
maz at mystery-roach:~$ 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
maz at mystery-roach:~$ id
uid=1000(maz) gid=1000(maz) groups=1000(maz),27(sudo),110(kvm)
maz at mystery-roach:~$ ./hello
hello world
Userspace is Debian arm64 unstable.
M.
--
Jazz is not dead. It just smells funny...
next prev parent reply other threads:[~2015-01-28 11:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2015-01-28 11:42 ` Riku Voipio
2015-01-28 11:47 ` Catalin Marinas
2015-01-28 14:16 ` Riku Voipio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54C8C9C6.8060001@arm.com \
--to=marc.zyngier@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.