From patchwork Mon Sep 17 22:42:06 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: 10603533 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 17F3415A6 for ; Mon, 17 Sep 2018 22:50:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F18442A81C for ; Mon, 17 Sep 2018 22:50:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E2B152A84E; Mon, 17 Sep 2018 22:50:14 +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 E7F0E2A81C for ; Mon, 17 Sep 2018 22:50:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D4F958E0035; Mon, 17 Sep 2018 18:50:12 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id CFDDE8E0001; Mon, 17 Sep 2018 18:50:12 -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 BA1DC8E0035; Mon, 17 Sep 2018 18:50:12 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by kanga.kvack.org (Postfix) with ESMTP id 78C6E8E0001 for ; Mon, 17 Sep 2018 18:50:12 -0400 (EDT) Received: by mail-pf1-f200.google.com with SMTP id h65-v6so9023082pfk.18 for ; Mon, 17 Sep 2018 15:50:12 -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=9x3O6Qy1ySLgsjk7BU4Rb46cM2PptCvcZLWRCp/47VU=; b=JLEL45KSpR/O6nojPCQhXTk172zpETs9GtoULQQoHCt4uKDT6/YKGpaB6ATxCagB6+ AuuqDoAEcZVr8jnrBV5gP3pyJeqYuZkb4gAwotxXC/ZhesG3xoeAtjD22JLL0OzFCfF+ wLxfv1zggM4VydIzn6w8RzgoS6C4hMOh0UbBzv9ZZEvMjv/SQoaC+hPfYHldzvPe7iwb cmHdf8fUtXztZnv3pNkYgUDlV8Q72qfkXSTYi412ZNY8HLUkxbc0j95mJMxzBPaaP7uX eqQ+ZlnObKdsaE2zgk0bNFANe5/kvFrEEGyY5fR4E4fJZ+8dYcS4Nc9ySfuD/9MyjQWM 1vqw== 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: APzg51A0Xoppigam+FuDK4qvbPEsojuiFqYqJJ2RjEzm2eSFK5TsFedA x8CMT+1bBdwaxUjvnMxV0qBp5qB3jNgrxi6Yk6rAAVEFQj09CZ7XP+SovMG+D2LJHlzHcYj1UnZ rtsNUClKjOZZ5mseYz7JdhnNBUeSwqGKAWJHjp4EFfw+JNBgEuCh35wOwI4YXd4/uuA== X-Received: by 2002:a17:902:5481:: with SMTP id e1-v6mr26861461pli.309.1537224612182; Mon, 17 Sep 2018 15:50:12 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZhOl7aZyHOJepMRSPJ+lb5Jc/gf8Jd7gbwFp5wy3EHZcvnG+uWfH8NuugLxArKBNSAAKKO X-Received: by 2002:a17:902:5481:: with SMTP id e1-v6mr26861418pli.309.1537224611329; Mon, 17 Sep 2018 15:50:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537224611; cv=none; d=google.com; s=arc-20160816; b=hmIU2i7vOsPJFWYOGEpGbumPe0bWSfoTK6s7lk9yUqFRF52yucudMzqCjpptpuClUA pGCRcH2K+opfGZ66VVV0RoNupyc2WdpVo/HlWFMD5WUzh+QpUqMYn8y7W7770jMH1EZ3 MkuoohBz2qor0pNz3S3rre/KlgS70f3gkRZ4Sgp/H6kU9w2K1XQLvkp/xHqWNbDRfGMg dQQYv96dE0rUmjlrJt47sJxXpahzKuSVczK3sF9YL8WlKnzMFVmF5Zk9GEyH97ze8EtR pA/luvzLxyvQqE0yrbnqm0NfBGqnfjKds0YQKvjr4oyTDGO0g6iV9kg4VeyOzbz8vJib cgrQ== 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=9x3O6Qy1ySLgsjk7BU4Rb46cM2PptCvcZLWRCp/47VU=; b=XnVSrIeB5Pvlq40KG5upcecp7Wjqv0uHg8DUvlda8hWZc+RsWKumI8nELOgowWxd1c RMLDu/TGpTTiKfkD5rfb2hUscnMkME5QGNMAnSXkKJOZ5m3UzdSXCp69/e581LsZtUI+ My0yXNm4igPP7VMSOhXP0/LKgTRVRPxiDxk/SoWsvVPxB5kH+rKAcv/G9BBbaDooRKVF QGqLRUTRN61vIbB0VSiIfVME9rF8OYyB8tVvobJleb6cyEaRZMqUWFz2wcDwDe4XbbOo z3N+gFqxUlLMWyYdEDvuYoj0EEWhPu0BqxPXc5xuIRXY5UXT6XOnHusQ1QSzaurJ7kcf 7fGw== 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 f62-v6si16884447plf.164.2018.09.17.15.50.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Sep 2018 15:50:11 -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 37E1DCAD; Mon, 17 Sep 2018 22:50:10 +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.4 33/56] x86/mm: Remove in_nmi() warning from vmalloc_fault() Date: Tue, 18 Sep 2018 00:42:06 +0200 Message-Id: <20180917213829.301295044@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180917213827.913122591@linuxfoundation.org> References: <20180917213827.913122591@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.4-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 @@ -273,8 +273,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.