Skip to content

Commit e7ad651

Browse files
committed
Merge branch 'cve-fixes-2022-10-13'
Pull in the fixes for various scan parsing bugs found by Sönke Huster by fuzzing.
2 parents abf93f3 + c90b93b commit e7ad651

File tree

28 files changed

+161
-89
lines changed

28 files changed

+161
-89
lines changed

Documentation/networking/phy.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ required delays, as defined per the RGMII standard, several options may be
120120
available:
121121

122122
* Some SoCs may offer a pin pad/mux/controller capable of configuring a given
123-
set of pins'strength, delays, and voltage; and it may be a suitable
123+
set of pins' strength, delays, and voltage; and it may be a suitable
124124
option to insert the expected 2ns RGMII delay.
125125

126126
* Modifying the PCB design to include a fixed delay (e.g: using a specifically

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18487,6 +18487,7 @@ F: drivers/misc/sgi-xp/
1848718487
SHARED MEMORY COMMUNICATIONS (SMC) SOCKETS
1848818488
M: Karsten Graul <[email protected]>
1848918489
M: Wenjia Zhang <[email protected]>
18490+
M: Jan Karcher <[email protected]>
1849018491
1849118492
S: Supported
1849218493
W: http://www.ibm.com/developerworks/linux/linux390/

drivers/isdn/hardware/mISDN/hfcpci.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2345,8 +2345,7 @@ HFC_init(void)
23452345
static void __exit
23462346
HFC_cleanup(void)
23472347
{
2348-
if (timer_pending(&hfc_tl))
2349-
del_timer_sync(&hfc_tl);
2348+
del_timer_sync(&hfc_tl);
23502349

23512350
pci_unregister_driver(&hfc_driver);
23522351
}

drivers/net/ethernet/adi/adin1110.c

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,11 @@ static int adin1110_port_bridge_leave(struct adin1110_port_priv *port_priv,
11691169
return ret;
11701170
}
11711171

1172+
static bool adin1110_port_dev_check(const struct net_device *dev)
1173+
{
1174+
return dev->netdev_ops == &adin1110_netdev_ops;
1175+
}
1176+
11721177
static int adin1110_netdevice_event(struct notifier_block *unused,
11731178
unsigned long event, void *ptr)
11741179
{
@@ -1177,6 +1182,9 @@ static int adin1110_netdevice_event(struct notifier_block *unused,
11771182
struct netdev_notifier_changeupper_info *info = ptr;
11781183
int ret = 0;
11791184

1185+
if (!adin1110_port_dev_check(dev))
1186+
return NOTIFY_DONE;
1187+
11801188
switch (event) {
11811189
case NETDEV_CHANGEUPPER:
11821190
if (netif_is_bridge_master(info->upper_dev)) {
@@ -1202,11 +1210,6 @@ static void adin1110_disconnect_phy(void *data)
12021210
phy_disconnect(data);
12031211
}
12041212

1205-
static bool adin1110_port_dev_check(const struct net_device *dev)
1206-
{
1207-
return dev->netdev_ops == &adin1110_netdev_ops;
1208-
}
1209-
12101213
static int adin1110_port_set_forwarding_state(struct adin1110_port_priv *port_priv)
12111214
{
12121215
struct adin1110_priv *priv = port_priv->priv;

drivers/net/ethernet/broadcom/Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,3 @@ obj-$(CONFIG_BGMAC_BCMA) += bgmac-bcma.o bgmac-bcma-mdio.o
1717
obj-$(CONFIG_BGMAC_PLATFORM) += bgmac-platform.o
1818
obj-$(CONFIG_SYSTEMPORT) += bcmsysport.o
1919
obj-$(CONFIG_BNXT) += bnxt/
20-
21-
# FIXME: temporarily silence -Warray-bounds on non W=1+ builds
22-
ifndef KBUILD_EXTRA_WARN
23-
CFLAGS_tg3.o += -Wno-array-bounds
24-
endif

drivers/net/ethernet/freescale/enetc/enetc_qos.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include <linux/math64.h>
88
#include <linux/refcount.h>
99
#include <net/pkt_cls.h>
10-
#include <net/pkt_sched.h>
1110
#include <net/tc_act/tc_gate.h>
1211

1312
static u16 enetc_get_max_gcl_len(struct enetc_hw *hw)

drivers/net/ethernet/marvell/octeontx2/af/mcs.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1182,8 +1182,10 @@ static int mcs_register_interrupts(struct mcs *mcs)
11821182
mcs_reg_write(mcs, MCSX_PAB_TX_SLAVE_PAB_INT_ENB, 0xff);
11831183

11841184
mcs->tx_sa_active = alloc_mem(mcs, mcs->hw->sc_entries);
1185-
if (!mcs->tx_sa_active)
1185+
if (!mcs->tx_sa_active) {
1186+
ret = -ENOMEM;
11861187
goto exit;
1188+
}
11871189

11881190
return ret;
11891191
exit:

drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ static int cn10k_mcs_alloc_rsrc(struct otx2_nic *pfvf, enum mcs_direction dir,
133133
default:
134134
ret = -EINVAL;
135135
goto fail;
136-
};
136+
}
137137

138138
mutex_unlock(&mbox->lock);
139139

@@ -284,7 +284,7 @@ static int cn10k_mcs_write_sc_cam(struct otx2_nic *pfvf,
284284

285285
sc_req = otx2_mbox_alloc_msg_mcs_rx_sc_cam_write(mbox);
286286
if (!sc_req) {
287-
return -ENOMEM;
287+
ret = -ENOMEM;
288288
goto fail;
289289
}
290290

@@ -594,7 +594,7 @@ static int cn10k_mcs_ena_dis_flowid(struct otx2_nic *pfvf, u16 hw_flow_id,
594594

595595
req = otx2_mbox_alloc_msg_mcs_flowid_ena_entry(mbox);
596596
if (!req) {
597-
return -ENOMEM;
597+
ret = -ENOMEM;
598598
goto fail;
599599
}
600600

@@ -1653,6 +1653,7 @@ int cn10k_mcs_init(struct otx2_nic *pfvf)
16531653
return 0;
16541654
fail:
16551655
dev_err(pfvf->dev, "Cannot notify PN wrapped event\n");
1656+
mutex_unlock(&mbox->lock);
16561657
return 0;
16571658
}
16581659

drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2810,7 +2810,7 @@ static int otx2_probe(struct pci_dev *pdev, const struct pci_device_id *id)
28102810
err = register_netdev(netdev);
28112811
if (err) {
28122812
dev_err(dev, "Failed to register netdevice\n");
2813-
goto err_del_mcam_entries;
2813+
goto err_mcs_free;
28142814
}
28152815

28162816
err = otx2_wq_init(pf);
@@ -2849,6 +2849,8 @@ static int otx2_probe(struct pci_dev *pdev, const struct pci_device_id *id)
28492849
otx2_mcam_flow_del(pf);
28502850
err_unreg_netdev:
28512851
unregister_netdev(netdev);
2852+
err_mcs_free:
2853+
cn10k_mcs_free(pf);
28522854
err_del_mcam_entries:
28532855
otx2_mcam_flow_del(pf);
28542856
err_ptp_destroy:

drivers/net/ethernet/marvell/prestera/prestera_matchall.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ int prestera_mall_replace(struct prestera_flow_block *block,
9696

9797
list_for_each_entry(binding, &block->binding_list, list) {
9898
err = prestera_span_rule_add(binding, port, block->ingress);
99+
if (err == -EEXIST)
100+
return err;
99101
if (err)
100102
goto rollback;
101103
}

0 commit comments

Comments
 (0)