Re: [PATCH 4/4] arm64/mm: migrate swapper_pg_dir and tramp_pg_dir

2018-06-01 Thread Robin Murphy
On 01/06/18 09:09, Jun Yao wrote: Migrate swapper_pg_dir and tramp_pg_dir. And their virtual addresses do not correlate with kernel's address. I think this might break software PAN, which IIRC depends on the reserved TTBR0 PGD being physically adjacent to the live swapper PGD for the trickery

[PATCH 4/4] arm64/mm: migrate swapper_pg_dir and tramp_pg_dir

2018-06-01 Thread Jun Yao
Migrate swapper_pg_dir and tramp_pg_dir. And their virtual addresses do not correlate with kernel's address. Signed-off-by: Jun Yao --- arch/arm64/mm/mmu.c | 70 +++-- 1 file changed, 42 insertions(+), 28 deletions(-) diff --git a/arch/arm64/mm/mmu.c b/ar

[PATCH 4/4] arm64/mm: migrate swapper_pg_dir

2018-05-30 Thread YaoJun
Migrate swapper_pg_dir and tramp_pg_dir. And its placement in the virtual address space does not correlate with the placement of the kernel. Signed-off-by: YaoJun --- arch/arm64/mm/mmu.c | 67 +++-- 1 file changed, 46 insertions(+), 21 deletions(-) diff -