aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf
diff options
context:
space:
mode:
authorJiri Olsa <[email protected]>2021-05-05 15:25:29 +0200
committerDaniel Borkmann <[email protected]>2021-05-07 01:28:28 +0200
commit31379397dcc364a59ce764fabb131b645c43e340 (patch)
treeb8425935d3c9aebeba11671ea58badf599998bd0 /tools/testing/selftests/bpf
parent3b80d106e110d39d3f678954d3b55078669cf07e (diff)
bpf: Forbid trampoline attach for functions with variable arguments
We can't currently allow to attach functions with variable arguments. The problem is that we should save all the registers for arguments, which is probably doable, but if caller uses more than 6 arguments, we need stack data, which will be wrong, because of the extra stack frame we do in bpf trampoline, so we could crash. Also currently there's malformed trampoline code generated for such functions at the moment as described in: https://lore.kernel.org/bpf/[email protected]/ Signed-off-by: Jiri Olsa <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf')
0 files changed, 0 insertions, 0 deletions