[PATCH] bpf: Allow bpf_skb_event_output for a few prog types

2019-06-24 Thread allanzhang
00 08 00 00 00 r5 = 8 8: 85 00 00 00 19 00 00 00 call 25 9: b7 00 00 00 01 00 00 00 r0 = 1 10: 95 00 00 00 00 00 00 00 exit Patch 1 is enabling code. Patch 2 is fullly covered selftest code. Signed-off-by: allanzhang

[PATCH] bpf: Allow bpf_skb_event_output for a few prog types

2019-06-24 Thread allanzhang
00 08 00 00 00 r5 = 8 8: 85 00 00 00 19 00 00 00 call 25 9: b7 00 00 00 01 00 00 00 r0 = 1 10: 95 00 00 00 00 00 00 00 exit Patch 1 is enabling code. Patch 2 is fullly covered selftest code. Signed-off-by: allanzhang ---

[PATCH] bpf: Allow bpf_skb_event_output for a few prog types

2019-06-24 Thread allanzhang
tch 1 is enabling code. Patch 2 is fullly covered selftest code. Signed-off-by: allanzhang --- tools/testing/selftests/bpf/test_verifier.c | 38 +++- .../selftests/bpf/verifier/event_output.c | 94 +++ 2 files changed, 130 insertions(+), 2 deletions(-) create mode 1006