diff options
author | Paolo Abeni <pabeni@redhat.com> | 2021-11-30 11:08:06 +0100 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2021-12-13 22:25:51 +0100 |
commit | 2cbad989033bff0256675c38f96f5faab852af4b (patch) | |
tree | a163fff2302101e943e0830ce293e2f25a135921 /drivers/net/hyperv | |
parent | e94fac3829ddd3d9f21efa27d1512215b630782c (diff) | |
download | linux-2cbad989033bff0256675c38f96f5faab852af4b.tar.bz2 |
bpf: Do not WARN in bpf_warn_invalid_xdp_action()
The WARN_ONCE() in bpf_warn_invalid_xdp_action() can be triggered by
any bugged program, and even attaching a correct program to a NIC
not supporting the given action.
The resulting splat, beyond polluting the logs, fouls automated tools:
e.g. a syzkaller reproducers using an XDP program returning an
unsupported action will never pass validation.
Replace the WARN_ONCE with a less intrusive pr_warn_once().
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/bpf/016ceec56e4817ebb2a9e35ce794d5c917df572c.1638189075.git.pabeni@redhat.com
Diffstat (limited to 'drivers/net/hyperv')
0 files changed, 0 insertions, 0 deletions