Re: [patch 0/5] Support for sanitization flag in low-level page allocator

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Larry H.
Date: Wednesday, May 20, 2009 - 2:24 pm

On 22:42 Wed 20 May     , Peter Zijlstra wrote:

What's wasteful about it? It does not conflict with anything else and
there's plenty of room for other future flags.

The idea of the patch is not merely "protecting" those few places, but
providing a clean, effective generalized method for this purpose. Your
approach means forcing all developers to remember where they have to
place this explicit clearing, and introducing unnecessary code
duplication and an ever growing list of places adding these calls.

Would you be honestly willing to oversee that job?

Point of allocation isn't the same as point of release/freeing.

Also, this let's third-party code (and other kernel interfaces)
use this feature effortlessly. Moreover, this flag allows easy
integration with MAC/security frameworks (for instance, SELinux) to mark
a process as requiring sensitive mappings, in higher level APIs. There are
plans to work on such a patch, which could be independently proposed
to the SELinux maintainers.

	Larry.

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

Messages in current thread:
Re: [patch 0/5] Support for sanitization flag in low-level ..., Larry H., (Wed May 20, 2:24 pm)
[PATCH] Support for unconditional page sanitization, Larry H., (Sat May 23, 11:21 am)
Re: [PATCH] Support for unconditional page sanitization, Arjan van de Ven, (Sat May 23, 2:05 pm)
Re: [PATCH] Support for unconditional page sanitization, Arjan van de Ven, (Sun May 24, 9:38 am)