Skip to content

Commit c5cc87f

Browse files
author
Russell King
committed
ARM: idmap: add identity mapping usage note
Add a note about the usage of the identity mapping; we do not support accesses outside of the identity map region and kernel image while a CPU is using the identity map. This is because the identity mapping may overwrite vmalloc space, IO mappings, the vectors pages, etc. Acked-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 811a240 commit c5cc87f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arch/arm/mm/idmap.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
#include <asm/sections.h>
1010
#include <asm/system_info.h>
1111

12+
/*
13+
* Note: accesses outside of the kernel image and the identity map area
14+
* are not supported on any CPU using the idmap tables as its current
15+
* page tables.
16+
*/
1217
pgd_t *idmap_pgd;
1318
phys_addr_t (*arch_virt_to_idmap) (unsigned long x);
1419

0 commit comments

Comments
 (0)