aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorDmitry Safonov <[email protected]>2019-11-21 00:03:03 +0000
committerThomas Gleixner <[email protected]>2019-11-21 01:17:58 +0100
commit7b8474466ed97be458c825f34a85f2c2b84c3f95 (patch)
treeadffb97ae9965400c9975048ec02b65dfb16e89a /tools/perf/util/trace-event-scripting.c
parentaf42d3466bdc8f39806b26f593604fdc54140bcb (diff)
time: Zero the upper 32-bits in __kernel_timespec on 32-bit
On compat interfaces, the high order bits of nanoseconds should be zeroed out. This is because the application code or the libc do not guarantee zeroing of these. If used without zeroing, kernel might be at risk of using timespec values incorrectly. Originally it was handled correctly, but lost during is_compat_syscall() cleanup. Revert the condition back to check CONFIG_64BIT. Fixes: 98f76206b335 ("compat: Cleanup in_compat_syscall() callers") Reported-by: Ben Hutchings <[email protected]> Signed-off-by: Dmitry Safonov <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions