]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: export whether tail call has jited owner
authorDaniel Borkmann <daniel@iogearbox.net>
Sun, 2 Jul 2017 00:13:28 +0000 (02:13 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Jul 2017 09:22:52 +0000 (02:22 -0700)
commita88c6d8037c296fcefb2705a2849ff86dd604ded
tree168d31b1e9d40945fb859b2de1950cc4d2c6851f
parent04923fb0220fc7fc8a997433ad72150ad413a61e
bpf: export whether tail call has jited owner

We do export through fdinfo already whether a prog is JITed or not,
given a program load can fail in case of either prog or tail call map
has JITed property, but neither both are JITed or not JITed, we can
facilitate error reporting in loaders like iproute2 through exporting
owner_jited of tail call map. We already do export owner_prog_type
through this facility, so parser can pick up both for comparison.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/bpf/syscall.c