Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1815474imm; Mon, 3 Sep 2018 10:08:55 -0700 (PDT) X-Google-Smtp-Source: ANB0VdagDq1Ghn91FEXxMmsXYQ/F2Z0sGDTMV04D+ss9D3nYuuPJYutdokcKwdDzEOlhSGaYmo8w X-Received: by 2002:a17:902:c8:: with SMTP id a66-v6mr10641666pla.269.1535994535690; Mon, 03 Sep 2018 10:08:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535994535; cv=none; d=google.com; s=arc-20160816; b=g+taaIklQjD0G8UunqU9A4eDYKnbQ6aU29NZIZSfCjUWSHULj9ZXhwUYNHdtqwpbM9 gRAWNQm2RoPrpF9jRs1sw5dMtIHeN5FYsUemc1KZJkOY7QAlurrb8y0oM7U6cEf0TBRq TNvVm7hxupN20xa7jSevpAHKCUrtr/tDw2Q3vNl4A5dw9EoPzlJfZ0TVQ5/XifcndjyG 8vxYdwW0Gx7L71rK+0hMq0kiJZJLkKl5tVIEq0/8nVKDgdcrSththqTEf9/t5dpqdAxX TMZwM+TXNaeRKZwsaLLlZojRZ6mjlmebwRXOlYEh7M8uLIMSy2sY6AtLSrdc85Jvpslf Qkug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:arc-authentication-results; bh=TBYRkVvlk8Xqy5CrvQ1Daj01btdSwaHnRSFI7BIT6V0=; b=Na600a7AFA9+Pz7ZOAJ+AW9lQw79TgJYyX2FbyceDWfwoC92Kww0+QNOjqBnBc9Apk CpQNrfsbxoNWrfgfDdx98RZ21R/7IVQQ/7Mhfk9ubnMMdZnBp52KZFU34LQvK/wJwaZq Su2j/FuarGDs/+PggwH+F//ibqDTnJlkaVED3yj1D19jmsnm7rhePPA+NauV+R5nauMp sgQyyiLtuvv5cEMW5BB27v8zxPiKC1VQaCxcjXdEEkqA83dmBQnupD5sudksO7ZHyPnb hMQCQe4ILrwzL0JlLQr+YiZC2FTM32KZTXSgn7s1ALjt/vsNyy0aZwZrXvrndB0fpnuC KXqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 3-v6si19310077plc.282.2018.09.03.10.08.40; Mon, 03 Sep 2018 10:08:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729812AbeICV2F convert rfc822-to-8bit (ORCPT + 99 others); Mon, 3 Sep 2018 17:28:05 -0400 Received: from mga06.intel.com ([134.134.136.31]:43963 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728233AbeICV2F (ORCPT ); Mon, 3 Sep 2018 17:28:05 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Sep 2018 10:07:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,325,1531810800"; d="scan'208";a="254179318" Received: from orsmsx102.amr.corp.intel.com ([10.22.225.129]) by orsmga005.jf.intel.com with ESMTP; 03 Sep 2018 10:07:04 -0700 Received: from orsmsx114.amr.corp.intel.com ([169.254.8.8]) by ORSMSX102.amr.corp.intel.com ([169.254.3.148]) with mapi id 14.03.0319.002; Mon, 3 Sep 2018 10:07:03 -0700 From: "Prakhya, Sai Praneeth" To: Thomas Gleixner , Peter Zijlstra CC: "linux-efi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Neri, Ricardo" , "matt@codeblueprint.co.uk" , Lee Chun-Yi , Al Stone , Borislav Petkov , Ingo Molnar , Andy Lutomirski , Bhupesh Sharma , Ard Biesheuvel Subject: RE: [PATCH V2 5/6] x86/mm: If in_atomic(), allocate pages without sleeping Thread-Topic: [PATCH V2 5/6] x86/mm: If in_atomic(), allocate pages without sleeping Thread-Index: AQHUQqIDKLGU941Wr0OybRKnptAV1aTeshSAgAAFKACAABQXoA== Date: Mon, 3 Sep 2018 17:07:03 +0000 Message-ID: References: <1535881594-25469-1-git-send-email-sai.praneeth.prakhya@intel.com> <1535881594-25469-6-git-send-email-sai.praneeth.prakhya@intel.com> <20180903083459.GT24124@hirez.programming.kicks-ass.net> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNTNlNmRjOTctY2Y2ZS00YTM3LTgzOGItNGJmNWQ5YzZkNzQ1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoibG5IblhUMmwyK1JxeXpvSFY5ZFVZbERSeHBuRTNjY1hhQnZsM2tua09tc29SRG1lU01MT284bExKMTUxT2RXUSJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.22.254.139] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Thanks for CC'ing me. I wonder why the world and some more is on CC, but > x86@kernel.org is NOT. > Sorry! about that. I will CC you and x86 from V3. > > On Sun, Sep 02, 2018 at 02:46:33AM -0700, Sai Praneeth Prakhya wrote: > > > > @@ -926,7 +926,13 @@ static void unmap_pud_range(p4d_t *p4d, > > > unsigned long start, unsigned long end) > > > > > > static int alloc_pte_page(pmd_t *pmd) { > > > - pte_t *pte = (pte_t *)get_zeroed_page(GFP_KERNEL); > > > + pte_t *pte; > > > + > > > + if (in_atomic()) > > > + pte = (pte_t *)get_zeroed_page(GFP_ATOMIC); > > > + else > > > + pte = (pte_t *)get_zeroed_page(GFP_KERNEL); > > > + > > > if (!pte) > > > return -1; > > > > > > > This looks like tinkering to me.. > > Yes it is and it's not going to happen. Haha.. ok.. I will take your suggestion in the 4th patch and that should avoid this. Regards, Sai