aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorPeilin Ye <[email protected]>2020-08-01 11:20:44 -0400
committerChristian Brauner <[email protected]>2020-08-18 13:39:23 +0200
commit0032ce0f85a269a006e91277be5fdbc05fad8426 (patch)
treeff4a55f4f23411fbe8bae722659b24d2f5febf50 /tools/perf/util/scripting-engines/trace-event-python.c
parent9123e3a74ec7b934a4a099e98af6a61c2f80bbf5 (diff)
ptrace: Prevent kernel-infoleak in ptrace_get_syscall_info()
ptrace_get_syscall_info() is potentially copying uninitialized stack memory to userspace, since the compiler may leave a 3-byte hole near the beginning of `info`. Fix it by adding a padding field to `struct ptrace_syscall_info`. Fixes: 201766a20e30 ("ptrace: add PTRACE_GET_SYSCALL_INFO request") Suggested-by: Dan Carpenter <[email protected]> Signed-off-by: Peilin Ye <[email protected]> Reviewed-by: Dmitry V. Levin <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions