diff options
| author | Jiri Olsa <[email protected]> | 2021-07-14 09:43:54 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2021-07-16 00:16:06 +0000 |
| commit | 1e37392cccdea94da635e3c6d16b21865806f619 (patch) | |
| tree | 1aae46e49ea79ade58734a32fbb1e9a2386ccbd9 /net/unix/af_unix.c | |
| parent | bpf, x86: Store caller's ip in trampoline stack (diff) | |
| download | kernel-1e37392cccdea94da635e3c6d16b21865806f619.tar.gz kernel-1e37392cccdea94da635e3c6d16b21865806f619.zip | |
bpf: Enable BPF_TRAMP_F_IP_ARG for trampolines with call_get_func_ip
Enabling BPF_TRAMP_F_IP_ARG for trampolines that actually need it.
The BPF_TRAMP_F_IP_ARG adds extra 3 instructions to trampoline code
and is used only by programs with bpf_get_func_ip helper, which is
added in following patch and sets call_get_func_ip bit.
This patch ensures that BPF_TRAMP_F_IP_ARG flag is used only for
trampolines that have programs with call_get_func_ip set.
Signed-off-by: Jiri Olsa <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
