Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp600881img; Mon, 18 Mar 2019 10:01:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzn2x0HSZsTM4tjcuY4gDBY4aNhaYm9btEOk2FZfkqprSjc6Vqr4BB3Iv75Q6TGtJhbVdy9 X-Received: by 2002:a62:7049:: with SMTP id l70mr14823178pfc.78.1552928469535; Mon, 18 Mar 2019 10:01:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552928469; cv=none; d=google.com; s=arc-20160816; b=zEFnB+A3BWt8T+pdDzLTw16nrzc/IhOe3K0dqqOgVk24beBIvHBi1doJeO/VGuUvxs 3ceXHa2nh3N4OxVTIXErJZbYeuQ1SGThKeG3o0oaAg/3h3sl4kkW0ls8fjdKRbbitP/G PDHKo/8/BQwityfv+cTcIt1tP2S7akUwAjNkxMh4vrSKjIrO571+Zss4hFe3NNWw1a4A A3tfrj34Sue4fXYNxzvQQF+BFfdGUyHpN7iJbtuxthOUdqPJ24cM0mH6uq7w5mDmQKZ2 J9AhwHTjMHimrNncgtU5RRJhyvkgh3OWO+7ne4Y0UfuGJtu4JtUqjaZRoHKar4XWKp96 oAZw== 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=f5geA5GEp8sppnFehn7T/T7ViLAZrvnUrHvXZB+77d4=; b=HR9U3g+OC1lOMIk3zH9lNKwBE/zRAsQlVDdl3UEwr6qEjIEHAvdeSwUpxDS3RgHk3n T6MTeAKTAVb4grfA2jwuQ60uRceGYL23qNJeo9x83q7TxA89e/bwwGhuho6VSumQ3Zhf 4rpdUPMerO3+rVbAcsel6DBiHz9Z62ec4dbFGHGX6mWfgcV0g6LdSb5Zh3spc9htZ4ke bzcP6H6SAWMc9Gfl4BJOwuoFckKMcXsMryrfKcvckLDdpgvUOmjXHXm2ROyvro5ZwiX2 CMcerXqeAvpElDAsMu8cGKusioLdMnTRjD4F7pFtH4j7aGzxQfuDOD20i1C3gDlUHqd4 hLRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=LIDvpVZk; 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 d35si10054646pla.48.2019.03.18.10.00.52; Mon, 18 Mar 2019 10:01:09 -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=LIDvpVZk; 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 S1727604AbfCRQ6l (ORCPT + 99 others); Mon, 18 Mar 2019 12:58:41 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:40807 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726812AbfCRQ6l (ORCPT ); Mon, 18 Mar 2019 12:58:41 -0400 Received: by mail-lj1-f195.google.com with SMTP id q66so1085410ljq.7 for ; Mon, 18 Mar 2019 09:58:39 -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=f5geA5GEp8sppnFehn7T/T7ViLAZrvnUrHvXZB+77d4=; b=LIDvpVZkjnZ6HL6Ii1hhwT3dGdqLVfA3UKLbMG/fmgXugEcF/XnZGDqulZYS4klWO1 vuKPCE3PfP9AzNw/U6/ibMzuddDQwuDsyPFlDaXdPdNFnGKumfI8fzjWZFAFjYx5VF75 oO0iAFYN7lrJhbxTtSKmuvUwoQfvd836KHjKE= 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=f5geA5GEp8sppnFehn7T/T7ViLAZrvnUrHvXZB+77d4=; b=HpnseHD+tmOO5kOV9w/rL371YYn86NhS79/vlZ1i46jwQEF9ZtH0WOJLUrhU3RCKWF Y3PkmwpYCrxSDv92uaxKBG3gRAfC56HUORr2GVisPlH/BjzknZy+GyZanJXWQR8QJJdW CsgVAZcpjlwLuQAX7tWmh9ltn5AJwaQQ8vWMsG/fNd0Era9XBXvN8hjaRcqXDtZVZ42E ENxGd6S9kRFpyxdIsNOPavdhNs4NDr8bMwYJp21FdBqgOBqfNSsfbScIDHk2iq8RlkQp LUyMpdT8JpEeXgsojw3R14EMUADNYN0hv/Ec983dEwpo9ZwbbI972rLEDwpjHxNPEMcg XV6g== X-Gm-Message-State: APjAAAVro2l7UGgsauJxMWng8KlwWD/EU+OD9TTBWYxCPar9HtvVjNFw KRN3ResGXdNBYWxGmCF0JU1xQ0NFc1s= X-Received: by 2002:a2e:82c5:: with SMTP id n5mr11617838ljh.91.1552928318392; Mon, 18 Mar 2019 09:58:38 -0700 (PDT) Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com. [209.85.208.178]) by smtp.gmail.com with ESMTPSA id 84sm1126365ljs.10.2019.03.18.09.58.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Mar 2019 09:58:37 -0700 (PDT) Received: by mail-lj1-f178.google.com with SMTP id z26so14486827lja.13 for ; Mon, 18 Mar 2019 09:58:36 -0700 (PDT) X-Received: by 2002:a2e:94ca:: with SMTP id r10mr53335ljh.118.1552928316397; Mon, 18 Mar 2019 09:58:36 -0700 (PDT) MIME-Version: 1.0 References: <20190318153840.906404905@infradead.org> <20190318155139.963285969@infradead.org> In-Reply-To: <20190318155139.963285969@infradead.org> From: Linus Torvalds Date: Mon, 18 Mar 2019 09:58:20 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 01/25] x86: Make SMAP 64-bit only To: Peter Zijlstra Cc: Thomas Gleixner , Peter Anvin , Julien Thierry , Will Deacon , Andy Lutomirski , Ingo Molnar , Catalin Marinas , James Morse , valentin.schneider@arm.com, Brian Gerst , Josh Poimboeuf , Andrew Lutomirski , Borislav Petkov , Denys Vlasenko , Linux List Kernel Mailing , Dmitry Vyukov , Steven Rostedt 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 Mon, Mar 18, 2019 at 8:54 AM Peter Zijlstra wrote: > > We rely on objtool to verify AC=1 doesn't escape. However there is no > objtool support for x86_32, and thus we cannot guarantee the > correctness of the 32bit code. Absolutely not. This is just crazy. We had working SMAP long before objtool, and we will have it regardless of objtool. This is like saying "ok, I don't have an oxygen sensor, so I don't know that the air I'm breathing is sufficient to maintain life, so I'll just stop breathing". So no way in hell do we make SMAP go away on 32-bit for no sane reason what-so-ever. Besides, the x86-64 objtool coverage will cover 99% of all 32-bit code too, simply because we share it. In fact, it will cover most of the code for other architectures too. Linus