1
0
Fork 0
alistair23-linux/drivers/net/ethernet/mellanox/mlx5/core
Dinghao Liu c3c7748867 net/mlx5e: Fix two double free cases
commit 7a6eb072a9 upstream.

mlx5e_create_ttc_table_groups() frees ft->g on failure of
kvzalloc(), but such failure will be caught by its caller
in mlx5e_create_ttc_table() and ft->g will be freed again
in mlx5e_destroy_flow_table(). The same issue also occurs
in mlx5e_create_ttc_table_groups(). Set ft->g to NULL after
kfree() to avoid double free.

Fixes: 7b3722fa9e ("net/mlx5e: Support RSS for GRE tunneled packets")
Fixes: 33cfaaa8f3 ("net/mlx5e: Split the main flow steering table")
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-17 14:05:37 +01:00
..
accel net/mlx5: Deprecate usage of generic TLS HW capability bit 2020-02-11 04:35:51 -08:00
diag net/mlx5: Fix failing fw tracer allocation on s390 2020-05-02 08:48:52 +02:00
en net/mlx5e: Fix 50G per lane indication 2020-07-16 08:16:41 +02:00
en_accel net/mlx5e: TLS, Do not expose FPGA TLS counter if not supported 2020-09-26 18:03:14 +02:00
fpga net/mlx5: IPsec, fix memory leak at mlx5_fpga_ipsec_delete_sa_ctx 2020-02-11 04:35:50 -08:00
ipoib net/mlx5e: Fix inner tirs handling 2020-06-03 08:21:03 +02:00
lib net/mlx5: poll cmd EQ in case of command timeout 2020-11-22 10:14:11 +01:00
steering net/mlx5: DR, Proper handling of unsupported Connect-X6DX SW steering 2020-12-08 10:40:27 +01:00
Kconfig drivers: net: Fix Kconfig indentation 2019-09-26 08:56:17 +02:00
Makefile net/mlx5: Add direct rule fs_cmd implementation 2019-09-03 12:54:23 -07:00
alloc.c
cmd.c net/mlx5: Add retry mechanism to the command entry index allocation 2020-11-22 10:14:11 +01:00
cq.c
debugfs.c mlx5: no need to check return value of debugfs_create functions 2019-08-10 15:25:47 -07:00
dev.c net/mlx5: Use reversed order when unregister devices 2019-07-25 13:30:59 -07:00
devlink.c net/mlx5e: Add missing release firmware call 2020-04-21 09:04:49 +02:00
devlink.h
ecpf.c
ecpf.h
en.h net/mlx5e: Add resiliency in Striding RQ mode for packets larger than MTU 2020-10-14 10:33:04 +02:00
en_arfs.c net/mlx5e: Use flow keys dissector to parse packets for ARFS 2019-08-08 13:01:18 -07:00
en_common.c net/mlx5e: Tx, Soften inline mode VLAN dependencies 2019-08-01 12:33:31 -07:00
en_dcbnl.c net/mlx5e: Tx, Soften inline mode VLAN dependencies 2019-08-01 12:33:31 -07:00
en_dim.c
en_ethtool.c net/mlx5e: ethtool, Fix restriction of autoneg with 56G 2021-01-17 14:05:33 +01:00
en_fs.c net/mlx5e: Fix two double free cases 2021-01-17 14:05:37 +01:00
en_fs_ethtool.c net/mlx5e: Fix traffic duplication in ethtool steering 2019-09-24 12:38:08 +03:00
en_main.c net/mlx5e: Fix driver's declaration to support GRE offload 2020-10-14 10:33:06 +02:00
en_rep.c net/mlx5e: Modify uplink state on interface up/down 2020-08-05 09:59:47 +02:00
en_rep.h net/mlx5e: Remove leftover declaration 2019-09-05 14:44:41 -07:00
en_rx.c net/mlx5e: IPoIB, Drop multicast packets that this interface sent 2020-06-22 09:31:06 +02:00
en_selftest.c net/mlx5e: Fix ethtool self test: link speed 2019-10-29 16:27:20 -07:00
en_stats.c mlx5: work around high stack usage with gcc 2020-02-24 08:36:44 +01:00
en_stats.h net/mlx5e: kTLS, Enhance TX resync flow 2019-10-18 12:11:54 -07:00
en_tc.c net/mlx5e: Fix nest_level for vlan pop action 2020-04-21 09:04:49 +02:00
en_tc.h net/mlx5e: Refactor neigh update for concurrent execution 2019-08-21 15:55:17 -07:00
en_tx.c net/mlx5e: Update netdev txq on completions during closure 2020-06-03 08:21:04 +02:00
en_txrx.c net/mlx5e: Don't trigger IRQ multiple times on XSK wakeup to avoid WQ overruns 2020-05-02 08:48:48 +02:00
eq.c net/mlx5: Fix a race when moving command interface to events mode 2020-11-22 10:14:11 +01:00
eswitch.c net/mlx5: E-Switch, Fail mlx5_esw_modify_vport_rate if qos disabled 2020-11-24 13:29:07 +01:00
eswitch.h net/mlx5e: Modify uplink state on interface up/down 2020-08-05 09:59:47 +02:00
eswitch_offloads.c net/mlx5e: Enable adding peer miss rules only if merged eswitch is supported 2020-09-26 18:03:14 +02:00
eswitch_offloads_termtbl.c net/mlx5e: Use correct enum to determine uplink port 2019-11-06 14:03:55 -08:00
events.c net/mlx5: Fix memory leak in mlx5_events_init 2020-06-03 08:21:04 +02:00
fs_cmd.c net/mlx5: Fix NULL pointer dereference in extended destination 2019-10-29 16:27:19 -07:00
fs_cmd.h net/mlx5: Add direct rule fs_cmd implementation 2019-09-03 12:54:23 -07:00
fs_core.c net/mlx5: Add handling of port type in rule deletion 2020-11-24 13:28:59 +01:00
fs_core.h net/mlx5: Fix auto group size calculation 2019-11-20 12:33:06 -08:00
fs_counters.c Merge branch 'odp_fixes' into rdma.git for-next 2019-08-21 14:10:36 -03:00
fw.c net/mlx5: Deprecate usage of generic TLS HW capability bit 2020-02-11 04:35:51 -08:00
health.c net/mlx5: Fix fatal error handling during device load 2020-06-17 16:40:32 +02:00
lag.c
lag.h
lag_mp.c mlx5: Add missing init_net check in FIB notifier 2019-09-02 11:44:14 -07:00
lag_mp.h
main.c net/mlx5: Properly convey driver version to firmware 2020-12-30 11:51:18 +01:00
mcg.c
mlx5_core.h Merge branch 'mlx5-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mellanox/linux 2019-09-02 00:16:05 -07:00
mr.c RDMA/mlx5: Add missing synchronize_srcu() for MW cases 2019-10-04 15:54:22 -03:00
pagealloc.c net/mlx5: Fix wrong address reclaim when command interface is down 2020-12-08 10:40:27 +01:00
pci_irq.c net/mlx5: Fix request_irqs error flow 2020-10-14 10:33:04 +02:00
pd.c
port.c net/mlx5: Fix eeprom support for SFP module 2020-07-16 08:16:40 +02:00
qp.c net/mlx5: Use debug message instead of warn 2019-08-13 12:58:06 +03:00
rdma.c net/mlx5: Use port_num 1 instead of 0 when delete a RoCE address 2021-01-17 14:05:33 +01:00
rdma.h
rl.c mlx5: Fix formats with line continuation whitespace 2019-08-02 15:04:54 -04:00
sriov.c
transobj.c
uar.c
vport.c net/mlx5e: Tx, Soften inline mode VLAN dependencies 2019-08-01 12:33:31 -07:00
wq.c net/mlx5e: Reset RQ doorbell counter before moving RQ state from RST to RDY 2020-02-28 17:22:28 +01:00
wq.h net/mlx5e: Reset RQ doorbell counter before moving RQ state from RST to RDY 2020-02-28 17:22:28 +01:00