Linux/linux 2860828drivers/spi spi-geni-qcom.c spi-dw-core.c

Merge tag 'spi-fix-v7.1-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi

Pull spi fixes from Mark Brown:
 "A couple of driver specific fixes: a small targeted fix for hardware
  error handling on DesignWare controllers and another for handling of
  custom chip select management on Qualcomm GENI controllers"

* tag 'spi-fix-v7.1-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
  spi: dw: fix race between IRQ handler and error handler on SMP
  spi: qcom-geni: Fix cs_change handling on the last transfer
DeltaFile
+19-8drivers/spi/spi-geni-qcom.c
+2-0drivers/spi/spi-dw-core.c
+21-82 files

Linux/linux 880b719io_uring wait.c kbuf.c

Merge tag 'io_uring-7.1-20260611' of git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux

Pull io_uring fixes from Jens Axboe:

 - Tweak for an off-by-one in the CQ ring accounting for the min wait
   support.

 - Don't truncate end buffer length for a bundle, as the transfer might
   not happen. It's not required in the first place, as the completion
   side handles this condition already.

* tag 'io_uring-7.1-20260611' of git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux:
  io_uring/wait: fix min_timeout behavior
  io_uring/kbuf: don't truncate end buffer for bundles
DeltaFile
+1-1io_uring/wait.c
+0-1io_uring/kbuf.c
+1-22 files

Linux/linux 2e04e09drivers/thunderbolt xdomain.c property.c, drivers/usb/serial io_ti.c kl5kusb105.c

Merge tag 'usb-7.1-final' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb

Pull USB / Thunderbolt fixes from Greg KH:
 "Here are some small bugfixes for USB serial and Thunderbolt drivers
  for some reported and found issues. Included in here are:

   - usb serial overflow bugs fixed

   - new usb serial device id

   - thunderbolt validation fixes for reported issues

  All of these have been in linux-next this week with no reported
  issues"

* tag 'usb-7.1-final' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
  USB: serial: kl5kusb105: fix bulk-out buffer overflow
  USB: serial: option: add usb-id for Dell Wireless DW5826e-m
  USB: serial: io_ti: fix heap overflow in build_i2c_fw_hdr()

    [6 lines not shown]
DeltaFile
+11-3drivers/thunderbolt/xdomain.c
+11-0drivers/usb/serial/io_ti.c
+6-0drivers/thunderbolt/property.c
+2-2drivers/usb/serial/kl5kusb105.c
+3-0drivers/usb/serial/option.c
+33-55 files

Linux/linux c133f04drivers/staging/rtl8723bs/core rtw_mlme.c

Merge tag 'staging-7.1-final' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging

Pull staging driver fixes from Greg KH:
 "Here are two small bugfixes for a staging driver to fix a
  much-reported issue.

  The fixes are for the rtl8723bs driver and it's something that many
  scanning tools keep tripping over in convoluted ways (and seems to be
  able to be triggered by network traffic)

  These fixes have been in linux-next for many weeks with no reported
  issues, sorry for the delay in getting them to you"

* tag 'staging-7.1-final' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
  staging: rtl8723bs: rtw_mlme: add bounds checks before ie_length subtraction
  staging: rtl8723bs: fix buffer over-read in rtw_update_protection
DeltaFile
+18-6drivers/staging/rtl8723bs/core/rtw_mlme.c
+18-61 files

Linux/linux 9a837efdrivers/firmware stratix10-rsu.c stratix10-svc.c, drivers/misc fastrpc.c

Merge tag 'char-misc-7.1-final' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc

Pull char/misc driver fixes from Greg KH:
 "Here are some small driver fixes for 7.1-final to resolve some
  reported issues. Included in here are:

   - slimbus qcom driver bugfixes

   - nvmem driver bugfixes

   - fastrpc driver bugfixes

   - stratix10 firmware driver bugfixes

  All of these have been in linux-next for over a week with no
  reported issues"

* tag 'char-misc-7.1-final' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
  misc: fastrpc: fix use-after-free race in fastrpc_map_create

    [16 lines not shown]
DeltaFile
+77-45drivers/slimbus/qcom-ngd-ctrl.c
+68-39drivers/misc/fastrpc.c
+20-25drivers/firmware/stratix10-rsu.c
+17-4drivers/firmware/stratix10-svc.c
+5-7drivers/nvmem/core.c
+2-1drivers/nvmem/layouts/onie-tlv.c
+189-1216 files

Linux/linux 1dadb7esound/core timer.c, sound/soc/amd/yc acp6x-mach.c

Merge tag 'sound-7.1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound

Pull sound fixes from Takashi Iwai:
 "A few small fixes for the last spurt. All changes are small, mostly
  consisting of driver-specific fixes, along with two UAF fixes for the
  ALSA timer core.

  Core:
   - Two UAF fixes in ALSA timer core

  ASoC:
   - SDCA: Fix NULL pointer dereference
   - amd / yc: Add DMI quirk for ASUS ExpertBook PM1403CDA
   - SOF amd: Fix garbage/spurious warnings
   - wm_adsp: Fix potential NULL dereference when removing firmware
     controls
   - loongson: Fix negative position calculation
   - spi-rzv2h-rspi: Fix SPDR read access width on 16-bit RX path"


    [10 lines not shown]
DeltaFile
+28-0sound/soc/sof/amd/acp.c
+21-3sound/soc/sdca/sdca_function_device.c
+10-7sound/core/timer.c
+10-2sound/soc/loongson/loongson_dma.c
+7-0sound/soc/amd/yc/acp6x-mach.c
+2-2sound/soc/sof/amd/acp-ipc.c
+78-143 files not shown
+85-159 files

Linux/linux fd41dc4arch/arm/mach-rockchip platsmp.c, drivers/soc/microchip mpfs-sys-controller.c

Merge tag 'soc-fixes-7.1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc

Pull SoC fixes from Arnd Bergmann:
 "Two more small fixes came in, both addressing corner cases in platform
  specific code: the microchip mpfs system controller probe and the CPU
  power management on 32-bit rockchips SoCs"

* tag 'soc-fixes-7.1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc:
  ARM: rockchip: keep reset control around
  soc: microchip: mpfs-sys-controller: fix resource leak on probe error
DeltaFile
+10-6arch/arm/mach-rockchip/platsmp.c
+4-2drivers/soc/microchip/mpfs-sys-controller.c
+14-82 files

Linux/linux f51cae6drivers/iommu dma-iommu.c, kernel/dma debug.c direct.c

Merge tag 'dma-mapping-7.1-2026-06-11' of git://git.kernel.org/pub/scm/linux/kernel/git/mszyprowski/linux

Pull dma-mapping fix from Marek Szyprowski:
 "Three more fixes for the DMA-mapping code, related to PCI P2PDMA, DMA
  debug and DMA link ranges API (Li RongQing and Jason Gunthorpe)"

* tag 'dma-mapping-7.1-2026-06-11' of git://git.kernel.org/pub/scm/linux/kernel/git/mszyprowski/linux:
  iommu/dma: Do not try to iommu_map a 0 length region in swiotlb
  dma-debug: fix physical address retrieval in debug_dma_sync_sg_for_device
  dma-mapping: direct: fix missing mapping for THRU_HOST_BRIDGE segments
DeltaFile
+13-6drivers/iommu/dma-iommu.c
+1-1kernel/dma/debug.c
+1-1kernel/dma/direct.c
+15-83 files

Linux/linux b0d1553drivers/spi spi-rzv2h-rspi.c, sound/soc/amd/yc acp6x-mach.c

Merge tag 'asoc-fix-v7.1-rc7' of https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-linus

ASoC: Fixes for v7.1

A few more fixes for this release, some smaller driver specific ones
plus a final quirk.
DeltaFile
+28-0sound/soc/sof/amd/acp.c
+21-3sound/soc/sdca/sdca_function_device.c
+10-2sound/soc/loongson/loongson_dma.c
+7-0sound/soc/amd/yc/acp6x-mach.c
+2-2sound/soc/sof/amd/acp-ipc.c
+2-1drivers/spi/spi-rzv2h-rspi.c
+70-82 files not shown
+75-88 files

Linux/linux 2b414a9arch/s390 Kconfig

Merge tag 's390-7.1-5' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux

Pull s390 fix from Alexander Gordeev:

 - s390 selects GENERIC_LOCKBREAK when PREEMPT is enabled to tackle an
   old compile error that no longer exists. Since recently PREEMPT is
   always enabled, this LOCKBREAK config causes massive performance
   regressions.

   Remove GENERIC_LOCKBREAK from s390 Kconfig to fix the degradation.

* tag 's390-7.1-5' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
  s390: Remove GENERIC_LOCKBREAK Kconfig option
DeltaFile
+0-3arch/s390/Kconfig
+0-31 files

Linux/linux 22e2036drivers/net/ethernet/marvell/mvpp2 mvpp2_main.c, drivers/net/ethernet/marvell/octeontx2/af/cn20k npc.c

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

Pull networking fixes from Paolo Abeni:
 "Including fixes from IPsec and netfilter.

  This is relatively small, mostly because we are a bit behind our PW
  queue. I'm not aware of any pending regression.

  Current release - regressions:

   - netfilter: nf_tables_offload: drop device refcount on error

  Previous releases - regressions:

   - core: add pskb_may_pull() to skb_gro_receive_list()

   - xfrm: iptfs: preserve shared-frag marker in iptfs_consume_frags()

   - ipv6: fix a potential NPD in cleanup_prefix_route()

    [49 lines not shown]
DeltaFile
+54-18drivers/net/ethernet/mellanox/mlx5/core/vport.c
+34-38drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
+41-26drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
+56-8net/netfilter/nfnetlink_queue.c
+10-20net/netlabel/netlabel_unlabeled.c
+18-10drivers/net/mctp/mctp-usb.c
+213-12065 files not shown
+562-27471 files

Linux/linux 79f2670drivers/pmdomain/imx gpc.c, drivers/pmdomain/ti ti_sci_pm_domains.c

Merge tag 'pmdomain-v7.1-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/linux-pm

Pull pmdomain fixes from Ulf Hansson:

 - imx: Fix OF node refcount

 - ti: Fix wakeup configuration for parent devices of wakeup sources

* tag 'pmdomain-v7.1-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/linux-pm:
  pmdomain: imx: fix OF node refcount
  pmdomain: ti_sci: add wakeup constraint to parent devices of wakeup source
DeltaFile
+1-1drivers/pmdomain/imx/gpc.c
+1-1drivers/pmdomain/ti/ti_sci_pm_domains.c
+2-22 files

Linux/linux 6e9e0dfdrivers/gpio gpio-mockup.c gpiolib.c

Merge tag 'gpio-fixes-for-v7.1' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux

Pull gpio fixes from Bartosz Golaszewski:

 - fix NULL pointer dereference in gpio-mvebu

 - fix runtime PM leak in remove path in gpio-zynq

 - reject invalid module params in gpio-mockup

 - fix generic IRQ chip leak in remove parh in gpio-rockchip

 - fix resource leaks in GPIO chip cleanup path on hog failure

 - fix a regression in how GPIO hogging code handles multiple GPIO chips
   reusing the same OF node

* tag 'gpio-fixes-for-v7.1' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
  gpiolib: handle gpio-hogs only once

    [5 lines not shown]
DeltaFile
+14-2drivers/gpio/gpio-mockup.c
+9-1drivers/gpio/gpiolib.c
+0-5drivers/gpio/gpiolib-of.c
+2-2drivers/gpio/gpio-mvebu.c
+3-1drivers/gpio/gpio-rockchip.c
+1-0drivers/gpio/gpio-zynq.c
+29-116 files

Linux/linux e4c60a1sound/soc/sdca sdca_function_device.c

ASoC: SDCA: fix NULL pointer dereference in sdca_dev_unregister_functions

sdca_dev_unregister_functions() iterates over all SDCA function
descriptors and calls sdca_dev_unregister() on each func_dev without
checking for NULL. When a function registration has failed partway
through, or the device cleanup races with probe deferral, func_dev
entries may be NULL, leading to a kernel oops:

  BUG: kernel NULL pointer dereference, address: 0000000000000040
  RIP: 0010:device_del+0x1e/0x3e0
  Call Trace:
   sdca_dev_unregister_functions+0x37/0x60 [snd_soc_sdca]
   release_nodes+0x35/0xb0
   devres_release_all+0x90/0x100
   device_unbind_cleanup+0xe/0x80
   device_release_driver_internal+0x1c1/0x200
   bus_remove_device+0xc6/0x130
   device_del+0x161/0x3e0
   device_unregister+0x17/0x60

    [28 lines not shown]
