Skip to content

Commit d7c5303

Browse files
committed
Merge tag 'net-5.13-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Pull networking fixes from Jakub Kicinski: "Networking fixes for 5.13-rc4, including fixes from bpf, netfilter, can and wireless trees. Notably including fixes for the recently announced "FragAttacks" WiFi vulnerabilities. Rather large batch, touching some core parts of the stack, too, but nothing hair-raising. Current release - regressions: - tipc: make node link identity publish thread safe - dsa: felix: re-enable TAS guard band mode - stmmac: correct clocks enabled in stmmac_vlan_rx_kill_vid() - stmmac: fix system hang if change mac address after interface ifdown Current release - new code bugs: - mptcp: avoid OOB access in setsockopt() - bpf: Fix nested bpf_bprintf_prepare with more per-cpu buffers - ethtool: stats: fix a copy-paste error - init correct array size Previous releases - regressions: - sched: fix packet stuck problem for lockless qdisc - net: really orphan skbs tied to closing sk - mlx4: fix EEPROM dump support - bpf: fix alu32 const subreg bound tracking on bitwise operations - bpf: fix mask direction swap upon off reg sign change - bpf, offload: reorder offload callback 'prepare' in verifier - stmmac: Fix MAC WoL not working if PHY does not support WoL - packetmmap: fix only tx timestamp on request - tipc: skb_linearize the head skb when reassembling msgs Previous releases - always broken: - mac80211: address recent "FragAttacks" vulnerabilities - mac80211: do not accept/forward invalid EAPOL frames - mptcp: avoid potential error message floods - bpf, ringbuf: deny reserve of buffers larger than ringbuf to prevent out of buffer writes - bpf: forbid trampoline attach for functions with variable arguments - bpf: add deny list of functions to prevent inf recursion of tracing programs - tls splice: check SPLICE_F_NONBLOCK instead of MSG_DONTWAIT - can: isotp: prevent race between isotp_bind() and isotp_setsockopt() - netfilter: nft_set_pipapo_avx2: Add irq_fpu_usable() check, fallback to non-AVX2 version Misc: - bpf: add kconfig knob for disabling unpriv bpf by default" * tag 'net-5.13-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (172 commits) net: phy: Document phydev::dev_flags bits allocation mptcp: validate 'id' when stopping the ADD_ADDR retransmit timer mptcp: avoid error message on infinite mapping mptcp: drop unconditional pr_warn on bad opt mptcp: avoid OOB access in setsockopt() nfp: update maintainer and mailing list addresses net: mvpp2: add buffer header handling in RX bnx2x: Fix missing error code in bnx2x_iov_init_one() net: zero-initialize tc skb extension on allocation net: hns: Fix kernel-doc sctp: fix the proc_handler for sysctl encap_port sctp: add the missing setting for asoc encap_port bpf, selftests: Adjust few selftest result_unpriv outcomes bpf: No need to simulate speculative domain for immediates bpf: Fix mask direction swap upon off reg sign change bpf: Wrap aux data inside bpf_sanitize_info container bpf: Fix BPF_LSM kconfig symbol dependency selftests/bpf: Add test for l3 use of bpf_redirect_peer bpftool: Add sock_release help info for cgroup attach/prog load command net: dsa: microchip: enable phy errata workaround on 9567 ...
2 parents 7ac3a1c + 62f3415 commit d7c5303

File tree

189 files changed

+2944
-1094
lines changed

Some content is hidden

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

189 files changed

+2944
-1094
lines changed

Documentation/admin-guide/sysctl/kernel.rst

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,11 +1458,22 @@ unprivileged_bpf_disabled
14581458
=========================
14591459

14601460
Writing 1 to this entry will disable unprivileged calls to ``bpf()``;
1461-
once disabled, calling ``bpf()`` without ``CAP_SYS_ADMIN`` will return
1462-
``-EPERM``.
1461+
once disabled, calling ``bpf()`` without ``CAP_SYS_ADMIN`` or ``CAP_BPF``
1462+
will return ``-EPERM``. Once set to 1, this can't be cleared from the
1463+
running kernel anymore.
14631464

1464-
Once set, this can't be cleared.
1465+
Writing 2 to this entry will also disable unprivileged calls to ``bpf()``,
1466+
however, an admin can still change this setting later on, if needed, by
1467+
writing 0 or 1 to this entry.
14651468

1469+
If ``BPF_UNPRIV_DEFAULT_OFF`` is enabled in the kernel config, then this
1470+
entry will default to 2 instead of 0.
1471+
1472+
= =============================================================
1473+
0 Unprivileged calls to ``bpf()`` are enabled
1474+
1 Unprivileged calls to ``bpf()`` are disabled without recovery
1475+
2 Unprivileged calls to ``bpf()`` are disabled
1476+
= =============================================================
14661477

