numam-dpdk/drivers/net/tap
Yunjian Wang f2aebfc4e9 net/tap: fix device freeing
The error path was calling rte_eth_dev_release_port() function,
which frees eth_dev->data->dev_private, and then tries to free
pmd->intr_handle, which causes the use after free issue.

The free can be moved to before the release function is called.

Fixes: d61138d4f0 ("drivers: remove direct access to interrupt handle")
Cc: stable@dpdk.org

Signed-off-by: Xiangjun Meng <mengxiangjun4@huawei.com>
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
2022-06-08 14:39:13 +02:00
..
meson.build net/tap: set BPF syscall ID for RISC-V 2022-06-08 11:26:34 +02:00
rte_eth_tap.c net/tap: fix device freeing 2022-06-08 14:39:13 +02:00
rte_eth_tap.h drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
tap_bpf_api.c fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
tap_bpf_insns.h add missing static keyword to globals 2018-10-29 02:01:08 +01:00
tap_bpf_program.c replace packed attributes 2020-04-16 18:16:46 +02:00
tap_bpf.h net/tap: set BPF syscall ID for RISC-V 2022-06-08 11:26:34 +02:00
tap_flow.c remove unnecessary null checks 2022-02-12 12:07:48 +01:00
tap_flow.h ethdev: replace callback getting filter operations 2021-03-26 18:37:13 +01:00
tap_intr.c net/tap: fix interrupt handler freeing 2022-05-12 10:11:16 +02:00
tap_log.h net/tap: convert to dynamic logging 2018-04-27 18:00:59 +01:00
tap_netlink.c net/tap: fix build for glibc < 2.24 2020-05-11 22:27:39 +02:00
tap_netlink.h align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
tap_rss.h ethdev: add namespace 2021-10-22 18:15:38 +02:00
tap_tcmsgs.c net/tap: fix possible uninitialized variable access 2018-12-21 16:22:41 +01:00
tap_tcmsgs.h align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
version.map version: 21.11-rc0 2021-08-17 08:37:52 +02:00