Home
last modified time | relevance | path

Searched hist:"2330 b7ca78350efcb1a3b919ea4b3e0e4c57d99f" (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/arch/arm64/include/asm/
H A Dpgtable.hdiff 2330b7ca78350efcb1a3b919ea4b3e0e4c57d99f Mon Sep 24 11:15:02 CDT 2018 Jun Yao <yaojun8558363@gmail.com> arm64/mm: use fixmap to modify swapper_pg_dir

Once swapper_pg_dir is in the rodata section, it will not be possible to
modify it directly, but we will need to modify it in some cases.

To enable this, we can use the fixmap when deliberately modifying
swapper_pg_dir. As the pgd is only transiently mapped, this provides
some resilience against illicit modification of the pgd, e.g. for
Kernel Space Mirror Attack (KSMA).

Signed-off-by: Jun Yao <yaojun8558363@gmail.com>
Reviewed-by: James Morse <james.morse@arm.com>
[Mark: simplify ifdeffery, commit message]
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
/openbmc/linux/arch/arm64/mm/
H A Dmmu.cdiff 2330b7ca78350efcb1a3b919ea4b3e0e4c57d99f Mon Sep 24 11:15:02 CDT 2018 Jun Yao <yaojun8558363@gmail.com> arm64/mm: use fixmap to modify swapper_pg_dir

Once swapper_pg_dir is in the rodata section, it will not be possible to
modify it directly, but we will need to modify it in some cases.

To enable this, we can use the fixmap when deliberately modifying
swapper_pg_dir. As the pgd is only transiently mapped, this provides
some resilience against illicit modification of the pgd, e.g. for
Kernel Space Mirror Attack (KSMA).

Signed-off-by: Jun Yao <yaojun8558363@gmail.com>
Reviewed-by: James Morse <james.morse@arm.com>
[Mark: simplify ifdeffery, commit message]
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>