Re: [PATCH] mm: provide reference to READ_IMPLIES_EXEC

From: Konstantin Khlebnikov
Date: Thu Jan 28 2016 - 04:33:46 EST


On Thu, Jan 28, 2016 at 12:11 PM, Sudip Mukherjee
<sudipm.mukherjee@xxxxxxxxx> wrote:
> blackfin defconfig fails with the error:
> mm/internal.h: In function 'is_stack_mapping':
> arch/blackfin/include/asm/page.h:15:27: error: 'READ_IMPLIES_EXEC' undeclared
>
> Commit 07dff8ae2bc5 has added is_stack_mapping in mm/internal.h but it
> also needs personality.h.

I have different patch which should fix this too.
It removes usage of VM_STACK_DEFAULT_FLAGS from that file.

>
> Fixes: 07dff8ae2bc5 ("mm: warn about VmData over RLIMIT_DATA")
> Cc: Konstantin Khlebnikov <koct9i@xxxxxxxxx>
> Signed-off-by: Sudip Mukherjee <sudip@xxxxxxxxxxxxxxx>
> ---
>
> build log at:
> https://travis-ci.org/sudipm-mukherjee/parport/jobs/105335848
>
> mm/internal.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/mm/internal.h b/mm/internal.h
> index cac6eb4..59c496f 100644
> --- a/mm/internal.h
> +++ b/mm/internal.h
> @@ -14,6 +14,7 @@
> #include <linux/fs.h>
> #include <linux/mm.h>
> #include <linux/pagemap.h>
> +#include <linux/personality.h>
> #include <linux/tracepoint-defs.h>
>
> /*
> --
> 1.9.1
>