Linux/linux df29080. Makefile

Linux 7.3-rc2
DeltaFile
+1-1Makefile
+1-11 files

Linux/linux b1e00ffkernel/trace ring_buffer_benchmark.c trace.h

Merge tag 'trace-v7.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace

Pull tracing fixes from Steven Rostedt:

 - Fix several tracefs files that did not take the trace_array reference

   A trace instance can be created and destroyed in the tracefs
   "instances" directory via mkdir and rmdir respectively. The instance
   is represented by a trace_array descriptor.

   Most tracefs files pass the trace_array as the private data of the
   inode to the open/read/write functions. Since there is no locking
   between the time a task opens a file and the deletion of the instance
   (and the freeing of the trace_array), each open needs to get a
   reference to the trace_array and each close must remove it.

   An instance can't be removed if there's any reference taken on its
   trace_array. The open function uses trace_array_get() that takes a
   lock (preventing removal of instances) and iterates the list of all

    [76 lines not shown]
DeltaFile
+155-84kernel/trace/ring_buffer.c
+113-60kernel/trace/trace.c
+48-22kernel/trace/ftrace.c
+24-4kernel/trace/trace_events.c
+7-7kernel/trace/trace.h
+3-3kernel/trace/ring_buffer_benchmark.c
+350-1804 files not shown
+358-18610 files

Linux/linux 2beb1b3kernel/bpf verifier.c, tools/testing/selftests/bpf/prog_tests rhash_timer.c

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

Pull bpf fixes from Alexei Starovoitov:
 "This mainly contains verifier fixes that address bugs reported by
  Nicholas Carlini.

   - Fix incorrect non-NULL inference in pointer comparisons: pointer
     types that may be NULL at runtime, pointers with unbounded offsets,
     JMP32 comparisons with zero, and imprecise zero registers (Eduard
     Zingerman)

   - Fix precision tracking for half-dead zero spills, ld_abs/ld_ind
     implicit subprog exit, bpf_loop() callbacks, linked scalar ids and
     NULL call arguments (Eduard Zingerman)

   - Reject BPF_PSEUDO_FUNC reference to the main program, fix zero
     extension of arena 32-bit cmpxchg, don't rewrite bpf_fastcall
     patterns entered by a jump (Eduard Zingerman)


    [51 lines not shown]
DeltaFile
+208-51kernel/bpf/verifier.c
+193-0tools/testing/selftests/bpf/progs/verifier_jeq_infer_not_null.c
+150-0tools/testing/selftests/bpf/progs/refcounted_kptr_fail.c
+141-0tools/testing/selftests/bpf/prog_tests/rhash_timer.c
+112-0tools/testing/selftests/bpf/progs/rhash.c
+110-0tools/testing/selftests/bpf/progs/verifier_bpf_fastcall.c
+914-5152 files not shown
+2,556-17658 files

Linux/linux 88405f0arch/x86/kernel itmt.c, kernel/sched rt.c deadline.c

Merge tag 'sched-urgent-2026-09-06' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull scheduler fixes from Ingo Molnar:

 - Fix a timestamping bug in pick_task_fair() and yield_task_fair()
   (Zhan Xusheng)

 - Skip migrate-disabled tasks when picking a push candidate in the
   RT and DL schedulers (Seiji Nishikawa)

 - Skip rq->avg_idle update without a valid idle_stamp (Shubhang
   Kaushik)

 - Fix throttling bug in throttle_cfs_rq(), caused by the recent
   single-runqueue conversion (Wanwu Li)

 - Fix bandwidth calculation bug in distribute_cfs_runtime(),
   caused by the single-runqueue conversion (Wanwu Li)


    [13 lines not shown]
DeltaFile
+50-10kernel/sched/fair.c
+8-2kernel/sched/core.c
+2-6arch/x86/kernel/itmt.c
+2-2kernel/sched/rt.c
+2-2kernel/sched/deadline.c
+64-225 files

Linux/linux c4a3928kernel/events ring_buffer.c core.c

