diff options
author | Eduard Zingerman <[email protected]> | 2024-08-22 01:41:10 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2024-08-22 08:35:21 -0700 |
commit | 40609093247b586ee6f8ca8f2b30c7d583c6fd25 (patch) | |
tree | 5599ee1b0294b09fc2d9d886f40dd2df189f3d88 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | b2ee6d27e9c6be0409e96591dcee62032a8e0156 (diff) |
bpf: allow bpf_fastcall for bpf_cast_to_kern_ctx and bpf_rdonly_cast
do_misc_fixups() relaces bpf_cast_to_kern_ctx() and bpf_rdonly_cast()
by a single instruction "r0 = r1". This follows bpf_fastcall contract.
This commit allows bpf_fastcall pattern rewrite for these two
functions in order to use them in bpf_fastcall selftests.
Acked-by: Yonghong Song <[email protected]>
Signed-off-by: Eduard Zingerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions