]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc/64: Define ILLEGAL_POINTER_VALUE for 64-bit
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 15 Nov 2016 10:59:38 +0000 (21:59 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 2 Dec 2016 02:01:04 +0000 (13:01 +1100)
commitf6853eb561fb9bfd56dfe0009f0ea27540937bd5
tree6a018bfd5c2be4e74a16eb5bfbc619c3f1f4a52c
parent93c2ec0f7019a155769d1ecfc08a7de83b47e03d
powerpc/64: Define ILLEGAL_POINTER_VALUE for 64-bit

This is used in poison.h to offset poison values so that they don't
point directly into user space.

The value we choose sits roughly between user and kernel space, which
means on their own the poison values don't point anywhere useful. If an
attacker can cause an access at some offset from the poison value then
we may still be in trouble, but by putting the poison values between
user and kernel space we maximise the required size of that offset.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/Kconfig