On Fri, 2022-12-02 at 11:26 +1100, Stephen Rothwell wrote: > Though, I wonder if the powerpc tree should > use mm_alloc() instead of copy_init_mm() as well? The tip tree > commit > says: > > Instead of duplicating init_mm, allocate a fresh mm. The > advantage is > that mm_alloc() has much simpler dependencies. Additionally it > makes > more conceptual sense, init_mm has no (and must not have) user > state > to duplicate. > Yes, that seems fine. All we need is that the page table isn't shared and the kernel mappings are the same as in init_mm. It seems mm_alloc() does this at some point.