Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3008150imm; Fri, 10 Aug 2018 02:04:14 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyfmGxKGMiSX/ZHehqwwGSZdNO6hoAY7cYl9MbTWUlnHhed5IFFfCOl/h59EUe4xYQWFF4q X-Received: by 2002:a17:902:1081:: with SMTP id c1-v6mr5415135pla.250.1533891854295; Fri, 10 Aug 2018 02:04:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533891854; cv=none; d=google.com; s=arc-20160816; b=aeL74XWgFGBDT0w9YYpud5GZo907Y0XH26SkOuWURfUwEvlvioztQMa1QZji6vjoGh ugOZRxWJ+u6xJ/28soFCcpVRmNRGnyE8B8BMhhAjt2tUMUaXP6MnF6E1GcHamYQF+T8L TgbR824/Bv8Be7EhQi7tANSALUBCar4c/8Z33hbnigGFgWWskvg0ziZD1ZIZcA7VaooI r/+ubK02M5Z4ZHJJbTXWPdhHPXh21Pkm9rOcqmAL3vcn2XBDTRl1EubO8MdyGyilOsB8 Xarugwf30JJraHrJwtiLjuK6jRAfW2651TFvUwvMvWiiVu7k/G080sHCWdpuewVtLIyj HeYA== 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:arc-authentication-results; bh=MFZtgDtVwBBvLszQdZeY9U64LSOAkHsWrr/0l3V51do=; b=f45HSLV3/uQ2VUSqnjAkRFXUUSnnaMR6fTBsbFRLakfrXJD8JGUJ6NqOXrSrfN/bQe PAcGQTauUmAitl9OQ3pde8Y3DBe59WiW+HbaPCwQ1sDX5nDNAQN0ahJOzcZTE475/rBh OLOhA6XE7+SV9oB/IaJoU1ED4VuTbAUDVHVfr1V2/yReM13fi5ZGE/fdsL+dxH46mmKc a47KjvyZ4pJOHqY0A6CQCVrYCqZ3i/Wa7JEsCEGVVgm4Q4/dr1HZQPBzmqOiJ3CYEzVi ZJcH3Lw7598z7T0ejdRwLuGMRV020uzeYTf5a/wORwvLn8yDJtBbyAddZ0pok2Y9O5rx KAYw== 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 l18-v6si10304975pfk.78.2018.08.10.02.03.59; Fri, 10 Aug 2018 02:04:14 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727688AbeHJLD6 (ORCPT + 99 others); Fri, 10 Aug 2018 07:03:58 -0400 Received: from mx2.suse.de ([195.135.220.15]:59962 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726963AbeHJLD6 (ORCPT ); Fri, 10 Aug 2018 07:03:58 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id D3112AD1B; Fri, 10 Aug 2018 08:35:05 +0000 (UTC) Date: Fri, 10 Aug 2018 10:35:04 +0200 From: Joerg Roedel To: kernel test robot Cc: LKP , linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar Subject: Re: a13c600e15 ("x86/mm/pti: Move user W+X check into .."): WARNING: CPU: 0 PID: 1 at arch/x86/mm/dump_pagetables.c:283 note_page Message-ID: <20180810083504.55pljlr733lctz5k@suse.de> References: <5b6cc146.lVmfvLKHKgZxC5d8%lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5b6cc146.lVmfvLKHKgZxC5d8%lkp@intel.com> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Aug 10, 2018 at 06:33:42AM +0800, kernel test robot wrote: > commit a13c600e15de44ccf03df28d3311ef3cb754ed9b > Author: Joerg Roedel > AuthorDate: Wed Aug 8 13:16:40 2018 +0200 > Commit: Thomas Gleixner > CommitDate: Thu Aug 9 20:42:07 2018 +0200 > > x86/mm/pti: Move user W+X check into pti_finalize() Okay, I found the problem and the diff below fixes it. Ingo, Thomas, can you fold that diff into above commit or do you prefer a separate patch? Thanks and sorry for the hassle, Joerg diff --git a/arch/x86/mm/pti.c b/arch/x86/mm/pti.c index 026a89aa16d7..d1435c78ae4f 100644 --- a/arch/x86/mm/pti.c +++ b/arch/x86/mm/pti.c @@ -629,5 +629,6 @@ void pti_finalize(void) pti_clone_entry_text(); pti_clone_kernel_text(); - debug_checkwx_user(); + if (__supported_pte_mask & _PAGE_NX) + debug_checkwx_user(); }