diff options
| author | Li RongQing <[email protected]> | 2020-01-10 09:04:37 +0800 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2020-01-14 20:32:24 +0100 |
| commit | 0a29275b6300f39f78a87f2038bbfe5bdbaeca47 (patch) | |
| tree | 1d8ed61d64ce17f6f067eca367d76d0fa531ab46 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 3b4130418f62b0e7a4685cc2c03bb41c6cb8922d (diff) | |
bpf: Return -EBADRQC for invalid map type in __bpf_tx_xdp_map
A negative value should be returned if map->map_type is invalid
although that is impossible now, but if we run into such situation
in future, then xdpbuff could be leaked.
Daniel Borkmann suggested:
-EBADRQC should be returned to stay consistent with generic XDP
for the tracepoint output and not to be confused with -EOPNOTSUPP
from other locations like dev_map_enqueue() when ndo_xdp_xmit is
missing and such.
Suggested-by: Daniel Borkmann <[email protected]>
Signed-off-by: Li RongQing <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions