Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1497136imm; Mon, 3 Sep 2018 01:54:54 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaCN4p2ATAaD3SJy4h845CTj62S9KLd/nrkpb6iUHfKuohqi/izk1irqdUPaYVajMQ8mXSh X-Received: by 2002:a63:e001:: with SMTP id e1-v6mr23724066pgh.380.1535964894637; Mon, 03 Sep 2018 01:54:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535964894; cv=none; d=google.com; s=arc-20160816; b=nfqCObBmq76F80r9LNh5DONzcpftcE0l497E0O7K+OrmrL5+s9RLvFBjvcwf7HPQY+ wd9guSxAW4qCEsTYTS39qNYmXFJY2S7zRYSZ9oZ8luPkrQlVY+EUiTej7DtZKRvHjkzb LuH9j8gUOhKFedB5Y2ZZnrmq0pp8GyIElNOubDdpyWraWVv8MmZPtANowPSatugueFvQ q3guP3KS6v+2AV7teLNjcd9NFuge/mVx5yHyJQkCIiLPHktD9XmQDGgcDhiE4YfZsb7y 5Sxi+26qxXqBGCdF9C4SHnvVKxVDwEjJ4Rd8inlEuTVPyr47Ue7AAB5wXi1tGKViOXxm 3GjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=GMjsohEMlB4vft/hkiTA5yvH6nT/zX0Kwab87Psh4mQ=; b=RhLl5i/vZ1GrKqnFNlyBTulURd3HN9GvaR5Z5cDm1VUc6dQiXiwd9ez90mK3CNaG1j I3IRBEGxG+bTC+4YqbdVGNgUDktY1Ch1l4X6obgtA4tZ6lLr51iMbaEDAlYyLwuV5zbY lpHFhj54AvAm+ro5rDLALt7QybzEMJuSS5jPAM5s/lLJpCakxjkFLF6Nj5DvH6iF7WWt zrqvV4TpPUqFbuN+DngzZQJvWze2d6QNoKwyh+ICdfWIv5gMrbdvdOqY5qK6Gq/dvioJ iX36RlfcuZ1b7qS8J9pNe3Jdhn9EBo1gg3IxG3A48V0I1C+nnvMUf7u1/+MNxaorFz/O jfhg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l17-v6si16044561pgu.79.2018.09.03.01.54.39; Mon, 03 Sep 2018 01:54:54 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727175AbeICNMl (ORCPT + 99 others); Mon, 3 Sep 2018 09:12:41 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:54585 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726160AbeICNMl (ORCPT ); Mon, 3 Sep 2018 09:12:41 -0400 Received: from p4fea45ac.dip0.t-ipconnect.de ([79.234.69.172] helo=[192.168.0.145]) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fwkbv-0004PK-7z; Mon, 03 Sep 2018 10:53:27 +0200 Date: Mon, 3 Sep 2018 10:53:26 +0200 (CEST) From: Thomas Gleixner To: Peter Zijlstra cc: Sai Praneeth Prakhya , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, ricardo.neri@intel.com, 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 In-Reply-To: <20180903083459.GT24124@hirez.programming.kicks-ass.net> 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> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 3 Sep 2018, Peter Zijlstra wrote: Thanks for CC'ing me. I wonder why the world and some more is on CC, but x86@kernel.org is NOT. > 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. Thanks, tglx