OpenCloudOS-Kernel/drivers/net/ethernet/mellanox/mlx5/core
Gustavo A. R. Silva 594619497f net/mlx5: Fix use-after-free
_rule_ is being freed and then dereferenced by accessing rule->ctx

Fix this by copying the value returned by PTR_ERR(rule->ctx) into a local
variable for its safe use after freeing _rule_

Addresses-Coverity-ID: 1466041 ("Read from pointer after free")
Fixes: 05564d0ae0 ("net/mlx5: Add flow-steering commands for FPGA IPSec implementation")
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-03-23 13:05:58 -04:00
..
accel net/mlx5: Add flow-steering commands for FPGA IPSec implementation 2018-03-07 15:54:35 -08:00
diag mlx5-updates-2018-02-28-1 (IPSec-1) 2018-03-07 15:28:13 -05:00
en_accel net/mlx5: IPSec, Add support for ESN 2018-03-07 15:54:36 -08:00
fpga net/mlx5: Fix use-after-free 2018-03-23 13:05:58 -04:00
ipoib Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2018-01-31 14:31:10 -08:00
lib net/mlx5e: Eliminate build warnings on no previous prototype 2018-02-20 12:52:56 -08:00
Kconfig net/mlx5: File renaming towards ptp core implementation 2017-10-14 11:22:05 -07:00
Makefile net/mlx5e: Move dynamic interrupt coalescing code to include/linux 2018-01-10 15:27:44 -05:00
alloc.c IB/mlx5: Implement fragmented completion queue (CQ) 2018-02-15 00:30:03 -08:00
cmd.c net/mlx5: Fix rate limit packet pacing naming and struct 2017-12-19 23:23:58 +02:00
cq.c net/mlx5: Fix wrongly assigned CQ reference counter 2018-03-07 15:54:36 -08:00
debugfs.c net/mlx5: Avoid using multiple blank lines 2017-06-16 00:12:40 +03:00
dev.c net/mlx5: E-Switch, Reload IB interface when switching devlink modes 2018-02-23 12:36:39 -08:00
en.h net/mlx5e: Extend the stats group API to have update_stats() 2018-01-19 22:41:33 +02:00
en_arfs.c net/mlx5: Initialize destination_flow struct to 0 2017-11-04 21:27:06 -07:00
en_common.c net/mlx5e: Support DSCP trust state to Ethernet's IP packet on SQ 2017-11-04 21:26:42 -07:00
en_dcbnl.c net/mlx5e: Check support before TC swap in ETS init 2018-01-12 02:01:49 +02:00
en_dim.c net/mlx5e: Move dynamic interrupt coalescing code to include/linux 2018-01-10 15:27:44 -05:00
en_ethtool.c net/mlx5e: Extend the stats group API to have update_stats() 2018-01-19 22:41:33 +02:00
en_fs.c net/mlx5e: Refactor RSS related objects and code 2018-01-19 22:41:32 +02:00
en_fs_ethtool.c net/mlx5: Fix mlx5_add_flow_rules call with correct num of dests 2017-07-27 16:40:17 +03:00
en_main.c net/mlx5e: Specify numa node when allocating drop rq 2018-02-20 12:52:58 -08:00
en_rep.c net/mlx5: E-Switch, Add callback to get representor device 2018-02-23 12:36:38 -08:00
en_rep.h net/mlx5e: E-Switch, Move send-to-vport rule struct to en_rep 2017-12-29 00:43:51 +02:00
en_rx.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-02-24 00:04:20 -05:00
en_selftest.c net/mlx5e: Fix loopback self test when GRO is off 2018-02-20 12:52:54 -08:00
en_stats.c net/mlx5e: Extend the stats group API to have update_stats() 2018-01-19 22:41:33 +02:00
en_stats.h net/mlx5e: Extend the stats group API to have update_stats() 2018-01-19 22:41:33 +02:00
en_tc.c mlx5-updates-2018-02-28-1 (IPSec-1) 2018-03-07 15:28:13 -05:00
en_tc.h mlx5-shared-2017-08-07 2017-08-07 10:42:09 -07:00
en_tx.c net/mlx5e: Verify inline header size do not exceed SKB linear size 2018-02-20 12:52:55 -08:00
en_txrx.c net/dim: use struct net_dim_sample as arg to net_dim 2018-01-10 15:27:45 -05:00
eq.c net/mlx5: Remove redundant EQ API exports 2018-02-15 00:30:02 -08:00
eswitch.c mlx5-update-2018-02-23 (IB representors) 2018-02-28 09:54:54 -05:00
eswitch.h net/mlx5: E-Switch, Optimize HW steering tables in switchdev mode 2018-02-23 12:36:38 -08:00
eswitch_offloads.c net/mlx5: E-Switch, Reload IB interface when switching devlink modes 2018-02-23 12:36:39 -08:00
fs_cmd.c net/mlx5: Flow steering cmd interface should get the fte when deleting 2018-03-06 22:20:15 -08:00
fs_cmd.h net/mlx5: Flow steering cmd interface should get the fte when deleting 2018-03-06 22:20:15 -08:00
fs_core.c mlx5: Remove call to ida_pre_get 2018-03-20 10:46:01 -04:00
fs_core.h net/mlx5: Embed mlx5_flow_act into fs_fte 2018-03-06 22:20:13 -08:00
fs_counters.c net/mlx5e: E-switch, Add steering drop counters 2018-01-09 07:40:48 +02:00
fw.c net/mlx5: Set software owner ID during init HCA 2018-01-08 11:42:20 -07:00
health.c {net, IB}/mlx5: Raise fatal IB event when sys error occurs 2018-02-28 12:10:32 -07:00
lag.c IB/mlx5: Fix congestion counters in LAG mode 2017-12-21 16:06:07 -07:00
mad.c net/mlx5: Unify and improve command interface 2016-08-17 17:45:58 +03:00
main.c mlx5-updates-2018-02-28-2 (IPSec-2) 2018-03-08 14:43:48 -05:00
mcg.c net/mlx5: Unify and improve command interface 2016-08-17 17:45:58 +03:00
mlx5_core.h net/mlx5: E-Switch, Reload IB interface when switching devlink modes 2018-02-23 12:36:39 -08:00
mr.c net/mlx5: Unify and improve command interface 2016-08-17 17:45:58 +03:00
pagealloc.c net/mlx5: Avoid using multiple blank lines 2017-06-16 00:12:40 +03:00
pd.c net/mlx5: Unify and improve command interface 2016-08-17 17:45:58 +03:00
port.c net/mlx5: QPTS and QPDPM register firmware command support 2017-11-04 21:26:21 -07:00
qp.c Linux 4.15 2018-01-30 09:30:00 -07:00
rl.c net/mlx5: Fix rate limit packet pacing naming and struct 2017-12-19 23:23:58 +02:00
sriov.c net/mlx5: Fix wrong indentation in enable SRIOV code 2017-09-28 07:23:10 +03:00
srq.c Updates for 4.14 kernel merge window 2017-09-03 17:49:17 -07:00
transobj.c net/mlx5: Enable setting hairpin queue size 2018-01-19 22:41:32 +02:00
uar.c net/mlx5: Fix mlx5_get_uars_page to return error code 2018-01-12 02:01:47 +02:00
vport.c Linux 4.15 2018-01-30 09:30:00 -07:00
vxlan.c net/mlx5e: Prevent possible races in VXLAN control flow 2017-12-19 23:24:03 +02:00
vxlan.h net/mlx5e: Add refcount to VXLAN structure 2017-12-19 23:24:03 +02:00
wq.c IB/mlx5: Implement fragmented completion queue (CQ) 2018-02-15 00:30:03 -08:00
wq.h IB/mlx5: Implement fragmented completion queue (CQ) 2018-02-15 00:30:03 -08:00