14671478
watchdog
14681479
========

Documentation/devicetree/bindings/net/renesas,ether.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ allOf:
1010
- $ref: ethernet-controller.yaml#
1111

1212
maintainers:
13-
- Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
13+
- Sergei Shtylyov <sergei.shtylyov@gmail.com>
1414

1515
properties:
1616
compatible:

MAINTAINERS

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4138,6 +4138,14 @@ S: Odd Fixes
41384138
F: Documentation/devicetree/bindings/arm/cavium-thunder2.txt
41394139
F: arch/arm64/boot/dts/cavium/thunder2-99xx*
41404140

4141+
CBS/ETF/TAPRIO QDISCS
4142+
M: Vinicius Costa Gomes <[email protected]>
4143+
S: Maintained
4144+
4145+
F: net/sched/sch_cbs.c
4146+
F: net/sched/sch_etf.c
4147+
F: net/sched/sch_taprio.c
4148+
41414149
CC2520 IEEE-802.15.4 RADIO DRIVER
41424150
M: Varka Bhadram <[email protected]>
41434151
@@ -5569,7 +5577,6 @@ F: drivers/soc/fsl/dpio
55695577

55705578
DPAA2 ETHERNET DRIVER
55715579
M: Ioana Ciornei <[email protected]>
5572-
M: Ioana Radulescu <[email protected]>
55735580
55745581
S: Maintained
55755582
F: Documentation/networking/device_drivers/ethernet/freescale/dpaa2/ethernet-driver.rst
@@ -12681,9 +12688,9 @@ F: drivers/rtc/rtc-ntxec.c
1268112688
F: include/linux/mfd/ntxec.h
1268212689

1268312690
NETRONOME ETHERNET DRIVERS
12684-
M: Simon Horman <simon.horman@netronome.com>
12691+
M: Simon Horman <simon.horman@corigine.com>
1268512692
R: Jakub Kicinski <[email protected]>
12686-
L: oss-drivers@netronome.com
12693+
L: oss-drivers@corigine.com
1268712694
S: Maintained
1268812695
F: drivers/net/ethernet/netronome/
1268912696

@@ -12710,7 +12717,6 @@ M: "David S. Miller" <[email protected]>
1271012717
M: Jakub Kicinski <[email protected]>
1271112718
1271212719
S: Maintained
12713-
W: http://www.linuxfoundation.org/en/Net
1271412720
Q: https://patchwork.kernel.org/project/netdevbpf/list/
1271512721
T: git git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git
1271612722
T: git git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git
@@ -12755,7 +12761,6 @@ M: "David S. Miller" <[email protected]>
1275512761
M: Jakub Kicinski <[email protected]>
1275612762
1275712763
S: Maintained
12758-
W: http://www.linuxfoundation.org/en/Net
1275912764
Q: https://patchwork.kernel.org/project/netdevbpf/list/
1276012765
1276112766
T: git git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git
@@ -12897,8 +12902,10 @@ F: include/uapi/linux/nexthop.h
1289712902
F: net/ipv4/nexthop.c
1289812903

1289912904
NFC SUBSYSTEM
12905+
M: Krzysztof Kozlowski <[email protected]>
12906+
L: [email protected] (moderated for non-subscribers)
1290012907
12901-
S: Orphan
12908+
S: Maintained
1290212909
F: Documentation/devicetree/bindings/net/nfc/
1290312910
F: drivers/nfc/
1290412911
F: include/linux/platform_data/nfcmrvl.h
@@ -13206,7 +13213,6 @@ F: Documentation/devicetree/bindings/sound/tfa9879.txt
1320613213
F: sound/soc/codecs/tfa9879*
1320713214

