From patchwork Mon Sep 17 22:41:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 10603543 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3270214DA for ; Mon, 17 Sep 2018 23:02:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 203A728C07 for ; Mon, 17 Sep 2018 23:02:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 10D332932F; Mon, 17 Sep 2018 23:02:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 60F1C28C07 for ; Mon, 17 Sep 2018 23:02:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 72A938E0037; Mon, 17 Sep 2018 19:02:57 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 6DA528E0001; Mon, 17 Sep 2018 19:02:57 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5A20A8E0037; Mon, 17 Sep 2018 19:02:57 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by kanga.kvack.org (Postfix) with ESMTP id 1C4708E0001 for ; Mon, 17 Sep 2018 19:02:57 -0400 (EDT) Received: by mail-pl1-f198.google.com with SMTP id c5-v6so13730plo.2 for ; Mon, 17 Sep 2018 16:02:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=QyDC89ZWJJd/ZbQX8EJcAHp2J47MShG3yVOIk8pGUdg=; b=t4B+1C3S9JjaHbUXISoC2LXFajQtk2Ua3wsPEc0GMQFmgj0UBcn2K8zPxXq0SXqGx3 qZ2MSdhQEgxtWkP3RG4OfitMZolXn4STffMyTStua3ftB8eteR7IHQBNowMmx2xzUJtm 9yRrTgwRSCu7DCOMlxq1bsOMoMaLaEQQ4A4oqtDd9g8OXdkz+0JHEyEL6RkZCy3EUviy ZNj77p+SR0Yc27pMAsfG6iKhVCOH6R+Isx3UWftvBGtCdKflofr1rjV4IR3j9nn8Z7QP CLKXV49ZozeiB3kRwqOCLARA25Hi3nXs4E6K40bh2UF4YBhG7U+u8toKNsilBbkqgOt+ L+0Q== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of gregkh@linuxfoundation.org designates 140.211.169.12 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org X-Gm-Message-State: APzg51AOV7ilAfpnEu1DYTt4Pkq1iSLVjz81piq6EAblbz1Fj5WRe2oT ntUpogQj33xE4jsyQxU9NHYQOf6QgKDCKcAnA7q87J1/4OJ788o9AZ8xX0HpQ2o6AqjuoRRR5Ma d5jFoh2iNui5BSrc36rqhW7cYoK9e41/8GYTBafZ66h2635K/rvwTF5oeS1VF+webuA== X-Received: by 2002:a63:fc55:: with SMTP id r21-v6mr23644467pgk.377.1537225376797; Mon, 17 Sep 2018 16:02:56 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbPOwRHMtCOcVioQvSoVGwCLobge1IeCYIAibHCfHi6xhQvsDG5ToE9+fULCECfIpCtidin X-Received: by 2002:a63:fc55:: with SMTP id r21-v6mr23644429pgk.377.1537225375963; Mon, 17 Sep 2018 16:02:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537225375; cv=none; d=google.com; s=arc-20160816; b=KwpXgQvD8Dovw1sTputBtbfW2A2RDRKYpYCbCME2wE1Kz0RbIridiCoEhYn+87GBEt UCaiGm5Iarzg2ecW8T+lPHH4z9fLmIUKpmd009xPW7BUObVuGLDT/gfG/7iSo+doFL45 cZUtMS1T/PTz5sWmjoGKBLTku5lCqBz1bgcbvlx4WRHh1LgxT8Fv1DorO9tBxXZofaMV VLY4gQQxKCFniZyAWMnfWY6gWVg9pGFPlNypkJ3qdC40HEY8Gb0imnpPnH0bde0fRAD0 N9rAYvS2CjRYezi9sSeQf7sPZZjttzcEAQE73fpI2jDrtLT/9GqHO0pcnEJH3ykeBKNj I3eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from; bh=QyDC89ZWJJd/ZbQX8EJcAHp2J47MShG3yVOIk8pGUdg=; b=Q0qJ2isQRg0eAWgdWcwFLyKZDg8Q9OtIszjbxCLJ98xaIn2pwOvLJYMonOCbStq+5q Sah6nSCgd7zcBk8jkFdq5VeUf/6CPSL0+xKncJNZqTsBSebs9w3jpqDflFjiFKFeWmNJ qLAQl2nj65DJCibBfTwq87VBt3mI5oMB1DCDQzH6PsLq6azGVkS5gpPfKPnYpnQiM7TF F8gXktdBSTsU+D6Xrjv8OlQafZrzHu/Cp1Q1iOxAOYY/9hNS+2AGMz4CQmirab1LS0HE 7XNLXu2IXlwDouz6Ni4ogdKvZrlllds/8RZTa9m1Lmwchw9snvWZGVnIH6Na8hPOfnm0 jgWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gregkh@linuxfoundation.org designates 140.211.169.12 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org Received: from mail.linuxfoundation.org (mail.linuxfoundation.org. [140.211.169.12]) by mx.google.com with ESMTPS id k80-v6si17472204pfg.42.2018.09.17.16.02.55 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Sep 2018 16:02:55 -0700 (PDT) Received-SPF: pass (google.com: domain of gregkh@linuxfoundation.org designates 140.211.169.12 as permitted sender) client-ip=140.211.169.12; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gregkh@linuxfoundation.org designates 140.211.169.12 as permitted sender) smtp.mailfrom=gregkh@linuxfoundation.org Received: from localhost (li1825-44.members.linode.com [172.104.248.44]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id C4ECFC03; Mon, 17 Sep 2018 23:02:54 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Joerg Roedel , Thomas Gleixner , "David H. Gutteridge" , "H . Peter Anvin" , linux-mm@kvack.org, Linus Torvalds , Andy Lutomirski , Dave Hansen , Josh Poimboeuf , Juergen Gross , Peter Zijlstra , Borislav Petkov , Jiri Kosina , Boris Ostrovsky , Brian Gerst , David Laight , Denys Vlasenko , Eduardo Valentin , Will Deacon , aliguori@amazon.com, daniel.gruss@iaik.tugraz.at, hughd@google.com, keescook@google.com, Andrea Arcangeli , Waiman Long , Pavel Machek , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , joro@8bytes.org, Sasha Levin Subject: [PATCH 4.14 063/126] x86/mm: Remove in_nmi() warning from vmalloc_fault() Date: Tue, 18 Sep 2018 00:41:51 +0200 Message-Id: <20180917211708.511655650@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180917211703.481236999@linuxfoundation.org> References: <20180917211703.481236999@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Joerg Roedel [ Upstream commit 6863ea0cda8725072522cd78bda332d9a0b73150 ] It is perfectly okay to take page-faults, especially on the vmalloc area while executing an NMI handler. Remove the warning. Signed-off-by: Joerg Roedel Signed-off-by: Thomas Gleixner Tested-by: David H. Gutteridge Cc: "H . Peter Anvin" Cc: linux-mm@kvack.org Cc: Linus Torvalds Cc: Andy Lutomirski Cc: Dave Hansen Cc: Josh Poimboeuf Cc: Juergen Gross Cc: Peter Zijlstra Cc: Borislav Petkov Cc: Jiri Kosina Cc: Boris Ostrovsky Cc: Brian Gerst Cc: David Laight Cc: Denys Vlasenko Cc: Eduardo Valentin Cc: Greg KH Cc: Will Deacon Cc: aliguori@amazon.com Cc: daniel.gruss@iaik.tugraz.at Cc: hughd@google.com Cc: keescook@google.com Cc: Andrea Arcangeli Cc: Waiman Long Cc: Pavel Machek Cc: Arnaldo Carvalho de Melo Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim Cc: joro@8bytes.org Link: https://lkml.kernel.org/r/1532533683-5988-2-git-send-email-joro@8bytes.org Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/x86/mm/fault.c | 2 -- 1 file changed, 2 deletions(-) --- a/arch/x86/mm/fault.c +++ b/arch/x86/mm/fault.c @@ -317,8 +317,6 @@ static noinline int vmalloc_fault(unsign if (!(address >= VMALLOC_START && address < VMALLOC_END)) return -1; - WARN_ON_ONCE(in_nmi()); - /* * Synchronize this task's top level page-table * with the 'reference' page table.