From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f198.google.com (mail-pf0-f198.google.com [209.85.192.198]) by kanga.kvack.org (Postfix) with ESMTP id 45FD96B0544 for ; Thu, 17 May 2018 17:07:17 -0400 (EDT) Received: by mail-pf0-f198.google.com with SMTP id x21-v6so3357133pfn.23 for ; Thu, 17 May 2018 14:07:17 -0700 (PDT) Received: from mail.kernel.org (mail.kernel.org. [198.145.29.99]) by mx.google.com with ESMTPS id n12-v6si4745145pgs.560.2018.05.17.14.07.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 May 2018 14:07:16 -0700 (PDT) Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C69E120858 for ; Thu, 17 May 2018 21:07:15 +0000 (UTC) Received: by mail-wm0-f53.google.com with SMTP id x12-v6so1016174wmc.0 for ; Thu, 17 May 2018 14:07:15 -0700 (PDT) MIME-Version: 1.0 References: <82328ad006ebacb399d04d638f8dad4a@ispras.ru> In-Reply-To: From: Andy Lutomirski Date: Thu, 17 May 2018 14:07:03 -0700 Message-ID: Subject: Re: [4.11 Regression] 64-bit process gets AT_BASE in the first 4 GB if exec'ed from 32-bit process Content-Type: text/plain; charset="UTF-8" Sender: owner-linux-mm@kvack.org List-ID: To: Dmitry Safonov <0x7f454c46@gmail.com> Cc: Andrew Lutomirski , izbyshev@ispras.ru, Dmitry Safonov , Thomas Gleixner , Cyrill Gorcunov , Borislav Petkov , "Kirill A. Shutemov" , Alexander Monakov , Linux-MM On Thu, May 17, 2018 at 1:51 PM Dmitry Safonov <0x7f454c46@gmail.com> wrote: > 2018-05-17 21:46 GMT+01:00 Andy Lutomirski : > > On Thu, May 17, 2018 at 1:25 PM Alexey Izbyshev wrote: > > > >> Hello everyone, > > > >> I've discovered the following strange behavior of a 4.15.13-based kernel > >> (bisected to > > > > > > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=1b028f784e8c341e762c264f70dc0ca1418c8b7a > >> between 4.11-rc2 and -rc3 thanks to Alexander Monakov). > > > > > > It's definitely not intended. Can you confirm that the problem still > > exists in 4.16? I have some vague recollection that this was a known issue > > that got fixed, and we could plausibly just be missing a backport. > I'm looking into that ATM, the problem like that was fixed with https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ada26481dfe6 > Will check what's happening there. I haven't tried to figure out exactly what code calls which function, but it seems like set_personality_64bit() really ought to clear TS_COMPAT.