Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1288416ybl; Fri, 23 Aug 2019 17:02:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1C1V4oiRY3OE5VknpGXiz9NO7xT7ysK/c11KbzoSmb0pb+3mtfGD9iK5h7vc81zaz8WWI X-Received: by 2002:a63:2a87:: with SMTP id q129mr6310428pgq.101.1566604926192; Fri, 23 Aug 2019 17:02:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566604926; cv=none; d=google.com; s=arc-20160816; b=p4YZ5mq0VWNCU5fNE36kUGy8mxoujR3kBfgnY4UtuVb0wBKnEUjDllopHoIHEn/ooX +vKAl0L53cAl0hlRRV0um0AptXE75VlwNXi8CgLs68H7pJ6nmDLoQGgWx40AvmzNXuw8 gAiUoribcY80sXBT1lWQM2lrDctLlYZLmNrzGASNXx15CcGeharcqKNWRsYpv+Tu8/7F pwuuy1I83deFd1g68Bhf/ykXkEBSTV9FcPtOp+pJzYN4prihPGhYyQa5i0YBfXEKTTBs Qi0+LeFPcQdWE+uY0uSuCDg1SZinT/xVSHihCdOOJlknuzTUFQck/qNj49EmBpWA3/O1 lUeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=4y0obZaeDRtV1BIMeUjFGaBsToWOcRNdBzbBBP0vEDA=; b=aWJapj/fha4+mcrp9LmcokU6+YvEVEcvMOnE1ObGiEvrF5yYbKHRj6WnRFi/ZjXqSI aGzNypDDDpcwWuq7enbqAFQyKm4Irl79ItNG74F4l86oYZ2hdFZKehWzYX6vCCzCmseY 7L2SaNSSXHx4QtFa63ArSTjZKDWh7i5VJOTZucn2KhHXrlR02ztyhhsJWE+OePKI52RP VeJ32LmydyPpk+uXqSE59K8OIGdj7WIY0AaXIp3FKpaC2KU55CvYsNCtA7ij/4duErI5 HmyFK/GOuCdK2hfWcrO901i7m3xSuGts85uj9m07i1vqEPaMDKMU6t/aMlBc0p7H1MfI N7QQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x78si3078298pgx.471.2019.08.23.17.01.50; Fri, 23 Aug 2019 17:02:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726330AbfHXAAm (ORCPT + 99 others); Fri, 23 Aug 2019 20:00:42 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:36853 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725857AbfHXAAm (ORCPT ); Fri, 23 Aug 2019 20:00:42 -0400 Received: from p5de0b6c5.dip0.t-ipconnect.de ([93.224.182.197] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1i1JTz-0002n5-Fw; Sat, 24 Aug 2019 02:00:39 +0200 Date: Sat, 24 Aug 2019 02:00:38 +0200 (CEST) From: Thomas Gleixner To: Andy Lutomirski cc: Sebastian Mayr , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, LKML , Masami Hiramatsu , Andy Lutomirski , Peter Zijlstra , Dmitry Safonov , Oleg Nesterov , Srikar Dronamraju Subject: Re: [PATCH] uprobes/x86: fix detection of 32-bit user mode In-Reply-To: <32D5D6B1-B29E-426E-90B6-48565A3B8F3B@amacapital.net> Message-ID: References: <20190728152617.7308-1-me@sam.st> <32D5D6B1-B29E-426E-90B6-48565A3B8F3B@amacapital.net> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-92855562-1566604839=:1939" X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-92855562-1566604839=:1939 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT On Fri, 23 Aug 2019, Andy Lutomirski wrote: > > On Aug 23, 2019, at 4:44 PM, Thomas Gleixner wrote: > > > >> On Sat, 24 Aug 2019, Thomas Gleixner wrote: > >>> On Sun, 28 Jul 2019, Sebastian Mayr wrote: > >>> > >>> -static inline int sizeof_long(void) > >>> +static inline int sizeof_long(struct pt_regs *regs) > >>> { > >>> - return in_ia32_syscall() ? 4 : 8; > >> > >> This wants a comment. > >> > >>> + return user_64bit_mode(regs) ? 8 : 4; > > > > The more simpler one liner is to check > > > > test_thread_flag(TIF_IA32) > > I still want to finish killing TIF_IA32 some day. Let’s please not add new users. Well, yes and no. This needs to be backported .... --8323329-92855562-1566604839=:1939--