Linux/linux 4003c9edrivers/net/dsa/mv88e6xxx chip.c, drivers/net/phy nxp-c45-tja11xx.c

Merge tag 'net-6.14-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net

Pull networking fixes from Paolo Abeni:
 "Including fixes from netfilter, bluetooth and wireless.

  No known regressions outstanding.

  Current release - regressions:

   - wifi: nl80211: fix assoc link handling

   - eth: lan78xx: sanitize return values of register read/write
     functions

  Current release - new code bugs:

   - ethtool: tsinfo: fix dump command

   - bluetooth: btusb: configure altsetting for HCI_USER_CHANNEL

    [62 lines not shown]
DeltaFile
+184-14tools/testing/selftests/drivers/net/ping.py
+177-0tools/testing/selftests/net/gre_ipv6_lladdr.sh
+109-0net/mctp/test/route-test.c
+38-70include/net/bluetooth/hci_core.h
+68-0drivers/net/phy/nxp-c45-tja11xx.c
+48-11drivers/net/dsa/mv88e6xxx/chip.c
+624-9580 files not shown
+1,251-36086 files

Linux/linux 8f7617ffs/afs dynroot.c cell.c, fs/vboxsf super.c

Merge tag 'vfs-6.14-rc7.fixes' of gitolite.kernel.org:pub/scm/linux/kernel/git/vfs/vfs

Pull vfs fixes from Christian Brauner:

 - Bring in an RCU pathwalk fix for afs. This is brought in as a merge
   from the vfs-6.15.shared.afs branch that needs this commit and other
   trees already depend on it.

 - Fix vboxfs unterminated string handling.

* tag 'vfs-6.14-rc7.fixes' of gitolite.kernel.org:pub/scm/linux/kernel/git/vfs/vfs:
  vboxsf: Add __nonstring annotations for unterminated strings
  afs: Fix afs_atcell_get_link() to handle RCU pathwalk
DeltaFile
+13-2fs/afs/dynroot.c
+6-5fs/afs/cell.c
+2-2fs/afs/proc.c
+1-2fs/vboxsf/super.c
+1-1fs/afs/internal.h
+23-125 files

Linux/linux 2409fa6net/netfilter nft_exthdr.c nf_conncount.c, net/netfilter/ipvs ip_vs_ctl.c

Merge tag 'nf-25-03-13' of git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf

Pablo Neira Ayuso says:

====================
Netfilter/IPVS fixes for net

The following patchset contains Netfilter/IPVS fixes for net:

1) Missing initialization of cpu and jiffies32 fields in conncount,
   from Kohei Enju.

2) Skip several tests in case kernel is tainted, otherwise tests bogusly
   report failure too as they also check for tainted kernel,
   from Florian Westphal.

3) Fix a hyphothetical integer overflow in do_ip_vs_get_ctl() leading
   to bogus error logs, from Dan Carpenter.


    [14 lines not shown]
DeltaFile
+4-6net/netfilter/nft_exthdr.c
+4-4net/netfilter/ipvs/ip_vs_ctl.c
+7-0tools/testing/selftests/net/netfilter/br_netfilter.sh
+7-0tools/testing/selftests/net/netfilter/br_netfilter_queue.sh
+2-0net/netfilter/nf_conncount.c
+1-0tools/testing/selftests/net/netfilter/nft_queue.sh
+25-106 files

Linux/linux 3e64bb2drivers/net/ethernet/microsoft/mana gdma_main.c mana_en.c

net: mana: cleanup mana struct after debugfs_remove()

When on a MANA VM hibernation is triggered, as part of hibernate_snapshot(),
mana_gd_suspend() and mana_gd_resume() are called. If during this
mana_gd_resume(), a failure occurs with HWC creation, mana_port_debugfs
pointer does not get reinitialized and ends up pointing to older,
cleaned-up dentry.
Further in the hibernation path, as part of power_down(), mana_gd_shutdown()
is triggered. This call, unaware of the failures in resume, tries to cleanup
the already cleaned up  mana_port_debugfs value and hits the following bug:

