aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2018-02-21 15:09:30 -0500
committerDavid S. Miller <davem@davemloft.net>2018-02-21 15:09:30 -0500
commit6c4df17c7a529d460448cc8284b95a4ada37e3a3 (patch)
tree5986e0b30af64482afd65ea8e6013cf2fff241bb /tools
parentMerge tag 'mlx5-fixes-2018-02-20' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux (diff)
parentvirtio_net: fix ndo_xdp_xmit crash towards dev not ready for XDP (diff)
downloadlinux-dev-6c4df17c7a529d460448cc8284b95a4ada37e3a3.tar.xz
linux-dev-6c4df17c7a529d460448cc8284b95a4ada37e3a3.zip
Merge branch 'virtio_net-XDP-fixes'
Jesper Dangaard Brouer says: ==================== virtio_net: several bugs in XDP code for driver virtio_net The virtio_net driver actually violates the original memory model of XDP causing hard to debug crashes. Per request of John Fastabend, instead of removing the XDP feature I'm fixing as much as possible. While testing virtio_net with XDP_REDIRECT I found 4 different bugs. Patch-1: not enough tail-room for build_skb in receive_mergeable() only option is to disable XDP_REDIRECT in receive_mergeable() Patch-2: XDP in receive_small() basically never worked (check wrong flag) Patch-3: fix memory leak for XDP_REDIRECT in error cases Patch-4: avoid crash when ndo_xdp_xmit is called on dev not ready for XDP In the longer run, we should consider introducing a separate receive function when attaching an XDP program, and also change the memory model to be compatible with XDP when attaching an XDP prog. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions