From: Jun Yao Subject: [PATCH 0/1] Move {idmap_pg_dir,tramp_pg_dir,swapper_pg_dir} Date: Wed, 20 Jun 2018 16:57:54 +0800 Message-Id: <20180620085755.20045-1-yaojun8558363@gmail.com> To: linux-arm-kernel@lists.infradead.org Cc: catalin.marinas@arm.com, will.deacon@arm.com, ard.biesheuvel@linaro.org, james.morse@arm.com, linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com List-ID: This patch moves {idmap_pg_dir,tramp_pg_dir,swapper_pg_dir} to .rodata section, which makes KSMA more difficult. At the same time, it is more concise than the previous patches[1][2]. As James Morse suggested[2], this patch updates swapper_pg_dir through the fixmap entry. [1] http://www.openwall.com/lists/kernel-hardening/2018/05/31/1 [2] https://patchwork.kernel.org/patch/10449589/ Jun Yao (1): arm64/mm: move {idmap_pg_dir,tramp_pg_dir,swapper_pg_dir} to .rodata section arch/arm64/include/asm/pgalloc.h | 19 +++++++++++++++++++ arch/arm64/kernel/vmlinux.lds.S | 32 ++++++++++++++++++-------------- arch/arm64/mm/mmu.c | 23 +++++++++++++++++++---- 3 files changed, 56 insertions(+), 18 deletions(-) -- 2.17.1