Received: by 10.213.65.68 with SMTP id h4csp1194937imn; Wed, 14 Mar 2018 12:29:20 -0700 (PDT) X-Google-Smtp-Source: AG47ELvxiL2VgkDqlaNnuTLMDkQlENci0KPHqVxSkj0sFuEB/14oAjOZWCOmIQxSSglgg8CwkMKc X-Received: by 2002:a17:902:b495:: with SMTP id y21-v6mr5159092plr.313.1521055759962; Wed, 14 Mar 2018 12:29:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521055759; cv=none; d=google.com; s=arc-20160816; b=svWPjPXtvkzM4yiRIpVKbpsDdfIoFB3Ze+AO9A/d0b9qSCnil9O3KOUypfy8XtAdCh es713YyjJmjeQ/RAgcnQnn+AQLd2uWXJN8Xa1JVg+PX9GlJWDgjrqoWa6mYT6aKunpWI uo7rqmuzR6PFYfUURJ4p3U6xObKq+LsPBnmsVcLS2RhQnPm61Ytaqd/gIVOE9gL4Ld9j 5svglf3tiRY9axxSk2LZ1Te5uMkGJK+mWJyA4WOZXLy4sqyJ8fSB+wqig5QAwO9TpKF/ mjhmrkyk9U83l8jygAEDKtd+2jUP34YcDLVAn/4oUpsYFE0JCHyyOk8pw7H6L/bsI7kT If5Q== 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=yCpO//VEhkcF9CrrFviD1pE3s1IEcDDwNVCT+Xrgiy0=; b=NH23pZk8703FqLfOoTvBAmyVpIeonPySGxUEgqayZ+i+4gPhmLfQ1dHkpMzLr/Vg/Y TNtDFg/Rw5cyoZc5xPqkAupiSSir22mAubFzvBcuEPmLjv3u5pDc/yZnC7rfseZg03Z5 KMWEFw16Agn+k/J23UuGvFPC6fFqkg4JAj4nbcWNS+82HssMh2LPGEMoZvIiMYHTQwka FU/Sbga6IAWjP0yIbifjXoU4HD/kBBjqWGxvwJj4cxoCPYhXd+E45xDRN23LbWNtfMR/ G+QR1Id92iHMsGirR/pruPHF2cgQSMcTtQ+aZavhbkOkkcB1khwciRFFU0DoiKnaGfQO EIOA== 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 b92-v6si2422738plb.747.2018.03.14.12.29.05; Wed, 14 Mar 2018 12:29:19 -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 S1751776AbeCNT1h (ORCPT + 99 others); Wed, 14 Mar 2018 15:27:37 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:52076 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751714AbeCNT1g (ORCPT ); Wed, 14 Mar 2018 15:27:36 -0400 Received: from p4fea5f09.dip0.t-ipconnect.de ([79.234.95.9] helo=nanos.glx-home) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1ewC3K-0007sM-Fe; Wed, 14 Mar 2018 20:27:10 +0100 Date: Wed, 14 Mar 2018 20:27:10 +0100 (CET) From: Thomas Gleixner To: Toshi Kani cc: mingo@redhat.com, hpa@zytor.com, bp@alien8.de, luto@kernel.org, gratian.crisan@ni.com, x86@kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] x86/mm: remove pointless checks in vmalloc_fault In-Reply-To: <20180313170347.3829-3-toshi.kani@hpe.com> Message-ID: References: <20180313170347.3829-1-toshi.kani@hpe.com> <20180313170347.3829-3-toshi.kani@hpe.com> 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 Tue, 13 Mar 2018, Toshi Kani wrote: > vmalloc_fault() sets user's pgd or p4d from the kernel page table. > Once it's set, all tables underneath are identical. There is no point > of following the same page table with two separate pointers and makes > sure they see the same with BUG(). > > Remove the pointless checks in vmalloc_fault(). Also rename the kernel > pgd/p4d pointers to pgd_k/p4d_k so that their names are consistent in > the file. I have no idea to which branch this might apply. The first patch applies cleanly on linus head, but this one fails in hunk #2 on everything I tried. Can you please check? Thanks, tglx