Merge tag 'perf-urgent-2026-09-06' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull perf events fixes from Ingo Molnar:

 - Skip empty AUX records with only format flags (Leo Yan)

 - Fix use-after-free when perf mmap() revival races with the
   last munmap() (Yilin Zhang, Weiming Shi)

* tag 'perf-urgent-2026-09-06' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  perf: Fix use-after-free when perf mmap() revival races with the last munmap()
  perf/core: Skip empty AUX records with only format flags
DeltaFile
+10-10kernel/events/core.c
+7-2kernel/events/ring_buffer.c
+17-122 files

Linux/linux c8990f3include/linux interrupt_rc.h, kernel softirq.c

Merge tag 'locking-urgent-2026-09-06' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull locking fixes from Ingo Molnar:

 - Fix a softirq processing delay bug in local_interrupt_disable(),
   which should mostly only affect the Rust runtime (Boqun Feng)

 - Remove the hardirq_disable_count() function which caused the
   previous bug and is now unused & unnecessary (Boqun Feng)

 - lockdep: Invalidate stale class_cache entries for zapped classes
   (Eric Dumazet)

 - Fix rt_mutex specific futex scheduling helpers
   (Sebastian Andrzej Siewior)

 - Fix rcuwait use-after-free race during futex requeue PI (Yao Kai)

* tag 'locking-urgent-2026-09-06' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:

    [5 lines not shown]
DeltaFile
+42-8kernel/locking/lockdep.c
+11-11include/linux/interrupt_rc.h
+4-13kernel/softirq.c
+3-13kernel/futex/pi.c
+16-0kernel/sched/core.c
+10-2kernel/futex/requeue.c
+86-473 files not shown
+90-519 files

Linux/linux b485131Documentation/translations/zh_CN/core-api/irq irq-domain.rst, drivers/irqchip irq-stm32mp-exti.c irq-mbigen.c

Merge tag 'irq-urgent-2026-09-06' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull IRQ subsystem fixes from Ingo Molnar:

 - Revert a commit to the mbigen irqchip driver that caused
   a regression on two-port Hi1616 chips (Caina)

 - Fix a too-long-preemption-off bug in the stm32mp-exti
   irqchip driver, caused by a time unit ambiguity & mismatch
   (Ju Nan)

 - Remove the now completely unused irq_domain_add_linear()
   inline function (Jiri Slaby)

* tag 'irq-urgent-2026-09-06' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  irqchip/stm32mp-exti: Fix the unit of the hwspinlock timeout
  Revert "irqchip/mbigen: Fix mbigen node address layout"
  irqdomain: Delete irq_domain_add_linear()
DeltaFile
+4-16drivers/irqchip/irq-mbigen.c
+0-18include/linux/irqdomain.h
+0-4Documentation/translations/zh_CN/core-api/irq/irq-domain.rst
+2-2drivers/irqchip/irq-stm32mp-exti.c
+6-404 files

Linux/linux d3cbb9adrivers/char virtio_console.c

Merge tag 'tty-7.3-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty

Pull virtio console fix from Greg KH:
 "Here is a single virtio console fix for 7.3-rc2 to fix a much reported
  regression in 7.3-rc1, sorry about that. It's not been in linux-next,
  but it has been sent by many different developers to resolve the issue
  and is 'obviously' correct"

* tag 'tty-7.3-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
  virtio_console: allocate the port_buffer with the caller's gfp
DeltaFile
+1-1drivers/char/virtio_console.c
+1-11 files

Linux/linux bf979abdrivers/staging/fbtft fbtft-core.c, drivers/staging/rtl8723bs/core rtw_mlme.c rtw_ieee80211.c

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

Pull staging driver fixes from Greg KH:
 "Here are some small staging driver fixes to resolve some reported bugs
  that have been found, and tested, in a few staging drivers in 7.3-rc1.
  Included in here are:

   - OOB read problem fixes in the rtl8723bs driver

   - fbtft driver fix

   - sm750fb driver fix

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