DeltaFile
+21-3sound/soc/sdca/sdca_function_device.c
+21-31 files

Linux/linux 7360b96drivers/net/ethernet/marvell/octeontx2/af/cn20k npc.c

octeontx2-af: fix IP fragment flag corruption on custom KPU profile load

npc_cn20k_apply_custom_kpu() overwrites KPU profile entries with custom
firmware values and then calls npc_cn20k_update_action_entries_n_flags()
over all entries.  Since the same function already ran during default
profile initialisation, entries not overridden by the custom firmware
get their flags translated twice, corrupting the CN20K-specific values.

Fix this by extracting the per-entry translation into a helper
npc_cn20k_translate_action_flags() and calling it as each custom entry
is loaded, removing the redundant batch call at the end.

Fixes: ef992a0f12e8 ("octeontx2-af: npc: cn20k: MKEX profile support")
Cc: Suman Ghosh <sumang at marvell.com>
Signed-off-by: Kiran Kumar K <kirankumark at marvell.com>
Signed-off-by: Nitin Shetty J <nshettyj at marvell.com>
Reviewed-by: Simon Horman <horms at kernel.org>
Link: https://patch.msgid.link/20260608095455.1499203-1-nshettyj@marvell.com
Signed-off-by: Paolo Abeni <pabeni at redhat.com>
DeltaFile
+34-38drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
+34-381 files

Linux/linux 64ced6cnet/bridge/netfilter ebt_redirect.c, net/ipv4/netfilter arp_tables.c ip_tables.c

Merge tag 'nf-26-06-10' of git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf

Pablo Neira Ayuso says:

====================
Netfilter fixes for net

The following patchset contains Netfilter fixes for net:

1) Revalidate bridge ports, add missing NULL checks to fetch the bridge
   device by the port. From Florian Westphal.

2) Fix netdevice refcount leak in the error path of nft_fwd hardware
   offload function, also from Florian.

3) Unregister helper expectfn callback on conntrack helper module
   removal, otherwise dangling pointer remains in place,
   from Weiming Shi.


    [26 lines not shown]
DeltaFile
+56-8net/netfilter/nfnetlink_queue.c
+19-4net/netfilter/nfnetlink_log.c
+19-0net/netfilter/nf_conntrack_helper.c
+11-5net/bridge/netfilter/ebt_redirect.c
+6-9net/ipv4/netfilter/arp_tables.c
+6-9net/ipv4/netfilter/ip_tables.c
+117-3513 files not shown
+151-5119 files

Linux/linux 6ad3914sound/soc/loongson loongson_dma.c

ASoC: loongson: Fix invalid position error in ls_pcm_pointer

The "invalid position" error occurred when the DMA position descriptor
returned an invalid address value (e.g., pos = -1048838144). This happened
because the `bytes_to_frames()` function returns a signed value, but when
`addr < runtime->dma_addr`, the subtraction produces a negative result that
gets interpreted as a large unsigned integer in comparisons.
when the addr is abnormal, for example,the DMA controller is abnormal in
hardware,x=0 should not be a point(x == runtime->buffer_size),but a range,
which includes the addr address being less than runtime ->dma1-adr, and
the addr exceeding the DMA address range.the value of pos should not better
a negative,return 0, maybe better.

[   32.834431][ 2]  soc-audio soc-audio: invalid position: , pos = -1048838144
[   32.845019][ 2]  soc-audio soc-audio: invalid position: , pos = -1048838144
[   32.855588][ 2]  soc-audio soc-audio: invalid position: , pos = -1048838144
[   32.866145][ 2]  soc-audio soc-audio: invalid position: , pos = -1048838144
[   32.995394][ 2]  soc-audio soc-audio: invalid position: , pos = -1048838144
[   33.006025][ 2]  soc-audio soc-audio: invalid position: , pos = -1048838144

    [6 lines not shown]
DeltaFile
+10-2sound/soc/loongson/loongson_dma.c
+10-21 files

Linux/linux 29899ecnet/ipv4 esp4.c, net/ipv6 esp6.c

