Re: [PATCH 1/2] fs: binfmt_elf: Create Kconfig variable for PIE randomization.

From: H. Peter Anvin
Date: Wed Nov 09 2011 - 19:38:49 EST


On 11/09/2011 04:32 PM, David Daney wrote:
> Randomization of PIE load address is hard coded in binfmt_elf.c for
> X86 and ARM. Create a new Kconfig variable
> (CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE) for this and use it instead.
> Thus architecture specific policy is pushed out of the generic
> binfmt_elf.c and into the architecture Kconfig files.
>
> X86 and ARM Kconfigs are modified to select the new variable so there
> is no change in behavior. A follow on patch will select it for MIPS
> too.
>
> Cc: Russell King <linux@xxxxxxxxxxxxxxxx>
> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Cc: Ingo Molnar <mingo@xxxxxxxxxx>
> Cc: "H. Peter Anvin" <hpa@xxxxxxxxx>
> Cc: x86@xxxxxxxxxx
> Cc: Alexander Viro <viro@xxxxxxxxxxxxxxxxxx>
> Cc: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
> Cc: linux-kernel@xxxxxxxxxxxxxxx
> Cc: linux-fsdevel@xxxxxxxxxxxxxxx
> Signed-off-by: David Daney <david.daney@xxxxxxxxxx>

Acked-by: H. Peter Anvin <hpa@xxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/