Linux/linux 893e117arch/x86/kernel amd_node.c, arch/x86/kernel/cpu/mce amd.c

Merge tag 'x86_urgent_for_7.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull x86 fixes from Dave Hansen:
 "These are fixes for some older AMD device topology and machine check
  issues. But, they are issues that are affecting real users and aren't
  just cleaning up AI drive-by reports.

  These is coming a wee bit later than the usual Sundays because of a
  late breaking issue with one of the patches which is now temporarily
  kicked out"

* tag 'x86_urgent_for_7.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86/MCE/AMD: Fix inverted interrupt enablement during storm handling
  x86/amd_node: Fix potential NULL pointer dereference
  x86/amd_node: Avoid divide by zero on virtualized systems
DeltaFile
+13-6arch/x86/kernel/amd_node.c
+1-1arch/x86/kernel/cpu/mce/amd.c
+14-72 files

Linux/linux 5acbae5arch/powerpc/include/asm entry-common.h, arch/powerpc/kernel rtas_pci.c

Merge tag 'powerpc-7.3-2' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux

Pull powerpc fixes from Madhavan Srinivasan:

 - Clear TIF_SYSCALL_RET before syscall error return

 - Don't drop _TIF_RESTOREALL on syscall restart

 - Do not restore KUAP in arch_exit_to_user_mode_prepare()

 - pci-ioda: Fix the stale irq chip reference

 - Use inclusive range checks in add_usable_mem() and excluded memory

 - Fix irq_soft_mask corruption on replayed interrupt exit

 - MAINTAINERS: powerpc: Add Ritesh and Shrikanth

 - Misc fixes and cleanups

    [20 lines not shown]
DeltaFile
+8-5arch/powerpc/platforms/pseries/pci.c
+9-3arch/powerpc/include/asm/entry-common.h
+3-7arch/powerpc/kexec/file_load_64.c
+8-0arch/powerpc/kernel/rtas_pci.c
+2-4arch/powerpc/platforms/powernv/pci-ioda.c
+4-1arch/powerpc/platforms/ps3/repository.c
+34-204 files not shown
+40-2410 files

Linux/linux 7daadf5arch/x86/crypto aria-gfni-avx512-asm_64.S aria-aesni-avx2-asm_64.S

Merge tag 'v7.3-p3' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6

Pull crypto fixes from Herbert Xu:
 "This adds missing vzeroupper instructions to x86/aria"

* tag 'v7.3-p3' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
  crypto: x86/aria - add missing vzeroupper in AVX-512 code
  crypto: x86/aria - add missing vzeroupper in AVX2 code
DeltaFile
+6-0arch/x86/crypto/aria-aesni-avx2-asm_64.S
+3-0arch/x86/crypto/aria-gfni-avx512-asm_64.S
+9-02 files

Linux/linux d292911arch/x86/kernel/cpu/mce amd.c

x86/MCE/AMD: Fix inverted interrupt enablement during storm handling

mce_amd_handle_storm() currently does the opposite of what storm
handling needs: it enables thresholding interrupts when a storm is
detected and disables them when the storm subsides.

Flip the "on" function argument before passing it to threshold_restart_bank()
as it should have been done.

To clarify: "on" to mce_handle_storm() means, the storm is on now when
"on" is true, and off when "on" is false.

  [ bp: Simplify. ]

Fixes: 5c4663ed1eac ("x86/mce: Handle AMD threshold interrupt storms")
Signed-off-by: Jasjeet Rangi <jrangi at purestorage.com>
Signed-off-by: Borislav Petkov (AMD) <bp at alien8.de>
Signed-off-by: Ingo Molnar <mingo at kernel.org>
Cc: stable at vger.kernel.org
Link: https://patch.msgid.link/20260812221514.598842-2-jrangi@purestorage.com
DeltaFile
+1-1arch/x86/kernel/cpu/mce/amd.c
+1-11 files

Linux/linux aefdbd5arch/x86/kernel amd_node.c

x86/amd_node: Fix potential NULL pointer dereference

amd_smn_read/write() are exported functions around __amd_smn_rw(), so
they are always available even if amd_smn_init() fails. In that case,
'amd_roots' is NULL and __amd_smn_rw() will access uninitialized memory.

Then, commit:

  83518453074d ("x86/amd_node: Add SMN offsets to exclusive region access")

added the 'smn_exclusive' flag, which indicated the calls to
pci_request_config_region_exclusive() succeeded, to prevent
concurrent userspace access.

Commit:

  0a4b61d9c2e4 ("x86/amd_node: Fix AMD root device caching")

re-ordered initialization so pci_request_config_region_exclusive() is

    [19 lines not shown]
DeltaFile
+8-6arch/x86/kernel/amd_node.c
+8-61 files

Linux/linux 28924dftools/perf/util powerpc-vpadtl.c symbol.c

Merge tag 'perf-tools-fixes-for-v7.3-2026-09-07' of git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools

Pull perf tools fixes from Namhyung Kim:
 "Two simple fixes for this cycle:

   - Do not use separate debug files for Intel PT decoding

   - Fix size of raw data in the PowerPC VPA DTL samples"

* tag 'perf-tools-fixes-for-v7.3-2026-09-07' of git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools:
  perf powerpc-vpadtl: Fix raw_size of DTL samples
  perf symbol: Do not use debug file as the binary type
DeltaFile
+10-1tools/perf/util/symbol.c
+1-1tools/perf/util/powerpc-vpadtl.c
+11-22 files

