Re: [PATCH] [1/5] CPA: Split static_protections into required_static_prot and advised_static_prot

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andi Kleen
Date: Sunday, February 10, 2008 - 2:39 am

On Sat, Feb 09, 2008 at 06:09:23PM +0100, Thomas Gleixner wrote:

Well I need the range check for a different piece of code (init_memory_mapping())
For that a range check is definitely needed and the existing code there
also does an (although quite fishy) range check. The DEBUG_RODATA case
 is also handled correctly there because DEBUG_RODATA is applied explicitely 
using pageattr later. 

You have not commented on that at all so I assume it's ok for you.


In try_preserve_large_page()? No because it only checks the first page.

In all other cases (in the existing code; my patchkit adds a new case 
in mm/init_32.c) it always only checks single 4K pages so the only
overlap case would be sub 4K. For that there can be no split up.

-Andi
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] [1/5] CPA: Split static_protections into requi ..., Andi Kleen, (Sun Feb 10, 2:39 am)