[  191.359296] mana 7870:00:00.0: Shutdown was called
[  191.359918] BUG: kernel NULL pointer dereference, address: 0000000000000098
[  191.360584] #PF: supervisor write access in kernel mode
[  191.361125] #PF: error_code(0x0002) - not-present page
[  191.361727] PGD 1080ea067 P4D 0
[  191.362172] Oops: Oops: 0002 [#1] SMP NOPTI
[  191.362606] CPU: 11 UID: 0 PID: 1674 Comm: bash Not tainted 6.14.0-rc5+ #2
[  191.363292] Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS Hyper-V UEFI Release v4.1 11/21/2024

    [78 lines not shown]
DeltaFile
+10-1drivers/net/ethernet/microsoft/mana/gdma_main.c
+6-4drivers/net/ethernet/microsoft/mana/mana_en.c
+16-52 files

Linux/linux e1af35ddrivers/net/ethernet/mellanox/mlx5/core pci_irq.c en_main.c, drivers/net/ethernet/mellanox/mlx5/core/en/rep bridge.c

Merge branch 'mlx5-misc-fixes-2025-03-10'

Tariq Toukan says:

====================
mlx5 misc fixes 2025-03-10

This patchset provides misc bug fixes from the team to the mlx5 core and
Eth drivers.
====================

Link: https://patch.msgid.link/1741644104-97767-1-git-send-email-tariqt@nvidia.com
Signed-off-by: Paolo Abeni <pabeni at redhat.com>
DeltaFile
+27-25drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v1.c
+42-0drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v3.c
+10-3drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
+5-7drivers/net/ethernet/mellanox/mlx5/core/en/rep/bridge.c
+2-4drivers/net/ethernet/mellanox/mlx5/core/en_main.c
+3-1drivers/net/ethernet/mellanox/mlx5/core/mlx5_irq.h
+89-4010 files not shown
+108-4716 files

Linux/linux e92df79drivers/net/ethernet/mellanox/mlx5/core en_main.c

net/mlx5e: Prevent bridge link show failure for non-eswitch-allowed devices

mlx5_eswitch_get_vepa returns -EPERM if the device lacks
eswitch_manager capability, blocking mlx5e_bridge_getlink from
retrieving VEPA mode. Since mlx5e_bridge_getlink implements
ndo_bridge_getlink, returning -EPERM causes bridge link show to fail
instead of skipping devices without this capability.

To avoid this, return -EOPNOTSUPP from mlx5e_bridge_getlink when
mlx5_eswitch_get_vepa fails, ensuring the command continues processing
other devices while ignoring those without the necessary capability.

Fixes: 4b89251de024 ("net/mlx5: Support ndo bridge_setlink and getlink")
Signed-off-by: Carolina Jubran <cjubran at nvidia.com>
Reviewed-by: Jianbo Liu <jianbol at nvidia.com>
Signed-off-by: Tariq Toukan <tariqt at nvidia.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski at linux.intel.com>
Link: https://patch.msgid.link/1741644104-97767-7-git-send-email-tariqt@nvidia.com
Signed-off-by: Paolo Abeni <pabeni at redhat.com>

DeltaFile
+2-4drivers/net/ethernet/mellanox/mlx5/core/en_main.c
+2-41 files

Linux/linux 4b8eeeddrivers/net/ethernet/mellanox/mlx5/core/en/rep bridge.c

net/mlx5: Bridge, fix the crash caused by LAG state check

When removing LAG device from bridge, NETDEV_CHANGEUPPER event is
triggered. Driver finds the lower devices (PFs) to flush all the
offloaded entries. And mlx5_lag_is_shared_fdb is checked, it returns
false if one of PF is unloaded. In such case,
mlx5_esw_bridge_lag_rep_get() and its caller return NULL, instead of
the alive PF, and the flush is skipped.

Besides, the bridge fdb entry's lastuse is updated in mlx5 bridge
event handler. But this SWITCHDEV_FDB_ADD_TO_BRIDGE event can be
ignored in this case because the upper interface for bond is deleted,
and the entry will never be aged because lastuse is never updated.

To make things worse, as the entry is alive, mlx5 bridge workqueue
keeps sending that event, which is then handled by kernel bridge
notifier. It causes the following crash when accessing the passed bond
netdev which is already destroyed.


    [56 lines not shown]
DeltaFile
+5-7drivers/net/ethernet/mellanox/mlx5/core/en/rep/bridge.c
+5-71 files

Linux/linux 3296698drivers/net/ethernet/mellanox/mlx5/core/lag lag.c mpesw.c

net/mlx5: Lag, Check shared fdb before creating MultiPort E-Switch

Currently, MultiPort E-Switch is requesting to create a LAG with shared
FDB without checking the LAG is supporting shared FDB.
Add the check.

Fixes: a32327a3a02c ("net/mlx5: Lag, Control MultiPort E-Switch single FDB mode")
Signed-off-by: Shay Drory <shayd at nvidia.com>
Reviewed-by: Mark Bloch <mbloch at nvidia.com>
Signed-off-by: Tariq Toukan <tariqt at nvidia.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski at linux.intel.com>
Link: https://patch.msgid.link/1741644104-97767-5-git-send-email-tariqt@nvidia.com
Signed-off-by: Paolo Abeni <pabeni at redhat.com>

DeltaFile
+2-2drivers/net/ethernet/mellanox/mlx5/core/lag/lag.c
+2-1drivers/net/ethernet/mellanox/mlx5/core/lag/mpesw.c
+1-0drivers/net/ethernet/mellanox/mlx5/core/lag/lag.h
+5-33 files

Linux/linux 03ebae1drivers/net/ethernet/mellanox/mlx5/core/steering/sws dr_ste_v1.c dr_ste_v3.c

net/mlx5: DR, use the right action structs for STEv3

Some actions in ConnectX-8 (STEv3) have different structure,
and they are handled separately in ste_ctx_v3.
This separate handling was missing two actions: INSERT_HDR
and REMOVE_HDR, which broke SWS for Linux Bridge.
This patch resolves the issue by introducing dedicated
callbacks for the insert and remove header functions,
with version-specific implementations for each STE variant.

Fixes: 4d617b57574f ("net/mlx5: DR, add support for ConnectX-8 steering")
Signed-off-by: Yevgeny Kliteynik <kliteyn at nvidia.com>
Reviewed-by: Itamar Gozlan <igozlan at nvidia.com>
Reviewed-by: Mark Bloch <mbloch at nvidia.com>
Signed-off-by: Tariq Toukan <tariqt at nvidia.com>
Link: https://patch.msgid.link/1741644104-97767-2-git-send-email-tariqt@nvidia.com
Signed-off-by: Paolo Abeni <pabeni at redhat.com>

DeltaFile
+27-25drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v1.c
+42-0drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v3.c
+4-0drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v1.h
+4-0drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste.h
+2-0drivers/net/ethernet/mellanox/mlx5/core/steering/sws/dr_ste_v2.c
+79-255 files

Linux/linux 5219923drivers/net/ethernet/mellanox/mlx5/core/steering/hws bwc.h

net/mlx5: HWS, Rightsize bwc matcher priority

The bwc layer was clamping the matcher priority from 32 bits to 16 bits.
This didn't show up until a matcher was resized, since the initial
native matcher was created using the correct 32 bit value.

The fix also reorders fields to avoid some padding.

Fixes: 2111bb970c78 ("net/mlx5: HWS, added backward-compatible API handling")
Signed-off-by: Vlad Dogaru <vdogaru at nvidia.com>
Reviewed-by: Yevgeny Kliteynik <kliteyn at nvidia.com>
Reviewed-by: Mark Bloch <mbloch at nvidia.com>
Signed-off-by: Tariq Toukan <tariqt at nvidia.com>
Link: https://patch.msgid.link/1741644104-97767-3-git-send-email-tariqt@nvidia.com
Signed-off-by: Paolo Abeni <pabeni at redhat.com>

DeltaFile
+1-1drivers/net/ethernet/mellanox/mlx5/core/steering/hws/bwc.h
+1-11 files

Linux/linux 32d2724drivers/net/ethernet/mellanox/mlx5/core pci_irq.c mlx5_irq.h

net/mlx5: Fix incorrect IRQ pool usage when releasing IRQs

mlx5_irq_pool_get() is a getter for completion IRQ pool only.
However, after the cited commit, mlx5_irq_pool_get() is called during
ctrl IRQ release flow to retrieve the pool, resulting in the use of an
incorrect IRQ pool.

Hence, use the newly introduced mlx5_irq_get_pool() getter to retrieve
the correct IRQ pool based on the IRQ itself. While at it, rename
mlx5_irq_pool_get() to mlx5_irq_table_get_comp_irq_pool() which
accurately reflects its purpose and improves code readability.

Fixes: 0477d5168bbb ("net/mlx5: Expose SFs IRQs")
Signed-off-by: Shay Drory <shayd at nvidia.com>
Reviewed-by: Maher Sanalla <msanalla at nvidia.com>
Signed-off-by: Tariq Toukan <tariqt at nvidia.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski at linux.intel.com>
Link: https://patch.msgid.link/1741644104-97767-4-git-send-email-tariqt@nvidia.com
Signed-off-by: Paolo Abeni <pabeni at redhat.com>

DeltaFile
+10-3drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c
+3-1drivers/net/ethernet/mellanox/mlx5/core/mlx5_irq.h
+1-1drivers/net/ethernet/mellanox/mlx5/core/irq_affinity.c
+1-1drivers/net/ethernet/mellanox/mlx5/core/eq.c
+1-1drivers/net/ethernet/mellanox/mlx5/core/pci_irq.h
+16-75 files

Linux/linux 1063ae0net/openvswitch conntrack.c datapath.h

Revert "openvswitch: switch to per-action label counting in conntrack"

Currently, ovs_ct_set_labels() is only called for confirmed conntrack
entries (ct) within ovs_ct_commit(). However, if the conntrack entry
does not have the labels_ext extension, attempting to allocate it in
ovs_ct_get_conn_labels() for a confirmed entry triggers a warning in
nf_ct_ext_add():

  WARN_ON(nf_ct_is_confirmed(ct));

This happens when the conntrack entry is created externally before OVS
increments net->ct.labels_used. The issue has become more likely since
commit fcb1aa5163b1 ("openvswitch: switch to per-action label counting
in conntrack"), which changed to use per-action label counting and
increment net->ct.labels_used when a flow with ct action is added.

Since there’s no straightforward way to fully resolve this issue at the
moment, this reverts the commit to avoid breaking existing use cases.


    [7 lines not shown]
DeltaFile
+18-12net/openvswitch/conntrack.c
+3-0net/openvswitch/datapath.h
+21-122 files

Linux/linux a1e64adnet/openvswitch flow_netlink.c

net: openvswitch: remove misbehaving actions length check

The actions length check is unreliable and produces different results
depending on the initial length of the provided netlink attribute and
the composition of the actual actions inside of it.  For example, a
user can add 4088 empty clone() actions without triggering -EMSGSIZE,
on attempt to add 4089 such actions the operation will fail with the
-EMSGSIZE verdict.  However, if another 16 KB of other actions will
be *appended* to the previous 4089 clone() actions, the check passes
and the flow is successfully installed into the openvswitch datapath.

The reason for a such a weird behavior is the way memory is allocated.
When ovs_flow_cmd_new() is invoked, it calls ovs_nla_copy_actions(),
that in turn calls nla_alloc_flow_actions() with either the actual
length of the user-provided actions or the MAX_ACTIONS_BUFSIZE.  The
function adds the size of the sw_flow_actions structure and then the
actually allocated memory is rounded up to the closest power of two.

So, if the user-provided actions are larger than MAX_ACTIONS_BUFSIZE,

    [77 lines not shown]
DeltaFile
+1-14net/openvswitch/flow_netlink.c
+1-141 files

Linux/linux b3fc592net/ipv6 addrconf.c, tools/testing/selftests/net gre_ipv6_lladdr.sh Makefile

Merge branch 'gre-fix-regressions-in-ipv6-link-local-address-generation'

Guillaume Nault says:

====================
gre: Fix regressions in IPv6 link-local address generation.

IPv6 link-local address generation has some special cases for GRE
devices. This has led to several regressions in the past, and some of
them are still not fixed. This series fixes the remaining problems,
like the ipv6.conf.<dev>.addr_gen_mode sysctl being ignored and the
router discovery process not being started (see details in patch 1).

To avoid any further regressions, patch 2 adds selftests covering
IPv4 and IPv6 gre/gretap devices with all combinations of currently
supported addr_gen_mode values.
====================

Link: https://patch.msgid.link/cover.1741375285.git.gnault@redhat.com
Signed-off-by: Paolo Abeni <pabeni at redhat.com>
DeltaFile
+177-0tools/testing/selftests/net/gre_ipv6_lladdr.sh
+9-6net/ipv6/addrconf.c
+1-0tools/testing/selftests/net/Makefile
+187-63 files

Linux/linux 183185anet/ipv6 addrconf.c

gre: Fix IPv6 link-local address generation.

Use addrconf_addr_gen() to generate IPv6 link-local addresses on GRE
devices in most cases and fall back to using add_v4_addrs() only in
case the GRE configuration is incompatible with addrconf_addr_gen().

GRE used to use addrconf_addr_gen() until commit e5dd729460ca
("ip/ip6_gre: use the same logic as SIT interfaces when computing v6LL
address") restricted this use to gretap and ip6gretap devices, and
created add_v4_addrs() (borrowed from SIT) for non-Ethernet GRE ones.

The original problem came when commit 9af28511be10 ("addrconf: refuse
isatap eui64 for INADDR_ANY") made __ipv6_isatap_ifid() fail when its
addr parameter was 0. The commit says that this would create an invalid
address, however, I couldn't find any RFC saying that the generated
interface identifier would be wrong. Anyway, since gre over IPv4
devices pass their local tunnel address to __ipv6_isatap_ifid(), that
commit broke their IPv6 link-local address generation when the local
address was unspecified.

    [39 lines not shown]
DeltaFile
+9-6net/ipv6/addrconf.c
+9-61 files

Linux/linux 6f50175tools/testing/selftests/net gre_ipv6_lladdr.sh Makefile

selftests: Add IPv6 link-local address generation tests for GRE devices.

GRE devices have their special code for IPv6 link-local address
generation that has been the source of several regressions in the past.

Add selftest to check that all gre, ip6gre, gretap and ip6gretap get an
IPv6 link-link local address in accordance with the
net.ipv6.conf.<dev>.addr_gen_mode sysctl.

Signed-off-by: Guillaume Nault <gnault at redhat.com>
Reviewed-by: Ido Schimmel <idosch at nvidia.com>
Tested-by: Ido Schimmel <idosch at nvidia.com>
Reviewed-by: Petr Machata <petrm at nvidia.com>
Link: https://patch.msgid.link/2d6772af8e1da9016b2180ec3f8d9ee99f470c77.1741375285.git.gnault@redhat.com
Signed-off-by: Paolo Abeni <pabeni at redhat.com>

DeltaFile
+177-0tools/testing/selftests/net/gre_ipv6_lladdr.sh
+1-0tools/testing/selftests/net/Makefile
+178-02 files

Linux/linux 6edd78anet/netfilter nft_exthdr.c

netfilter: nft_exthdr: fix offset with ipv4_find_option()

There is an incorrect calculation in the offset variable which causes
the nft_skb_copy_to_reg() function to always return -EFAULT. Adding the
start variable is redundant. In the __ip_options_compile() function the
correct offset is specified when finding the function. There is no need
to add the size of the iphdr structure to the offset.

Fixes: dbb5281a1f84 ("netfilter: nf_tables: add support for matching IPv4 options")
Signed-off-by: Alexey Kashavkin <akashavkin at gmail.com>
Reviewed-by: Florian Westphal <fw at strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo at netfilter.org>
DeltaFile
+4-6net/netfilter/nft_exthdr.c
+4-61 files

Linux/linux b7f94fckernel/sched ext.c

Merge tag 'sched_ext-for-6.14-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext

Pull sched_ext fix from Tejun Heo:
 "BPF schedulers could trigger a crash by passing in an invalid CPU to
  the scx_bpf_select_cpu_dfl() helper.

  Fix it by verifying input validity"

* tag 'sched_ext-for-6.14-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext:
  sched_ext: Validate prev_cpu in scx_bpf_select_cpu_dfl()
DeltaFile
+3-0kernel/sched/ext.c
+3-01 files

Linux/linux 6e8e2f8. MAINTAINERS, drivers/spi spi-microchip-core.c atmel-quadspi.c

Merge tag 'spi-fix-v6.14-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi

Pull spi fixes from Mark Brown:
 "A couple of driver specific fixes, an error handling fix for the Atmel
  QuadSPI driver and a fix for a nasty synchronisation issue in the data
  path for the Microchip driver which affects larger transfers.

  There's also a MAINTAINERS update for the Samsung driver"

* tag 'spi-fix-v6.14-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
  spi: microchip-core: prevent RX overflows when transmit size > FIFO size
  MAINTAINERS: add tambarus as R for Samsung SPI
  spi: atmel-quadspi: remove references to runtime PM on error path
DeltaFile
+18-23drivers/spi/spi-microchip-core.c
+1-4drivers/spi/atmel-quadspi.c
+1-0MAINTAINERS
+20-273 files

Linux/linux bb7737dtools/testing/selftests/tc-testing/tc-tests/qdiscs drr.json

selftests/tc-testing: Add a test case for DRR class with TC_H_ROOT

Integrate the reproduer from Mingi to TDC.

All test results:

1..4
ok 1 0385 - Create DRR with default setting
ok 2 2375 - Delete DRR with handle
ok 3 3092 - Show DRR class
ok 4 4009 - Reject creation of DRR class with classid TC_H_ROOT

Cc: Mingi Cho <mincho at theori.io>
Signed-off-by: Cong Wang <xiyou.wangcong at gmail.com>
Reviewed-by: Simon Horman <horms at kernel.org>
Link: https://patch.msgid.link/20250306232355.93864-3-xiyou.wangcong@gmail.com
Signed-off-by: Jakub Kicinski <kuba at kernel.org>
DeltaFile
+25-0tools/testing/selftests/tc-testing/tc-tests/qdiscs/drr.json
+25-01 files

Linux/linux 83d2fe6net/sched sch_api.c, tools/testing/selftests/tc-testing/tc-tests/qdiscs drr.json

Merge branch 'net_sched-prevent-creation-of-classes-with-tc_h_root'

Cong Wang says:

====================
net_sched: Prevent creation of classes with TC_H_ROOT

This patchset contains a bug fix and its TDC test case.
====================

Link: https://patch.msgid.link/20250306232355.93864-1-xiyou.wangcong@gmail.com
Signed-off-by: Jakub Kicinski <kuba at kernel.org>
DeltaFile
+25-0tools/testing/selftests/tc-testing/tc-tests/qdiscs/drr.json
+6-0net/sched/sch_api.c
+31-02 files

Linux/linux 0c3057anet/sched sch_api.c

net_sched: Prevent creation of classes with TC_H_ROOT

The function qdisc_tree_reduce_backlog() uses TC_H_ROOT as a termination
condition when traversing up the qdisc tree to update parent backlog
counters. However, if a class is created with classid TC_H_ROOT, the
traversal terminates prematurely at this class instead of reaching the
actual root qdisc, causing parent statistics to be incorrectly maintained.
In case of DRR, this could lead to a crash as reported by Mingi Cho.

Prevent the creation of any Qdisc class with classid TC_H_ROOT
(0xFFFFFFFF) across all qdisc types, as suggested by Jamal.

Reported-by: Mingi Cho <mincho at theori.io>
Signed-off-by: Cong Wang <xiyou.wangcong at gmail.com>
Reviewed-by: Simon Horman <horms at kernel.org>
Fixes: 066a3b5b2346 ("[NET_SCHED] sch_api: fix qdisc_tree_decrease_qlen() loop")
Link: https://patch.msgid.link/20250306232355.93864-2-xiyou.wangcong@gmail.com
Signed-off-by: Jakub Kicinski <kuba at kernel.org>
DeltaFile
+6-0net/sched/sch_api.c
+6-01 files

Linux/linux 80b78c3net/netfilter/ipvs ip_vs_ctl.c

ipvs: prevent integer overflow in do_ip_vs_get_ctl()

The get->num_services variable is an unsigned int which is controlled by
the user.  The struct_size() function ensures that the size calculation
does not overflow an unsigned long, however, we are saving the result to
an int so the calculation can overflow.

Both "len" and "get->num_services" come from the user.  This check is
just a sanity check to help the user and ensure they are using the API
correctly.  An integer overflow here is not a big deal.  This has no
security impact.

Save the result from struct_size() type size_t to fix this integer
overflow bug.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Dan Carpenter <dan.carpenter at linaro.org>
Acked-by: Julian Anastasov <ja at ssi.bg>
Signed-off-by: Pablo Neira Ayuso <pablo at netfilter.org>
DeltaFile
+4-4net/netfilter/ipvs/ip_vs_ctl.c
+4-41 files

Linux/linux c21b02ftools/testing/selftests/net/netfilter br_netfilter_queue.sh br_netfilter.sh

selftests: netfilter: skip br_netfilter queue tests if kernel is tainted

These scripts fail if the kernel is tainted which leads to wrong test
failure reports in CI environments when an unrelated test triggers some
splat.

Check taint state at start of script and SKIP if its already dodgy.

Signed-off-by: Florian Westphal <fw at strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo at netfilter.org>
DeltaFile
+7-0tools/testing/selftests/net/netfilter/br_netfilter_queue.sh
+7-0tools/testing/selftests/net/netfilter/br_netfilter.sh
+1-0tools/testing/selftests/net/netfilter/nft_queue.sh
+15-03 files

Linux/linux d653bfenet/netfilter nf_conncount.c

netfilter: nf_conncount: Fully initialize struct nf_conncount_tuple in insert_tree()

Since commit b36e4523d4d5 ("netfilter: nf_conncount: fix garbage
collection confirm race"), `cpu` and `jiffies32` were introduced to
the struct nf_conncount_tuple.

The commit made nf_conncount_add() initialize `conn->cpu` and
`conn->jiffies32` when allocating the struct.
In contrast, count_tree() was not changed to initialize them.

By commit 34848d5c896e ("netfilter: nf_conncount: Split insert and
traversal"), count_tree() was split and the relevant allocation
code now resides in insert_tree().
Initialize `conn->cpu` and `conn->jiffies32` in insert_tree().

BUG: KMSAN: uninit-value in find_or_evict net/netfilter/nf_conncount.c:117 [inline]
BUG: KMSAN: uninit-value in __nf_conncount_add+0xd9c/0x2850 net/netfilter/nf_conncount.c:143
 find_or_evict net/netfilter/nf_conncount.c:117 [inline]
 __nf_conncount_add+0xd9c/0x2850 net/netfilter/nf_conncount.c:143

    [81 lines not shown]
DeltaFile
+2-0net/netfilter/nf_conncount.c
+2-01 files

Linux/linux 081b575. MAINTAINERS, drivers/net/wireless/intel/iwlwifi/pcie tx.c

Merge tag 'wireless-2025-03-12' of https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless

Johannes berg says:

====================
Few more fixes:
 - cfg80211/mac80211
   - stop possible runaway wiphy worker
   - EHT should not use reserved MPDU size bits
   - don't run worker for stopped interfaces
   - fix SA Query processing with MLO
   - fix lookup of assoc link BSS entries
   - correct station flush on unauthorize
 - iwlwifi:
   - TSO fixes
   - fix non-MSI-X platforms
   - stop possible runaway restart worker
 - rejigger maintainers so I'm not CC'ed on
   everything

    [3 lines not shown]
DeltaFile
+28-9MAINTAINERS
+17-3net/mac80211/sta_info.c
+8-4net/wireless/nl80211.c
+6-5drivers/net/wireless/intel/iwlwifi/pcie/tx.c
+5-5net/mac80211/rx.c
+8-1net/mac80211/eht.c
+72-274 files not shown
+89-3310 files

Linux/linux 8ae227fnet/mac80211 eht.c

wifi: mac80211: fix MPDU length parsing for EHT 5/6 GHz

The MPDU length is only configured using the EHT capabilities element on
2.4 GHz. On 5/6 GHz it is configured using the VHT or HE capabilities
respectively.

Fixes: cf0079279727 ("wifi: mac80211: parse A-MSDU len from EHT capabilities")
Reviewed-by: Miriam Rachel Korenblit <miriam.rachel.korenblit at intel.com>
Signed-off-by: Benjamin Berg <benjamin.berg at intel.com>
Link: https://patch.msgid.link/20250311121704.0634d31f0883.I28063e4d3ef7d296b7e8a1c303460346a30bf09c@changeid
Signed-off-by: Johannes Berg <johannes.berg at intel.com>
DeltaFile
+8-1net/mac80211/eht.c
+8-11 files

Linux/linux 0fed89aarch/x86/hyperv ivm.c hv_vtl.c, drivers/gpu/drm/hyperv hyperv_drm_drv.c

Merge tag 'hyperv-fixes-signed-20250311' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux

Pull hyperv fixes from Wei Liu:

 - Patches to fix Hyper-v framebuffer code (Michael Kelley and Saurabh
   Sengar)

 - Fix for Hyper-V output argument to hypercall that changes page
   visibility (Michael Kelley)

 - Fix for Hyper-V VTL mode (Naman Jain)

* tag 'hyperv-fixes-signed-20250311' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux:
  Drivers: hv: vmbus: Don't release fb_mmio resource in vmbus_free_mmio()
  x86/hyperv: Fix output argument to hypercall that changes page visibility
  fbdev: hyperv_fb: Allow graceful removal of framebuffer
  fbdev: hyperv_fb: Simplify hvfb_putmem
  fbdev: hyperv_fb: Fix hang in kdump kernel when on Hyper-V Gen 2 VMs
  drm/hyperv: Fix address space leak when Hyper-V DRM device is removed

    [2 lines not shown]
DeltaFile
+34-18drivers/video/fbdev/hyperv_fb.c
+13-0drivers/hv/vmbus_drv.c
+1-2arch/x86/hyperv/ivm.c
+2-0drivers/gpu/drm/hyperv/hyperv_drm_drv.c
+1-0arch/x86/hyperv/hv_vtl.c
+51-205 files

Linux/linux 0b46b04arch/riscv Kconfig.socs, drivers/pinctrl/bcm pinctrl-bcm281xx.c

Merge tag 'pinctrl-v6.14-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl

Pull pin control fixes from Linus Walleij:

 - Fix the regmap settings for bcm281xx, this was missing the stride

 - NULL check for the Nuvoton npcm8xx devm_kasprintf()

 - Enable the Spacemit pin controller by default in the SoC config. The
   SoC will not boot without it so this one is pretty much required

* tag 'pinctrl-v6.14-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl:
  pinctrl: spacemit: enable config option
  pinctrl: nuvoton: npcm8xx: Add NULL check in npcm8xx_gpio_fw
  pinctrl: bcm281xx: Fix incorrect regmap max_registers value
DeltaFile
+3-0drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c
+2-1drivers/pinctrl/spacemit/Kconfig
+1-1drivers/pinctrl/bcm/pinctrl-bcm281xx.c
+1-1drivers/pinctrl/spacemit/pinctrl-k1.c
+1-0arch/riscv/Kconfig.socs
+8-35 files

Linux/linux d2b9d97drivers/net/ethernet/qlogic/qlcnic qlcnic_sriov_common.c

qlcnic: fix memory leak issues in qlcnic_sriov_common.c

Add qlcnic_sriov_free_vlans() in qlcnic_sriov_alloc_vlans() if
any sriov_vlans fails to be allocated.
Add qlcnic_sriov_free_vlans() to free the memory allocated by
qlcnic_sriov_alloc_vlans() if "sriov->allowed_vlans" fails to
be allocated.

Fixes: 91b7282b613d ("qlcnic: Support VLAN id config.")
Cc: stable at vger.kernel.org
Signed-off-by: Haoxiang Li <haoxiang_li2024 at 163.com>
Link: https://patch.msgid.link/20250307094952.14874-1-haoxiang_li2024@163.com
Signed-off-by: Paolo Abeni <pabeni at redhat.com>

DeltaFile
+6-2drivers/net/ethernet/qlogic/qlcnic/qlcnic_sriov_common.c
+6-21 files