Linux/linux d14d00a — drivers/firewire core-topology.c core-device.c

Merge tag 'firewire-fixes-7.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394

Pull firewire fixes from Takashi Sakamoto:

 - Retry page batch allocation on failure

   A single call to alloc_pages_bulk() can fall under a specific
   configuration with CONFIG_SMP=n. Retry the page batch allocation
   in a loop to mitigate such failure

 - Fix some error paths

* tag 'firewire-fixes-7.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394:
  firewire: core: fix use-after-free in build_tree() error path
  firewire: core: defer old_rom assignment until kmemdup() succeeds
  firewire: ohci: retry page batch allocation in ar_context_init()
  firewire: core: retry page batch allocation in fw_iso_buffer_alloc()
DeltaFile
+11-2drivers/firewire/core-iso.c
+9-1drivers/firewire/ohci.c
+1-1drivers/firewire/core-topology.c
+1-1drivers/firewire/core-device.c
+22-54 files

Linux/linux f675d60 — include/net tcp.h, kernel/bpf bpf_inode_storage.c

Merge tag 'bpf-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf

Pull bpf fixes from Alexei Starovoitov:
 "Small fixes for various bugs. The main themes:

   - fix use-after-free in links to modules that fail to load and in
     inode storage

   - add missing checks to file reads in lib/buildid

   - fix skb->csum after bpf_redirect_neigh() and skb->transport_header
     after a decap

   - Various fixes (Avi Weiss):
       - Prevent reopening BPF token inodes
       - Clear invalid tail bits when populating a cpumask

   - Use the checked TCP header length in the syncookie helpers
     (Björn Töpel)

    [29 lines not shown]
DeltaFile
+22-18kernel/bpf/bpf_inode_storage.c
+31-6lib/buildid.c
+19-10net/core/filter.c
+7-2kernel/trace/bpf_trace.c
+4-4net/ipv4/tcp_input.c
+4-4include/net/tcp.h
+87-447 files not shown
+100-5513 files

Linux/linux 3f3cec9 — net/core filter.c

Merge branch 'bpf-fix-skb-transport_header-after-a-decap'

Chris Mason says:

====================
bpf: fix skb->transport_header after a decap

Hi everyone,

These are AI generated fixes for two bugs in my commit 33be492c2e23 ("bpf: Use
the inner transport header after a decap").  A decap with bpf_skb_adjust_room()
can move skb->transport_header to the wrong place.

- Patch 1: nobody has set the inner transport header, and its offset has
  wrapped.  The kernel drops valid GSO packets then.
- Patch 2: ESP still has to encrypt the packet.  It gets corrupted or dropped,
  and a very short one can hit a BUG().

AI generated tests reproduce both bugs on v7.4-rc5, and pass with the patches.

    [7 lines not shown]
DeltaFile
+14-5net/core/filter.c
+14-51 files

Linux/linux b940234 — net/core filter.c

bpf: Keep skb->transport_header for ESP offload

A decap with bpf_skb_adjust_room() corrupts a non-GSO packet if ESP still
has to encrypt it.

The transport header has to stay at the ESP header until esp_xmit() runs.
bpf_skb_net_shrink() checks for ESP on GSO packets, but not on others:

    sch_handle_egress()
      bpf_skb_net_shrink()        /* decap of IP | IP | ESP | UDP */
        bpf_skb_clear_encap()     /* transport_header: ESP -> UDP */
    validate_xmit_xfrm()
      esp_xmit()                  /* writes the SPI over the UDP header */

The fix used here is to check for a pending ESP offload on non-GSO
packets too.

Fixes: ec20dee2f2c4 ("bpf: Clear decap state on skb_adjust_room shrink path")
Fixes: 33be492c2e23 ("bpf: Use the inner transport header after a decap")

    [4 lines not shown]
DeltaFile
+9-3net/core/filter.c
+9-31 files

Linux/linux 90224f1 — net/core filter.c

bpf: Don't use an unset inner transport header

A decap with bpf_skb_adjust_room() corrupts skb->transport_header if an
unset skb->inner_transport_header has wrapped around.

An unset inner transport header is in front of skb->data, so
bpf_skb_net_hdr_pop() resets it. But its offset wraps around if the skb is
copied to a buffer with less headroom:

    tcp4_gro_complete()             /* fraglist: inner_transport_header
                                       stays 0 */
    skb_pp_cow_data()               /* 64 bytes less headroom */
      skb_headers_offset_update()   /* inner_transport_header = 65472 */
    bpf_skb_net_shrink()
      bpf_skb_net_hdr_pop()         /* doesn't reset it */
      bpf_skb_clear_encap()         /* copies it to transport_header */
    qdisc_pkt_len_segs_init()       /* SKB_DROP_REASON_SKB_BAD_GSO */

The fix used here is to treat a wrapped offset as one in front of

    [7 lines not shown]
DeltaFile
+5-2net/core/filter.c
+5-21 files

Linux/linux 9d6d8bd — . MAINTAINERS, Documentation/devicetree/bindings/i2c snps,designware-i2c.yaml

Merge tag 'i2c-fixes-7.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux

Pull i2c fixes from Andi Shyti:
 "Three driver fixes around initialization and cleanup, plus a
  DesignWare maintainer update.

   - omap: avoid deselecting the mux twice on removal

   - rtl9300: ensure the controller is configured on first transfer

   - spacemit: use an atomic-safe delay during bus reset

   - designware: hand over maintenance to Heikki Krogerus"

* tag 'i2c-fixes-7.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux:
  i2c: rtl9300: set sda_num before registering adapters
  i2c: spacemit: Avoid sleeping during bus reset in atomic context
  MAINTAINERS: Update I2C Designware driver maintainer
  i2c: omap: do not deselect the mux-state twice in remove()
DeltaFile
+6-1drivers/i2c/busses/i2c-rtl9300.c
+0-3drivers/i2c/busses/i2c-omap.c
+1-1drivers/i2c/busses/i2c-k1.c
+1-1MAINTAINERS
+1-1Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml
+9-75 files

Linux/linux 0fbf78f — fs/smb/client misc.c connect.c, fs/smb/smbdirect socket.c

Merge tag 'cifs-fixes-7.4-rc6' of https://git.manguebit.org/linux

Pull smb client fixes from Paulo Alcantara:

 - Fix several races around server->smbd_conn, which a reconnect can
   destroy via cifs_abort_connection() while smbd_get_parameters(),
   smbd_register_mr() and the debug handler still use it without a
   reference or lock; readers now take a socket reference under
   server->srv_lock

 - Fix the SMB Direct RDMA I/O limits underflowing to zero during a
   reconnect when there is no connection, which dropped the negotiated
   RDMA sizes

 - Return the real error from smbd_get_connection() instead of a made-up
   -ENOENT, so mount and reconnect report the actual RDMA failure

 - Use a per-session counter for the nonce of encrypted messages instead
   of random bytes, to keep the nonce unique as the protocol requires

    [40 lines not shown]
DeltaFile
+138-34fs/smb/client/smbdirect.c
+88-21fs/smb/client/smb2ops.c
+24-13fs/smb/client/dir.c
+27-0fs/smb/smbdirect/socket.c
+13-5fs/smb/client/connect.c
+7-6fs/smb/client/misc.c
+297-799 files not shown
+339-9615 files

Linux/linux b95a6d4 — drivers/nvme/host fc.c sysfs.c, drivers/nvme/target fcloop.c

Merge tag 'block-7.4-20261205' of git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux

Pull block fixes from Jens Axboe:
 "A bit bigger than I would've liked, and honestly some of the NVMe
  changes _could_ have waited for 7.5. But they are well tested and
  Keith already bundled them up, and here we are... Expect only little
  bits going forward to close out the 7.4 kernel.

   - NVMe fixes via Keith:
      - nvme-fc fixes for a use-after-free in LS disconnect matching,
        uninitialized I/O queues on reconnect, and the result on
        transport failure
      - nvme-tcp fixes for a released socket in poll, the R2T length
        check overflow, and PDU alignment and header digest on the
        target side
      - nvme-multipath fixes for the ANATT timer teardown and
        delayed_removal_secs handling
      - Handle a missed doorbell write on a passthrough request
      - Limit Write Zeroes to 65536 logical blocks

    [34 lines not shown]
DeltaFile
+48-5drivers/nvme/host/pci.c
+41-5drivers/nvme/host/core.c
+37-3drivers/nvme/host/multipath.c
+29-9drivers/nvme/host/sysfs.c
+16-12drivers/nvme/host/fc.c
+18-10drivers/nvme/target/fcloop.c
+189-4421 files not shown
+332-9127 files

Linux/linux 29217cb — io_uring cancel.c zcrx.c

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

Pull io_uring fixes from Jens Axboe:

 - Close a race between polling a disabled SINGLE_ISSUER ring and
   IORING_REGISTER_ENABLE_RINGS, which could leave an epoll waiter not
   getting notified of pending completions.

 - Only arm local work wakeups for the submitter when cancelling, fixing
   a NULL pointer dereference when a canceling task visits a disabled
   ring that later receives ZCRX events.

 - Don't dma_sync dma-buf backed zcrx buffers, as those follow their own
   synchronisation rules.

 - Enforce the per-task opcode restrictions and BPF filters on the
   embedded request of IORING_REGISTER_SEND_MSG_RING.

* tag 'io_uring-7.4-20261205' of git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux:

    [4 lines not shown]
DeltaFile
+7-30io_uring/io_uring.c
+21-0io_uring/register.c
+21-0io_uring/io_uring.h
+5-1io_uring/zcrx.c
+2-1io_uring/cancel.c
+56-325 files

Linux/linux f53e8e1 — drivers/watchdog bd96801_wdt.c Kconfig

Merge tag 'watchdog-for-v7.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging

Pull watchdog fixes from Guenter Roeck:

 - set set .owner = THIS_MODULE in watchdog_ops to prevent unloading
   while /dev/watchdog is open (arm_smc_wdt, bd96801_wdt, ebc-c384_wdt,
   max77620, meson_gxbb_wdt)

 - atcwdt200: select REGMAP_MMIO in Kconfig to fix build failures

 - npcm: enable clock before checking running state in probe

 - sbsa: evaluate MediaTek WS0 workaround after IRQ fallback

 - rzv2h: use 64-bit arithmetic to avoid 32-bit max_hw_heartbeat_ms
   overflow

* tag 'watchdog-for-v7.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
  watchdog: rzv2h: Avoid 32-bit overflow in max_hw_heartbeat_ms calculation

    [8 lines not shown]
DeltaFile
+16-14drivers/watchdog/sbsa_gwdt.c
+14-3drivers/watchdog/npcm_wdt.c
+4-2drivers/watchdog/rzv2h_wdt.c
+2-0drivers/watchdog/arm_smc_wdt.c
+1-0drivers/watchdog/bd96801_wdt.c
+1-0drivers/watchdog/Kconfig
+38-193 files not shown
+41-199 files

Linux/linux c612a7d — drivers/hwmon coretemp.c tmp513.c, drivers/hwmon/pmbus Kconfig max34440.c

Merge tag 'hwmon-for-v7.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging

Pull hwmon fixes from Guenter Roeck:

 - Runtime, locking, and resource fixes for coretemp (uneven core
   counts), tmp513 and emc2305 (divide-by-zero), it87 (missing device
   lock on sensor type read), da9052 (tsiref regulator lifetime),
   vexpress (modular regulator check), and pmbus/max34440 (legacy ASCII
   revision)

 - Kconfig, modular build, and OF modalias fixes for lan966x,
   ltq-cputemp, pmbus/ltc4286, and pmbus/xdp710

* tag 'hwmon-for-v7.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
  hwmon: (coretemp) Fix missing sensors with uneven core counts
  hwmon: (tmp513) avoid divide by zero from rounded-down current LSB
  hwmon: (emc2305) fix division by zero for a small tach reading
  hwmon: (it87) Lock the device while reading the temperature sensor type
  hwmon: (pmbus/ltc4286) support building the sensor as a module

    [6 lines not shown]
DeltaFile
+42-2drivers/hwmon/da9052-hwmon.c
+8-4drivers/hwmon/it87.c
+5-4drivers/hwmon/coretemp.c
+8-1drivers/hwmon/tmp513.c
+8-1drivers/hwmon/pmbus/max34440.c
+4-1drivers/hwmon/pmbus/Kconfig
+75-135 files not shown
+83-1711 files

Linux/linux 8e5ca83 — kernel/liveupdate kexec_handover_internal.h kexec_handover.c

Merge tag 'fixes-2026-12-05' of git://git.kernel.org/pub/scm/linux/kernel/git/liveupdate/linux

Pull liveupdate fixes from Mike Rapoport:

 - A failed kho_init() on a KHO boot frees kho-bootmem memory that is
   still in use and panics.

   Free the kho-bootmem areas in error paths of kho_init() only on a
   cold boot

 - kho_init() treats debugfs initaliation errors as fatal and because of
   this KHO can't be used with debugfs disabled.

   Don't fail kho_init() when it can't create debugfs entries.

* tag 'fixes-2026-12-05' of git://git.kernel.org/pub/scm/linux/kernel/git/liveupdate/linux:
  kho: don't fail kho_init() when debugfs is disabled
  kho: don't release incoming bootmem areas when kho_init() fails
DeltaFile
+8-11kernel/liveupdate/kexec_handover.c
+11-8kernel/liveupdate/kexec_handover_debugfs.c
+4-4kernel/liveupdate/kexec_handover_internal.h
+23-233 files

Linux/linux 5fd7b43 — drivers/hwmon tmp513.c

hwmon: (tmp513) avoid divide by zero from rounded-down current LSB

tmp51x_calibrate() computes the current LSB as

        curr_lsb_ua = DIV_ROUND_CLOSEST_ULL(max_curr_ma * MILLI, 32767);

and then derives pwr_lsb_uw = 20 * curr_lsb_ua and

        div = DIV_ROUND_CLOSEST_ULL(curr_lsb_ua * shunt_uohms, MICRO);

so the calibration register write is DIV_ROUND_CLOSEST(40960, div).
curr_lsb_ua decreasing with a larger shunt means that for large shunt
resistors DIV_ROUND_CLOSEST_ULL() rounds it to 0.  Both div and
pwr_lsb_uw then become 0: the calibration division traps, and a later
write to power1_crit (tmp51x_set_value(), DIV_ROUND_CLOSEST(val,
pwr_lsb_uw)) traps as well, because tmp51x_is_visible() only hides the
attributes when shunt_uohms is exactly 0.

curr_lsb_ua is a minimum resolution that only needs to be >= 1 uA; round

    [10 lines not shown]
DeltaFile
+8-1drivers/hwmon/tmp513.c
+8-11 files

Linux/linux 19ed1ea — drivers/hwmon coretemp.c

hwmon: (coretemp) Fix missing sensors with uneven core counts

topology_num_cores_per_package() returns the core count of the package
with the lowest APIC ID. If another package has more cores, e.g. because
the BIOS disabled cores on only one CPU, the extra cores get no
temperature sensors and "Adding Core N failed" is logged.

Use num_possible_cpus() as the limit instead, and allocate the array
with kvzalloc_objs() so large systems don't need a high-order
allocation.

Fixes: b89e1255c92b ("hwmon: (coretemp) replace hardcoded core count with dynamic value")
Cc: stable at vger.kernel.org
Reported-by: Sashiko <sashiko-bot at kernel.org>
Closes: https://lore.kernel.org/linux-hwmon/20260516121622.1E9DAC19425@smtp.kernel.org/
Tested-by: Asaf Nuri Bertizlioğlu <asafbertizlioglu at gmail.com>
Reviewed-by: Asaf Nuri Bertizlioğlu <asafbertizlioglu at gmail.com>
Signed-off-by: Aveline Noir <jm5905938 at gmail.com>
Link: https://patch.msgid.link/20261205-coretemp-core-limit-v2-1-e10810df5a3a@gmail.com
Signed-off-by: Guenter Roeck <linux at roeck-us.net>
DeltaFile
+5-4drivers/hwmon/coretemp.c
+5-41 files

Linux/linux 094bd75 — drivers/hwmon emc2305.c

hwmon: (emc2305) fix division by zero for a small tach reading

emc2305_show_fan() guards the raw 16-bit tach register value with
`if (ret <= 0)`, then shifts it right by EMC2305_TACH_REGS_UNUSE_BITS (3)
before dividing:

        ret = ret >> EMC2305_TACH_REGS_UNUSE_BITS;
        ret = EMC2305_RPM_FACTOR / ret;

A tach register value of 1..7 survives the first check but becomes 0
after the shift, so the division is a divide by zero.  The register value
comes from the fan controller (the driver never writes it); reading the
read-only fan1_input attribute of a faulty or emulated controller that
reports 1..7 therefore crashes the kernel.  Userspace only triggers the
read; the zero divisor is device-provided.

Re-check for zero after the shift.

Fixes: 0d8400c5a2ce ("hwmon: (emc2305) add support for EMC2301/2/3/5 RPM-based PWM Fan Speed Controller.")

    [4 lines not shown]
DeltaFile
+2-0drivers/hwmon/emc2305.c
+2-01 files

Linux/linux ba608a1 — drivers/hwmon it87.c

hwmon: (it87) Lock the device while reading the temperature sensor type

show_temp_type() calls it87_update_device() and then get_temp_type().
it87_update_device() drops data->update_lock before it returns. Since
commit 6593eac89920 ("hwmon: (it87) Add support to detect sensor type
AMDTSI"), get_temp_type() no longer uses the cached register values but
reads IT87_REG_IFSEL, IT87_REG_TEMP_ENABLE and IT87_REG_TEMP_EXTRA from
the chip. These reads therefore run without update_lock and with SMBus
access enabled, while the comment above it87_read_value() requires both.

it87_read_value() and it87_write_value() go through one address/data
port pair. If a read of tempN_type races with a sysfs store that holds
the lock, for example set_temp_type(), the address write of one side can
land between the address and data accesses of the other. The store can
then write its value to a different register, or the read returns the
wrong register.

Take the lock with it87_lock() around get_temp_type(), as
set_temp_type() does. get_temp_type() uses none of the cached values, so

    [13 lines not shown]
DeltaFile
+8-4drivers/hwmon/it87.c
+8-41 files

Linux/linux fe9810d — drivers/hwmon/pmbus ltc4286.c Kconfig

hwmon: (pmbus/ltc4286) support building the sensor as a module

With PMBUS=m, Kbuild descends into pmbus/ for modules. An ltc4286 object
placed in obj-y by the boolean sensor option is not part of that build.

Make the sensor option tristate. Export its existing OF match table as
well: an I2C client instantiated from a device tree can produce an OF
modalias rather than an i2c modalias. Keep the existing I2C IDs for
other clients.

The issue was found by our static-analysis tool and manually reviewed.

Fixes: 0c459759ca97 ("hwmon: (pmbus) Add ltc4286 driver")
Signed-off-by: Pengpeng Hou <hppiscas at 163.com>
Link: https://patch.msgid.link/179634903882.74470.12607115542458648726@163.com
Signed-off-by: Guenter Roeck <linux at roeck-us.net>
DeltaFile
+4-1drivers/hwmon/pmbus/Kconfig
+1-0drivers/hwmon/pmbus/ltc4286.c
+5-12 files

Linux/linux 76a954d — drivers/hwmon Kconfig

hwmon: (ltq-cputemp) depend on HWMON=y

The XWAY temperature driver is selected by a boolean option under HWMON.
With HWMON=m the selected built-in object is not included by that
directory descent.

Require HWMON=y for this platform driver. This avoids advertising an
unbuilt sensor; it does not implement a loadable XWAY sensor.

The issue was found by our static-analysis tool and manually reviewed.

Fixes: 7074d0a92758 ("hwmon: (ltq-cputemp) add cpu temp sensor driver")
Cc: stable at vger.kernel.org
Signed-off-by: Pengpeng Hou <hppiscas at 163.com>
Link: https://patch.msgid.link/179634928168.74470.5781132422211450535@163.com
Signed-off-by: Guenter Roeck <linux at roeck-us.net>
DeltaFile
+1-1drivers/hwmon/Kconfig
+1-11 files

Linux/linux 425756f — drivers/hwmon da9052-hwmon.c

hwmon: (da9052) Tie the tsiref regulator to the hwmon device

da9052_hwmon_probe() calls devm_regulator_get_enable_read_voltage() on
the parent MFD device, because the tsiref supply is described in the
PMIC node. The reference and the enable then belong to the parent and
are not dropped when the probe fails later or when the hwmon driver is
unbound. Every new bind enables the regulator once more.

Look the regulator up on the parent, but enable it with the plain
calls and disable and put it from a devm action of the hwmon device.

Fixes: d72fd5228c9f ("hwmon: (da9052) Use devm_regulator_get_enable_read_voltage()")
Cc: stable at vger.kernel.org
Reviewed-by: David Lechner <dlechner at baylibre.com>
Signed-off-by: Arina Kharlamova <arina.kharlamova at mbzuai.ac.ae>
Link: https://patch.msgid.link/20261203-s2p-lpr-hwmon-v2-1-8d808e44d20e@mbzuai.ac.ae
Signed-off-by: Guenter Roeck <linux at roeck-us.net>
DeltaFile
+42-2drivers/hwmon/da9052-hwmon.c
+42-21 files

Linux/linux 555a26e — drivers/hwmon vexpress-hwmon.c

hwmon: (vexpress) use IS_ENABLED() for CONFIG_REGULATOR_VEXPRESS

Both the Versatile Express regulator and hwmon drivers match the voltage
node. The hwmon driver is intended to expose voltage only when the
regulator driver is not configured; its current guard still claims
voltage when the regulator is modular.

Use IS_ENABLED for the voltage attributes and match entry. The other
hwmon sensors remain available.

The issue was found by our static-analysis tool and manually reviewed.

Fixes: 48ed88772446 ("hwmon: Versatile Express hwmon driver")
Cc: stable at vger.kernel.org
Signed-off-by: Pengpeng Hou <hppiscas at 163.com>
Link: https://patch.msgid.link/179635096045.74470.14679551183623100373@163.com
Signed-off-by: Guenter Roeck <linux at roeck-us.net>
DeltaFile
+2-2drivers/hwmon/vexpress-hwmon.c
+2-21 files

Linux/linux be20747 — drivers/hwmon/pmbus xdp710.c

hwmon: (xdp710) export the OF module alias

xdp710 exports its I2C ID table but not its OF match table. Export the
latter so the OF modalias generated for a device tree client can load
the driver.

Fixes: 35fe06d94e39 ("hwmon: (pmbus) Add support for Infineon XDP710")
Cc: stable at vger.kernel.org
Signed-off-by: Pengpeng Hou <hppiscas at 163.com>
Link: https://patch.msgid.link/20261203034406.62675-1-hppiscas@163.com
Signed-off-by: Guenter Roeck <linux at roeck-us.net>
DeltaFile
+1-0drivers/hwmon/pmbus/xdp710.c
+1-01 files

Linux/linux 432dccc — drivers/hwmon Kconfig

hwmon: (lan966x) Select the MMIO regmap backend

lan966x-hwmon.c initializes an MMIO regmap using
devm_regmap_init_mmio(), but SENSORS_LAN966X does not select
REGMAP_MMIO. The driver can therefore be enabled without the
required register-transport implementation and fail to build.

Select REGMAP_MMIO so the backend is enabled at the linkage level
required by this consumer, rather than relying on another driver to
pull it in.

The issue was found by our static-analysis tool and manually reviewed.

Fixes: c8f55be4a1c7 ("hwmon: add driver for the Microchip LAN966x SoC")
Cc: stable at vger.kernel.org
Signed-off-by: Pengpeng Hou <hppiscas at 163.com>
Link: https://patch.msgid.link/20261130132053.82864-1-hppiscas@163.com
Signed-off-by: Guenter Roeck <linux at roeck-us.net>
DeltaFile
+1-1drivers/hwmon/Kconfig
+1-11 files

Linux/linux bc136e8 — block error-injection.c

block: fail a delayed bio if its disk was removed

A bio delayed by an error injection rule is resubmitted from a workqueue
with submit_bio_noacct_nocheck(), which skips bio_check_eod().  The
delayed bio holds no queue usage counter, so del_gendisk() does not wait
for it.  For disks that don't own their queue, such as sd and sr, the
queue is unfrozen again after del_gendisk().  When sd is unbound while a
bio is delayed, the resubmitted bio reaches scsi_queue_rq() after the
driver is gone:

  BUG: kernel NULL pointer dereference, address: 00000000000000c0
  Workqueue: blk_error_inject blk_error_inject_delay_work
  RIP: 0010:scsi_queue_rq+0x5b2/0xb80
  Call Trace:
   __blk_mq_issue_directly+0x3f/0xb0
   blk_mq_try_issue_directly+0x8e/0x110
   blk_mq_submit_bio+0x6b0/0x710
   submit_bio_noacct_nocheck+0x2da/0x3c0
   process_one_work+0x19b/0x370

    [10 lines not shown]
DeltaFile
+6-0block/error-injection.c
+6-01 files

Linux/linux 09dada7 — block bio.c

block: copy BIO_ERROR_INJECTED to the split in bio_split()

BIO_ERROR_INJECTED keeps a bio that was delayed by an error injection
rule from being evaluated again when it is resubmitted.  bio_split()
does not copy the flag to the split.  raid10_handle_discard() resubmits
the front split of an unaligned discard to the md device, so a discard
delayed by a rule on that device has its front part evaluated, and
possibly delayed, a second time.

Copy the flag in bio_split(), as is already done for
BIO_TRACE_COMPLETION.

Fixes: 6bd856cc9996 ("block: allow error injection rules to delay bios")
Reported-by: Sashiko <sashiko-bot at kernel.org>
Link: https://sashiko.dev/#/patchset/20261111215838.103356-1-haris.iqbal%40linux.dev?part=2
Signed-off-by: Md Haris Iqbal <haris.iqbal at linux.dev>
Link: https://patch.msgid.link/20261205141912.37608-4-haris.iqbal@linux.dev
Signed-off-by: Jens Axboe <axboe at kernel.dk>
DeltaFile
+2-0block/bio.c
+2-01 files

Linux/linux ffb465f — Documentation/block error-injection.rst, block error-injection.c

block: clear BIO_ERROR_INJECTED when a bio changes device

BIO_ERROR_INJECTED keeps a bio that was delayed by an error injection
rule from being evaluated again when it is resubmitted.  Rules belong to
a disk, but the flag stays set when a bio is remapped in place to
another device with bio_set_dev(), so the new device's rules would be
skipped for it.

Clear the flag in bio_set_dev() when the device changes, as is already
done for BIO_BPS_THROTTLED.

With nvme multipath, a bio delayed by a rule on the head disk loses the
flag when it is remapped to a path, so on failover it is checked against
the head's rules again.

Fixes: 6bd856cc9996 ("block: allow error injection rules to delay bios")
Reported-by: Sashiko <sashiko-bot at kernel.org>
Link: https://sashiko.dev/#/patchset/20261111215838.103356-1-haris.iqbal%40linux.dev?part=2
Signed-off-by: Md Haris Iqbal <haris.iqbal at linux.dev>

    [2 lines not shown]
DeltaFile
+3-3Documentation/block/error-injection.rst
+2-2block/error-injection.c
+3-1include/linux/bio.h
+8-63 files

Linux/linux fc66b07 — io_uring register.c io_uring.h

io_uring: enforce task restrictions on blind MSG_RING

IORING_REGISTER_SEND_MSG_RING executes an embedded MSG_RING SQE
without going through normal submission. This bypasses per-task SQE
opcode restrictions and BPF filters.

Apply the same checks to the embedded request before sending the message.

Fixes: ed82f35b926b ("io_uring: allow registration of per-task restrictions")
Link: https://gist.github.com/shaos26/5175f691637a55377f1ce5c1e4b57dba
Signed-off-by: Shawn Shao <shawnq1 at 163.com>
Link: https://patch.msgid.link/20261205040843.2911303-1-shawnq1@163.com
Signed-off-by: Jens Axboe <axboe at kernel.dk>
DeltaFile
+2-26io_uring/io_uring.c
+21-0io_uring/register.c
+21-0io_uring/io_uring.h
+44-263 files

Linux/linux dc6e8c0 — drivers/firewire core-topology.c

firewire: core: fix use-after-free in build_tree() error path

The error path of build_tree() calls free_fw_node() from inside
for_each_fw_node(). free_fw_node() calls kfree() while for_each_fw_node()
is still iterating over the nodes. This results in a use-after-free when
for_each_fw_node() accesses the freed node after the callback returns.

Instead of kfree(), drop the reference acquired by fw_node_create() with
fw_node_put(). This allows the final fw_node_put() in for_each_fw_node()
to release the node safely.

Fixes: 05bfb1327dc5 ("firewire: core: fix memory leak in error path of build_tree()")
Reported-by: Srh P. <sprystaiko at gmail.com>
Suggested-by: Srh P. <sprystaiko at gmail.com>
Link: https://patch.msgid.link/20261205063309.57838-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi at sakamocchi.jp>
DeltaFile
+1-1drivers/firewire/core-topology.c
+1-11 files

Linux/linux f6f85b5 — include/linux bpf_lsm.h, kernel/bpf bpf_inode_storage.c

bpf: Destroy inode storage after an RCU grace period

BPF inode storage hits a use-after-free on the inode if an RCU path walk
creates an element after security_inode_free().

bpf_local_storage_destroy() expects that BPF programs and syscalls can no
longer add or delete elements. But bpf_inode_storage_free() calls it from
security_inode_free(), and an RCU path walk can still run a BPF LSM
program on that inode until a grace period has passed:

    RCU path walk                       evict()
    =============                       =======
    security_inode_permission()
                                        security_inode_free()
                                          bpf_inode_storage_free()
      bpf_inode_storage_get(F_CREATE)
        storage->owner = inode
                                        call_rcu(i_callback)


    [9 lines not shown]
DeltaFile
+22-18kernel/bpf/bpf_inode_storage.c
+2-2include/linux/bpf_lsm.h
+1-1security/bpf/hooks.c
+25-213 files

Linux/linux e52523b — net/core filter.c

bpf: Fix stale skb->csum in bpf_redirect_neigh()

Nathan Malo reported a "hw csum failure" splat on a veth peer when a
tc ingress program redirects packets from a NIC with
bpf_redirect_neigh().

A CHECKSUM_COMPLETE skb carries the checksum of the whole packet in
skb->csum, as computed by the NIC. When such a skb is redirected with
bpf_redirect_neigh() from tc ingress, skb->csum ends up wrong:

- __bpf_redirect_neigh() calls bpf_push_mac_rcsum(), which adds the
  received L2 header to skb->csum, and then drops that header with a
  plain skb_pull(), so it is never subtracted again.

- neigh_output() then pushes the new L2 header without adding it to
  skb->csum.

The packet itself is fine, only skb->csum no longer matches it. This
is a transmit path and nobody validates a packet against skb->csum

    [44 lines not shown]
DeltaFile
+1-1net/core/filter.c
+1-11 files

Linux/linux 28a2330 — fs/btrfs zoned.h defrag.c

Merge tag 'for-7.4-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux

Pull btrfs fixes from David Sterba:

 - zoned mode fixes:
    - properly finish the relocated block group's zone
    - distinguish overreserved metadata space and free zones
    - don't release active zone reservations for conventional zones
    - handle transient delayed reserve refill errors during forced commit
    - skip missing devices when releasing active zone reservations

 - validate properties after reading them from device

 - fix defrag extent lookup on inode item boundary

 - fix returned value for partial direct IO writes

 - fix tracepoint print of extent type map field


    [19 lines not shown]
DeltaFile
+63-7fs/btrfs/zoned.c
+30-7fs/btrfs/direct-io.c
+15-0fs/btrfs/props.c
+13-0fs/btrfs/disk-io.c
+8-2fs/btrfs/defrag.c
+8-1fs/btrfs/zoned.h
+137-176 files not shown
+148-2712 files