Linux/linux c297ed9fs/configfs dir.c symlink.c

Merge tag 'configfs-7.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/leitao/linux

Pull configfs fixes from Breno Leitao:

 - A symlink racing with rmdir of its target could reach a freed
   ->ci_dentry.

   The reference that get_target() takes pins the config_item, not
   its dentry; the dentry is pinned by DCACHE_PERSISTENT, which
   configfs_remove_dir() drops while the item is still alive.

   Take the target's configfs_dirent under ->d_lock instead of chasing
   ->ci_dentry.

 - configfs_rmdir() left the dentry hashed across the final put of the
   item, and configfs_get_config_item() treats a hashed dentry as proof
   of a live item. A concurrent symlink could therefore resurrect a
   dying item and hit a use-after-free.


    [8 lines not shown]
DeltaFile
+20-4fs/configfs/symlink.c
+9-0fs/configfs/dir.c
+29-42 files

Linux/linux f06c2d2fs/configfs dir.c

configfs: unhash the dentry before dropping the item in rmdir

configfs_get_config_item() treats a hashed dentry as proof that
sd->s_element is a live config_item.  configfs_rmdir() breaks that:
simple_rmdir() leaves the dentry hashed, the last reference to the item is
dropped right after, and the dentry is only unhashed by d_delete() once
->rmdir() has returned.  configfs_symlink() resolves its target holding no
lock on it, so get_target() can land in that window:

  BUG: KASAN: slab-use-after-free in config_item_get+0x26/0x90
   get_target fs/configfs/symlink.c:128 [inline]
   configfs_symlink+0x4ab/0x1030 fs/configfs/symlink.c:185

Unhash in configfs_remove_dir(), while the item is still guaranteed to be
there.  A reference obtained just before that stays harmless, as
create_link() rechecks CONFIGFS_USET_DROPPING, already set by
configfs_detach_prep().  Both configfs_unregister_subsystem() paths
d_drop() after detaching, so this only makes rmdir match them.


    [9 lines not shown]
DeltaFile
+9-0fs/configfs/dir.c
+9-01 files

Linux/linux a7c1290fs/configfs symlink.c

configfs: pin the symlink target's dirent instead of chasing ->ci_dentry

create_link() reads the target's configfs_dirent from
item->ci_dentry->d_fsdata, relying on the item reference taken by
get_target().  That reference pins the item, not its dentry: the dentry is
pinned by DCACHE_PERSISTENT, which configfs_remove_dir() releases via
simple_rmdir() while the item is still alive.  A symlink racing with rmdir
of its target can therefore find ->ci_dentry freed and its dirent
released, triggering WARN_ON(!atomic_read(&sd->s_count)) in configfs_get().

Take the dirent in get_target() as well, under ->d_lock and atomically
with the item reference, and pass it down to create_link().  A hashed
dentry has not been killed yet, so its ->d_fsdata reference keeps the
dirent alive there.

Cc: stable at vger.kernel.org
Fixes: 7063fbf22611 ("[PATCH] configfs: User-driven configuration filesystem")
Signed-off-by: Vasileios Almpanis <vasilisalmpanis at gmail.com>
Tested-by: Breno Leitao <leitao at debian.org>

    [3 lines not shown]
DeltaFile
+20-4fs/configfs/symlink.c
+20-41 files

Linux/linux 45a5f72. MAINTAINERS

MAINTAINERS: powerpc: Add Ritesh and Shrikanth

Ritesh and Shrikanth has been helping in the powerpc mailing list
patch reviews, adding them as reviewers.

Acked-by: Shrikanth Hegde <sshegde at linux.ibm.com>
Acked-by: Ritesh Harjani (IBM) <ritesh.list at gmail.com>
Acked-by: Christophe Leroy (CS GROUP) <chleroy at kernel.org>
Signed-off-by: Madhavan Srinivasan <maddy at linux.ibm.com>
Link: https://patch.msgid.link/20260818035037.613186-1-maddy@linux.ibm.com

DeltaFile
+2-0MAINTAINERS
+2-01 files

Linux/linux 5ba79d3arch/powerpc/platforms/ps3 repository.c

powerpc/ps3: Fix repository.c build failure

GCC fails to build ps3_defconfig with the following errors:

  arch/powerpc/platforms/ps3/repository.c: In function ‘make_first_field.constprop’:
  arch/powerpc/platforms/ps3/repository.c:78:9: error: ‘strnlen’ specified bound 8 exceeds source size 3 [-Werror=stringop-overread]
     78 |         memcpy((char *)&n, text, strnlen(text, sizeof(n)));
        |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  arch/powerpc/platforms/ps3/repository.c: In function ‘make_first_field.constprop’:
  arch/powerpc/platforms/ps3/repository.c:78:9: error: ‘strnlen’ specified bound 8 exceeds source size 4 [-Werror=stringop-overread]
     78 |         memcpy((char *)&n, text, strnlen(text, sizeof(n)));
        |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The current use of strnlen(text, sizeof(n)) triggers -Wstringop-overread
when text is a short string literal that is smaller than sizeof(n), such
as "bi" or "bus". Use strlen(text) instead and clamp the copy length to
sizeof(n) before memcpy().

Drop the redundant char * cast while at it.

    [7 lines not shown]
DeltaFile
+4-1arch/powerpc/platforms/ps3/repository.c
+4-11 files

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