From patchwork Mon Sep 24 11:33:36 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: 10612263 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 5CEF414DA for ; Mon, 24 Sep 2018 11:39:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4427029CDA for ; Mon, 24 Sep 2018 11:39:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 34F1429D85; Mon, 24 Sep 2018 11:39:30 +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 BE87129D83 for ; Mon, 24 Sep 2018 11:39:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 67DAD8E0013; Mon, 24 Sep 2018 07:39:27 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 62E978E0001; Mon, 24 Sep 2018 07:39:27 -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 4F6588E0013; Mon, 24 Sep 2018 07:39:27 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by kanga.kvack.org (Postfix) with ESMTP id 135948E0001 for ; Mon, 24 Sep 2018 07:39:27 -0400 (EDT) Received: by mail-pl1-f199.google.com with SMTP id c5-v6so9870689plo.2 for ; Mon, 24 Sep 2018 04:39:27 -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=PLTLYe14pDmmU4b8R1/ZFwCDMDtLAmIF/wggnaAouH8=; b=f99UTwapKIz/3CQvqf0vmFUbjPqTHED34gRFwcQGqnxoqtV7HhhWb0etPf/FmAcK5q ys5QHIWBfSx5bFxX+ql4N4vz9KiYAYxgb0P1/UN++4+kjd24SBcP+U9nc1du90UZuEKI Omha9ZY+cGES+d9YZ0LB3hOyLDAPI0R34VPLKiLghLozWEnYVbXndKuLCfDf9lUiAc1F lzW0mUhewC+qfHTYq57cuyIOpzEu6j04qZPRmRe897WEIJMN/Ld2d+JdYHJOUclWThuA bt3av5I/ixFzmQF3yZXovadBSN50jSNE6jvOTGVNn4J1d09wO37bcncjT1q4XLcXr3Bk PX8Q== 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: APzg51DtVbtpE7oXfiMSNICAKNn1eWHJnTB1K+lomQRVB1OydpYHiTxx 099I162O5agB2bxYIf/EjXuAWeW2Z9yD5M/gCuA3+CX9NrYQSK29aKQvzIyfmO0XZ7Fe64qGjXS EZjzzpRbPvaXk0UPQ+T1zUbIIaKs41WC+T9G0tdhuQn5Uk184cCpPPKxYLtULF7rBNg== X-Received: by 2002:a62:a03:: with SMTP id s3-v6mr10100725pfi.147.1537789166701; Mon, 24 Sep 2018 04:39:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbyAqfHVh+Q8RWm8RUOsiCxuN3jgnwlXLCcSapyHvqyiH76LUTsSugtjA0Nedai0rv5Xqh7 X-Received: by 2002:a62:a03:: with SMTP id s3-v6mr10100662pfi.147.1537789165849; Mon, 24 Sep 2018 04:39:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537789165; cv=none; d=google.com; s=arc-20160816; b=dBilZwtWQp0986SNIG4KHLzecX87yYxNiTWuUChavA3kAAzYJ0iz8QTM8sNHTmZ5v7 uy21LRjZyFOT4t1mchgFh5wDf4csUxO5HbsLkGKwPINqDdOIMZjBYt2/pDFZZ8yYBMvV Xyn4A5UHChxiofH0/QTb53NFX6g7gYv56lQtm85lNgm/BmjDT/qMe5a2x3sUhMNIZh0j QgMWvmchnM1+I7idnYnJeooiW4FvrU9HGdAA6UNTngR6htB0+pGPmiKRJCZq2mFgvtNO TQ0wJT5DH3bDZq7Dasyr/lUT7YMqpa4qiRGmkyPvd+hGRp9Ul7eMC3QMr+gGEhKxNsKm gISQ== 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=PLTLYe14pDmmU4b8R1/ZFwCDMDtLAmIF/wggnaAouH8=; b=Za4hPvLvdhiOPC/itjH7eu30FeQYHUJtg8rMgqs/mob3/gNJS8q9LPpSPI+6YJuAmR 0W8Pw+gwKjKmUDfb6JDrPesVi2hd1rDop0bF2Irz4CKiskHCAcJkbP8mQLTDpNHjAM43 uCnhfH/7lcwOK2hkshgsxzTFwJFyHJ5WyXRflEXeyejlh2DoJiAwgTl1/llMbkWcCfxZ P9qlc2u399dAupRGEGDHlyEnZuCj1z3liCCH1O/bZJLXbP31mxRo9gGxMU4Na5ps/HLB KH7eH4ybCMWrRQGAE8UCDR2He+CdcwsEP5sMUJDmmEpdIcWCRNwD9yC85rDjB22f4oNU UhKw== 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 e13-v6si763287pge.0.2018.09.24.04.39.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Sep 2018 04:39:25 -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 (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 8D5C91070; Mon, 24 Sep 2018 11:39:24 +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 3.18 050/105] x86/mm: Remove in_nmi() warning from vmalloc_fault() Date: Mon, 24 Sep 2018 13:33:36 +0200 Message-Id: <20180924113118.835054671@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180924113113.268650190@linuxfoundation.org> References: <20180924113113.268650190@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 3.18-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 @@ -271,8 +271,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.