]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mshv: clean up SynIC state on kexec for L1VH
authorJork Loeser <jloeser@linux.microsoft.com>
Mon, 27 Apr 2026 21:38:53 +0000 (14:38 -0700)
committerWei Liu <wei.liu@kernel.org>
Wed, 29 Apr 2026 22:56:53 +0000 (22:56 +0000)
commitefe0fb8c3fe2b996522f7418fd311eeff43c1148
tree06252f2f7882c24cc897faa3d516ca2435d7a692
parentf1a9e67c11388965802a61922c313bfc43272afe
mshv: clean up SynIC state on kexec for L1VH

The reboot notifier that tears down the SynIC cpuhp state guards the
cleanup with hv_root_partition(), so on L1VH (where
hv_root_partition() is false) SINT0, SINT5, and SIRBP are never
cleaned up before kexec. The kexec'd kernel then inherits stale
unmasked SINTs and an enabled SIRBP pointing to freed memory.

Remove the hv_root_partition() guard so the cleanup runs for all
parent partitions.

Signed-off-by: Jork Loeser <jloeser@linux.microsoft.com>
Reviewed-by: Stanislav Kinsburskii <skinsburskii@linux.microsoft.com>
Reviewed-by: Anirudh Rayabharam (Microsoft) <anirudh@anirudhrb.com>
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/mshv_synic.c