Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp1257599rwb; Sat, 5 Aug 2023 10:24:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHl0kYvHkQf3T2QsBcMjeroYyaQoFlrOwgqPWtIeO23SrANgYeTYSAftzHM6TY5ij96awJO X-Received: by 2002:a17:902:e5d2:b0:1b8:9db5:2ec1 with SMTP id u18-20020a170902e5d200b001b89db52ec1mr5160224plf.67.1691256276278; Sat, 05 Aug 2023 10:24:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691256276; cv=none; d=google.com; s=arc-20160816; b=QOdm2Dbvm2zPv5D5eHM87zjo4i0nia9jW0uzqQPxf4PPPDNJX162+P1mQknTICybdZ 5PnVP+fyUPWtuR7a48Q3WkZLC08NjKayFwb+wrxWrJ++sQqbP0ADqZxMWlVstLmDoWgT VUkdqtSgPGWTp3abBv4GwB/GKylRDy39RrgvTEsOSxF9a4GnSSvot0bUc1HazzrQPNd/ k0qzfCPY+cFPRV75nkhCkkC9YoOqLEfkZcUX8dOB+FqUrNjWWu0sc78VVyf4vbwY/Phy cn+hSs3ANVTsbRa3L1CwXQjX5PlYXy7OUkGAeO4am1nC2hrRiiuCVlnPrc6t4n/gpZQe PlUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uQ9RgvUaYz5ZoHkSz4TftrkTzewOwk1/pabomeJDyDQ=; fh=PbbzuU0e43zMddBi/K7ELe7WjJwzpFqSOyGBSoYWyAU=; b=apiNSjYkY7qgfhEnedP3ICdY3Umqer6DXPNrfBYzSwMrvXZsnDpSISrtLw977Q/Ovl sQeZh6x/3z/skNuw2Y5HCq/QyxhOdMcCLahO1epQL/h8AWLPZyKCOZoE0nTTw5hqBVvR u7AUDcoQoTNTAqnUltuqnFA8SQ8uERO8me5vNaMUOvuGfEB8BC1S+DN90FozsrdsCOHp YRI8tkRQShf92dpXNmEZgdP7kJThjGRmeefCPS/aB6lqiYUR/xD9X39YE4NOsLcSEHNu gdAp+0LDUySUhbpoyG3GVJn2s0P8eE9yNhmBuMbmW9yewF78r2g0+lRSwqiOwlAZ84Mf 83mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="AmKIfX/0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pi5-20020a17090b1e4500b00262f0035181si1793134pjb.26.2023.08.05.10.24.23; Sat, 05 Aug 2023 10:24:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b="AmKIfX/0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229617AbjHERIF (ORCPT + 99 others); Sat, 5 Aug 2023 13:08:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjHERID (ORCPT ); Sat, 5 Aug 2023 13:08:03 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BD8EE4A for ; Sat, 5 Aug 2023 10:08:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=uQ9RgvUaYz5ZoHkSz4TftrkTzewOwk1/pabomeJDyDQ=; b=AmKIfX/0U64+sAeS/5/upk0HBy lT9wElStLEcXTuLFF5qomt3n0sjH+6cAw0SqLTFl78kCR+jM/gZTMZbP/faaFX1cIkibWILBZzT1f eccJG/c5EuNSn5/3/8KulVBGEdLXSTwpk4uVg2Lirr5IDzoi6w6WH8j0HHoyNSNrgAVWKtgigjJk8 A3dEZ5XWmkgtnexBs1J3Muaw9U+gJNb4cBxEAFTm7R0Uqy8vDLqduNT2DHfxWItpHolwnKPre5y5v dRHgsdEFeo37W1+0/TIhXxACWMURHwANbIPD1pCfAn7zsJv3G58u8GbDChorewlSfAneXOGlqdGzd JymtXjyg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1qSKk5-00H5kj-2R; Sat, 05 Aug 2023 17:07:05 +0000 Date: Sat, 5 Aug 2023 18:07:05 +0100 From: Matthew Wilcox To: Yongqin Liu Cc: Hugh Dickins , Andrew Morton , Mike Kravetz , Mike Rapoport , "Kirill A. Shutemov" , David Hildenbrand , Suren Baghdasaryan , Qi Zheng , Yang Shi , Mel Gorman , Peter Xu , Peter Zijlstra , Will Deacon , Yu Zhao , Alistair Popple , Ralph Campbell , Ira Weiny , Steven Price , SeongJae Park , Lorenzo Stoakes , Huang Ying , Naoya Horiguchi , Christophe Leroy , Zack Rusin , Jason Gunthorpe , Axel Rasmussen , Anshuman Khandual , Pasha Tatashin , Miaohe Lin , Minchan Kim , Christoph Hellwig , Song Liu , Thomas Hellstrom , Ryan Roberts , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v2 04/32] mm/pgtable: allow pte_offset_map[_lock]() to fail Message-ID: References: <2929bfd-9893-a374-e463-4c3127ff9b9d@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Aug 06, 2023 at 12:06:28AM +0800, Yongqin Liu wrote: > On Sat, 29 Jul 2023 at 00:58, Hugh Dickins wrote: > > > > On Fri, 28 Jul 2023, Matthew Wilcox wrote: > > > On Fri, Jul 28, 2023 at 09:53:29PM +0800, Yongqin Liu wrote: > > > > Hi, Hugh > > > > > > > > It seems this change makes pte_offset_map_lock not possible to be > > > > called in out of tree modules, > > > > otherwise it will report error like this: > > > > ERROR: modpost: "__pte_offset_map_lock" > > > > [../omap-modules/android-mainline/pvr/pvrsrvkm.ko] undefined! > > > > > > > > Not sure if you have any idea about it, and any suggestions on how to > > > > resolve it? > > > > > > Please explain why this module needs to map page tables > > > > +1 > Sorry, I am not able to give any explanation here, > I am not familiar with the pvrsrvkm source, I just use it to have one > working AOSP build. > > here is the source file where pte_offset_map_lock is called, > https://android-git.linaro.org/kernel/omap-modules.git/tree/pvr/services4/srvkm/env/linux/osfunc.c?h=android-mainline#n3508 > in case you could know something with a quick look. Isn't this just get_user_pages()?