diff options
| author | 2021-03-29 04:50:02 -0700 | |
|---|---|---|
| committer | 2021-03-29 17:09:51 -0700 | |
| commit | 6e5a03bcba44e080a6bf300194a68ce9bb1e5184 (patch) | |
| tree | 06df0922268f3b72bcce956b16b6457f506c0d1c /samples/git:/ssh:/git@git.zx2c4.com | |
| parent | Merge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue (diff) | |
| download | linux-dev-6e5a03bcba44e080a6bf300194a68ce9bb1e5184.tar.xz linux-dev-6e5a03bcba44e080a6bf300194a68ce9bb1e5184.zip | |
ethernet/netronome/nfp: Fix a use after free in nfp_bpf_ctrl_msg_rx
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: bcf0cafab44fd ("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>
Diffstat (limited to 'samples/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
