From patchwork Sun Sep 2 13:04:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sasha Levin X-Patchwork-Id: 10585143 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 B33F85A4 for ; Sun, 2 Sep 2018 13:05:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2939287E5 for ; Sun, 2 Sep 2018 13:05:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 95343296EA; Sun, 2 Sep 2018 13:05:07 +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 D59B6287E5 for ; Sun, 2 Sep 2018 13:05:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 07B4F6B625C; Sun, 2 Sep 2018 09:05:01 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 0041C6B625D; Sun, 2 Sep 2018 09:05:00 -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 DA3656B625F; Sun, 2 Sep 2018 09:05:00 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-it0-f72.google.com (mail-it0-f72.google.com [209.85.214.72]) by kanga.kvack.org (Postfix) with ESMTP id 9B34E6B625C for ; Sun, 2 Sep 2018 09:05:00 -0400 (EDT) Received: by mail-it0-f72.google.com with SMTP id d14-v6so9961643itc.3 for ; Sun, 02 Sep 2018 06:05:00 -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:thread-topic :thread-index:date:message-id:references:in-reply-to:accept-language :content-language:spamdiagnosticoutput:spamdiagnosticmetadata :content-transfer-encoding:mime-version; bh=I6BZE0sTCpnYVRM+vCGyXKK/zr/w465Ktw7fOH45lcc=; b=mCrpY7xRAXVST7HZ42nxszFV6/B4K7QflNe7tyGBmo1ESNtpoePt85K0l6afkLkHI3 icE9UZcJHsuc2D75LbX/EjezCjBON4r6Q08XGG69jEivf+c5DZUebr38VBdeu5K2bUDm jKbxQ88iOsZIcF1jams9aQ/p+0klZhY+f+YjAEW5q9rVMKBUtOWg38evGRKNfajgWNLj +VvrH6AtS3OptESBHf7nfEXHI3vmI8B0dEhbWRVx8RuRi1XA+btjtVdUrxpSOu446RBJ oQAH3IurmnhxZ0a4QWDoeBk4QUZvul91C2ntRcIWXUr5rpjW4nYcOp6BShRdJAtQ9vyX 6BSQ== X-Gm-Message-State: APzg51DzbEjfChV85YUm3EfVA81Lc0gApGoyvVO7v6c/p1fCrSkrY5OT DqTOllcfZ4N9Wu3nvGIvQgBQjnfN+R44FrnyiFg0cI7gGTBQeuZ38bemjfu50jIAvpce8EvmrX3 4D5LzZnMD86JiNHazUuxxb9dvGLWHQakU3t6pWdRcSeGTsdBSd1d232CzrNB1NbIstw== X-Received: by 2002:a24:3095:: with SMTP id q143-v6mr2615136itq.73.1535893500265; Sun, 02 Sep 2018 06:05:00 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ+nQQvjtLr8rqnRAZTZ55cSzmOXjK2zSIT+bS5Q0vj7ILHFULYcK9zjFe9ZmCkIF+282JR X-Received: by 2002:a24:3095:: with SMTP id q143-v6mr2615096itq.73.1535893499476; Sun, 02 Sep 2018 06:04:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535893499; cv=none; d=google.com; s=arc-20160816; b=zwIJ0PY90rVFvMoftoAqYcU5x0zwZ7AKjD5mzEzzJ+OVK4XnAmjeiIGh5Fx7D2/EqH UWZIilT5/gJGhLxpiDQxJUtTn4UXJyp9a4105vitlrD9dFYhOPn6M/z1rURVN6pH/lVI pnuypR6kfzMkPle0MSQHJ3valJuDnvndBiZZGXV5wzDS/sLZO3eiTUhvbQDqTwfEGLI4 zfHDzRd4bzXGxOECih6zzlctkKTpziYQkLUnVU6iGKgShmkgq6kIi9sSI/Ai0dfRTEg3 hbynawsN/AG0bpSQxurvyiB0xpipQOAzoeiqPoocVa4IG5RRXoFmoYVJfEx8+oHDgi5U CUuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding:spamdiagnosticmetadata :spamdiagnosticoutput:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=I6BZE0sTCpnYVRM+vCGyXKK/zr/w465Ktw7fOH45lcc=; b=BdUTt98EfjLQxAFAVadAezmxSekUHfVUXcPUPPHZCyznQkrWwVTcEZC3w6s3wEVZ6j Ljj76RbKd7aOlQBUryd/eefcqgt3GrUL/fQ0OlGZGrYOcdmKpQVlo9koH1xH48GzM4fz m/sR3rdKvkvMoSywdtc3DRtWeaQerIV1SKopaIBL9zFheUT5BrrSu/8uYg6/2t/fufDu QOLkOBWSB7UL7m1mHrTUSEOB9oyBo/OZmsCk4JIvl/b1bYOAMXQOh5zceiTTcExJV2tq NNPBH8JY0iJLgzaWqxlwWkn17Q6Tb/Mn3DcFSGgR1QJ2tNWIRDF9ftktTkHxOZiZSN/E P8ZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=GBh1We7n; spf=pass (google.com: domain of alexander.levin@microsoft.com designates 40.107.70.128 as permitted sender) smtp.mailfrom=Alexander.Levin@microsoft.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: from NAM04-SN1-obe.outbound.protection.outlook.com (mail-eopbgr700128.outbound.protection.outlook.com. [40.107.70.128]) by mx.google.com with ESMTPS id h18-v6si9698918iob.258.2018.09.02.06.04.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 02 Sep 2018 06:04:59 -0700 (PDT) Received-SPF: pass (google.com: domain of alexander.levin@microsoft.com designates 40.107.70.128 as permitted sender) client-ip=40.107.70.128; Authentication-Results: mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=GBh1We7n; spf=pass (google.com: domain of alexander.levin@microsoft.com designates 40.107.70.128 as permitted sender) smtp.mailfrom=Alexander.Levin@microsoft.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=I6BZE0sTCpnYVRM+vCGyXKK/zr/w465Ktw7fOH45lcc=; b=GBh1We7nYqfMLQe0f9HlDHu/GgOEWOVbuIATTiyTuUptemZY31PIlmCzIpWpgJMTob1PuBY4NTDX4aZI5OtoWy5hGeoCza+mZQyOdXgpI1JrqJdr6N8EkZwZsmtawlDIO51a1XnsitRk3w5fy8EeP44eoqay1xxE6TMwvru16b4= Received: from CY4PR21MB0776.namprd21.prod.outlook.com (10.173.192.22) by CY4PR21MB0120.namprd21.prod.outlook.com (10.173.189.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1122.2; Sun, 2 Sep 2018 13:04:53 +0000 Received: from CY4PR21MB0776.namprd21.prod.outlook.com ([fe80::7c3a:eea8:1391:1611]) by CY4PR21MB0776.namprd21.prod.outlook.com ([fe80::7c3a:eea8:1391:1611%7]) with mapi id 15.20.1143.000; Sun, 2 Sep 2018 13:04:53 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Joerg Roedel , Thomas Gleixner , "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 , Greg KH , Will Deacon , "aliguori@amazon.com" , Daniel Gruss , "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 AUTOSEL 4.18 072/131] x86/mm: Remove in_nmi() warning from vmalloc_fault() Thread-Topic: [PATCH AUTOSEL 4.18 072/131] x86/mm: Remove in_nmi() warning from vmalloc_fault() Thread-Index: AQHUQr1+cYypuF6UO0qmfPDsanQTqw== Date: Sun, 2 Sep 2018 13:04:33 +0000 Message-ID: <20180902064601.183036-72-alexander.levin@microsoft.com> References: <20180902064601.183036-1-alexander.levin@microsoft.com> In-Reply-To: <20180902064601.183036-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CY4PR21MB0120;6:eQOhVbAxZMRaySANj9ewzcnPwncL4l0o50zg1Blz96fZB9o8DMTkKp/J8+/7wT/qlq+vGUaoiYhFbQUSQmHMyWg+hy3XjXyuC/Pnv0lzA56sGwECZnLVSjXGqiZR+W94Qr3Kc+q4OGyH0EcnZBPqtYXqWPiBy9bmvfwDuIV14E7EPhZYO3wYCj2n4GOBl/NgLc2YA19r3f5ES03EFD4SsgJisS3Xr9aYEvm4I6vSRLV9ETF806koIXd8+CDrvt/M7qKikwt6vR00Mf5cMMSOZlw39Eo3OPWlgxwyQmBCDBCdGSYBAodHEZsGrqAEzX0xzKYqRQbTpVYdtijzK8uvpSuS5QnKXTOQLP8q2ui2j+5LQQEDzCG17MttJTugwpraeAFRu3YlbkCeQI8DuiMAhGbd+NLRslSqfgfT6HtOgvNbMb6xP9vk0gEad3Vq7TO+iOnQkbtqOe0gQwU9RaPvoA==;5:s39ZpkZlLgmpumSwEMSyBjyuqJx0jdGq6tcupYjwAf3JR9+Mhm8zmWSXALHHJljpJ4Mto77FwMW2UPSt6x+YYwbyiGy2b3h7v/XUC5Axo0gTFaL8ktFyX4fvusIxMzev+wNWl8I6zcIjJVOJpw1kdbL5hLseqJzgcFjNDD1WNW4=;7:XhFpwc4zrIJRcrlX94kwfYcjvD5iAOK9gzTEfZP3gl7fN6BftU6czpdkuZOZV+hZmPxK4CjyP+1Si6PqtQBQPZiR2upQp8pl4Wc26zfyMwOHwqAAlUrzdBbpJgp4z3eW0eUe+UvdzDIomiOemFOM2EVtu2x3q7oaJzRs6vKLzgHNbsiFMXt+FkHJsajigXuN7d04/jKZgE/JPkVXxiR34z4O0Vw5+/cNHIzDLf5DytEzPa2BbKDSkKGxkeCNdIMM x-ms-office365-filtering-correlation-id: 433639fe-f2f6-49ee-ff04-08d610d4ac9b x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(4534165)(4627221)(201703031133081)(201702281549075)(5600074)(711020)(4618075)(2017052603328)(7193020);SRVR:CY4PR21MB0120; x-ms-traffictypediagnostic: CY4PR21MB0120: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-ld-processed: 72f988bf-86f1-41af-91ab-2d7cd011db47,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(20283166320243)(28532068793085)(180628864354917)(89211679590171)(33061846794335)(85827821059158)(211936372134217)(42068640409301)(146099531331640)(47284530071512); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231340)(944501410)(52105095)(2018427008)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(201708071742011)(7699049)(76991033);SRVR:CY4PR21MB0120;BCL:0;PCL:0;RULEID:;SRVR:CY4PR21MB0120; x-forefront-prvs: 078310077C x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(136003)(376002)(366004)(346002)(39860400002)(199004)(189003)(7416002)(110136005)(5660300001)(7406005)(107886003)(26005)(6506007)(6666003)(2900100001)(8936002)(68736007)(66066001)(99286004)(76176011)(39060400002)(217873002)(2906002)(1076002)(316002)(3846002)(6116002)(86612001)(14444005)(54906003)(6436002)(305945005)(7736002)(256004)(575784001)(86362001)(6486002)(25786009)(10290500003)(478600001)(14454004)(476003)(22452003)(5250100002)(97736004)(106356001)(72206003)(966005)(53936002)(2501003)(2616005)(446003)(11346002)(6306002)(6512007)(10090500001)(4326008)(36756003)(105586002)(102836004)(8676002)(81156014)(81166006)(186003)(486006);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR21MB0120;H:CY4PR21MB0776.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 261+kN92I2nWRlu3WoweZvnYOSFqO/JkzdAileRsw0c8fc+BFtzxU9yJd38KNMGcseAC3ZybUc/cTUcGf27r/oY14ts/LteMUR9n0vEuhQjWVWSJvlyKfze5W++XytlFDMQJ0AKkDGn2Fq1WJQwrBC72JWOrJSvIZL0bWvU6PzxTYm5Eo7am1A0ZXJRS+cSEUJHfg6GevTjQD3bPy0TYiNg7kqJ5bdBJUpBKfeGjJ5M2Jx5C/fhFOJDSgB9v8jYXeOw10K6EcuPAK2bDCTb42T21kN6qyobnpSNhCvjFKL8WFCv7t8w2qyIyTr+89LGrhsUEb+/ABMMYd14n9YO64LiwjEr/hE9Cw9HF/ebBVt0= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 433639fe-f2f6-49ee-ff04-08d610d4ac9b X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Sep 2018 13:04:33.8087 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR21MB0120 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 [ 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 --- 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 2aafa6ab6103..db1c042e9853 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.