]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/mm: Use mm_alloc() in poking_init()
authorPeter Zijlstra <peterz@infradead.org>
Tue, 25 Oct 2022 19:38:21 +0000 (21:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Aug 2023 17:58:33 +0000 (19:58 +0200)
commit8e4c2530879d7ac1eecc1815b1e34e597c7d4f22
treefc5eb0e6d52fd0fd5fde009435cbab7dd0614da3
parent13ec5cb4c113d9159b5138d45f588f40ba66ca56
x86/mm: Use mm_alloc() in poking_init()

commit 3f4c8211d982099be693be9aa7d6fc4607dff290 upstream.

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.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20221025201057.816175235@infradead.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/mm/init.c
include/linux/sched/task.h
kernel/fork.c