[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHk-=wjS5uyVNR23sWFk6a1nOXO0wkLh3qttoKNmkGAcV1hOXw@mail.gmail.com>
Date: Sat, 5 Oct 2019 17:06:41 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Russell King - ARM Linux admin <linux@...linux.org.uk>,
Kees Cook <keescook@...omium.org>
Cc: Michal Hocko <mhocko@...e.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: MAP_FIXED_NOREPLACE appears to break older i386 binaries
On Sat, Oct 5, 2019 at 4:32 PM Russell King - ARM Linux admin
<linux@...linux.org.uk> wrote:
>
> Under a 4.19 kernel (debian stable), I am surprised to find that some
> previously working i386 binaries no longer work, whereas others are
> fine. ls, for example, dies with a SEGV, but bash is fine.
Hmm. Is this with some recent stable kernel update? Or has it been
going on for a while and you only noticed now for some reason?
If it's recent, I'd be inclined to blame bbdc6076d2e5 ("binfmt_elf:
move brk out of mmap when doing direct loader exec") which afaik made
it into 4.19.75 and might be in that debian-stable.
And if it's that, then I think that it should be fixed by 7be3cb019db1
("binfmt_elf: Do not move brk for INTERP-less ET_EXEC") which is in
the current queue.
Adding Kees to the cc, in case he goes "No, silly Linus, you're being
stupid", or can confirm that yeah, that was the behavior for the
problem case.
Kees, original report with more information at
https://lore.kernel.org/lkml/20191005233227.GB25745@shell.armlinux.org.uk/
And if that isn't the case, maybe you can send over one of the broken
binaries in private email for testing?
Linus
Powered by blists - more mailing lists