x86/module: Fix the paravirt vs alternative order
authorPeter Zijlstra <peterz@infradead.org>
Thu, 3 Mar 2022 11:23:23 +0000 (12:23 +0100)
committerBorislav Petkov <bp@suse.de>
Tue, 8 Mar 2022 13:15:25 +0000 (14:15 +0100)
commit5adf349439d29f92467e864f728dfc23180f3ef9
tree57fb5f317717fc95cf8738bb0bcd516010c359f2
parentffb217a13a2eaf6d5bd974fc83036a53ca69f1e2
x86/module: Fix the paravirt vs alternative order

Ever since commit

  4e6292114c74 ("x86/paravirt: Add new features for paravirt patching")

there is an ordering dependency between patching paravirt ops and
patching alternatives, the module loader still violates this.

Fixes: 4e6292114c74 ("x86/paravirt: Add new features for paravirt patching")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20220303112825.068773913@infradead.org
arch/x86/kernel/module.c