Skip to content

Commit 4e04e75

Browse files
committed
Merge tag 'net-5.12-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Pull networking fixes from Jakub Kicinski: "Networking fixes for 5.12-rc7, including fixes from can, ipsec, mac80211, wireless, and bpf trees. No scary regressions here or in the works, but small fixes for 5.12 changes keep coming. Current release - regressions: - virtio: do not pull payload in skb->head - virtio: ensure mac header is set in virtio_net_hdr_to_skb() - Revert "net: correct sk_acceptq_is_full()" - mptcp: revert "mptcp: provide subflow aware release function" - ethernet: lan743x: fix ethernet frame cutoff issue - dsa: fix type was not set for devlink port - ethtool: remove link_mode param and derive link params from driver - sched: htb: fix null pointer dereference on a null new_q - wireless: iwlwifi: Fix softirq/hardirq disabling in iwl_pcie_enqueue_hcmd() - wireless: iwlwifi: fw: fix notification wait locking - wireless: brcmfmac: p2p: Fix deadlock introduced by avoiding the rtnl dependency Current release - new code bugs: - napi: fix hangup on napi_disable for threaded napi - bpf: take module reference for trampoline in module - wireless: mt76: mt7921: fix airtime reporting and related tx hangs - wireless: iwlwifi: mvm: rfi: don't lock mvm->mutex when sending config command Previous releases - regressions: - rfkill: revert back to old userspace API by default - nfc: fix infinite loop, refcount & memory leaks in LLCP sockets - let skb_orphan_partial wake-up waiters - xfrm/compat: Cleanup WARN()s that can be user-triggered - vxlan, geneve: do not modify the shared tunnel info when PMTU triggers an ICMP reply - can: fix msg_namelen values depending on CAN_REQUIRED_SIZE - can: uapi: mark union inside struct can_frame packed - sched: cls: fix action overwrite reference counting - sched: cls: fix err handler in tcf_action_init() - ethernet: mlxsw: fix ECN marking in tunnel decapsulation - ethernet: nfp: Fix a use after free in nfp_bpf_ctrl_msg_rx - ethernet: i40e: fix receiving of single packets in xsk zero-copy mode - ethernet: cxgb4: avoid collecting SGE_QBASE regs during traffic Previous releases - always broken: - bpf: Refuse non-O_RDWR flags in BPF_OBJ_GET - bpf: Refcount task stack in bpf_get_task_stack - bpf, x86: Validate computation of branch displacements - ieee802154: fix many similar syzbot-found bugs - fix NULL dereferences in netlink attribute handling - reject unsupported operations on monitor interfaces - fix error handling in llsec_key_alloc() - xfrm: make ipv4 pmtu check honor ip header df - xfrm: make hash generation lock per network namespace - xfrm: esp: delete NETIF_F_SCTP_CRC bit from features for esp offload - ethtool: fix incorrect datatype in set_eee ops - xdp: fix xdp_return_frame() kernel BUG throw for page_pool memory model - openvswitch: fix send of uninitialized stack memory in ct limit reply Misc: - udp: add get handling for UDP_GRO sockopt" * tag 'net-5.12-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (182 commits) net: fix hangup on napi_disable for threaded napi net: hns3: Trivial spell fix in hns3 driver lan743x: fix ethernet frame cutoff issue net: ipv6: check for validity before dereferencing cfg->fc_nlinfo.nlh net: dsa: lantiq_gswip: Configure all remaining GSWIP_MII_CFG bits net: dsa: lantiq_gswip: Don't use PHY auto polling net: sched: sch_teql: fix null-pointer dereference ipv6: report errors for iftoken via netlink extack net: sched: fix err handler in tcf_action_init() net: sched: fix action overwrite reference counting Revert "net: sched: bump refcount for new action in ACT replace mode" ice: fix memory leak of aRFS after resuming from suspend i40e: Fix sparse warning: missing error code 'err' i40e: Fix sparse error: 'vsi->netdev' could be null i40e: Fix sparse error: uninitialized symbol 'ring' i40e: Fix sparse errors in i40e_txrx.c i40e: Fix parameters in aq_get_phy_register() nl80211: fix beacon head validation bpf, x86: Validate computation of branch displacements for x86-32 bpf, x86: Validate computation of branch displacements for x86-64 ...
2 parents 3b97843 + 27f0ad7 commit 4e04e75

179 files changed

Lines changed: 1872 additions & 715 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/devicetree/bindings/net/brcm,bcm4908-enet.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ required:
3232
- interrupts
3333
- interrupt-names
3434

35-
additionalProperties: false
35+
unevaluatedProperties: false
3636

3737
examples:
3838
- |

‎Documentation/devicetree/bindings/net/ethernet-controller.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ properties:
4949
description:
5050
Reference to an nvmem node for the MAC address
5151

52-
nvmem-cells-names:
52+
nvmem-cell-names:
5353
const: mac-address
5454

5555
phy-connection-type:

‎Documentation/devicetree/bindings/net/micrel-ksz90x1.txt‎

Lines changed: 94 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,71 @@ KSZ9031:
6565
step is 60ps. The default value is the neutral setting, so setting
6666
rxc-skew-ps=<0> actually results in -900 picoseconds adjustment.
6767

68+
The KSZ9031 hardware supports a range of skew values from negative to
69+
positive, where the specific range is property dependent. All values
70+
specified in the devicetree are offset by the minimum value so they
71+
can be represented as positive integers in the devicetree since it's
72+
difficult to represent a negative number in the devictree.
73+
74+
The following 5-bit values table apply to rxc-skew-ps and txc-skew-ps.
75+
76+
Pad Skew Value Delay (ps) Devicetree Value
77+
------------------------------------------------------
78+
0_0000 -900ps 0
79+
0_0001 -840ps 60
80+
0_0010 -780ps 120
81+
0_0011 -720ps 180
82+
0_0100 -660ps 240
83+
0_0101 -600ps 300
84+
0_0110 -540ps 360
85+
0_0111 -480ps 420
86+
0_1000 -420ps 480
87+
0_1001 -360ps 540
88+
0_1010 -300ps 600
89+
0_1011 -240ps 660
90+
0_1100 -180ps 720
91+
0_1101 -120ps 780
92+
0_1110 -60ps 840
93+
0_1111 0ps 900
94+
1_0000 60ps 960
95+
1_0001 120ps 1020
96+
1_0010 180ps 1080
97+
1_0011 240ps 1140
98+
1_0100 300ps 1200
99+
1_0101 360ps 1260
100+
1_0110 420ps 1320
101+
1_0111 480ps 1380
102+
1_1000 540ps 1440
103+
1_1001 600ps 1500
104+
1_1010 660ps 1560
105+
1_1011 720ps 1620
106+
1_1100 780ps 1680
107+
1_1101 840ps 1740
108+
1_1110 900ps 1800
109+
1_1111 960ps 1860
110+
111+
The following 4-bit values table apply to the txdX-skew-ps, rxdX-skew-ps
112+
data pads, and the rxdv-skew-ps, txen-skew-ps control pads.
113+
114+
Pad Skew Value Delay (ps) Devicetree Value
115+
------------------------------------------------------
116+
0000 -420ps 0
117+
0001 -360ps 60
118+
0010 -300ps 120
119+
0011 -240ps 180
120+
0100 -180ps 240
121+
0101 -120ps 300
122+
0110 -60ps 360
123+
0111 0ps 420
124+
1000 60ps 480
125+
1001 120ps 540
126+
1010 180ps 600
127+
1011 240ps 660
128+
1100 300ps 720
129+
1101 360ps 780
130+
1110 420ps 840
131+
1111 480ps 900
132+
68133
Optional properties:
69134

70135
Maximum value of 1860, default value 900:
@@ -120,11 +185,21 @@ KSZ9131:
120185

121186
Examples:
122187

188+
/* Attach to an Ethernet device with autodetected PHY */
189+
&enet {
190+
rxc-skew-ps = <1800>;
191+
rxdv-skew-ps = <0>;
192+
txc-skew-ps = <1800>;
193+
txen-skew-ps = <0>;
194+
status = "okay";
195+
};
196+
197+
/* Attach to an explicitly-specified PHY */
123198
mdio {
124199
phy0: ethernet-phy@0 {
125-
rxc-skew-ps = <3000>;
200+
rxc-skew-ps = <1800>;
126201
rxdv-skew-ps = <0>;
127-
txc-skew-ps = <3000>;
202+
txc-skew-ps = <1800>;
128203
txen-skew-ps = <0>;
129204
reg = <0>;
130205
};
@@ -133,3 +208,20 @@ Examples:
133208
phy = <&phy0>;
134209
phy-mode = "rgmii-id";
135210
};
211+
212+
References
213+
214+
Micrel ksz9021rl/rn Data Sheet, Revision 1.2. Dated 2/13/2014.
215+
http://www.micrel.com/_PDF/Ethernet/datasheets/ksz9021rl-rn_ds.pdf
216+
217+
Micrel ksz9031rnx Data Sheet, Revision 2.1. Dated 11/20/2014.
218+
http://www.micrel.com/_PDF/Ethernet/datasheets/KSZ9031RNX.pdf
219+
220+
Notes:
221+
222+
Note that a previous version of the Micrel ksz9021rl/rn Data Sheet
223+
was missing extended register 106 (transmit data pad skews), and
224+
incorrectly specified the ps per step as 200ps/step instead of
225+
120ps/step. The latest update to this document reflects the latest
226+
revision of the Micrel specification even though usage in the kernel
227+
still reflects that incorrect document.

‎Documentation/networking/ethtool-netlink.rst‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -976,9 +976,9 @@ constraints on coalescing parameters and their values.
976976

977977

978978
PAUSE_GET
979-
============
979+
=========
980980

981-
Gets channel counts like ``ETHTOOL_GPAUSE`` ioctl request.
981+
Gets pause frame settings like ``ETHTOOL_GPAUSEPARAM`` ioctl request.
982982

983983
Request contents:
984984

@@ -1007,7 +1007,7 @@ the statistics in the following structure:
10071007
Each member has a corresponding attribute defined.
10081008

10091009
PAUSE_SET
1010-
============
1010+
=========
10111011

10121012
Sets pause parameters like ``ETHTOOL_GPAUSEPARAM`` ioctl request.
10131013

@@ -1024,7 +1024,7 @@ Request contents:
10241024
EEE_GET
10251025
=======
10261026

1027-
Gets channel counts like ``ETHTOOL_GEEE`` ioctl request.
1027+
Gets Energy Efficient Ethernet settings like ``ETHTOOL_GEEE`` ioctl request.
10281028

10291029
Request contents:
10301030

@@ -1054,7 +1054,7 @@ first 32 are provided by the ``ethtool_ops`` callback.
10541054
EEE_SET
10551055
=======
10561056

1057-
Sets pause parameters like ``ETHTOOL_GEEEPARAM`` ioctl request.
1057+
Sets Energy Efficient Ethernet parameters like ``ETHTOOL_SEEE`` ioctl request.
10581058

10591059
Request contents:
10601060

‎MAINTAINERS‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14850,6 +14850,14 @@ L: linux-arm-msm@vger.kernel.org
1485014850
S: Maintained
1485114851
F: drivers/iommu/arm/arm-smmu/qcom_iommu.c
1485214852

14853+
QUALCOMM IPC ROUTER (QRTR) DRIVER
14854+
M: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
14855+
L: linux-arm-msm@vger.kernel.org
14856+
S: Maintained
14857+
F: include/trace/events/qrtr.h
14858+
F: include/uapi/linux/qrtr.h
14859+
F: net/qrtr/
14860+
1485314861
QUALCOMM IPCC MAILBOX DRIVER
1485414862
M: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
1485514863
L: linux-arm-msm@vger.kernel.org

‎arch/x86/net/bpf_jit_comp.c‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1689,7 +1689,16 @@ st: if (is_imm8(insn->off))
16891689
}
16901690

16911691
if (image) {
1692-
if (unlikely(proglen + ilen > oldproglen)) {
1692+
/*
1693+
* When populating the image, assert that:
1694+
*
1695+
* i) We do not write beyond the allocated space, and
1696+
* ii) addrs[i] did not change from the prior run, in order
1697+
* to validate assumptions made for computing branch
1698+
* displacements.
1699+
*/
1700+
if (unlikely(proglen + ilen > oldproglen ||
1701+
proglen + ilen != addrs[i])) {
16931702
pr_err("bpf_jit: fatal error\n");
16941703
return -EFAULT;
16951704
}

‎arch/x86/net/bpf_jit_comp32.c‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2276,7 +2276,16 @@ emit_cond_jmp: jmp_cond = get_cond_jmp_opcode(BPF_OP(code), false);
22762276
}
22772277

22782278
if (image) {
2279-
if (unlikely(proglen + ilen > oldproglen)) {
2279+
/*
2280+
* When populating the image, assert that:
2281+
*
2282+
* i) We do not write beyond the allocated space, and
2283+
* ii) addrs[i] did not change from the prior run, in order
2284+
* to validate assumptions made for computing branch
2285+
* displacements.
2286+
*/
2287+
if (unlikely(proglen + ilen > oldproglen ||
2288+
proglen + ilen != addrs[i])) {
22802289
pr_err("bpf_jit: fatal error\n");
22812290
return -EFAULT;
22822291
}

‎drivers/net/can/spi/mcp251x.c‎

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,18 @@ static int mcp251x_spi_trans(struct spi_device *spi, int len)
314314
return ret;
315315
}
316316

317+
static int mcp251x_spi_write(struct spi_device *spi, int len)
318+
{
319+
struct mcp251x_priv *priv = spi_get_drvdata(spi);
320+
int ret;
321+
322+
ret = spi_write(spi, priv->spi_tx_buf, len);
323+
if (ret)
324+
dev_err(&spi->dev, "spi write failed: ret = %d\n", ret);
325+
326+
return ret;
327+
}
328+
317329
static u8 mcp251x_read_reg(struct spi_device *spi, u8 reg)
318330
{
319331
struct mcp251x_priv *priv = spi_get_drvdata(spi);
@@ -361,7 +373,7 @@ static void mcp251x_write_reg(struct spi_device *spi, u8 reg, u8 val)
361373
priv->spi_tx_buf[1] = reg;
362374
priv->spi_tx_buf[2] = val;
363375

364-
mcp251x_spi_trans(spi, 3);
376+
mcp251x_spi_write(spi, 3);
365377
}
366378

367379
static void mcp251x_write_2regs(struct spi_device *spi, u8 reg, u8 v1, u8 v2)
@@ -373,7 +385,7 @@ static void mcp251x_write_2regs(struct spi_device *spi, u8 reg, u8 v1, u8 v2)
373385
priv->spi_tx_buf[2] = v1;
374386
priv->spi_tx_buf[3] = v2;
375387

376-
mcp251x_spi_trans(spi, 4);
388+
mcp251x_spi_write(spi, 4);
377389
}
378390

379391
static void mcp251x_write_bits(struct spi_device *spi, u8 reg,
@@ -386,7 +398,7 @@ static void mcp251x_write_bits(struct spi_device *spi, u8 reg,
386398
priv->spi_tx_buf[2] = mask;
387399
priv->spi_tx_buf[3] = val;
388400

389-
mcp251x_spi_trans(spi, 4);
401+
mcp251x_spi_write(spi, 4);
390402
}
391403

392404
static u8 mcp251x_read_stat(struct spi_device *spi)
@@ -618,7 +630,7 @@ static void mcp251x_hw_tx_frame(struct spi_device *spi, u8 *buf,
618630
buf[i]);
619631
} else {
620632
memcpy(priv->spi_tx_buf, buf, TXBDAT_OFF + len);
621-
mcp251x_spi_trans(spi, TXBDAT_OFF + len);
633+
mcp251x_spi_write(spi, TXBDAT_OFF + len);
622634
}
623635
}
624636

@@ -650,7 +662,7 @@ static void mcp251x_hw_tx(struct spi_device *spi, struct can_frame *frame,
650662

651663
/* use INSTRUCTION_RTS, to avoid "repeated frame problem" */
652664
priv->spi_tx_buf[0] = INSTRUCTION_RTS(1 << tx_buf_idx);
653-
mcp251x_spi_trans(priv->spi, 1);
665+
mcp251x_spi_write(priv->spi, 1);
654666
}
655667

656668
static void mcp251x_hw_rx_frame(struct spi_device *spi, u8 *buf,
@@ -888,7 +900,7 @@ static int mcp251x_hw_reset(struct spi_device *spi)
888900
mdelay(MCP251X_OST_DELAY_MS);
889901

890902
priv->spi_tx_buf[0] = INSTRUCTION_RESET;
891-
ret = mcp251x_spi_trans(spi, 1);
903+
ret = mcp251x_spi_write(spi, 1);
892904
if (ret)
893905
return ret;
894906

‎drivers/net/can/usb/peak_usb/pcan_usb_core.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ static int peak_usb_create_dev(const struct peak_usb_adapter *peak_usb_adapter,
857857
if (dev->adapter->dev_set_bus) {
858858
err = dev->adapter->dev_set_bus(dev, 0);
859859
if (err)
860-
goto lbl_unregister_candev;
860+
goto adap_dev_free;
861861
}
862862

863863
/* get device number early */
@@ -869,6 +869,10 @@ static int peak_usb_create_dev(const struct peak_usb_adapter *peak_usb_adapter,
869869

870870
return 0;
871871

872+
adap_dev_free:
873+
if (dev->adapter->dev_free)
874+
dev->adapter->dev_free(dev);
875+
872876
lbl_unregister_candev:
873877
unregister_candev(netdev);
874878

0 commit comments

Comments
 (0)