Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2228763imm; Fri, 7 Sep 2018 12:52:50 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdbazmpi73GFrGtHqaOupgoFjiz0Esvd2V4Yg6qEDRavrwcV4EAvLZDMG5OcvxWMP2zfI7dy X-Received: by 2002:a63:9619:: with SMTP id c25-v6mr10104698pge.23.1536349969982; Fri, 07 Sep 2018 12:52:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536349969; cv=none; d=google.com; s=arc-20160816; b=jkNrKCMeGAummZAX4v2NGi+iSGH1pfFU2tqqg/e6Ue5JORQTGcSwvwfchXyXFUtuad eG3cBeT/FJuLYP6QqN3k7JrJkyzky43xEEEPWvrRJ2oBgtqmt62gPFPIAtQD6Rcow9z5 NQaEQ06zZu4brniZ0izEiYtuPIGBDNEXuuL2esKKVOmslLw9EfBelGLwUqkc0JIkLCBA 89HrrTOg/HPLZaXl2bi9zaoyjWnCoGfKjhXULCUw7rJO2aKQTLSl61iVBzTRAku34MWI VjqF6XHBwBtS862EhjHxkPPPe7ChlkcATlgek8neFpU1Be4vO0EjSD4Kkgp9yWZ0q3U8 kSmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:from:cc:to:subject; bh=X6ufi8i+EryXYc7WvUwND5NakAwSBx+XOlgo1CUbaYg=; b=zP/d/yI7sN1yFAPYZRJK/2Z2jLX7bL4AKFz+YMZN0oKxV/JAGCfB1pHRh90rHbtv13 nEIcWbtEbCfMIumN+vg6LJ8mUgavM+27nIMg8VKyW7PnO3NisJcLMEOgvmESh9hsEo3d JrrWzZoLaFkHHAx1Dp8SnNUjc7hN12fIOMe+NB+KMCM7Ot1b1ZwJFnRT7oZsQLytSd5U kzTu5Cw5zkgprs5NHgP7f3fYXJ0Ggz/znV3hruE6Z/UibvgmzX4jTiBFjoCaza77vWPm 4G65e62DMNU+SgaPnpKGsYXzpHlTgZtReeOM/MnasuGCaIfZbnUcShr8i49cP1Pak5a3 GR3Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a61-v6si9271579plc.80.2018.09.07.12.52.34; Fri, 07 Sep 2018 12:52:49 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726351AbeIHAdv (ORCPT + 99 others); Fri, 7 Sep 2018 20:33:51 -0400 Received: from mga06.intel.com ([134.134.136.31]:20897 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725987AbeIHAdv (ORCPT ); Fri, 7 Sep 2018 20:33:51 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Sep 2018 12:51:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,343,1531810800"; d="scan'208";a="68379062" Received: from viggo.jf.intel.com (HELO localhost.localdomain) ([10.54.77.144]) by fmsmga007.fm.intel.com with ESMTP; 07 Sep 2018 12:51:23 -0700 Subject: [RFC][PATCH 0/8] x86/mm: page fault handling cleanups To: linux-kernel@vger.kernel.org Cc: Dave Hansen , sean.j.christopherson@intel.com, peterz@infradead.org, tglx@linutronix.de, luto@kernel.org, x86@kernel.org From: Dave Hansen Date: Fri, 07 Sep 2018 12:48:52 -0700 Message-Id: <20180907194852.3C351B82@viggo.jf.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I went trying to clean up the spurious protection key checks. But, I got distracted by some other warts in the code. I hope this makes things more comprehendable with some improved structure, commenting and naming. We come out the other side of it with a new warning in for pkey faults in the kernel portion of the address space, and removal of some dead pkeys code, but no other functional changes. There is a potential impact from moving the vsyscall emulation. But, this does pass the x86 selftests without any fuss. Cc: Sean Christopherson Cc: "Peter Zijlstra (Intel)" Cc: Thomas Gleixner Cc: Andy Lutomirski Cc: x86@kernel.org