Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1816568imu; Fri, 23 Nov 2018 00:14:57 -0800 (PST) X-Google-Smtp-Source: AFSGD/Up0LNxL9fjg1RUfL0pYnFEDolVOdwHy29+/vdczT15ApocCib4M3mvYChTNb2Dpe/0btkO X-Received: by 2002:a62:4d81:: with SMTP id a123-v6mr3975978pfb.177.1542960897735; Fri, 23 Nov 2018 00:14:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542960897; cv=none; d=google.com; s=arc-20160816; b=Lg5FH6OOH5zSf210joetzWpIBAJ+zGDyCBQjn4kWAJChUQLxOG63jYVRRlAqhXfnzv CeV1QeTeUfgjUMyPRtysQyf/sf0CXQIuAlgmD9O0Cmb0M7m3Cq53k+UpxIMiOvDrHS5p h8eaCbC1QpMIfUEZM70gO9WqB4xKVmuFARz/oBs1vu0V7/5O3PnFJUEQtPg9REaOvAid RKz6LHoqXo9PcEAqrlvmujFVYaj0NYsKrH6TNYIxP2MgPEZH6YQvEkBdGq6DJSQ3Zrzt qIgiZEISffl0VPEIBwNktFaTFFz5WYN5jUHz+8vzlFBUFBQJVxlqNk9Jn5EZOCJ8XeYm IGtA== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2wBjh3OTAiH/HnJZgYwvPM5MOtvS2cSpiPoVJU00roE=; b=cf8THB6JbemmnA8QMTv6MnqXhbNOcExE1hNQuhh0ZzjGgCc9j25GfA2NTyp26swMIQ 7W3MrfkyiO4f87Nt+c+ONxylZZGhXTp8XwTaq42lbZjEIWLrb+tRdYtylb777f0JMcU2 t/AlEpz3L4u5p3AG4nKs9M02PfPOe+PmtO4T5YUFCg7eBetacX6G04OYKxCqyImB46vv vytOhXXQN4OQpOMAGJ6pJrsj3aF8pCEMF3Jo9VnTKiVtT3Rvty/Sw5SvLQhZngl5OpK1 ClDn3po/Oy4Fm+/BhQKDBSYh3JBIAChoqqdFTYPMpSUvW71p93qnPIm2Rv9JZ2KC1Bkg IncQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ocWKrd4S; 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 g31si16635571pld.358.2018.11.23.00.14.42; Fri, 23 Nov 2018 00:14:57 -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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ocWKrd4S; 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 S2390221AbeKVUbZ (ORCPT + 99 others); Thu, 22 Nov 2018 15:31:25 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:57090 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732073AbeKVUbY (ORCPT ); Thu, 22 Nov 2018 15:31:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=2wBjh3OTAiH/HnJZgYwvPM5MOtvS2cSpiPoVJU00roE=; b=ocWKrd4SP5yfVp/wIwG4p5c8x mhEISuTOUzXRVz5nO+6g5cqiu9L+XkbGYDFDA5XHXPUyG6OtVxNT1UyRqcmyWNrcElQSEdhMC5myJ ZQ8QxlXnUsIoJ3rSXKYwgcpL+1hMSHSfwz1mj5IO355Cp9Mizoj/6L42SzE+qdaVzWVmu0sfrpWVw 6MCpFvvRTUUZJcMKZmX2nhozbgpnzW3IliWsjQSok4mV482aQZd1LqfvngZSmHW8b4ywje7duOkwb Rl9JzXTQzo4t3/MH35+9U23OZi8nR2pO8UiJHOpy9i0Fsd0+FLvu+E7KD+h7r+p6/XeDiU6GfXzwK Fplodaw9g==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gPlf5-0007yH-Nc; Thu, 22 Nov 2018 09:52:40 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 3FFB22029FD58; Thu, 22 Nov 2018 10:52:33 +0100 (CET) Date: Thu, 22 Nov 2018 10:52:33 +0100 From: Peter Zijlstra To: Andy Lutomirski Cc: x86@kernel.org, LKML , Yu-cheng Yu , Dave Hansen , Borislav Petkov Subject: Re: [PATCH v2 0/5] x86/fault: #PF improvements, mostly related to USER bit Message-ID: <20181122095233.GM2131@hirez.programming.kicks-ass.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 21, 2018 at 03:11:21PM -0800, Andy Lutomirski wrote: > This series is a whole bunch of page fault cleanups, plus a couple > of OOPS diagnostic improvements. The overall goals are to clean up > handling of the faulting CPL, the USER bit in the error_code, and > the log messages generated by #PF OOPSes. > > This series can also be seen as CET preparation. CET introduces the > WRUSS instruction, which is the very first way for CPL 0 code to > cause a #PF fault with the USER bit set. Let's get the page fault > code into shape before we start using WRUSS :) > > Changes from v1: > - Rebase on top of tip:x86/mm, now that a bunch of v1 was applied. > The only material changes are that 'x86/fault: Check > user_mode(regs) when validating a stack extension' is gone > because the code it fixed has been deleted and that 'x86/fault: > Remove sw_error_code' lost the hunk that changed the same code. > > Andy Lutomirski (5): > x86/fault: Remove sw_error_code > x86/fault: Don't try to recover from an implicit supervisor access > x86/oops: Show the correct CS value in show_regs() > x86/fault: Decode page fault OOPSes better > x86/vsyscall/64: Use X86_PF constants in the simulated #PF error code > > arch/x86/entry/vsyscall/vsyscall_64.c | 2 +- > arch/x86/kernel/process_64.c | 5 +- > arch/x86/mm/fault.c | 144 +++++++++++++++++++------- > 3 files changed, 108 insertions(+), 43 deletions(-) All looks good to me, Acked-by: Peter Zijlstra (Intel)