Re: [PATCH v3] mm: fix race by making init_zero_pfn() early_initcall

2021-03-29 Thread Zhou Yanjie
Hi Ilya, On 2021/3/30 下午12:42, Ilya Lipnitskiy wrote: There are code paths that rely on zero_pfn to be fully initialized before core_initcall. For example, wq_sysfs_init() is a core_initcall function that eventually results in a call to kernel_execve, which causes a page fault with a subsequent

[PATCH v3] mm: fix race by making init_zero_pfn() early_initcall

2021-03-29 Thread Ilya Lipnitskiy
There are code paths that rely on zero_pfn to be fully initialized before core_initcall. For example, wq_sysfs_init() is a core_initcall function that eventually results in a call to kernel_execve, which causes a page fault with a subsequent mmput. If zero_pfn is not initialized by then it may not