]> git.baikalelectronics.ru Git - kernel.git/commit
x86: cpa, strict range check in try_preserve_large_page()
authorThomas Gleixner <tglx@linutronix.de>
Sat, 9 Feb 2008 22:24:09 +0000 (23:24 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 9 Feb 2008 22:24:09 +0000 (23:24 +0100)
commit56ef20e46bd1c970323d47d37c7a0394aa7ee1e1
tree8bf2df694a2300a277cf097ba778f9b4b28f2122
parentb740fdce04d6366cbfeac9b658d8da67b14d4847
x86: cpa, strict range check in try_preserve_large_page()

Right now, we check only the first 4k page for static required protections.
This does not take overlapping regions into account. So we might end up
setting the wrong permissions/protections for other parts of this large page.

This can be optimized further, but correctness is the important part.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/pageattr.c