Received: by 10.213.65.68 with SMTP id h4csp1209210imn; Wed, 14 Mar 2018 12:58:30 -0700 (PDT) X-Google-Smtp-Source: AG47ELuBwH95XQQ7b9KZTlW2/uOd8PBOwoa8/Vxj7dDdAqvX4Fx1dzZ3/4iKvsUAANBEB7LeDelJ X-Received: by 10.98.92.194 with SMTP id q185mr5331724pfb.63.1521057510747; Wed, 14 Mar 2018 12:58:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521057510; cv=none; d=google.com; s=arc-20160816; b=BvWUpfB9P8YC0LIFuxbMehlYwN4FJpJl/sVCVCeUTVmFm0YifRBqS4oAv6+7QPZ+lX NJeLmVhvb96vMuvAoi2b0oQ65pR631HtXWPWzXNwTGOOd7UCdoWupL47y5F2YoOfkmTb u1jTfl/zPKz/r5GUnuzuXEBVnghnt2gmJ4RLit4ofI3ABNQpbTbmjcBX811t+m58ae7W pYEU33Uf3FIrgLigJq7oB+obt1ILMV1r2IjyBcAs0XKIypE41ooObHfm+7BlFmzUTbYP iJisWkCEfaUHveIpzwaqxYDkWkaJTsOybPY7uX06Hepj4Lm5VmjiC6/LSW6XDfXjhBBU baiw== 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=iR4MLR3AXi0WW5jbOMw4McCZQSOKpFytyJFJFdkz4EY=; b=kGqCJhBuKf5XZkF/l51lPyMQiJYa+h4/cEw82UCMEJwTr1/CbjF7cHsLjSvpGWRxHd kSoy+PD2Db16D8K6O+EdQyVril79Zr+QvnqIq3Qlo55XNv5hJXh7FHPvdfXUfh2iRpMC pttxT/386vvKEHOz6wK1kwYxtBbJkBuYHfPuj7gwj/0yVCfraQ/y9Tw6wSco77Ni0WaF nooguqdcUv1IBNUNwh/odZemGC7YeOx8WQd/mBKNIPLEd67ZPHFoMi/YbBVtR0/2DDil zL6cppnzvRbngF4FzT4A6MC0pnqDa99sBUWdKvJI5b+1mtCehiuoMBX+rmJuZy+TQ/IG 4ZAg== 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 1-v6si2473628plw.587.2018.03.14.12.58.16; Wed, 14 Mar 2018 12:58:30 -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 S1751551AbeCNT4p (ORCPT + 99 others); Wed, 14 Mar 2018 15:56:45 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:52124 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751381AbeCNT4o (ORCPT ); Wed, 14 Mar 2018 15:56:44 -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 1ewCVt-0008At-Gp; Wed, 14 Mar 2018 20:56:41 +0100 Date: Wed, 14 Mar 2018 20:56:41 +0100 (CET) From: Thomas Gleixner To: "Kani, Toshi" cc: "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "gratian.crisan@ni.com" , "x86@kernel.org" , "hpa@zytor.com" , "mingo@redhat.com" , "luto@kernel.org" , "bp@alien8.de" Subject: Re: [PATCH 2/2] x86/mm: remove pointless checks in vmalloc_fault In-Reply-To: <1521056327.2693.138.camel@hpe.com> Message-ID: References: <20180313170347.3829-1-toshi.kani@hpe.com> <20180313170347.3829-3-toshi.kani@hpe.com> <1521056327.2693.138.camel@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 Wed, 14 Mar 2018, Kani, Toshi wrote: > On Wed, 2018-03-14 at 20:27 +0100, Thomas Gleixner wrote: > > 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? > > Sorry for the trouble. The patches are based on linus head. I just tried > and they applied clean to me... Hmm. Looks like I tried on the wrong branch. Nevertheless, 1/2 is queued in urgent, but 2/2 will go through tip/x86/mm which already has changes in that area causing the patch to fail. I just merged x86/urgent into x86/mm and pushed it out. Can you please rebase 2/2 on top of that bracnh and resend ? Thanks, tglx