Skip to content

Commit 8bf22c3

Browse files
committed
Merge tag 'net-7.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Pull networking fixes from Jakub Kicinski: "Including fixes from Netfilter. Current release - new code bugs: - net: fix backlog_unlock_irq_restore() vs CONFIG_PREEMPT_RT - eth: mlx5e: XSK, Fix unintended ICOSQ change - phy_port: correctly recompute the port's linkmodes - vsock: prevent child netns mode switch from local to global - couple of kconfig fixes for new symbols Previous releases - regressions: - nfc: nci: fix false-positive parameter validation for packet data - net: do not delay zero-copy skbs in skb_attempt_defer_free() Previous releases - always broken: - mctp: ensure our nlmsg responses to user space are zero-initialised - ipv6: ioam: fix heap buffer overflow in __ioam6_fill_trace_data() - fixes for ICMP rate limiting Misc: - intel: fix PCI device ID conflict between i40e and ipw2200" * tag 'net-7.0-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (85 commits) net: nfc: nci: Fix parameter validation for packet data net/mlx5e: Use unsigned for mlx5e_get_max_num_channels net/mlx5e: Fix deadlocks between devlink and netdev instance locks net/mlx5e: MACsec, add ASO poll loop in macsec_aso_set_arm_event net/mlx5: Fix misidentification of write combining CQE during poll loop net/mlx5e: Fix misidentification of ASO CQE during poll loop net/mlx5: Fix multiport device check over light SFs bonding: alb: fix UAF in rlb_arp_recv during bond up/down bnge: fix reserving resources from FW eth: fbnic: Advertise supported XDP features. rds: tcp: fix uninit-value in __inet_bind net/rds: Fix NULL pointer dereference in rds_tcp_accept_one octeontx2-af: Fix default entries mcam entry action net/mlx5e: XSK, Fix unintended ICOSQ change ipv6: icmp: icmpv6_xrlim_allow() optimization if net.ipv6.icmp.ratelimit is zero ipv4: icmp: icmpv4_xrlim_allow() optimization if net.ipv4.icmp_ratelimit is zero ipv6: icmp: remove obsolete code in icmpv6_xrlim_allow() inet: move icmp_global_{credit,stamp} to a separate cache line icmp: prevent possible overflow in icmp_global_allow() selftests/net: packetdrill: add ipv4-mapped-ipv6 tests ...
2 parents 4f13d0d + 571dcbe commit 8bf22c3

103 files changed

Lines changed: 1130 additions & 684 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/admin-guide/sysctl/net.rst

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ Table : Subdirectories in /proc/sys/net
4040
bridge Bridging rose X.25 PLP layer
4141
core General parameter tipc TIPC
4242
ethernet Ethernet protocol unix Unix domain sockets
43-
ipv4 IP version 4 x25 X.25 protocol
44-
ipv6 IP version 6
43+
ipv4 IP version 4 vsock VSOCK sockets
44+
ipv6 IP version 6 x25 X.25 protocol
4545
========= =================== = ========== ===================
4646

4747
1. /proc/sys/net/core - Network core options
@@ -551,3 +551,51 @@ originally may have been issued in the correct sequential order.
551551
If named_timeout is nonzero, failed topology updates will be placed on a defer
552552
queue until another event arrives that clears the error, or until the timeout
553553
expires. Value is in milliseconds.
554+
555+
6. /proc/sys/net/vsock - VSOCK sockets
556+
--------------------------------------
557+
558+
VSOCK sockets (AF_VSOCK) provide communication between virtual machines and
559+
their hosts. The behavior of VSOCK sockets in a network namespace is determined
560+
by the namespace's mode (``global`` or ``local``), which controls how CIDs
561+
(Context IDs) are allocated and how sockets interact across namespaces.
562+
563+
ns_mode
564+
-------
565+
566+
Read-only. Reports the current namespace's mode, set at namespace creation
567+
and immutable thereafter.
568+
569+
Values:
570+
571+
- ``global`` - the namespace shares system-wide CID allocation and
572+
its sockets can reach any VM or socket in any global namespace.
573+
Sockets in this namespace cannot reach sockets in local
574+
namespaces.
575+
- ``local`` - the namespace has private CID allocation and its
576+
sockets can only connect to VMs or sockets within the same
577+
namespace.
578+
579+
The init_net mode is always ``global``.
580+
581+
child_ns_mode
582+
-------------
583+
584+
Controls what mode newly created child namespaces will inherit. At namespace
585+
creation, ``ns_mode`` is inherited from the parent's ``child_ns_mode``. The
586+
initial value matches the namespace's own ``ns_mode``.
587+
588+
Values:
589+
590+
- ``global`` - child namespaces will share system-wide CID allocation
591+
and their sockets will be able to reach any VM or socket in any
592+
global namespace.
593+
- ``local`` - child namespaces will have private CID allocation and
594+
their sockets will only be able to connect within their own
595+
namespace.
596+
597+
Changing ``child_ns_mode`` only affects namespaces created after the change;
598+
it does not modify the current namespace or any existing children.
599+
600+
A namespace with ``ns_mode`` set to ``local`` cannot change
601+
``child_ns_mode`` to ``global`` (returns ``-EPERM``).

