Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp170742pxj; Wed, 16 Jun 2021 23:32:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoCS72W568ff/4VaJ76oJhtP+bOzVs/TFTJ/DQ0lUX/bxLmx0Zt9cdgum/Iu9deiIWpxC+ X-Received: by 2002:a05:6602:204f:: with SMTP id z15mr2586692iod.172.1623911545562; Wed, 16 Jun 2021 23:32:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623911545; cv=none; d=google.com; s=arc-20160816; b=DwJnOm1W+XdiRhTu32JeAmozONKOWy0YMVFEma+8bVEksypN/3G5d1Mk1d6GSzjj/Y DGtWrXRRVcrb+9vwP0QVFM7dK4aovGbOnatJIhCk7Y6C3fXy75J0Kfr7QypnwQjW2ln1 40GR0jJI7E7pGl53VX3GOkGC/413e5dobzUTTt7KMbZ4lck7DFr1LR8wohktfQUn4rv3 PFrhw+CtNA2gtrUf58Lb9EzQOXUtRcmDnLwVILVF1yP8ptdaWU4MdFjrbP8cI4hHjuYJ 0jXf+u4z00EMgxx5KqINANdJC8l+twgvj3zwzu2kWaZfBJJ6ed0LRYmR57NLSdf5B0eB FBlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=E6y3y/xTHaypcAPVN0fGHqHZzDTOoc4NsriC5tTV+oU=; b=HU0z/IBzYAW0krksl50VqRWsZBDSl2scQIIJlLEoHV06cQrSZWCRTahpf8Bn6sLoGE LyrMFlKyZI6oboK7NoXPfgRchqp7LTc0Stv/Ob0uIXOcl2UstIMKM/fbWt35qiBkeolZ 7J3ShENo78aKRsiHWCxxyvi+D/Txx8s27/8gEs9vt9Y4H/dys3YnexQPwkMD9rp1116s 1fLKr3/+14RIw/C5o6ATJVy+TcyY47zdrfqrh4zgQKiHXxp0JG92ItXyMOtajONEieK1 QQlqRW45Xd1Jt/By2zIQOUFaHif/+DAWkAxGnoP2pN+E2SVDLj3Dq8NBW0eq77JCMZDY k5+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d70si5941995iog.4.2021.06.16.23.32.13; Wed, 16 Jun 2021 23:32:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229580AbhFQGcn (ORCPT + 99 others); Thu, 17 Jun 2021 02:32:43 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:29067 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229515AbhFQGcl (ORCPT ); Thu, 17 Jun 2021 02:32:41 -0400 Received: from localhost (mailhub3.si.c-s.fr [192.168.12.233]) by localhost (Postfix) with ESMTP id 4G5Bxz2jCKzBDnG; Thu, 17 Jun 2021 08:30:31 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QpXYjQvoTAjz; Thu, 17 Jun 2021 08:30:31 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 4G5Bxy1dqgzBDkw; Thu, 17 Jun 2021 08:30:30 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 1BE708B801; Thu, 17 Jun 2021 08:30:30 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id 2UIxgwKDwaK1; Thu, 17 Jun 2021 08:30:30 +0200 (CEST) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id EE76B8B805; Thu, 17 Jun 2021 08:30:28 +0200 (CEST) Subject: Re: [PATCH v3 22/23] powerpc/vdso: Migrate native signals to generic vdso_base To: Dmitry Safonov , linux-kernel@vger.kernel.org Cc: Dmitry Safonov <0x7f454c46@gmail.com>, Alexander Viro , Andrew Morton , Andy Lutomirski , Arnd Bergmann , Borislav Petkov , Catalin Marinas , Guo Ren , "H. Peter Anvin" , Ingo Molnar , Oleg Nesterov , Russell King , Thomas Bogendoerfer , Thomas Gleixner , Vincenzo Frascino , Will Deacon , x86@kernel.org, Benjamin Herrenschmidt , Michael Ellerman , Paul Mackerras References: <20210611180242.711399-1-dima@arista.com> <20210611180242.711399-23-dima@arista.com> From: Christophe Leroy Message-ID: <4500e70f-19bc-588c-df8f-d5b5b304ee49@csgroup.eu> Date: Thu, 17 Jun 2021 08:30:26 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210611180242.711399-23-dima@arista.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 11/06/2021 à 20:02, Dmitry Safonov a écrit : > Generic way to track the land vma area. > Stat speaks for itself. > > Cc: Benjamin Herrenschmidt > Cc: Michael Ellerman > Cc: Paul Mackerras > Signed-off-by: Dmitry Safonov > --- > diff --git a/arch/powerpc/include/asm/mmu_context.h b/arch/powerpc/include/asm/mmu_context.h > index 4bc45d3ed8b0..71dedeac7fdb 100644 > --- a/arch/powerpc/include/asm/mmu_context.h > +++ b/arch/powerpc/include/asm/mmu_context.h > @@ -260,15 +260,6 @@ static inline void enter_lazy_tlb(struct mm_struct *mm, > > extern void arch_exit_mmap(struct mm_struct *mm); > > -static inline void arch_unmap(struct mm_struct *mm, > - unsigned long start, unsigned long end) > -{ > - unsigned long vdso_base = (unsigned long)mm->context.vdso; > - > - if (start <= vdso_base && vdso_base < end) > - mm->context.vdso = NULL; > -} > - > #ifdef CONFIG_PPC_MEM_KEYS > bool arch_vma_access_permitted(struct vm_area_struct *vma, bool write, > bool execute, bool foreign); powerpc was the only user of arch_unmap(). We should get rid of it completely (Remove the stubs in arch/x86/include/asm/mmu_context.h and include/asm-generic/mm_hooks.h and remove call in mm/mmap.c)