]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: kaslr: support randomized module area with KASAN_VMALLOC
authorLecopzer Chen <lecopzer.chen@mediatek.com>
Wed, 24 Mar 2021 04:05:21 +0000 (12:05 +0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 29 Mar 2021 11:35:05 +0000 (12:35 +0100)
commit4d3dbe58c55fb9e843e245d183fd7b7926d52c68
treeea2440bcbb811caabbcd2b51802f70ea160a718c
parent0767491fc3394b4744635e299fab73000548e86d
arm64: kaslr: support randomized module area with KASAN_VMALLOC

After KASAN_VMALLOC works in arm64, we can randomize module region
into vmalloc area now.

Test:
VMALLOC area ffffffc010000000 fffffffdf0000000

before the patch:
module_alloc_base/end ffffffc008b80000 ffffffc010000000
after the patch:
module_alloc_base/end ffffffdcf4bed000 ffffffc010000000

And the function that insmod some modules is fine.

Suggested-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Lecopzer Chen <lecopzer.chen@mediatek.com>
Link: https://lore.kernel.org/r/20210324040522.15548-5-lecopzer.chen@mediatek.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/kaslr.c
arch/arm64/kernel/module.c