diff options
| author | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2026-08-01 03:00:18 +0200 |
|---|---|---|
| committer | Kumar Kartikeya Dwivedi <memxor@gmail.com> | 2026-08-01 03:00:18 +0200 |
| commit | 682b1c17f847b3cccbd9fb8427e8f6435bc18622 (patch) | |
| tree | d0e2a0f3668d6d10e5da2886d6b8af4a00ec7060 /tools/perf/scripts/python/bin | |
| parent | f0e80dee4e32fd11e6ee1b714b75f681c7cafd3e (diff) | |
| parent | 13cc6b788b1a361d6903c141a8e609bcae664301 (diff) | |
Merge branch 'bpf-fix-trampoline-handling-of-128-bit-values'
Yonghong Song says:
====================
bpf: Fix trampoline handling of 128-bit values
The BPF trampoline preserves only 8 bytes of a target function's return
value (R0), and its register save area under-allocates space for 128-bit
arguments for x86_64. These two problems lead to memory corruption or
incorrect values observed by BPF programs and the real caller.
This series fixes both issues and adds two selftests, otherwise, each of
them will fail if without the corresponding fix.
Changelogs:
v4 -> v5:
- v4: https://lore.kernel.org/bpf/1c4223ae-a5ba-48a4-95d3-57c8ff241055@linux.dev/
- For function test_fexit_int128_ret(), guard with __x86_64__ and __aarch64__
to avoid s390x failure
v3 -> v4:
- v3: https://lore.kernel.org/bpf/20260710225206.4013062-1-yonghong.song@linux.dev/
- Add Ack from Leon Hwang
v2 -> v3:
- v2: https://lore.kernel.org/bpf/20260710182204.1085329-1-yonghong.song@linux.dev/
- Align __int128 argument at even position enforced by arm64.
v1 -> v2:
- v1: https://lore.kernel.org/bpf/20260710144404.2579671-1-yonghong.song@linux.dev/
- Also handle __int128 arguments for x86_64.
====================
Link: https://patch.msgid.link/20260729050154.2585468-1-yonghong.song@linux.dev
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
