Files
linux/drivers
Lv Yunlong b52e88638f ethernet/netronome/nfp: Fix a use after free in nfp_bpf_ctrl_msg_rx
commit 6e5a03bcba upstream.

In nfp_bpf_ctrl_msg_rx, if
nfp_ccm_get_type(skb) == NFP_CCM_TYPE_BPF_BPF_EVENT is true, the skb
will be freed. But the skb is still used by nfp_ccm_rx(&bpf->ccm, skb).

My patch adds a return when the skb was freed.

Fixes: bcf0cafab4 ("nfp: split out common control message handling code")
Signed-off-by: Lv Yunlong <lyl2019@mail.ustc.edu.cn>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-04-14 08:42:00 +02:00
..
2021-03-04 11:38:21 +01:00
2020-12-03 10:00:23 +01:00
2021-04-10 13:36:08 +02:00
2020-12-30 11:53:53 +01:00
2021-03-04 11:38:03 +01:00
2021-03-04 11:37:28 +01:00
2021-04-07 15:00:05 +02:00