From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 19E4BC3A5A2 for ; Sat, 24 Aug 2019 00:00:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EDB8C206BA for ; Sat, 24 Aug 2019 00:00:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726370AbfHXAAn (ORCPT ); Fri, 23 Aug 2019 20:00:43 -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--