Files
linux-stable-mirror/include/uapi/linux
Marco Elver ddecd22878 perf: uapi: Document perf_event_attr::sig_data truncation on 32 bit architectures
Due to the alignment requirements of siginfo_t, as described in
3ddb3fd8cd ("signal, perf: Fix siginfo_t by avoiding u64 on 32-bit
architectures"), siginfo_t::si_perf_data is limited to an unsigned long.

However, perf_event_attr::sig_data is an u64, to avoid having to deal
with compat conversions. Due to being an u64, it may not immediately be
clear to users that sig_data is truncated on 32 bit architectures.

Add a comment to explicitly point this out, and hopefully help some
users save time by not having to deduce themselves what's happening.

Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
Link: https://lore.kernel.org/r/20220131103407.1971678-3-elver@google.com
2022-02-02 13:11:40 +01:00
..
2021-09-14 08:46:08 +02:00
2021-11-01 13:36:08 +00:00
2021-10-29 12:38:43 +02:00
2021-11-26 16:48:59 +01:00
2021-10-07 13:51:11 +02:00
2021-10-06 12:05:51 +00:00
2021-11-15 07:53:10 -08:00
2021-12-02 12:07:04 +00:00
2021-10-26 14:58:45 +01:00
2021-10-14 23:06:28 +02:00
2021-10-18 17:20:50 +02:00
2021-09-16 14:36:26 +01:00