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)
commit9780c0ab1a4e64ef6998c4d83f9df5be806a02dc
tree168d31b1e9d40945fb859b2de1950cc4d2c6851f
parentf96da09473b52c09125cc9bf7d7d4576ae8229e0
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