]> Git Repo - linux.git/commit
tools/bpftool: Fix attaching flow dissector
authorLorenz Bauer <[email protected]>
Thu, 5 Nov 2020 11:52:30 +0000 (11:52 +0000)
committerAlexei Starovoitov <[email protected]>
Fri, 6 Nov 2020 02:20:41 +0000 (18:20 -0800)
commitf9b7ff0d7f7a466a920424246e7ddc2b84c87e52
tree7df91abb77173377acb9dc37b7f89830cf6e3dc9
parent25cf73b9ff88fd4608699a0313f820758b4c252d
tools/bpftool: Fix attaching flow dissector

My earlier patch to reject non-zero arguments to flow dissector attach
broke attaching via bpftool. Instead of 0 it uses -1 for target_fd.
Fix this by passing a zero argument when attaching the flow dissector.

Fixes: 1b514239e859 ("bpf: flow_dissector: Check value of unused flags to BPF_PROG_ATTACH")
Reported-by: Jiri Benc <[email protected]>
Signed-off-by: Lorenz Bauer <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Acked-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
tools/bpf/bpftool/prog.c
This page took 0.054375 seconds and 4 git commands to generate.