Received: by 10.223.185.116 with SMTP id b49csp18827wrg; Sat, 10 Feb 2018 01:18:16 -0800 (PST) X-Google-Smtp-Source: AH8x227ZRYPkdQV1wY6kFJjAjZlQ7blEjcz9cZOvBTF7+cAAZCTjBTL/e3wiDB0aqKUULzM4Bri0 X-Received: by 10.98.15.15 with SMTP id x15mr5661116pfi.197.1518254296055; Sat, 10 Feb 2018 01:18:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518254296; cv=none; d=google.com; s=arc-20160816; b=xc/f0mnYfPYY1q+8j+0lMeNtKgpEdVPxpemXKDh768+zY61i+2Z9TE5pZSz4vb3Vbl JJr+2+/T+LEosM7G3gAwh/RbTYngzMJrSOGZLsUSXm5YSbEqi+oMfOqMeIpYTOmgKFSR +znDgxrhai7mWjhqZf9RVNxz6cvg6fOERjKAEsW+3KDPYSmmELQ4a0iTXe1ZzEQhXW6k DnZzcbnHdLevlBmNTHZ9xUDLBtXErAEXa0yeOqgikCSrlPhjXliky6XfnTsFi1rjhPTJ qNfkVKG4uF3vZQ1dC05OzNtu1gzgAO0Th7aD8hmKc7vrrn5qmPHUDsujB3FYXla7VSUe dBJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=r1QKlq41VoCxZ9fWSggx/qDVmIerO5jJzZlmf/IlhEc=; b=Av3tplhh5E0w7e/WKg0L0YOlllPCw0lN9FzgPjGpuPwKVkzrx/Rpw34rlGLeHKdrqM R4XMFVkQk8rQMcjDzmfIvvN8nneoM/rk+pow/Fh83qbQ26I32b7UUuL5bWEIAwuWp8vM z2EmFLhjMYnqOkQFnHDGHYh2ngkigqz4O7poOzMdnu6kNo7R5KjdKGPBQ78qVEg2i+8x aPZIfWEJ35PbnUD6d4ufUPWilsrh5dl+hkodeFIpKEaNu7lgFLLlPBUHlao6pmfhIxr7 ijl59BAB0NsGEHfT+WJd1+Bc+THfu3WKK6t7fLa7aTzyxYOl7dbjOwRY+Vh0QO/XJ2T2 EGDQ== 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 u137si2514516pgc.630.2018.02.10.01.18.00; Sat, 10 Feb 2018 01:18:15 -0800 (PST) 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 S1751110AbeBJJRW (ORCPT + 99 others); Sat, 10 Feb 2018 04:17:22 -0500 Received: from tartarus.angband.pl ([89.206.35.136]:54802 "EHLO tartarus.angband.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750880AbeBJJRV (ORCPT ); Sat, 10 Feb 2018 04:17:21 -0500 Received: from kilobyte by tartarus.angband.pl with local (Exim 4.89) (envelope-from ) id 1ekRG4-0003KA-2w; Sat, 10 Feb 2018 10:15:44 +0100 Date: Sat, 10 Feb 2018 10:15:44 +0100 From: Adam Borowski To: Joerg Roedel Cc: Andy Lutomirski , Joerg Roedel , Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , X86 ML , LKML , Linux-MM , Linus Torvalds , Dave Hansen , Josh Poimboeuf , Juergen Gross , Peter Zijlstra , Borislav Petkov , Jiri Kosina , Boris Ostrovsky , Brian Gerst , David Laight , Denys Vlasenko , Eduardo Valentin , Greg KH , Will Deacon , "Liguori, Anthony" , Daniel Gruss , Hugh Dickins , Kees Cook , Andrea Arcangeli , Waiman Long , Pavel Machek Subject: Re: [PATCH 00/31 v2] PTI support for x86_32 Message-ID: <20180210091543.ynypx4y3koz44g7y@angband.pl> References: <1518168340-9392-1-git-send-email-joro@8bytes.org> <20180209191112.55zyjf4njum75brd@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180209191112.55zyjf4njum75brd@suse.de> X-Junkbait: aaron@angband.pl, zzyx@angband.pl User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: kilobyte@angband.pl X-SA-Exim-Scanned: No (on tartarus.angband.pl); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 09, 2018 at 08:11:12PM +0100, Joerg Roedel wrote: > On Fri, Feb 09, 2018 at 05:47:43PM +0000, Andy Lutomirski wrote: > > One thing worth noting is that performance of this whole series is > > going to be abysmal due to the complete lack of 32-bit PCID. Maybe > > any kernel built with this option set that runs on a CPU that has the > > PCID bit set in CPUID should print a big fat warning like "WARNING: > > you are using 32-bit PTI on a 64-bit PCID-capable CPU. Your > > performance will increase dramatically if you switch to a 64-bit > > kernel." > > Thanks for your review. I can add this warning, but I just hope that not > a lot of people will actually see it :) Alas, we got some data: https://popcon.debian.org/ says 20% of x86 users have i386 as their main ABI (current; people with popcon installed). Of those, 80% use 32-bit kernels: i686 881, x86_64 229, i586 14 (uname -m included in bug reports; data for 2016) -- and bug reporters tend to have more clue than the average user. There's no way so many folks still use pre-2004 computers. Thus, if you could include that big fat warning, distro developers would be thankful. Make it show fiery letters if you can. Preferably, we'd want a huge mallet reach out of the screen and bonk the user on the head, but with that impossible, a scary message would help. Let them use 32-bit userland, but if someone runs such a kernel on a modern machine, some kind of verbal abuse is warranted. Meow! -- ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢰⠒⠀⣿⡁ Vat kind uf sufficiently advanced technology iz dis!? ⢿⡄⠘⠷⠚⠋⠀ -- Genghis Ht'rok'din ⠈⠳⣄⠀⠀⠀⠀