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 Thank you for testing 6.5-rc, and I am sorry to have inconvenienced you. But there is not one example of an in-tree module needing that, which is a very strong hint that no module should be needing that. Sounds like pvrsrvkm.ko wants to muck around with page table entries, without the core mm knowing. Not something core mm can encourage! If what pvrsrvkm.ko is aiming to do there would be useful for others, maybe its owner can share that, and work with core mm developers to expose a generally useful interface - but that is not likely to be __pte_offset_map_lock itself. Hugh