diff options
author | Kumar Kartikeya Dwivedi <[email protected]> | 2023-09-18 17:52:32 +0200 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2023-09-19 02:07:36 -0700 |
commit | 7d3460632da2c2ad5c5708db82a0b72e2b66396c (patch) | |
tree | 87dbc485165e8027a57e2c028266a28536789266 /tools/perf/scripts/python/task-analyzer.py | |
parent | 4d84dcc739d5b253096f9e47957c5964709f5772 (diff) |
bpf: Fix bpf_throw warning on 32-bit arch
On 32-bit architectures, the pointer width is 32-bit, while we try to
cast from a u64 down to it, the compiler complains on mismatch in
integer size. Fix this by first casting to long which should match
the pointer width on targets supported by Linux.
Fixes: ec5290a178b7 ("bpf: Prevent KASAN false positive with bpf_throw")
Reported-by: Matthieu Baerts <[email protected]>
Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]>
Tested-by: Matthieu Baerts <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions