linux/drivers/net
Jiri Pirko 4340f42f20 mlxsw: spectrum: Fix use-after-free of split/unsplit/type_set in case reload fails
In case of reload fail, the mlxsw_sp->ports contains a pointer to a
freed memory (either by reload_down() or reload_up() error path).
Fix this by initializing the pointer to NULL and checking it before
dereferencing in split/unsplit/type_set callpaths.

Fixes: 24cc68ad6c ("mlxsw: core: Add support for reload")
Reported-by: Danielle Ratson <danieller@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-05-22 16:08:14 -07:00
..
appletalk
arcnet
bonding Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-03-12 22:34:48 -07:00
caif vhost: disable for OABI 2020-04-20 10:19:22 -04:00
can slcan: Don't transmit uninitialized stack data in padding 2020-04-01 11:22:35 -07:00
dsa felix: Fix initialization of ioremap resources 2020-05-22 14:24:46 -07:00
ethernet mlxsw: spectrum: Fix use-after-free of split/unsplit/type_set in case reload fails 2020-05-22 16:08:14 -07:00
fddi net: skfp: use new constant PCI_STATUS_ERROR_BITS 2020-03-04 14:21:00 -08:00
fjes
hamradio drivers: net: hamradio: Fix suspicious RCU usage warning in bpqether.c 2020-05-14 17:43:45 -07:00
hippi
hyperv hv_netvsc: Fix netvsc_start_xmit's return type 2020-05-01 15:24:46 -07:00
ieee802154 net: ieee802154: ca8210: Use new structure for SPI transfer delays 2020-02-29 14:39:08 +01:00
ipa net: ipa: don't be a hog in gsi_channel_poll() 2020-05-16 15:14:54 -07:00
ipvlan ipvlan: do not use cond_resched_rcu() in ipvlan_process_multicast() 2020-03-09 18:32:03 -07:00
netdevsim netdevsim: Ensure policer drop counter always increases 2020-05-22 16:05:42 -07:00
phy net: phy: propagate an error back to the callers of phy_sfp_probe 2020-05-17 12:43:49 -07:00
plip
ppp pppoe: only process PADT targeted at local interfaces 2020-05-14 13:02:50 -07:00
slip Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-03-12 22:34:48 -07:00
team team: fix hang in team_mode_get() 2020-04-20 13:03:44 -07:00
usb r8152: support additional Microsoft Surface Ethernet Adapter variant 2020-05-19 12:45:09 -07:00
vmxnet3 vmxnet3: let core reject the unsupported coalescing parameters 2020-03-06 22:45:55 -08:00
wan SPDX patches for 5.7-rc1. 2020-04-03 13:12:26 -07:00
wimax wimax/i2400m: Fix potential urb refcnt leak 2020-04-18 15:00:22 -07:00
wireguard wireguard: noise: separate receive counter from send counter 2020-05-20 20:55:09 -07:00
wireless iwlwifi: pcie: handle QuZ configs with killer NICs as well 2020-05-08 13:09:17 +03:00
xen-netback
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-03-25 18:58:11 -07:00
LICENSE.SRC
Makefile soc: qcom: ipa: support build of IPA code 2020-03-08 22:07:10 -07:00
Space.c
bareudp.c net: bareudp: avoid uninitialized variable warning 2020-05-07 17:28:18 -07:00
dummy.c
eql.c
geneve.c geneve: use the correct nlattr array in NL_SET_ERR_MSG_ATTR 2020-04-23 12:39:09 -07:00
gtp.c gtp: set NLM_F_MULTI flag in gtp_genl_dump_pdp() 2020-05-01 15:34:09 -07:00
ifb.c net: Fix CONFIG_NET_CLS_ACT=n and CONFIG_NFT_FWD_NETDEV={y, m} build 2020-03-25 12:24:33 -07:00
loopback.c
macsec.c net: macsec: fix rtnl locking issue 2020-05-06 14:34:38 -07:00
macvlan.c macvlan: fix null dereference in macvlan_device_event() 2020-04-21 15:51:55 -07:00
macvtap.c
mdio.c
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c net: tun: record RX queue in skb before do_xdp_generic() 2020-04-12 20:58:24 -07:00
veth.c veth: rely on peer veth_rq for ndo_xdp_xmit accounting 2020-03-26 19:35:13 -07:00
virtio_net.c virtio_net: fix lockdep warning on 32 bit 2020-05-07 07:57:21 -07:00
vrf.c vrf: Fix IPv6 with qdisc and xfrm 2020-04-22 19:30:38 -07:00
vsockmon.c
vxlan.c vxlan: use the correct nlattr array in NL_SET_ERR_MSG_ATTR 2020-04-23 12:39:09 -07:00
xen-netfront.c