summaryrefslogtreecommitdiff
path: root/net/netfilter/nfnetlink_cttimeout.c
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2017-04-05 01:56:55 +0300
committerDavid S. Miller <davem@davemloft.net>2017-04-06 04:46:40 +0300
commitc383bdd14f91562babd269aa7c36b46fee7b6c75 (patch)
treef46a23718a949591f4161dadc902368452d7858f /net/netfilter/nfnetlink_cttimeout.c
parent2d2517ee314ef1de0517f74d06c2825fbf597ba3 (diff)
downloadlinux-c383bdd14f91562babd269aa7c36b46fee7b6c75.tar.xz
nfp: fix potential use after free on xdp prog
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 <jakub.kicinski@netronome.com> Reviewed-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter/nfnetlink_cttimeout.c')
0 files changed, 0 insertions, 0 deletions