Re: [PATCH] xdp: ensure initialization of txq in xdp_buff

2020-08-08 Thread David Ahern
On 8/8/20 1:16 AM, Paul Hollinsky wrote: > xdp->txq was uninitialized and could be used from within a bpf program. The verifier prevents access to txq except by programs of type BPF_XDP_DEVMAP and those can not be run via xdp generic. ie., generic can not access txq. > > https://syzkaller.appsp

[PATCH] xdp: ensure initialization of txq in xdp_buff

2020-08-08 Thread Paul Hollinsky
xdp->txq was uninitialized and could be used from within a bpf program. https://syzkaller.appspot.com/bug?id=a6e53f8e9044ea456ea1636be970518ae6ba7f62 Signed-off-by: Paul Hollinsky --- net/core/dev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/core/dev.c b/net/core/dev.c index 7df6