* tag 'staging-7.3-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
  staging: sm750fb: fix mono image source stride mismatch in lynxfb_ops_imageblit()
  staging: rtl8723bs: fix OOB read in rtw_restruct_wmm_ie()

    [3 lines not shown]
DeltaFile
+5-4drivers/staging/fbtft/fbtft-core.c
+7-0drivers/staging/rtl8723bs/core/rtw_ieee80211.c
+2-4drivers/staging/sm750fb/sm750_accel.c
+1-3drivers/staging/sm750fb/sm750_accel.h
+3-0drivers/staging/rtl8723bs/core/rtw_mlme.c
+1-1drivers/staging/sm750fb/sm750.c
+19-121 files not shown
+20-137 files

Linux/linux 65538a8drivers/usb/cdns3 cdnsp-mem.c cdnsp-gadget.c, drivers/usb/dwc3 gadget.c

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

Pull USB fixes from Greg KH:
 "Here are some small USB driver fixes for reported problems and
  regressions. Include in here are:

   - xhci driver fixes

   - cdns3 driver fixes

   - usb gadget driver fixes for syzbot found problems

   - typec driver fixes for broken hardware and other bugs found

   - kernel data leaks in mdc800 driver

   - usb storage driver fixes

   - other small USB driver fixes

    [26 lines not shown]
DeltaFile
+106-5drivers/usb/cdns3/cdnsp-gadget.c
+35-63drivers/usb/cdns3/cdnsp-mem.c
+32-11drivers/usb/host/xhci-ring.c
+22-6drivers/usb/typec/tcpm/tcpm.c
+13-8drivers/usb/dwc3/gadget.c
+18-3drivers/usb/typec/mux.c
+226-9618 files not shown
+284-12724 files

Linux/linux 536b523arch/riscv/net bpf_jit_comp64.c

bpf, riscv: Make arena support depend on ZACAS

The arena range tree allocates its nodes with kmalloc_nolock() since
commit f8c67d8550ee ("bpf: Use kmalloc_nolock() in range tree").
kmalloc_nolock() requires slab caches with cmpxchg128 support
(__CMPXCHG_DOUBLE); on riscv cmpxchg128 is provided by the ZACAS
extension. On systems without ZACAS every arena map creation fails
with a misleading -ENOMEM.

Report the missing support instead: make bpf_jit_supports_arena()
return system_has_cmpxchg128() where it is defined, so arena map
creation fails with -EOPNOTSUPP on systems without ZACAS. The macro
is only defined when both CONFIG_RISCV_ISA_ZACAS and
CONFIG_TOOLCHAIN_HAS_ZACAS are enabled, so guard it with #ifdef the
same way mm/slab.h consumes it, and reject arena otherwise. This
matches how arena BPF_CMPXCHG instructions are already gated on ZACAS
in bpf_jit_supports_insn().

Fixes: f8c67d8550ee ("bpf: Use kmalloc_nolock() in range tree")

    [6 lines not shown]
DeltaFile
+9-1arch/riscv/net/bpf_jit_comp64.c
+9-11 files

Linux/linux fd5348binclude/linux bpf.h, kernel/bpf verifier.c bpf_iter.c

Merge branch 'fix-bpf_loop-syzbot-report'

Kumar Kartikeya Dwivedi says:

====================
Fix bpf_loop syzbot report

Needs Eduard's ack. Fix for the report in
https://lore.kernel.org/bpf/6a9ad24c.b5d4176b.238c3e.0001.GAE@google.com.
====================

Link: https://patch.msgid.link/20260905014735.1452988-1-memxor@gmail.com
Signed-off-by: Eduard Zingerman <eddyz87 at gmail.com>
DeltaFile
+17-0tools/testing/selftests/bpf/progs/verifier_iterating_callbacks.c
+1-1kernel/bpf/bpf_iter.c
+1-0kernel/bpf/verifier.c
+1-0include/linux/bpf.h
+20-14 files

