kernel-hacking-2024-linux-s.../arch/x86
Arjan van de Ven 488fd99588 x86: fix pageattr-selftest
In Ingo's testing, he found a bug in the CPA selftest code. What would
happen is that the test would call change_page_attr_addr on a range of
memory, part of which was read only, part of which was writable. The
only thing the test wanted to change was the global bit...

What actually happened was that the selftest would take the permissions
of the first page, and then the change_page_attr_addr call would then
set the permissions of the entire range to this first page. In the
rodata section case, this resulted in pages after the .rodata becoming
read only... which made the kernel rather unhappy in many interesting
ways.

This is just another example of how dangerous the cpa API is (was); this
patch changes the test to use the incremental clear/set APIs
instead, and it changes the clear/set implementation to work on a 1 page
at a time basis.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-01-30 13:34:07 +01:00
..
boot x86: unify arch/x86/boot/compressed/misc_??.c 2008-01-30 13:33:38 +01:00
configs
crypto
ia32
kernel x86: cpa: move flush to cpa 2008-01-30 13:34:07 +01:00
lguest x86: remove depends on X86_32 from PARAVIRT & PARAVIRT_GUEST 2008-01-30 13:33:32 +01:00
lib x86: fix usage of .section .sched.text in assembler code 2008-01-30 13:33:37 +01:00
mach-default
mach-es7000
mach-generic
mach-rdc321x x86: add support for the RDC R-321x SoC 2008-01-30 13:33:36 +01:00
mach-visws
mach-voyager
math-emu
mm x86: fix pageattr-selftest 2008-01-30 13:34:07 +01:00
oprofile
pci
power
vdso x86: add vdso32-int80-syms.lds to .gitignore 2008-01-30 13:33:24 +01:00
video
xen x86: return the page table level in lookup_address() 2008-01-30 13:33:43 +01:00
Kconfig x86: replace boot_ioremap() with enhanced bt_ioremap() - remove boot_ioremap() 2008-01-30 13:33:44 +01:00
Kconfig.cpu
Kconfig.debug x86: cpa: make self-test depend on DEBUG_KERNEL 2008-01-30 13:34:04 +01:00
Makefile x86: add support for the RDC R-321x SoC 2008-01-30 13:33:36 +01:00
Makefile_32.cpu