diff options
| author | Lorenz Bauer <[email protected]> | 2020-06-29 10:56:27 +0100 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-06-30 10:46:39 -0700 |
| commit | 9b2b09717e1812e450782a43ca0c2790651cf380 (patch) | |
| tree | 335fdf3b51260b4b2445c736b9ca24899b181bcd /tools/perf/scripts/python | |
| parent | 4ac2add65974e4efafb8d4ccd8fc5660417ea312 (diff) | |
bpf: sockmap: Check value of unused args to BPF_PROG_ATTACH
Using BPF_PROG_ATTACH on a sockmap program currently understands no
flags or replace_bpf_fd, but accepts any value. Return EINVAL instead.
Fixes: 604326b41a6f ("bpf, sockmap: convert to generic sk_msg interface")
Signed-off-by: Lorenz Bauer <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions