Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1285046ybl; Fri, 23 Aug 2019 16:58:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKnNd/mYw3pqAHt8qrjQol2taA1KpXjn3+sTgZBZu643pg9zWy4YAuehoiQuwnUrVmwSSk X-Received: by 2002:a63:89c7:: with SMTP id v190mr5888480pgd.299.1566604700289; Fri, 23 Aug 2019 16:58:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566604700; cv=none; d=google.com; s=arc-20160816; b=kVS59KGNdWIpbQTlSIggIxb8upZpj4CSGJ61eBrMjgbLoy1vF5kcKXUpApD9uPicUN ggsdYH09TwP5d4SDTr2ZS1QmEf1VXOqB+/7nzJZLqUBOAh8rvhMsZNVGxk0mTovIey10 aVtxf8JPwzUBwquuzA00iKvpCJS7CVr9sc+ZVVmplrBzEoALrGCB3Nd5iTEN0FuRqibB EG8CCGdmgyoK/ql7kb7n9G6G7z+sacN8Q1z5VRsD2XO6Ms35ncU0DUghiCwXEPiActmG QTiu7ik/X/xLAlBK8K3DtrHdUcNPj6oCQOX2zc3zTIHVU6Bc0+9wbLYBa1p0Eo1ht3Tz OHnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=DECqAjRbs0dx++Yw52kS5iaow8vfy6FFKI9UfNLHwa8=; b=xFu4KBDI7n8IsvIPJvG6DzxnGkCGc2qsg6RQcLrB0NG05HEh43NDkjZjhfRCdgLWVe 26+1rNhP4UPh7bG32xqpEmSho0z6kfwpFRVzvJcS6xCyEs255sb08mNz/Z8kELemXjKw JXLr+pZh2ss3HSahGtEg6oeoGmV0d/GXiZJjo2Gx21otNozBrsa1EgEWFUJsmJTXKwIw a36I/rr9QV43HodO+HHYuEq6EUjFed9YelRYMOx4AB9a1Ey5vlQz0Lw1QANlhp9Ph4fq VFzy43+nruTdFFTvWJkpDS85GFBOg8zKECiji600I83DtjKM2rUHEmNQBLOEgclA7AXu Ydqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b="Sh/iQuG4"; 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.16.58.04; Fri, 23 Aug 2019 16:58:20 -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; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b="Sh/iQuG4"; 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 S1726063AbfHWX5R (ORCPT + 99 others); Fri, 23 Aug 2019 19:57:17 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:41399 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725782AbfHWX5Q (ORCPT ); Fri, 23 Aug 2019 19:57:16 -0400 Received: by mail-pl1-f196.google.com with SMTP id m9so6434520pls.8 for ; Fri, 23 Aug 2019 16:57:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=DECqAjRbs0dx++Yw52kS5iaow8vfy6FFKI9UfNLHwa8=; b=Sh/iQuG4r0n16ndfsUiMdW5uWISPt4O3fPpwzjksUhyNukWLC9O0B3dkNPDJgV/DAM NYz9F85UVLsgs7CR+zetmtChrSbr3gbE0YbbxFBQQe6FrbgktE/qFt9fel+vx+3GJWrZ XbB3lr6Ipk2CS3ujREwd0nb3FbErCv1495rryuzT7QM21r30uCM/SxIheDlnIGlaz7j2 fgeHFeLW6YIE4bh8HbzjOJyAhKfTRBQaHx63liv3oqUzqWj0e0WrgefEqLw5v8OHsijg Gw3TgPqvguIqohDlenwC0zLzONNAixbvCeOp2mkTCCCIbpmCafZaeXBPHLXp0G6lHFVq 3Frg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=DECqAjRbs0dx++Yw52kS5iaow8vfy6FFKI9UfNLHwa8=; b=Sefr6hecBNZs4snCSS7zS+gzaWUftLJU5v+ZEg3ndZIUB7AQ11xVSnX7hONu1xTVfI OZpH850M4x8cGKofp/56XKgeLhJ03K/64FM8wmHRtcBl9YGRc5af7ORwZ7CP0m47mnQN CBc06a45hR4O/EhIz+taE1Mh4qP1X/8eaxMDsGxbrnviak3OUn1bQwFfeLjAmWeSrfMm 1DcR/D2TUxtn93cbMddhjJlyq01AgcZwonz64k6HaqewzKeBwOUCN1OTj4CxXNM65PwZ 6YhsHL2EPPjFT7oC7ieNyPU/FhsLOh9UKwr+8/oMX/nxQUmHRHAXxKuIq0dkEIjaqdzY 2rTQ== X-Gm-Message-State: APjAAAWTMHzhBpnpaxuu0olTQUIHsz/s+Qd9Ya5m5+ekFqfFz/3GPF4p jbSJ0pTMcWldaQe7+I2eEHYGvA== X-Received: by 2002:a17:902:343:: with SMTP id 61mr7849130pld.215.1566604636003; Fri, 23 Aug 2019 16:57:16 -0700 (PDT) Received: from ?IPv6:2600:1012:b064:e620:ac21:e025:1693:952e? ([2600:1012:b064:e620:ac21:e025:1693:952e]) by smtp.gmail.com with ESMTPSA id z4sm3581994pfg.166.2019.08.23.16.57.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Aug 2019 16:57:15 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: [PATCH] uprobes/x86: fix detection of 32-bit user mode From: Andy Lutomirski X-Mailer: iPhone Mail (16G77) In-Reply-To: Date: Fri, 23 Aug 2019 16:57:14 -0700 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 Content-Transfer-Encoding: quoted-printable Message-Id: <32D5D6B1-B29E-426E-90B6-48565A3B8F3B@amacapital.net> References: <20190728152617.7308-1-me@sam.st> To: Thomas Gleixner Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Aug 23, 2019, at 4:44 PM, Thomas Gleixner wrote: >=20 >> On Sat, 24 Aug 2019, Thomas Gleixner wrote: >>> On Sun, 28 Jul 2019, Sebastian Mayr wrote: >>>=20 >>> -static inline int sizeof_long(void) >>> +static inline int sizeof_long(struct pt_regs *regs) >>> { >>> - return in_ia32_syscall() ? 4 : 8; >>=20 >> This wants a comment. >>=20 >>> + return user_64bit_mode(regs) ? 8 : 4; >=20 > The more simpler one liner is to check >=20 > test_thread_flag(TIF_IA32) I still want to finish killing TIF_IA32 some day. Let=E2=80=99s please not a= dd new users.