diff options
author | Toshiaki Makita <[email protected]> | 2018-06-14 11:07:42 +0900 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2018-06-15 23:47:15 +0200 |
commit | 6d5fc1957989266006db6ef3dfb9159b42cf0189 (patch) | |
tree | 29028cc0eb4f60c5c822a6fd4096c193376cf5dd /lib/test_overflow.c | |
parent | b5518c705178cb96fd2b775e0c070e72b5d0d688 (diff) |
xdp: Fix handling of devmap in generic XDP
Commit 67f29e07e131 ("bpf: devmap introduce dev_map_enqueue") changed
the return value type of __devmap_lookup_elem() from struct net_device *
to struct bpf_dtab_netdev * but forgot to modify generic XDP code
accordingly.
Thus generic XDP incorrectly used struct bpf_dtab_netdev where struct
net_device is expected, then skb->dev was set to invalid value.
v2:
- Fix compiler warning without CONFIG_BPF_SYSCALL.
Fixes: 67f29e07e131 ("bpf: devmap introduce dev_map_enqueue")
Signed-off-by: Toshiaki Makita <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Acked-by: Jesper Dangaard Brouer <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions