Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2039883ybi; Thu, 18 Jul 2019 02:26:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzamjv0Sp0FoGI/C9AqFL9IqdmHIMPAFla/EGjkpwuB5LSxFN8cPyy5Yf5JT2pA89gRJ47n X-Received: by 2002:a17:902:112c:: with SMTP id d41mr39270374pla.33.1563441988077; Thu, 18 Jul 2019 02:26:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563441988; cv=none; d=google.com; s=arc-20160816; b=MjPgQFKt612jifF+uJOB14kCP3TvcWA1y1TuVXr/5+vaN6ODQ6zHTcdtaS9XAfABoY 0whl2KwahntNB9CAOyFQzx4VLP+Tum11lPL0E8HEX9wqZrlIpQ24cPEGlZM7G7J9162O gF+33IRrfrA6s8x7SVSkr6y6ASkwD6h/lwsjXhCYKrkmm3kfTYwWvoSXXqfJDuinX81S i+IfSMkeojkkMiRGRiZFRc0ZyUcQ60Wz2xzZ4YWqSXQzO2ft9Z9CKh2XH1s2IlrEnoVB 1PDZCE/mwYDoYwm8mk7R1HAaEnjkbTOub9ZFx58tvtXUw7hWVJV8eOWBAER4YyIpCs9z rB7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=t40jqx2LqSdoGaWyu7iqXzkcgxnRk+KZclQJ/WuNWN4=; b=EJ/rOBPi1f/eE0R0ZaFASulcylJUwaSpXcVJEKI31Co2AvRIanWznTbWjZs1BCjLqt geRKHMjXZk/ZcQ827QKCPAtXlwVNlZw8Mi//qLt043YgRac2u2AlwscAkfPM38KLjRFA zYauTMUHn8t1jOpniuWii64yDkzqZmiyKigwmfcasUQmJHw09cuF1jV8n3DYvZr6AepD jVHAj9LObEaQc9mmUjx6BywzwPmP9GIKKMFL1XyDfA35CCscfjwHmb1iYxemWVTWVa3E 7CZQi56y1GqkwRyDFI/84TMYiDMVabi2pGSFltgOhTUAVrUJmJ56mascADvhN6Q5vJPk 67ew== 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 t20si1535164pjr.107.2019.07.18.02.26.12; Thu, 18 Jul 2019 02:26:28 -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 S2389802AbfGRJZh (ORCPT + 99 others); Thu, 18 Jul 2019 05:25:37 -0400 Received: from mx2.suse.de ([195.135.220.15]:58016 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727131AbfGRJZg (ORCPT ); Thu, 18 Jul 2019 05:25:36 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 8252CAD7B; Thu, 18 Jul 2019 09:25:35 +0000 (UTC) Date: Thu, 18 Jul 2019 11:25:33 +0200 From: Joerg Roedel To: Thomas Gleixner Cc: Joerg Roedel , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Ingo Molnar , Borislav Petkov , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 2/3] x86/mm: Sync also unmappings in vmalloc_sync_one() Message-ID: <20190718092533.GH13091@suse.de> References: <20190717071439.14261-1-joro@8bytes.org> <20190717071439.14261-3-joro@8bytes.org> <20190718084654.GF13091@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 18, 2019 at 11:04:57AM +0200, Thomas Gleixner wrote: > On Thu, 18 Jul 2019, Joerg Roedel wrote: > > No, you are right, I missed that. It is a bug in this patch, the code > > that breaks out of the loop in vmalloc_sync_all() needs to be removed as > > well. Will do that in the next version. > > I assume that p4d/pud do not need the pmd treatment, but a comment > explaining why would be appreciated. Yes, p4d and pud don't need to be handled here, as the code is 32-bit only and there p4d is folded anyway. Pud is only relevant for PAE and will already be mapped when the page-table is created (for performance reasons, because pud is top-level at PAE and mapping it later requires a TLB flush). The pud with PAE also never changes during the life-time of the page-table because we can't map a huge-page there. I will put that into a comment. Thanks, Joerg