Linux/linux bde8901tools/testing/selftests/bpf/progs verifier_iterating_callbacks.c

selftests/bpf: Test pointer bpf_loop iteration count rejection

Add a verifier test that leaves the raw tracepoint context pointer in R1
when calling bpf_loop(). This is the smallest trigger for the incorrect
precision backtracking: it reuses an existing callback and needs no maps or
userspace setup.

Expect an ordinary scalar-type rejection. Without the verifier fix, the
test instead reaches precision backtracking and reports an internal
"backtracking misuse" error.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor at gmail.com>
Acked-by: Eduard Zingerman <eddyz87 at gmail.com>
Link: https://patch.msgid.link/20260905014735.1452988-3-memxor@gmail.com
Signed-off-by: Eduard Zingerman <eddyz87 at gmail.com>
DeltaFile
+17-0tools/testing/selftests/bpf/progs/verifier_iterating_callbacks.c
+17-01 files

Linux/linux c3fd8e5include/linux bpf.h, kernel/bpf verifier.c bpf_iter.c

bpf: Reject non-scalar bpf_loop iteration counts

bpf_loop() declares its nr_loops argument as ARG_ANYTHING. Privileged
programs may pass pointer values to such arguments, so check_func_arg()
lets a pointer-valued R1 reach the helper-specific checks.

Since commit bb124da69c47 ("bpf: keep track of max number of bpf_loop
callback iterations"), the verifier marks R1 precise and reads its upper
bound to limit callback simulation. Precision backtracking only accepts
scalar registers, so passing a pointer instead triggers the "backtracking
misuse" verifier warning. Kernels with panic_on_warn enabled subsequently
panic.

Introduce ARG_SCALAR for helper arguments that only accept scalar values
and use it for bpf_loop() nr_loops. Generic helper argument validation then
rejects pointers before loop inlining and precision processing.

Fixes: bb124da69c47 ("bpf: keep track of max number of bpf_loop callback iterations")
Reported-by: syzbot+7b47f87674e9a1569110 at syzkaller.appspotmail.com

    [4 lines not shown]
DeltaFile
+1-1kernel/bpf/bpf_iter.c
+1-0kernel/bpf/verifier.c
+1-0include/linux/bpf.h
+3-13 files

Linux/linux 1fc5a74drivers/block/drbd drbd_nl_gen.c, drivers/gpu/drm/amd/display/dc/resource/dcn42 dcn42_resource.c

Merge tag 'kmalloc_obj-v7.3-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux

Pull kmalloc_obj conversions from Kees Cook:
 "Another run of the Coccinelle script for converting kmalloc()
  family of allocations to kmalloc_obj() via the existing rules
  in scripts/coccinelle/api/kmalloc_objs.cocci"

* tag 'kmalloc_obj-v7.3-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
  treewide: refresh kmalloc_obj() conversions
  drm/amd/display: Fix harmless type mismatch in allocation
DeltaFile
+21-31drivers/scsi/leapraid/leapraid_func.c
+23-27drivers/gpu/drm/amd/display/dc/resource/dcn42/dcn42_resource.c
+21-25drivers/gpu/drm/amd/display/dc/resource/dcn42b/dcn42b_resource.c
+20-22drivers/gpu/drm/amd/display/dc/resource/dcn60/dcn60_resource.c
+22-18drivers/block/drbd/drbd_nl_gen.c
+10-20drivers/staging/media/atomisp/pci/sh_css.c
+117-143298 files not shown
+637-726304 files

Linux/linux 9f0346d. MAINTAINERS CREDITS, Documentation/ABI/testing sysfs-class-firmware

Merge tag 'driver-core-7.3-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/driver-core/driver-core

Pull driver core fixes from Danilo Krummrich:

 - Fix kernfs listxattr() not returning security xattr names (e.g.
   SELinux labels) when the kernfs node has no allocated kernfs_iattrs

 - Fix silent truncation of IRQ vector indices in the Rust PCI
   abstractions

 - Don't select OF from DRIVER_PE_KUNIT_TEST; skip the test when OF is
   disabled instead of silently enabling extra kernel functionality

 - Russ Weight is retiring from kernel development; update the Firmware
   Loader sysfs contact to the driver-core mailing list, add a CREDITS
   entry for Firmware Upload, and update MAINTAINERS accordingly

* tag 'driver-core-7.3-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/driver-core/driver-core:
  MAINTAINERS: Remove Russ Weight from Firmware Loader

    [5 lines not shown]
DeltaFile
+7-7Documentation/ABI/testing/sysfs-class-firmware
+1-3fs/kernfs/inode.c
+3-1rust/kernel/pci/irq.rs
+4-0CREDITS
+3-0drivers/base/test/property-entry-test.c
+0-1MAINTAINERS
+18-121 files not shown
+18-137 files

Linux/linux 214f4aearch/loongarch/kernel smp.c, arch/loongarch/kvm vcpu.c mmu.c

Merge tag 'loongarch-fixes-7.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson

Pull LoongArch fixes from Huacai Chen:

 - Fix build errors when RUST and KASAN enabled

 - fix a typo in comment of vmlinux.lds.S

 - fix several bugs in Kprobes, BPF JIT and KVM support

* tag 'loongarch-fixes-7.3-1' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson:
  perf build: Add clang and rust target flags for LoongArch
  LoongArch: KVM: Fix TOCTOU race on pv_features
  LoongArch: KVM: Validate MSI data before routing it to EIOINTC
  LoongArch: KVM: Preserve memslot arch flags on KVM_MR_FLAGS_ONLY
  LoongArch: KVM: Remove unused function kvm_arch_flush_remote_tlbs_memslot()
  LoongArch: KVM: Fix resource leak in kvm_loongarch_env_init() error path
  LoongArch: KVM: Add unregister helpers for the KVM interrupt devices
  LoongArch: KVM: Free init resources if kvm_init() fails

    [6 lines not shown]
DeltaFile
+34-5arch/loongarch/kvm/main.c
+10-6arch/loongarch/kvm/mmu.c
+0-8arch/loongarch/kernel/smp.c
+8-0arch/loongarch/kvm/intc/pch_pic.c
+5-1arch/loongarch/kvm/vcpu.c
+5-0arch/loongarch/kvm/intc/dmsintc.c
+62-2014 files not shown
+86-2620 files

Linux/linux b144dc5drivers/char virtio_console.c

virtio_console: allocate the port_buffer with the caller's gfp

put_chars() runs from the hvc console write path with preemption
disabled, so it asks alloc_buf() for GFP_ATOMIC. Only the data buffer
gets it: the struct port_buffer itself keeps the GFP_KERNEL default, so
the allocation can enter direct reclaim and sleep. A write to /dev/kmsg
on a CONFIG_DEBUG_ATOMIC_SLEEP kernel splats:

  BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:320
  in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 1, name: virtme-ng-init
  preempt_count: 1, expected: 0
  Preemption disabled at:
  [<ffffffff813fd90d>] vprintk_emit+0x17d/0x510
  Call Trace:
   <TASK>
   dump_stack_lvl+0x69/0xa0
   __might_resched+0x37a/0x4d0
   __kmalloc_cache_noprof+0x94/0x5f0
   put_chars+0x209/0x3e0

    [19 lines not shown]
DeltaFile
+1-1drivers/char/virtio_console.c
+1-11 files

Linux/linux d9d80a8fs/btrfs zstd.c zoned.c

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

Pull btrfs fixes from David Sterba:

 - preserve inode compression level when changing attributes

 - fix lost wakeup when waiting for a zstd workspace

 - fix bio context leaks after ordered extent processing errors

 - in send, handle unexpected extents for non-regular inodes

 - handle edge case in creation of reloc tree with enabled quotas

 - in scrub report the exact failing offset, not the stripe base

 - error handling fixes
     - error code propagation in send, zoned mode and raid-stripe-tree
     - restore active device pointer after seeding device addition error

    [22 lines not shown]
DeltaFile
+16-9fs/btrfs/raid-stripe-tree.c
+14-10fs/btrfs/scrub.c
+18-3fs/btrfs/ioctl.c
+18-1fs/btrfs/transaction.c
+7-9fs/btrfs/zoned.c
+10-1fs/btrfs/zstd.c
+83-337 files not shown
+104-3813 files

Linux/linux 0d9ff90drivers/scsi scsi_bsg.c, drivers/scsi/megaraid megaraid_sas_base.c

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

Pull SCSI fixes from James Bottomley:
 "Two enhancements to add support and MCQ for additional Intel 4.0
  controller types.

  The rest are all driver fixes, the largest of which is the mpi3mr
  target use after free fix, follwed by a similar TOCTOU fix for
  io_uring passthrough in bsg"

* tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
  scsi: megaraid_sas: Limit NVMe request size to the PRP chain frame
  scsi: bsg: Fix TOCTOU in io_uring passthrough command setup
  scsi: bsg: Cap io_uring sense copy to max_response_len
  scsi: mpt3sas: Avoid out-of-bounds cpumask_of_node() call in _base_assign_reply_queues()
  scsi: mpi3mr: Fix use-after-free on tgt_dev->starget during target device refresh/update
  scsi: target: iscsi: Reserve a terminator byte for the login payload
  scsi: target: iscsi: Fix hang for aborted WRITE_PENDING commands
  scsi: ufs: ufs-pci: Add MCQ support for Intel UFS 4.0 controllers

    [10 lines not shown]
DeltaFile
+59-0drivers/ufs/host/ufshcd-pci.c
+29-18drivers/scsi/scsi_bsg.c
+35-10drivers/scsi/mpi3mr/mpi3mr_os.c
+13-4drivers/ufs/host/ufs-qcom.c
+12-1drivers/scsi/megaraid/megaraid_sas_base.c
+8-0drivers/scsi/mpi3mr/mpi3mr_transport.c
+156-337 files not shown
+170-4013 files

Linux/linux d0fc310Documentation/fault-injection nvme-fault-injection.rst, drivers/nvme/host rdma.c fc.c

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

Pull block fixes from Jens Axboe:

 - NVMe fixes via Keith:
     - nvme-tcp fixes for an out-of-bounds write on an over-long PDU
     - nvmet-tcp, nvmet-rdma and nvme-rdma leak and cleanup-ordering
       fixes
     - FDP placement id array racy access fix
     - nvme-fc double free of fabrics options on nvme_add_ctrl()
       failure, and a secret leak failure
     - Fault injection opcode filtering
     - stale namespace removal during scan
     - Various other smaller fixes and cleanups

 - Flag zoned disks with GENHD_FL_NO_PART

 - Save the page offset gaps in a cloned bio


    [26 lines not shown]
DeltaFile
+57-42drivers/nvme/host/core.c
+65-0Documentation/fault-injection/nvme-fault-injection.rst
+20-6drivers/nvme/host/fc.c
+9-9include/linux/nvme-tcp.h
+10-8drivers/nvme/host/rdma.c
+7-8drivers/nvme/target/rdma.c
+168-7318 files not shown
+260-9024 files

Linux/linux 3a2c4d5drivers/block/drbd drbd_nl_gen.c, drivers/gpu/drm/amd/display/dc/resource/dcn42 dcn42_resource.c

treewide: refresh kmalloc_obj() conversions

This is another run of the Coccinelle script for converting kmalloc()
family of allocations to kmalloc_obj() via the existing rules in
scripts/coccinelle/api/kmalloc_objs.cocci

This catches both the set of kmalloc() uses added since the first
kmalloc_obj() conversions in v7.0 and adds a large group missed in the
first pass due to Coccinelle not interacting well with the cleanup.h
scoped_...() family of macros[1]. I worked around this with spatch's
"--macro-file" argument to a file with all the scoped_...() macros mapped
to Coccinelle's YACFE_ITERATOR[2] as that was the closest viable control
flow indicator I could find.

Build tested allmodconfig on x86, arm64, arm, loongarch, mips, powerpc,
riscv, and s390 with no new warnings.

Link: https://lore.kernel.org/lkml/202609021314.8A9C0B8@keescook/ [1]
Link: https://github.com/coccinelle/coccinelle/blob/master/standard.h [2]
Signed-off-by: Kees Cook <kees+treewide at kernel.org>
DeltaFile
+21-31drivers/scsi/leapraid/leapraid_func.c
+23-27drivers/gpu/drm/amd/display/dc/resource/dcn42/dcn42_resource.c
+21-25drivers/gpu/drm/amd/display/dc/resource/dcn42b/dcn42b_resource.c
+20-22drivers/gpu/drm/amd/display/dc/resource/dcn60/dcn60_resource.c
+22-18drivers/block/drbd/drbd_nl_gen.c
+10-20drivers/staging/media/atomisp/pci/sh_css.c
+117-143298 files not shown
+637-726304 files

Linux/linux 4d7d948Documentation/ABI/testing ima_policy, fs/configfs mount.c

Merge tag 'integrity-v7.3-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity

Pull IMA fixes from Mimi Zohar:

 - Instantiating the ima_file_truncate and ima_path_truncate LSM hooks
   resulted in configfs locking issues.

   configfs files should not be measured, appraised, or audited in the
   first place, so the builtin policies are updated to exclude them.

 - IMA audit messages include the filename, which could result in a page
   fault when the filename doesn't exist

 - Un-hide the IMA_MEASURE_PCR_IDX Kconfig prompt

* tag 'integrity-v7.3-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity:
  ima: allow users to specify the pcr index with IMA_MEASURE_PCR_IDX
  ima: Check for ERR_PTR from dentry_path() in validate_hash_algo()
  ima: don't measure/appraise files on configfs
  configfs: move CONFIGFS_MAGIC definition to magic.h
DeltaFile
+6-1security/integrity/ima/ima_policy.c
+5-1security/integrity/ima/Kconfig
+1-3fs/configfs/mount.c
+3-0Documentation/ABI/testing/ima_policy
+2-0security/integrity/ima/ima_appraise.c
+1-0include/uapi/linux/magic.h
+18-56 files

Linux/linux b75a000kernel/bpf verifier.c, tools/testing/selftests/bpf/progs verifier_subprog_precision.c verifier_global_ptr_args.c

Merge branch 'bpf-add-missing-precision-propagation-after-bpf_register_is_null-calls'

Eduard Zingerman says:

====================
bpf: add missing precision propagation after bpf_register_is_null calls

Fix [1] uncovered a host of locations where the call to
bpf_register_is_null() is not followed by a call to
bpf_mark_chain_precision().

check_map_kptr_access() is omitted as it is handled [2]
by another series.

[1] https://lore.kernel.org/bpf/20260904083325.2083493-7-eddyz87@gmail.com/
[2] https://lore.kernel.org/bpf/20260904104203.345917-6-memxor@gmail.com/
---
====================


    [2 lines not shown]
DeltaFile
+100-0tools/testing/selftests/bpf/progs/verifier_precision.c
+55-23kernel/bpf/verifier.c
+29-0tools/testing/selftests/bpf/progs/verifier_cgroup_storage.c
+24-0tools/testing/selftests/bpf/progs/verifier_global_ptr_args.c
+6-6tools/testing/selftests/bpf/progs/verifier_subprog_precision.c
+214-295 files

Linux/linux 1d7f8f1kernel/bpf verifier.c

bpf: propagate mark_chain_precision() errors out of loop_flag_is_zero()

Stop verification if mark_chain_precision() fails when called from
loop_flag_is_zero(). No functional change intended for the paths where
backtracking succeeds.

Fixes: 1ade23711971 ("bpf: Inline calls to bpf_loop when callback is known")
Signed-off-by: Eduard Zingerman <eddyz87 at gmail.com>
Link: https://lore.kernel.org/r/20260904-register-is-null-precise-fixes-v1-9-0f5a360ff15d@gmail.com
Signed-off-by: Alexei Starovoitov <ast at kernel.org>

DeltaFile
+25-11kernel/bpf/verifier.c
+25-111 files

Linux/linux cf24756kernel/bpf verifier.c

bpf: use mark_arg_precision() in check_mem_size_reg()

Use newly added mark_arg_precision() helper in check_mem_size_reg().

Signed-off-by: Eduard Zingerman <eddyz87 at gmail.com>
Link: https://lore.kernel.org/r/20260904-register-is-null-precise-fixes-v1-10-0f5a360ff15d@gmail.com
Signed-off-by: Alexei Starovoitov <ast at kernel.org>

DeltaFile
+2-8kernel/bpf/verifier.c
+2-81 files

Linux/linux e726fc6kernel/bpf verifier.c

bpf: mark a NULL BTF_ID argument of a global subprogram precise

btf_check_func_arg_match() accepts a NULL register for an
ARG_PTR_TO_BTF_ID argument tagged __arg_nullable and skips
check_reg_type() and check_func_arg_reg_off() without marking the
register precise. Hence a checkpoint created on such a path would
prune against arbitrary scalar value.

Fixes: e2b3c4ff5d18 ("bpf: add __arg_trusted global func arg tag")
Signed-off-by: Eduard Zingerman <eddyz87 at gmail.com>
Link: https://lore.kernel.org/r/20260904-register-is-null-precise-fixes-v1-7-0f5a360ff15d@gmail.com
Signed-off-by: Alexei Starovoitov <ast at kernel.org>

DeltaFile
+5-1kernel/bpf/verifier.c
+5-11 files

Linux/linux 100f4cctools/testing/selftests/bpf/progs verifier_precision.c

selftests/bpf: precision of a NULL global subprogram memory argument

Check that mark_chain_precision() is called for a NULL pointer passed
as a nullable pointer argument of a global subprogram.
(Pointer arguments of the global subprograms are nullable by default).

Signed-off-by: Eduard Zingerman <eddyz87 at gmail.com>
Link: https://lore.kernel.org/r/20260904-register-is-null-precise-fixes-v1-4-0f5a360ff15d@gmail.com
Signed-off-by: Alexei Starovoitov <ast at kernel.org>

DeltaFile
+32-0tools/testing/selftests/bpf/progs/verifier_precision.c
+32-01 files

Linux/linux 9195779tools/testing/selftests/bpf/progs verifier_global_ptr_args.c

selftests/bpf: precision of a NULL global subprogram BTF_ID argument

Check that mark_chain_precision() is called for a NULL pointer passed
as an __arg_trusted __arg_nullable argument of a global subprogram.

Signed-off-by: Eduard Zingerman <eddyz87 at gmail.com>
Link: https://lore.kernel.org/r/20260904-register-is-null-precise-fixes-v1-8-0f5a360ff15d@gmail.com
Signed-off-by: Alexei Starovoitov <ast at kernel.org>

DeltaFile
+24-0tools/testing/selftests/bpf/progs/verifier_global_ptr_args.c
+24-01 files

Linux/linux 562d266tools/testing/selftests/bpf/progs verifier_precision.c

selftests/bpf: precision of a NULL kfunc argument

Check that mark_chain_precision() is called for a NULL pointer passed
as a __nullable kfunc memory argument.

Signed-off-by: Eduard Zingerman <eddyz87 at gmail.com>
Link: https://lore.kernel.org/r/20260904-register-is-null-precise-fixes-v1-6-0f5a360ff15d@gmail.com
Signed-off-by: Alexei Starovoitov <ast at kernel.org>

DeltaFile
+34-0tools/testing/selftests/bpf/progs/verifier_precision.c
+34-01 files