Files
linux/arch/powerpc/include/asm
Ram Pai 2cd4bd192e powerpc/pkeys: Fix handling of pkey state across fork()
Protection key tracking information is not copied over to the
mm_struct of the child during fork(). This can cause the child to
erroneously allocate keys that were already allocated. Any allocated
execute-only key is lost aswell.

Add code; called by dup_mmap(), to copy the pkey state from parent to
child explicitly.

This problem was originally found by Dave Hansen on x86, which turns
out to be a problem on powerpc aswell.

Fixes: cf43d3b264 ("powerpc: Enable pkey subsystem")
Cc: stable@vger.kernel.org # v4.16+
Reviewed-by: Thiago Jung Bauermann <bauerman@linux.ibm.com>
Signed-off-by: Ram Pai <linuxram@us.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-12-21 14:46:50 +11:00
..
2016-03-04 23:50:27 -06:00
2018-06-03 20:32:02 +10:00
2018-12-19 18:56:32 +11:00
2016-03-01 19:27:20 +11:00
2018-12-19 18:56:26 +11:00
2018-12-20 22:21:20 +11:00
2018-05-07 07:15:41 +02:00
2018-12-20 22:21:20 +11:00
2016-06-14 13:58:26 +10:00
2018-09-18 17:52:15 -05:00
2018-10-31 08:54:12 -07:00
2016-06-14 13:58:26 +10:00
2018-05-25 12:04:43 +10:00
2018-06-03 21:19:40 +10:00
2018-01-15 09:35:26 +01:00
2018-06-23 21:43:21 +10:00
2018-07-30 22:48:21 +10:00
2018-10-20 13:26:47 +11:00
2016-06-14 13:58:26 +10:00
2017-11-12 09:03:10 +11:00