Merge tag 'ipsec-2026-06-10' of git://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec

Steffen Klassert says:

====================
pull request (net): ipsec 2026-06-10

1) xfrm: iptfs: preserve shared-frag marker in iptfs_consume_frags()
   Propagate SKBFL_SHARED_FRAG when paged fragments are moved between
   skbs so ESP can decide whether in-place crypto is safe.

2) xfrm: iptfs: fix use-after-free on first_skb in __input_process_payload
   Replace the unlocked read of xtfs->ra_newskb with a local flag so a
   concurrent reassembly can no longer free first_skb between
   spin_unlock and the post-loop check.

3) xfrm: policy: fix use-after-free on inexact bin in xfrm_policy_bysel_ctx()
   Prune the inexact bin under xfrm_policy_lock so a concurrent
   xfrm_hash_rebuild() can no longer free it before xfrm_policy_kill()

    [32 lines not shown]
DeltaFile
+11-6net/ipv4/esp4.c
+11-6net/ipv6/esp6.c
+2-11net/xfrm/xfrm_policy.c
+7-4net/xfrm/xfrm_iptfs.c
+4-0net/xfrm/espintcp.c
+35-275 files

Linux/linux b70c687net/ipv6 addrconf.c

ipv6: Fix a potential NPD in cleanup_prefix_route()

addrconf_get_prefix_route() can return the fib6_null_entry sentinel
entry which has a NULL fib6_table pointer. Therefore, before setting the
route's expiration time, check that we are not working with this entry,
as otherwise a NPD will be triggered [1].

Note that the other callers of addrconf_get_prefix_route() are not
susceptible to this bug:

1. addrconf_prefix_rcv(): Requests a route with the 'RTF_ADDRCONF |
   RTF_PREFIX_RT' flags which are not set on fib6_null_entry.

