aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorRam Pai <[email protected]>2018-12-20 12:03:30 -0800
committerMichael Ellerman <[email protected]>2018-12-21 14:46:50 +1100
commit2cd4bd192ee94848695c1c052d87913260e10f36 (patch)
tree196e1d7a1fb878dae550092bc739c5ac5e4318db /tools/perf/util/scripting-engines/trace-event-python.c
parent2f07229f02d4c55affccd11a61af4fd4b94dc436 (diff)
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: cf43d3b26452 ("powerpc: Enable pkey subsystem") Cc: [email protected] # v4.16+ Reviewed-by: Thiago Jung Bauermann <[email protected]> Signed-off-by: Ram Pai <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions