KVM/arm64 fixes for 5.19, take #2 - Fix a regression with pKVM when kmemleak is enabled - Add Oliver Upton as an official KVM/arm64 reviewer
Unified · Split
| @@ -10830,6 +10830,7 @@ M: Marc Zyngier <maz@kernel.org> · 10829 unmodified lines | ||
| 10830 | 10830 | R: James Morse <james.morse@arm.com> |
| 10831 | 10831 | R: Alexandru Elisei <alexandru.elisei@arm.com> |
| 10832 | 10832 | R: Suzuki K Poulose <suzuki.poulose@arm.com> |
| 10833 | +R: Oliver Upton <oliver.upton@linux.dev> | |
| 10833 | 10834 | L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) |
| 10834 | 10835 | L: kvmarm@lists.cs.columbia.edu (moderated for non-subscribers) |
| 10835 | 10836 | S: Maintained |
| @@ -2112,11 +2112,11 @@ static int finalize_hyp_mode(void) · 2111 unmodified lines | ||
| 2112 | 2112 | return 0; |
| 2113 | 2113 | |
| 2114 | 2114 | /* |
| 2115 | − * Exclude HYP BSS from kmemleak so that it doesn't get peeked | |
| 2116 | − * at, which would end badly once the section is inaccessible. | |
| 2117 | − * None of other sections should ever be introspected. | |
| 2115 | + * Exclude HYP sections from kmemleak so that they don't get peeked | |
| 2116 | + * at, which would end badly once inaccessible. | |
| 2118 | 2117 | */ |
| 2119 | 2118 | kmemleak_free_part(__hyp_bss_start, __hyp_bss_end - __hyp_bss_start); |
| 2119 | + kmemleak_free_part(__va(hyp_mem_base), hyp_mem_size); | |
| 2120 | 2120 | return pkvm_drop_host_privileges(); |
| 2121 | 2121 | } |
| 2122 | 2122 | |