diff options
author | Andrii Nakryiko <[email protected]> | 2020-08-11 19:29:23 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2020-08-12 18:00:49 -0700 |
commit | 068d9d1eba72423e99162aad3586727180715c2a (patch) | |
tree | 5a002b874b1bf8fc3f58ba74b3dd4d5c46bfe70c /scripts/gdb/linux/modules.py | |
parent | da7bdfdd23b858e6d97a1e4b461548e23d16977f (diff) |
bpf: Fix XDP FD-based attach/detach logic around XDP_FLAGS_UPDATE_IF_NOEXIST
Enforce XDP_FLAGS_UPDATE_IF_NOEXIST only if new BPF program to be attached is
non-NULL (i.e., we are not detaching a BPF program).
Fixes: d4baa9368a5e ("bpf, xdp: Extract common XDP program attachment logic")
Reported-by: Stanislav Fomichev <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Tested-by: Stanislav Fomichev <[email protected]>
Acked-by: Toke Høiland-Jørgensen <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions