kernel-hacking-2024-linux-s.../arch/x86/mm
Ravikiran G Thirumalai 9e41bff270 x86: fix /dev/mem mmap breakage when PAT is disabled
Impact: allow /dev/mem mmaps on non-PAT CPUs/platforms

Fix mmap to /dev/mem when CONFIG_X86_PAT is off and CONFIG_STRICT_DEVMEM is
off

mmap to /dev/mem on kernel memory has been failing since the
introduction of PAT (CONFIG_STRICT_DEVMEM=n case).   Seems like
the check to avoid cache aliasing with PAT is kicking in even
when PAT is disabled. The bug seems to have crept in 2.6.26.

This patch makes sure that the mmap to regular
kernel memory succeeds if CONFIG_STRICT_DEVMEM=n and
PAT is disabled, and the checks to avoid cache aliasing
still happens if PAT is enabled.

Signed-off-by: Ravikiran Thirumalai <kiran@scalex86.org>
Tested-by: Tim Sirianni <tim@scalemp.com>
Cc: <stable@kernel.org>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-10-30 23:54:41 +01:00
..
dump_pagetables.c
extable.c
fault.c Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2008-10-16 15:08:45 -07:00
gup.c x86: two trivial sparse annotations 2008-10-29 08:02:28 +01:00
highmem_32.c Export kmap_atomic_pfn for DRM-GEM. 2008-10-18 07:10:12 +10:00
hugetlbpage.c
init_32.c
init_64.c x86: remove debug code from arch_add_memory() 2008-10-29 09:29:22 +01:00
ioremap.c x86: start annotating early ioremap pointers with __iomem 2008-10-29 08:05:14 +01:00
k8topology_64.c
kmmio.c
Makefile
memtest.c x86: memtest fix use of reserve_early() 2008-10-22 17:08:06 +02:00
mmap.c
mmio-mod.c
numa_32.c
numa_64.c
pageattr-test.c
pageattr.c proc: switch /proc/meminfo to seq_file 2008-10-23 13:52:40 +04:00
pat.c x86: fix /dev/mem mmap breakage when PAT is disabled 2008-10-30 23:54:41 +01:00
pf_in.c
pf_in.h
pgtable.c
pgtable_32.c
srat_32.c
srat_64.c
testmmiotrace.c