OSDN Git Service

arm64: Move .hyp.rodata outside of the _sdata.._edata range
authorMarc Zyngier <maz@kernel.org>
Mon, 2 Aug 2021 12:38:29 +0000 (13:38 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 4 Aug 2021 12:09:20 +0000 (13:09 +0100)
commiteb48d154cd0dade56a0e244f0cfa198ea2925ed3
tree8e40f6d6922f28ca4cd29a9d18551d9b8a23fb2d
parentc500bee1c5b2f1d59b1081ac879d73268ab0ff17
arm64: Move .hyp.rodata outside of the _sdata.._edata range

The HYP rodata section is currently lumped together with the BSS,
which isn't exactly what is expected (it gets registered with
kmemleak, for example).

Move it away so that it is actually marked RO. As an added
benefit, it isn't registered with kmemleak anymore.

Fixes: 380e18ade4a5 ("KVM: arm64: Introduce a BSS section for use at Hyp")
Suggested-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Cc: stable@vger.kernel.org #5.13
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20210802123830.2195174-2-maz@kernel.org
arch/arm64/kernel/vmlinux.lds.S