diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2006-09-16 09:50:22 (GMT) |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2006-09-25 09:25:26 (GMT) |
commit | 51635ad282ead58b9d164f07e1fb62a9456b427c (patch) | |
tree | a7d9fb162d09aaf02da3dee89520b10c07d92c8b /kernel | |
parent | bf11d26cb96fe8221ef056eedab692e91634cc65 (diff) | |
download | linux-fsl-qoriq-51635ad282ead58b9d164f07e1fb62a9456b427c.tar.xz |
[ARM] 3813/1: prevent >= 4G /dev/mem mmap()
Prevent userland from mapping in physical address regions >= 4G by
checking for that in valid_mmap_phys_addr_range().
Unfortunately, we cannot override valid_mmap_phys_addr_range() without
also overriding valid_phys_addr_range(), so copy drivers/char/mem.c's
version of valid_phys_addr_range() over to arch/arm/mm/mmap.c as well.
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions