From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 75623C433E2 for ; Thu, 3 Sep 2020 15:17:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4D19E20786 for ; Thu, 3 Sep 2020 15:17:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729042AbgICPRr (ORCPT ); Thu, 3 Sep 2020 11:17:47 -0400 Received: from 8bytes.org ([81.169.241.247]:40720 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728810AbgICPRq (ORCPT ); Thu, 3 Sep 2020 11:17:46 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id C4746847; Thu, 3 Sep 2020 17:17:40 +0200 (CEST) Date: Thu, 3 Sep 2020 17:17:39 +0200 From: Joerg Roedel To: Andy Lutomirski Cc: X86 ML , Dave Hansen , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Joerg Roedel , LKML , Naresh Kamboju , stable Subject: Re: [PATCH] x86/mm/32: Bring back vmalloc faulting on x86_32 Message-ID: <20200903151739.GA28508@8bytes.org> References: <20200902155904.17544-1-joro@8bytes.org> 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: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org Hi Andy, On Thu, Sep 03, 2020 at 07:52:35AM -0700, Andy Lutomirski wrote: > Does this mean we can get rid of arch_sync_kernel_mappings()? Or > should we consider adding some locking to make it non-racy again? Well, removing arch_sync_kernel_mappings() would mean to re-introduce vmalloc_sync_all() calls all over the place, I am not in favour for that. I also thought about locking, but that is not easily doable without destroying performance/scalability of the vmalloc alloc/free path for other architectures too. It _could_ be done, but the effort is large and touches a lot of generic page-table allocation code just for x86-32. This seemed not worth it while thinking about it. Regards, Joerg