From: Adam Borowski <kilobyte@angband.pl>
To: Andrei Vagin <avagin@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>,
Thomas Gleixner <tglx@linutronix.de>,
LKML <linux-kernel@vger.kernel.org>,
Dmitry Safonov <dsafonov@virtuozzo.com>,
Cyrill Gorcunov <gorcunov@openvz.org>
Subject: Re: linux-next: x86: Unalbe to run x32 processes on the x86_64 kernel
Date: Tue, 21 Mar 2017 02:32:16 +0100 [thread overview]
Message-ID: <20170321013216.24vsd3tflchr2tl4@angband.pl> (raw)
In-Reply-To: <CANaxB-yGu9yWuFyeuZGyKP-0KGDamfoxpiVYo2fSoi3p4qSULw@mail.gmail.com>
On Mon, Mar 20, 2017 at 04:57:39PM -0700, Andrei Vagin wrote:
> We run CRIU tests on linux-next. And today we found that when we start
> x32 processes, a kernel bug is triggered:
>
> [root@fc24 ~]# uname -a
> Linux fc24 4.11.0-rc2-next-20170320 #159 SMP Mon Mar 20 16:53:58 PDT
> 2017 x86_64 x86_64 x86_64 GNU/Linux
> [root@fc24 ~]# cat t.c
> int main()
> {
> return 0;
> }
> [root@fc24 ~]# gcc -m32 t.c
-m32 is i386, for x32 you need -mx32.
> [root@fc24 ~]# ./a.out
> Killed
> [root@fc24 ~]# dmesg
> [ 90.033310] BUG: unable to handle kernel paging request at ffffffffff576060
Indeed, same for me for i386.
On x32 the process gets killed with SEGV with no core, no kernel output.
On the other hand, a bare glibc-less process (write(), _exit()) works fine
both on i386 and x32.
I haven't looked any closer yet.
--
⢀⣴⠾⠻⢶⣦⠀ Meow!
⣾⠁⢠⠒⠀⣿⡁
⢿⡄⠘⠷⠚⠋⠀ Collisions shmolisions, let's see them find a collision or second
⠈⠳⣄⠀⠀⠀⠀ preimage for double rot13!
next prev parent reply other threads:[~2017-03-21 2:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-20 23:57 Andrei Vagin
2017-03-21 1:32 ` Adam Borowski [this message]
2017-03-21 5:17 ` Andrei Vagin
2017-03-21 6:45 ` Ingo Molnar
2017-03-21 7:59 ` Adam Borowski
2017-03-21 12:49 ` Thomas Gleixner
2017-03-21 12:50 ` Dmitry Safonov
2017-03-21 15:59 ` Dmitry Safonov
2017-03-21 16:28 ` Andy Lutomirski
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=20170321013216.24vsd3tflchr2tl4@angband.pl \
--to=kilobyte@angband.pl \
--cc=avagin@gmail.com \
--cc=dsafonov@virtuozzo.com \
--cc=gorcunov@openvz.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®