1320813215
NXP-NCI NFC DRIVER
13209-
M: Clément Perrochaud <[email protected]>
1321013216
R: Charles Gorand <[email protected]>
1321113217
L: [email protected] (moderated for non-subscribers)
1321213218
S: Supported
@@ -15945,6 +15951,7 @@ S390 IUCV NETWORK LAYER
1594515951
M: Julian Wiedmann <[email protected]>
1594615952
M: Karsten Graul <[email protected]>
1594715953
15954+
1594815955
S: Supported
1594915956
W: http://www.ibm.com/developerworks/linux/linux390/
1595015957
F: drivers/s390/net/*iucv*
@@ -15955,6 +15962,7 @@ S390 NETWORK DRIVERS
1595515962
M: Julian Wiedmann <[email protected]>
1595615963
M: Karsten Graul <[email protected]>
1595715964
15965+
1595815966
S: Supported
1595915967
W: http://www.ibm.com/developerworks/linux/linux390/
1596015968
F: drivers/s390/net/

arch/arm64/Kbuild

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
obj-y += kernel/ mm/
3-
obj-$(CONFIG_NET) += net/
2+
obj-y += kernel/ mm/ net/
43
obj-$(CONFIG_KVM) += kvm/
54
obj-$(CONFIG_XEN) += xen/
65
obj-$(CONFIG_CRYPTO) += crypto/

drivers/infiniband/hw/mlx5/mr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -743,10 +743,10 @@ int mlx5_mr_cache_init(struct mlx5_ib_dev *dev)
743743
ent->xlt = (1 << ent->order) * sizeof(struct mlx5_mtt) /
744744
MLX5_IB_UMR_OCTOWORD;
745745
ent->access_mode = MLX5_MKC_ACCESS_MODE_MTT;
746-
if ((dev->mdev->profile->mask & MLX5_PROF_MASK_MR_CACHE) &&
746+
if ((dev->mdev->profile.mask & MLX5_PROF_MASK_MR_CACHE) &&
747747
!dev->is_rep && mlx5_core_is_pf(dev->mdev) &&
748748
mlx5_ib_can_load_pas_with_umr(dev, 0))
749-
ent->limit = dev->mdev->profile->mr_cache[i].limit;
749+
ent->limit = dev->mdev->profile.mr_cache[i].limit;
750750
else
751751
ent->limit = 0;
752752
spin_lock_irq(&ent->lock);

drivers/isdn/hardware/mISDN/netjet.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,6 @@ nj_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
11001100
card->typ = NETJET_S_TJ300;
11011101

11021102
card->base = pci_resource_start(pdev, 0);
1103-
card->irq = pdev->irq;
11041103
pci_set_drvdata(pdev, card);
11051104
err = setup_instance(card);
11061105
if (err)

drivers/net/appletalk/cops.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,15 +327,15 @@ static int __init cops_probe1(struct net_device *dev, int ioaddr)
327327
break;
328328
}
329329

330+
dev->base_addr = ioaddr;
331+
330332
/* Reserve any actual interrupt. */
331333
if (dev->irq) {
332334
retval = request_irq(dev->irq, cops_interrupt, 0, dev->name, dev);
333335
if (retval)
334336
goto err_out;
335337
}
336338

337-
dev->base_addr = ioaddr;
338-
339339
lp = netdev_priv(dev);
340340
spin_lock_init(&lp->lock);
341341

drivers/net/bonding/bond_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1526,6 +1526,7 @@ static struct slave *bond_alloc_slave(struct bonding *bond,
15261526

15271527
slave->bond = bond;
15281528
slave->dev = slave_dev;
1529+
INIT_DELAYED_WORK(&slave->notify_work, bond_netdev_notify_work);
15291530

15301531
if (bond_kobj_init(slave))
15311532
return NULL;
@@ -1538,7 +1539,6 @@ static struct slave *bond_alloc_slave(struct bonding *bond,
15381539
return NULL;
15391540
}
15401541
}
1541-
INIT_DELAYED_WORK(&slave->notify_work, bond_netdev_notify_work);
15421542

15431543
return slave;
15441544
}

drivers/net/dsa/bcm_sf2.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -821,11 +821,9 @@ static void bcm_sf2_sw_mac_link_up(struct dsa_switch *ds, int port,
821821
bcm_sf2_sw_mac_link_set(ds, port, interface, true);
822822

823823
if (port != core_readl(priv, CORE_IMP0_PRT_ID)) {
824-
u32 reg_rgmii_ctrl;
824+
u32 reg_rgmii_ctrl = 0;
825825
u32 reg, offset;
826826

827-
reg_rgmii_ctrl = bcm_sf2_reg_rgmii_cntrl(priv, port);
828-
829827
if (priv->type == BCM4908_DEVICE_ID ||
830828
priv->type == BCM7445_DEVICE_ID)
831829
offset = CORE_STS_OVERRIDE_GMIIP_PORT(port);
@@ -836,6 +834,7 @@ static void bcm_sf2_sw_mac_link_up(struct dsa_switch *ds, int port,
836834
interface == PHY_INTERFACE_MODE_RGMII_TXID ||
837835
interface == PHY_INTERFACE_MODE_MII ||
838836
interface == PHY_INTERFACE_MODE_REVMII) {
837+
reg_rgmii_ctrl = bcm_sf2_reg_rgmii_cntrl(priv, port);
839838
reg = reg_readl(priv, reg_rgmii_ctrl);
840839
reg &= ~(RX_PAUSE_EN | TX_PAUSE_EN);
841840

drivers/net/dsa/microchip/ksz9477.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,6 +1530,7 @@ static const struct ksz_chip_data ksz9477_switch_chips[] = {
15301530
.num_statics = 16,
15311531
.cpu_ports = 0x7F, /* can be configured as cpu port */
15321532
.port_cnt = 7, /* total physical port count */
1533+
.phy_errata_9477 = true,
15331534
},
15341535
};
15351536

0 commit comments

Comments
 (0)