lkml.org 
[lkml]   [2015]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] mm/page_alloc.c: add config option to sanitize freed pages
On Fri, 24 Apr 2015, Anisse Astier wrote:

> diff --git a/mm/Kconfig b/mm/Kconfig
> index 390214d..cb2df5f 100644
> --- a/mm/Kconfig
> +++ b/mm/Kconfig
> @@ -635,3 +635,15 @@ config MAX_STACK_SIZE_MB
> changed to a smaller value in which case that is used.
>
> A sane initial value is 80 MB.
> +
> +config SANITIZE_FREED_PAGES
> + bool "Sanitize memory pages after free"
> + default n
> + help
> + This option is used to make sure all pages freed are zeroed. This is
> + quite low-level and doesn't handle your slab buffers.
> + It has various applications, from preventing some info leaks to
> + helping kernel same-page merging in virtualised environments.
> + Depending on your workload, it will reduce performance of about 3%.
> +
> + If unsure, say N.

Objection to allowing this without first enabling some other DEBUG config
option, it should never be a standalone option, but also to pretending to
have any insight into what the performance degredation of it will be. On
my systems, this would be _massive_.


\
 
 \ /
  Last update: 2015-04-25 00:01    [W:1.755 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site