Documentation/networking/ip-sysctl.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3234,12 +3234,13 @@ enhanced_dad - BOOLEAN
32343234
===========
32353235

32363236
ratelimit - INTEGER
3237-
Limit the maximal rates for sending ICMPv6 messages.
3237+
Limit the maximal rates for sending ICMPv6 messages to a particular
3238+
peer.
32383239

32393240
0 to disable any limiting,
3240-
otherwise the minimal space between responses in milliseconds.
3241+
otherwise the space between responses in milliseconds.
32413242

3242-
Default: 1000
3243+
Default: 100
32433244

32443245
ratemask - list of comma separated ranges
32453246
For ICMPv6 message types matching the ranges in the ratemask, limit

drivers/atm/fore200e.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,10 @@ fore200e_shutdown(struct fore200e* fore200e)
373373
fallthrough;
374374
case FORE200E_STATE_IRQ:
375375
free_irq(fore200e->irq, fore200e->atm_dev);
376+
#ifdef FORE200E_USE_TASKLET
377+
tasklet_kill(&fore200e->tx_tasklet);
378+
tasklet_kill(&fore200e->rx_tasklet);
379+
#endif
376380

377381
fallthrough;
378382
case FORE200E_STATE_ALLOC_BUF:

drivers/dpll/zl3073x/ref.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ zl3073x_ref_freq_set(struct zl3073x_ref *ref, u32 freq)
9191

9292
ref->freq_base = base;
9393
ref->freq_mult = mult;
94+
ref->freq_ratio_m = 1;
95+
ref->freq_ratio_n = 1;
9496

9597
return 0;
9698
}

drivers/net/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,7 @@ config MACSEC
333333

334334
config NETCONSOLE
335335
tristate "Network console logging support"
336+
depends on PRINTK
336337
help
337338
If you want to log kernel messages over the network, enable this.
338339
See <file:Documentation/networking/netconsole.rst> for details.

drivers/net/arcnet/com20020-pci.c

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ static const struct attribute_group com20020_state_group = {
115115
.attrs = com20020_state_attrs,
116116
};
117117

118+
static struct com20020_pci_card_info card_info_2p5mbit;
119+
118120
static void com20020pci_remove(struct pci_dev *pdev);
119121

120122
static int com20020pci_probe(struct pci_dev *pdev,
@@ -140,7 +142,7 @@ static int com20020pci_probe(struct pci_dev *pdev,
140142

141143
ci = (struct com20020_pci_card_info *)id->driver_data;
142144
if (!ci)
143-
return -EINVAL;
145+
ci = &card_info_2p5mbit;
144146

145147
priv->ci = ci;
146148
mm = &ci->misc_map;
@@ -347,6 +349,18 @@ static struct com20020_pci_card_info card_info_5mbit = {
347349
.flags = ARC_IS_5MBIT,
348350
};
349351

352+
static struct com20020_pci_card_info card_info_2p5mbit = {
353+
.name = "ARC-PCI",
354+
.devcount = 1,
355+
.chan_map_tbl = {
356+
{
357+
.bar = 2,
358+
.offset = 0x00,
359+
.size = 0x08,
360+
},
361+
},
362+
};
363+
350364
static struct com20020_pci_card_info card_info_sohard = {
351365
.name = "SOHARD SH ARC-PCI",
352366
.devcount = 1,

drivers/net/bonding/bond_main.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4343,9 +4343,13 @@ static int bond_close(struct net_device *bond_dev)
43434343

43444344
bond_work_cancel_all(bond);
43454345
bond->send_peer_notif = 0;
4346+
WRITE_ONCE(bond->recv_probe, NULL);
4347+
4348+
/* Wait for any in-flight RX handlers */
4349+
synchronize_net();
4350+
43464351
if (bond_is_lb(bond))
43474352
bond_alb_deinitialize(bond);
4348-
bond->recv_probe = NULL;
43494353

43504354
if (BOND_MODE(bond) == BOND_MODE_8023AD &&
43514355
bond->params.broadcast_neighbor)

drivers/net/dsa/mxl862xx/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
config NET_DSA_MXL862
33
tristate "MaxLinear MxL862xx"
44
depends on NET_DSA
5-
select MAXLINEAR_GPHY
65
select NET_DSA_TAG_MXL_862XX
76
help
87
This enables support for the MaxLinear MxL862xx switch family.

drivers/net/ethernet/broadcom/bnge/bnge_hwrm_lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ __bnge_hwrm_reserve_pf_rings(struct bnge_dev *bd, struct bnge_hw_rings *hwr)
442442
struct hwrm_func_cfg_input *req;
443443
u32 enables = 0;
444444

445-
if (bnge_hwrm_req_init(bd, req, HWRM_FUNC_QCFG))
445+
if (bnge_hwrm_req_init(bd, req, HWRM_FUNC_CFG))
446446
return NULL;
447447

448448
req->fid = cpu_to_le16(0xffff);

drivers/net/ethernet/broadcom/bnge/bnge_netdev.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include <linux/etherdevice.h>
1717
#include <linux/if.h>
1818
#include <net/ip.h>
19-
#include <net/netdev_queues.h>
2019
#include <linux/skbuff.h>
2120
#include <net/page_pool/helpers.h>
2221

0 commit comments

Comments
 (0)