2. modify_prefix_route(): Fixed by commit a747e02430df ("ipv6: avoid
   possible NULL deref in modify_prefix_route()").

3. __ipv6_ifa_notify(): Calls ip6_del_rt() which specifically checks for
   fib6_null_entry and returns an error.


    [30 lines not shown]
DeltaFile
+4-2net/ipv6/addrconf.c
+4-21 files

Linux/linux 0068940drivers/net/ethernet/wangxun/txgbe txgbe_aml.c txgbe_type.h

Merge branch 'net-txgbe-fix-module-identification'

Jiawen Wu says:

====================
net: txgbe: fix module identification

For AML devices, there are some issues where the wrong module
indentified then configure PHY failed.

The module info buffers should be initialized to 0 before the firmware
returns information. And DECLARE_PHY_INTERFACE_MASK() does not guarantee
zeroed contents, so explicitly clear the temporary interface masks before
setting supported interfaces.

Rework txgbe_identify_module() to validate module identifiers through
explicit type checks instead of relying on transceiver_type heuristics.
When using the SFP module, transceiver_type could be a random value,
because it was read from an invalid register.

    [4 lines not shown]
DeltaFile
+11-13drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
+3-0drivers/net/ethernet/wangxun/txgbe/txgbe_type.h
+14-132 files

Linux/linux 47f848adrivers/net/ethernet/wangxun/txgbe txgbe_aml.c txgbe_type.h

net: txgbe: initialize PHY interface to 0

DECLARE_PHY_INTERFACE_MASK() does not guarantee zeroed contents. Add a
new macro DECLARE_PHY_INTERFACE_MASK_ZERO(), make the stack variable to
be zeroed before setting supported interfaces.

Fixes: 57d39faed4c9 ("net: txgbe: improve functions of AML 40G devices")
Signed-off-by: Jiawen Wu <jiawenwu at trustnetic.com>
Link: https://patch.msgid.link/20260608070842.36504-4-jiawenwu@trustnetic.com
Signed-off-by: Paolo Abeni <pabeni at redhat.com>
DeltaFile
+2-2drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
+3-0drivers/net/ethernet/wangxun/txgbe/txgbe_type.h
+5-22 files

Linux/linux 0487cfcdrivers/net/ethernet/wangxun/txgbe txgbe_aml.c

net: txgbe: initialize module info buffer

The module info buffer should be initialized to 0 before the firmware
returns information. Otherwise, there is a risk that the buffer field
not filled by the firmware is random value.

Fixes: 343929799ace ("net: txgbe: Support to handle GPIO IRQs for AML devices")
Signed-off-by: Jiawen Wu <jiawenwu at trustnetic.com>
Link: https://patch.msgid.link/20260608070842.36504-2-jiawenwu@trustnetic.com
Signed-off-by: Paolo Abeni <pabeni at redhat.com>
DeltaFile
+1-1drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
+1-11 files

Linux/linux f2df54ddrivers/net/ethernet/wangxun/txgbe txgbe_aml.c

net: txgbe: distinguish module types by checking identifier

Rework txgbe_identify_module() to validate module identifiers through
explicit type checks instead of relying on transceiver_type heuristics.
When using the SFP module, transceiver_type could be a random value,
because it was read from an invalid register.

Fixes: 57d39faed4c9 ("net: txgbe: improve functions of AML 40G devices")
Signed-off-by: Jiawen Wu <jiawenwu at trustnetic.com>
Link: https://patch.msgid.link/20260608070842.36504-3-jiawenwu@trustnetic.com
Signed-off-by: Paolo Abeni <pabeni at redhat.com>
DeltaFile
+8-10drivers/net/ethernet/wangxun/txgbe/txgbe_aml.c
+8-101 files

Linux/linux b59873cdrivers/net/ethernet/marvell/mvpp2 mvpp2_main.c

Merge branch 'net-mvpp2-fix-xdp-rx-buffer-handling'

Til Kaiser says:

====================
net: mvpp2: fix XDP RX buffer handling

This is v5 of the earlier XDP_PASS fix. The XDP_PASS change is
retained, and the series also fixes related RX/XDP buffer handling
issues found during review.

Tested with tools/testing/selftests/drivers/net/xdp.py on mvpp2
hardware.
====================

Link: https://patch.msgid.link/20260607134943.21996-1-mail@tk154.de
Signed-off-by: Paolo Abeni <pabeni at redhat.com>
DeltaFile
+41-26drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
+41-261 files

Linux/linux 1802356drivers/net/ethernet/marvell/mvpp2 mvpp2_main.c

net: mvpp2: sync RX data at the hardware packet offset

mvpp2 programs the RX queue packet offset, so hardware writes received
data at dma_addr + MVPP2_SKB_HEADROOM. The current CPU sync starts at
dma_addr and only covers rx_bytes + MVPP2_MH_SIZE bytes, which syncs the
unused headroom and misses the same number of bytes at the packet tail.

On non-coherent DMA systems this can leave the CPU reading stale cache
contents for the end of the received frame.

Use dma_sync_single_range_for_cpu() with MVPP2_SKB_HEADROOM as the range
offset so the sync covers the Marvell header and packet data actually
written by hardware.

Fixes: e1921168bbd4 ("mvpp2: sync only the received frame")
Signed-off-by: Til Kaiser <mail at tk154.de>
Link: https://patch.msgid.link/20260607134943.21996-2-mail@tk154.de
Signed-off-by: Paolo Abeni <pabeni at redhat.com>
DeltaFile
+4-3drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
+4-31 files

Linux/linux f3c6aa0drivers/net/ethernet/marvell/mvpp2 mvpp2_main.c

net: mvpp2: limit XDP frame size to the RX buffer

mvpp2 has short and long BM pools, and short pool buffers can be smaller
than PAGE_SIZE. The XDP path nevertheless initializes every xdp_buff with
PAGE_SIZE as frame size.

XDP helpers use frame_sz to validate tail growth and to derive the hard
end of the data area. Advertising PAGE_SIZE for short buffers can let
bpf_xdp_adjust_tail() grow a packet past the real allocation, corrupting
memory or later tripping skb tailroom checks.

Initialize the XDP buffer with bm_pool->frag_size so XDP tailroom matches
the actual buffer backing the packet.

Fixes: 07dd0a7aae7f ("mvpp2: add basic XDP support")
Signed-off-by: Til Kaiser <mail at tk154.de>
Link: https://patch.msgid.link/20260607134943.21996-3-mail@tk154.de
Signed-off-by: Paolo Abeni <pabeni at redhat.com>
DeltaFile
+1-1drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
+1-11 files

Linux/linux 5e8e2a9drivers/net/ethernet/marvell/mvpp2 mvpp2_main.c

net: mvpp2: refill RX buffers before XDP or skb use

The RX error path returns the current descriptor buffer to the hardware
BM pool. That is only valid while the driver still owns the buffer.

mvpp2_rx_refill() can fail after the current buffer has been handed to
XDP or attached to an skb. In those cases mvpp2_run_xdp() may have
recycled, redirected, or queued the page for XDP_TX, and an skb free also
retires the data buffer. Returning such a buffer to BM lets hardware DMA
into memory that is no longer owned by the RX ring.

Refill the BM pool before handing the current buffer to XDP or to the
skb. If the allocation fails there, drop the packet and return the
still-owned current buffer to BM, preserving the pool depth. Once the
refill succeeds, later local drops retire/free the current buffer instead
of returning it to BM.

Fixes: 07dd0a7aae7f ("mvpp2: add basic XDP support")
Fixes: d6526926de73 ("net: mvpp2: fix memory leak in mvpp2_rx")

    [3 lines not shown]
DeltaFile
+24-19drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
+24-191 files

Linux/linux 77a6b90drivers/net/ethernet/marvell/mvpp2 mvpp2_main.c

net: mvpp2: build skb from XDP-adjusted data on XDP_PASS

When an XDP program uses bpf_xdp_adjust_head() or bpf_xdp_adjust_tail()
and then returns XDP_PASS, mvpp2 still builds the skb from fixed offsets
derived from the original RX descriptor. Packet geometry changes made by
the XDP program are therefore discarded before the skb reaches the stack.

Update rx_offset and rx_bytes from xdp.data and xdp.data_end for
XDP_PASS. This makes skb_reserve() and skb_put() reflect the packet seen
by XDP, and makes RX byte accounting for XDP_PASS follow the length of the
skb passed to the network stack.

Keep a separate rx_sync_size for page-pool recycling on skb allocation
failure, which must stay tied to the received buffer range.

Non-PASS verdicts continue to account the descriptor length because no skb
is passed up in those cases.

Fixes: 07dd0a7aae7f ("mvpp2: add basic XDP support")

    [3 lines not shown]
DeltaFile
+15-6drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
+15-61 files

Linux/linux 9716c08drivers/cpufreq amd-pstate.c amd-pstate.h

Merge tag 'pm-7.1-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

Pull power management fixes from Rafael Wysocki:
 "These address some remaining fallout after introducing dynamic EPP
  support in the amd-pstate driver during the current development cycle:

   - Restore allowing writing EPP of 0 when in performance mode in the
     amd-pstate driver which was unnecessarily disallowed by one of the
     recent updates (Mario Limonciello)

   - Remove stale documentation of the epp_cached field in struct
     amd_cpudata that has been dropped recently (Zhan Xusheng)"

* tag 'pm-7.1-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
  cpufreq/amd-pstate: Fix setting EPP in performance mode
  cpufreq/amd-pstate: drop stale @epp_cached kdoc
DeltaFile
+1-1drivers/cpufreq/amd-pstate.c
+0-1drivers/cpufreq/amd-pstate.h
+1-22 files

Linux/linux c7d5735net/bridge/netfilter nft_meta_bridge.c

netfilter: nft_meta_bridge: fix stale stack leak via IIFHWADDR register

NFT_META_BRI_IIFHWADDR declares its destination register with
len = ETH_ALEN (6 bytes), which the register-init tracking rounds up to
two 32-bit registers (8 bytes). nft_meta_bridge_get_eval() then does
memcpy(dest, br_dev->dev_addr, ETH_ALEN), writing only 6 bytes and
leaving the upper 2 bytes of the second register as uninitialised
nft_do_chain() stack. A downstream load of that register span leaks
those stale bytes to userspace.

Zero the second register before the memcpy so the full declared span is
written.

Fixes: cbd2257dc96e ("netfilter: nft_meta_bridge: introduce NFT_META_BRI_IIFHWADDR support")
Cc: stable at vger.kernel.org
Signed-off-by: Davide Ornaghi <d.ornaghi97 at gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo at netfilter.org>
DeltaFile
+2-0net/bridge/netfilter/nft_meta_bridge.c
+2-01 files