Re: [PATCH net] nfp: fix potential use after free on xdp prog

2017-04-05 Thread David Miller
From: Jakub Kicinski Date: Tue, 4 Apr 2017 15:56:55 -0700 > We should unregister the net_device first, before we give back > our reference on xdp_prog. Otherwise xdp_prog may be freed > before .ndo_stop() disabled the datapath. Found by code inspection. > >

[PATCH net] nfp: fix potential use after free on xdp prog

2017-04-04 Thread Jakub Kicinski
We should unregister the net_device first, before we give back our reference on xdp_prog. Otherwise xdp_prog may be freed before .ndo_stop() disabled the datapath. Found by code inspection. Fixes: ecd63a0217d5 ("nfp: add XDP support in the driver") Signed-off-by: Jakub Kicinski