Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1874125ybb; Sun, 29 Mar 2020 15:55:11 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtJuyyOYJUv6lOoYRN8tCwcu8Y7m7ddrsRF8crX5YUNDzFI2ZVxuCUDjKx0ekoSUmLGJT5E X-Received: by 2002:a05:6830:1313:: with SMTP id p19mr7411196otq.179.1585522511297; Sun, 29 Mar 2020 15:55:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585522511; cv=none; d=google.com; s=arc-20160816; b=iVD92IYvtfY10YZebHHcnjYsACQpXkeTUpxqmgnDlXemMIXcGgxLl8tBhJR199FEe/ Ry9v+JXETNenT5VM4tw8eElGogwIBZoc+Y768IPTfZflbr4qDfqs4QREyIrpVWL0r2pb jyKC+x+l23uLyUehmz8ZcGawxgZF2vfOrAF1ny5W4VyRwtGBjJpz/5JJhzdCMV697kmT d/BFQD5qFXEwI9pxMxAw2F/RjLq9swRF2Hp4t4P+Sm9r54W9qowMezf1Ceqh+aC9CY4w PfjZgUyDTcLmlVPPrGxGjsuGSKlZSUJ9SYKrwXQY3qrnrOKcHqQvHxC5rBe52FtcA+yb 0GEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Lf4B+cUpy3zLX5w5D1ihgybvJqfLV1dlANhZhAEv/0Q=; b=yHPpTckN4iFzElg44T0QUvIoB9QRgmHA9CkWbDtbfCaf6n7H4T3TS6HWXU5mKKl6Yj WSRBx7CM7C4lCyLvHRjcFC1VHtsS9CSKuM80gn/r0RuniBg0z/F3OTeNtatqb2Rxcpwb WRYWiMXvODPlFyNyKbEvVwfNNwFqTfQHNUseGeqU+DuW0pa6nqbb9wOurNH59F+Jp1ex W0qfRmzzR5hSJwtzVcIs37Tkvprfu3TZfrZlfkr1biZpG5BV9d3cCqpHrB/Omwv83J+o qvcTsE0y1nQgIyeixoWKxxTCEiI7KnVQ77J2ZIVlWOMNZOKpdsJ6FTNyTkCd0iaeEPEo I32w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=gOuqbZqb; 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 j25si1735594otr.178.2020.03.29.15.54.58; Sun, 29 Mar 2020 15:55:11 -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=@linux-foundation.org header.s=google header.b=gOuqbZqb; 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 S1728548AbgC2WMu (ORCPT + 99 others); Sun, 29 Mar 2020 18:12:50 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:44170 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727903AbgC2WMt (ORCPT ); Sun, 29 Mar 2020 18:12:49 -0400 Received: by mail-lj1-f194.google.com with SMTP id p14so15981801lji.11 for ; Sun, 29 Mar 2020 15:12:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Lf4B+cUpy3zLX5w5D1ihgybvJqfLV1dlANhZhAEv/0Q=; b=gOuqbZqb513wbd8Kp8EPzxWuXeiO9OH9KxNOC4/uBi+QGly/O+zPq7Ansd0vrhdHsk kNVBYNcxdt0ISCrxLv53bhl3jHgaPDfodxJzKPz31KQnt9QYAYh0Uv/l5TVQ/IBTZ/0+ 59f3jmm1GHgT31k/aOfmRHeAymETtM6OdIFqg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Lf4B+cUpy3zLX5w5D1ihgybvJqfLV1dlANhZhAEv/0Q=; b=hiyCNxITw4XUz9JhvXyFhQUBM2ywh3Rgnc+Bn9N3jxbQ4996BxEBz0wj5OCzonjkux UGGqeiNdpJYRdQKvmeQ75VIyOrBxTavFV7syyDOgGzNjjMsyT6jX5FHrQXhB3sn6tDOJ jOyfN2dnz1S2zI2fJ/6FkFC8r70bTLmjmPbOvBFUG7TRVpXcVczSlkSZfdhOfzZSqlmw 0jt1vU6wfJD85bUCaP+nnQgfH1gFomt4FkA6Jr15YxZihYecnof4Ky+LGE+7mNdc20uB 6Y26/ZGCwLMxEv8mb5JaAEg3Ia2wB5ReNY2B+xlyPrDaxSa/n4d/mGwTnwGs0azr1zMp euyQ== X-Gm-Message-State: AGi0PuZLNBNHd07EFKeXAy7mEYbHPKYNb7epv2lgyH1j19faCobCnnax bH/lNmcTlJ4okYJuMx3NKH2nQRB9XNc= X-Received: by 2002:a2e:94c8:: with SMTP id r8mr5464060ljh.28.1585519966601; Sun, 29 Mar 2020 15:12:46 -0700 (PDT) Received: from mail-lj1-f175.google.com (mail-lj1-f175.google.com. [209.85.208.175]) by smtp.gmail.com with ESMTPSA id i18sm6992270lfe.15.2020.03.29.15.12.45 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 29 Mar 2020 15:12:45 -0700 (PDT) Received: by mail-lj1-f175.google.com with SMTP id r7so8341477ljg.13 for ; Sun, 29 Mar 2020 15:12:45 -0700 (PDT) X-Received: by 2002:a2e:b4cb:: with SMTP id r11mr5651376ljm.201.1585519964848; Sun, 29 Mar 2020 15:12:44 -0700 (PDT) MIME-Version: 1.0 References: <20200323183620.GD23230@ZenIV.linux.org.uk> <20200323183819.250124-1-viro@ZenIV.linux.org.uk> <20200328104857.GA93574@gmail.com> <20200328115936.GA23230@ZenIV.linux.org.uk> <20200329092602.GB93574@gmail.com> <489c9af889954649b3453e350bab6464@AcuMS.aculab.com> <9352bc55302d4589aaf2461c7b85fb6b@AcuMS.aculab.com> In-Reply-To: From: Linus Torvalds Date: Sun, 29 Mar 2020 15:12:29 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC][PATCH 01/22] x86 user stack frame reads: switch to explicit __get_user() To: Andy Lutomirski Cc: David Laight , Ingo Molnar , Al Viro , Thomas Gleixner , X86 ML , LKML , Borislav Petkov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 29, 2020 at 3:06 PM Linus Torvalds wrote: > > Anyway, just in case people want to see it, I'm attaching my current > unconditional patch. Side note: I've actually been running variations of this patch for a couple of months now, so it's even tested, but I debugged one of the problems with the clang asm goto support it exposed only this last week. I thought it was a problem with my patch for the longest time, and couldn't figure it out. So to work it needs tip-of-tree clang *and* an additional llvm bugfix from Nick Desaulniers for that problem I reported that hasn't landed yet. So I included that patch just for people to look at. If you actually want to test it, I can send you Nick's llvm fix too, and you need to have the ability to build your own clang. Linus