On 12 May 2016 at 04:10, Alex Shi alex.shi@linaro.org wrote:
Hi Ard,
The KASLR is backported to LSK v4.4 on git://git.linaro.org/kernel/linux-linaro-stable.git v4.4/topic/mm-kaslr
from v4.4.9 to 5dd612e parisc: Use generic extable search and sort ..
You can drop this one, I think? I don't suppose anyone is running LSK on the PA-risc architecture?
Could you like help to review the backporting commits, especially on the 'Conflicts' commits: 44b9620 arm64: kvm: deal with kernel symbols outside of linear mapping
Looks fine to me
2894f32 arm64: prevent potential circular header dependencies in asm/bug.h
Looks fine. You will notice fairly quickly since it works around a build problem
d277954 Eliminate the .eh_frame sections from the aarch64 vmlinux and kernel modules 358e3c8 arm64: Use PoU cache instr for I/D coherency
Both look fine as well.
Once you have managed to build this with CONFIG_RANDOMIZE_BASE=y, you can check if it works by getting a firmware here:
http://snapshots.linaro.org/components/kernel/leg-virt-tianocore-edk2-upstre...
and running it in qemu as below
qemu-system-aarch64 -M virt -cpu cortex-a57 -m 512 -nographic -bios QEMU_EFI.fd -kernel xxxx -append 'earlycon console=ttyAMA0' -device virtio-rng-pci
and you should see different values for the entries below at every boot
[ 0.000000] .text : 0xffffff8691ef0000 - 0xffffff8692620000 ( 7360 KB) [ 0.000000] .rodata : 0xffffff8692620000 - 0xffffff8692940000 ( 3200 KB) [ 0.000000] .init : 0xffffff8692940000 - 0xffffff8692be0000 ( 2688 KB) [ 0.000000] .data : 0xffffff8692be0000 - 0xffffff8692c8d400 ( 693 KB) [ 0.000000] .bss : 0xffffff8692c8d400 - 0xffffff8692ccbbac ( 250 KB)
Thanks, Ard.