kernel-hacking-2024-linux-s.../arch/x86
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
..
boot Merge branch 'x86-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip 2008-10-23 12:38:39 -07:00
configs
crypto
ia32
include/asm x86, uv: fix compile error in uv_hub.h 2008-10-30 19:38:46 +01:00
kernel x86: use CONFIG_X86_SMP instead of CONFIG_SMP 2008-10-30 22:53:10 +01:00
kvm Merge commit 'linus/master' into merge-linus 2008-10-17 09:20:26 -07:00
lguest
lib
mach-default
mach-generic
mach-rdc321x
mach-voyager x86/voyager: fix compile breakage casued by x86: move prefill_possible_map calling early 2008-10-30 22:55:51 +01:00
math-emu
mm x86: fix /dev/mem mmap breakage when PAT is disabled 2008-10-30 23:54:41 +01:00
oprofile
pci x86/PCI: irq and pci_ids patch for Intel Ibex Peak DeviceIDs 2008-10-20 10:53:48 -07:00
power
vdso
video
xen xen: fix Xen domU boot with batched mprotect 2008-10-27 14:11:20 +01:00
Kconfig Merge branch 'linus' into test 2008-10-23 00:11:07 -04:00
Kconfig.cpu x86, bts: improve help text for BTS config 2008-10-28 16:39:37 +01:00
Kconfig.debug
Makefile x86, um: ... and asm-x86 move 2008-10-22 22:55:20 -07:00
Makefile_32.cpu