From patchwork Wed Jul 25 15:48:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joerg Roedel X-Patchwork-Id: 10544235 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 7EF381822 for ; Wed, 25 Jul 2018 15:48:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6C70C2A562 for ; Wed, 25 Jul 2018 15:48:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 603492A572; Wed, 25 Jul 2018 15:48: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=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 ED92C2A562 for ; Wed, 25 Jul 2018 15:48:29 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 8C2B36B026D; Wed, 25 Jul 2018 11:48:26 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 848FC6B0273; Wed, 25 Jul 2018 11:48:26 -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 69CF66B0276; Wed, 25 Jul 2018 11:48:26 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by kanga.kvack.org (Postfix) with ESMTP id 087D26B026D for ; Wed, 25 Jul 2018 11:48:26 -0400 (EDT) Received: by mail-ed1-f69.google.com with SMTP id s18-v6so3271954edr.15 for ; Wed, 25 Jul 2018 08:48:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id:in-reply-to:references; bh=aLVLspOd7Qbtq2EYgt1XnlykT9TipxaQrzABixC1uTc=; b=Qs7u6nGhiPpcW78f82AfWClEitckcsgYnuRVJjYOrOV+bYguaTjTVtZjoIubKr83cx Q0b+uW0aYFx1DUWWtRXgstbeJKxE0Owz6bTlGX1Ekr8Pjno/USCxmrsMOj9lYN+Ll7d0 KCi2Z4dqKZC6JGO67ZyqS8Et180eXW4eWR/mJelgvpR7hLR4oMLxdEAfKaw1t48apVNL 5RYEYkH1Oisy/uumAcSUEoODTf7iYlDrYzaUxzM0GKIP/OmPgtwXCvP8hS+7O/nkWFd6 Ol/UytW1a+jPlriS7dd7OCod2poQ5OsSCivD/ygAgcC/KFeKeup2zlx1UoGc36ffev3l Ad3A== X-Gm-Message-State: AOUpUlExZX1J4ot/Yznh5x/Py7NflBad14FQEK5TvmnJziRdoxRWXCIN l8XSNCeKKRoSfA6twvk+Yh5FAOVLttmSk3VL59dCigTCUtfUDRbKaEWkEDRWN7SYsRM4AK4hdzF K/00gJDtLLZarvl95AVrx5TeUDQ5XA8ynkAGnC+mDFQ3uegZ0s71ZJV5pxSuY/STJ3A== X-Received: by 2002:a50:b410:: with SMTP id b16-v6mr8290477edh.190.1532533705604; Wed, 25 Jul 2018 08:48:25 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd2DHbAcW4N711JPF8d3YjLJnkkF4S3ycvF/fDWAdeSF16CVrpWLiCNI+akyteyIYm2PI9o X-Received: by 2002:a50:b410:: with SMTP id b16-v6mr8290444edh.190.1532533705015; Wed, 25 Jul 2018 08:48:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532533704; cv=none; d=google.com; s=arc-20160816; b=jGTGYhvXFchApSwm7QMgEOXxIxgIQhh5RsDAaUgdhhQIVhATzxVV6zmpLSFM0G1irl h9BksDHVhK+AbpOTCoORLwqPTo2kiuOOdLxOMmOMAnO8sJXmBa98FBmnaA1IoXA62TFx excMcSVwne8jeEUXNfPLWPria+IHM1M4n7H30lVTQLT+nP7iCu8JJ7w32wUMNwHgYLII BSw/oa1U0zNwpADLlAO1mRrvQrbxnLct0vtviA6vmSsLRtZLs22aye54bfowREsrd/RI auETGWUpi1VaJMnxh1sIVFVZCmGKOiunXx+ZdDUlno35V06he5LiMJibXXEY7r8OU0Rs oBBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=aLVLspOd7Qbtq2EYgt1XnlykT9TipxaQrzABixC1uTc=; b=OwKZ+r32ShsszucEHss65kMup827eW9jflKNZkJShVBeFHEPq2+pj7LX7S9YlotKqX 5ysw3g23dSZsEnPOvBHN5JBPCNZjrr84QfuZJQSVtztm/+Q7GKjEz8RcCpSYS0bwlEdD +yUXpnh/6/tcXGplQ9dBsFIKmoElMjPCz2qDS12LgGKuJh+H4bpqA8Z7kaM+m/f/WObH dII2pP2GJQhuvfWht9CQ24V9C2B/YJ+qF42Lqu8xMnfpZtb7khp5/ssJlPRWrPgAlWU9 w7hVb5etMi71nMskgEsoxFfg3Zq8iCYCeLsGWFp8jdeVrU9oTgB7UZaA0ec5Yjzq3GGb yuqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@8bytes.org header.s=mail-1 header.b=bhTQVlM7; spf=pass (google.com: domain of joro@8bytes.org designates 2a01:238:4383:600:38bc:a715:4b6d:a889 as permitted sender) smtp.mailfrom=joro@8bytes.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: from theia.8bytes.org (8bytes.org. [2a01:238:4383:600:38bc:a715:4b6d:a889]) by mx.google.com with ESMTPS id 38-v6si4319735edq.417.2018.07.25.08.48.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jul 2018 08:48:24 -0700 (PDT) Received-SPF: pass (google.com: domain of joro@8bytes.org designates 2a01:238:4383:600:38bc:a715:4b6d:a889 as permitted sender) client-ip=2a01:238:4383:600:38bc:a715:4b6d:a889; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@8bytes.org header.s=mail-1 header.b=bhTQVlM7; spf=pass (google.com: domain of joro@8bytes.org designates 2a01:238:4383:600:38bc:a715:4b6d:a889 as permitted sender) smtp.mailfrom=joro@8bytes.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: by theia.8bytes.org (Postfix, from userid 1000) id 714D92DC; Wed, 25 Jul 2018 17:48:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=8bytes.org; s=mail-1; t=1532533699; bh=L9/OWQWqSPUqG2lLweD54IOtxRyq7LaGRIrwnwmSXjs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bhTQVlM7n5PlqM8ICWuJsAX/iarutHZxGEb6ajynyNliPRZM546gp8odEVXF76p5E iQmtbc/KAP4ldPX0SDik8KeBdDEX8JyMLI4zlvpiRVzsm8dmnIUFf2lD9rSAjZ1gva yBJKUg87BBP4inpcs3z7DwXxkaaKxTxQ3TuSCqssthzeAve1I5DR6VlLFSXxHLEXJr X1hSrG9oP863uGSYgGg4MGM9IyWNK/8zhYdCFmhKjh6Ea/I/IZeCshQC/8i0vofpfp M7QoNdCUb4hy6v5pSvnaTVFBIkIQa4HI6WHvFIPZrqX/JVZsv1+tit6sRHoC4KI8SG k05f+OsPHAjig== From: Joerg Roedel To: Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" Cc: x86@kernel.org, linux-kernel@vger.kernel.org, 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 , Greg KH , Will Deacon , aliguori@amazon.com, daniel.gruss@iaik.tugraz.at, hughd@google.com, keescook@google.com, Andrea Arcangeli , Waiman Long , Pavel Machek , "David H . Gutteridge" , jroedel@suse.de, Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , joro@8bytes.org Subject: [PATCH 1/3] x86/mm: Remove in_nmi() warning from vmalloc_fault() Date: Wed, 25 Jul 2018 17:48:01 +0200 Message-Id: <1532533683-5988-2-git-send-email-joro@8bytes.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1532533683-5988-1-git-send-email-joro@8bytes.org> References: <1532533683-5988-1-git-send-email-joro@8bytes.org> 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 From: Joerg Roedel 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 --- arch/x86/mm/fault.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c index 2aafa6a..db1c042 100644 --- a/arch/x86/mm/fault.c +++ b/arch/x86/mm/fault.c @@ -317,8 +317,6 @@ static noinline int vmalloc_fault(unsigned long address) 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.