Linux/linux 104484b — kernel workqueue.c

Merge tag 'wq-for-7.3-rc4-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq

Pull workqueue fix from Tejun Heo:

 - Fix a NULL dereference in the flush dependency check when a worker
   flushes outside a work item, such as from the OOM path during worker
   creation

* tag 'wq-for-7.3-rc4-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq:
  workqueue: Fix NULL current_pwq deref in flush dependency check
DeltaFile
+1-1kernel/workqueue.c
+1-11 files

Linux/linux b1fa457 — kernel/cgroup cpuset.c, tools/testing/selftests/cgroup test_cpuset_prs.sh

Merge tag 'cgroup-for-7.3-rc4-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup

Pull cgroup fix from Tejun Heo:

 - A cpuset partition could claim CPUs an ancestor partition already
   held exclusively. Restore the rejection an earlier change had turned
   into a warning.

* tag 'cgroup-for-7.3-rc4-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup:
  cgroup/cpuset: Return PERR_NOCPUS in remote_partition_enable() on subpartitions_cpus conflict
DeltaFile
+2-1kernel/cgroup/cpuset.c
+2-0tools/testing/selftests/cgroup/test_cpuset_prs.sh
+4-12 files

Linux/linux 7cdf915 — kernel/sched/ext types.h cid.c, tools/sched_ext/include/scx common.bpf.h

Merge tag 'sched_ext-for-7.3-rc4-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext

Pull sched_ext fix from Tejun Heo:

 - The CPU topology helper for BPF schedulers took no buffer size, so
   its structure couldn't grow without breaking schedulers built against
   the older layout. Add a size argument.

* tag 'sched_ext-for-7.3-rc4-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext:
  sched_ext: Add a size argument to scx_bpf_cid_topo() so struct scx_cid_topo can grow
DeltaFile
+16-10kernel/sched/ext/cid.c
+4-0kernel/sched/ext/types.h
+1-1tools/sched_ext/include/scx/common.bpf.h
+21-113 files

Linux/linux efb44d9 — arch/x86/coco/sev svsm.c, arch/x86/kernel/cpu/mce core.c

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

Pull x86 fixes from Ingo Molnar:

 - Fix preemption bugs in the SVSM vTPM guest implementation
   (Melody Wang)

 - Fix MCE-triggered hardware debug register corruption on
   task migration (Masami Hiramatsu)

* tag 'x86-urgent-2026-09-27' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86/mce: Fix hardware debug register corruption on task migration
  x86/sev: Make vTPM SVSM calls preemption-safe
DeltaFile
+10-17arch/x86/kernel/cpu/mce/core.c
+8-2arch/x86/coco/sev/svsm.c
+18-192 files

Linux/linux 673dab7 — drivers/base cacheinfo.c, include/linux mm_types.h sched.h

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

Pull scheduler fixes from Ingo Molnar:

 - Fix LLC mis-scheduling bugs (Tim Chen, Lu Wang)

 - Fix cache-grouping related scheduling statistics UAF bugs (Tim Chen)

 - Skip kernel threads for cache aware scheduling to rubustify the code
   (Chen Yu)

 - Refresh LLC capacity across CPU hotplug, to fix capacity
   underestimation bug (Davi Chaves Azevedo)

 - Account PSI IRQ time to the execution context, not the scheduling
   context, to fix proxy scheduling accounting bug (Zhan Xusheng)

* tag 'sched-urgent-2026-09-27' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  sched/core: Account PSI IRQ time to the execution context, not the scheduling context

    [6 lines not shown]
DeltaFile
+339-78kernel/sched/fair.c
+1-27kernel/exit.c
+13-9kernel/sched/topology.c
+18-2include/linux/sched.h
+5-10include/linux/mm_types.h
+6-5drivers/base/cacheinfo.c
+382-1314 files not shown
+388-13410 files

Linux/linux 5ccda18 — arch/x86/events/amd lbr.c, arch/x86/events/intel lbr.c ds.c

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

Pull perf events fixes from Ingo Molnar:

 - Fixes for KVM guest PEBS virtualization (Sean Christopherson)

 - Fixes for various Intel PMUs related to PEBS data-source (Dapeng Mi)

 - Fix Intel Panther Cove event scheduling constraints (Dapeng Mi)

 - Fix Intel DMR/NVL OMR extra registers event scheduling (Dapeng Mi)

 - Rename two confusingly named PMU attributes (Dapeng Mi)

 - Fix a refcount leak in attach_perf_ctx_data() (Namhyung Kim)

 - Fix NULL pointer dereference crash in __perf_pmu_sched_task()
   (Puranjay Mohan)


    [25 lines not shown]
DeltaFile
+102-29arch/x86/events/intel/core.c
+34-40arch/x86/events/intel/ds.c
+34-29arch/x86/events/intel/lbr.c
+0-17include/linux/perf_event.h
+12-5kernel/events/core.c
+8-8arch/x86/events/amd/lbr.c
+190-1283 files not shown
+195-1389 files

Linux/linux db6365c — kernel workqueue.c

workqueue: Fix NULL current_pwq deref in flush dependency check

check_flush_dependency() uses current_wq_worker() to determine whether
the caller is a workqueue worker and then dereferences worker->current_pwq
to test whether the current workqueue is WQ_MEM_RECLAIM.

current_wq_worker() only means that %current has PF_WQ_WORKER set. A
kworker can reach check_flush_dependency() while it is not executing a
work item. One such path is worker_thread() acting as the pool manager,
where create_worker() does GFP_KERNEL allocation and the allocation path
invokes the OOM notifier. In that state worker->current_pwq is NULL
because current_pwq is set only by process_one_work() and cleared again
after the work function returns.

[  416.760634][  T375] Call trace:
[  416.760638][  T375]  check_flush_dependency+0x80/0x120 (P)
[  416.760648][  T375]  __flush_work+0x98/0x224
[  416.760657][  T375]  flush_work+0x30/0x44
[  416.760665][  T375]  ...

    [26 lines not shown]
DeltaFile
+1-1kernel/workqueue.c
+1-11 files

Linux/linux 9448060 — kernel/sched/ext types.h cid.c, tools/sched_ext/include/scx common.bpf.h

sched_ext: Add a size argument to scx_bpf_cid_topo() so struct scx_cid_topo can grow

scx_bpf_cid_topo() copies struct scx_cid_topo into a buffer the BPF program
sized from its own vmlinux.h while the verifier sizes the write from the
running kernel's BTF. The struct may grow and each growth then breaks every
scheduler built against the older layout, rejected at load or written past
its buffer. This is the usual hole for a struct handed to BPF, closed
elsewhere with a size argument, and it was missed here.

Take the buffer size, copy the smaller of it and the kernel's struct and set
the rest to -1. Accesses to the copy are CO-RE relocated, so the struct can
grow by appending fields, which its comment now states. The kfunc changes in
place: the cid interface is still being finalized and no released scheduler
uses the current form.

Fixes: e9b55af47edf ("sched_ext: Add topological CPU IDs (cids)")
Cc: stable at vger.kernel.org # v7.2+
Signed-off-by: Tejun Heo <tj at kernel.org>
Reviewed-by: Andrea Righi <arighi at nvidia.com>
DeltaFile
+16-10kernel/sched/ext/cid.c
+4-0kernel/sched/ext/types.h
+1-1tools/sched_ext/include/scx/common.bpf.h
+21-113 files

Linux/linux fd179f8 — . MAINTAINERS, Documentation/admin-guide kernel-parameters.txt

Merge tag 'ata-7.3-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux

Pull ata fixes from Niklas Cassel:

 - Extend the quirk "no LPM on ATI" quirk, that is currently only
   applied for Samsung drives, to include AMD controllers as well.

   The AMD AHCI controllers are newer versions of the ATI AHCI
   controllers, and these controllers still have LPM issues with
   Samsung drives - LPM works with drives from other vendors (me)

 - Fix errors in the libata.force parameter documentation (me)

 - Verify the sense data descriptor lengths for ATA PASS-THROUGH
   command, so that a malicious device cannot write past the buffer
   length (Matthias)

 - Mention the libata for-next branch in MAINTAINERS such that the
   git ls-remote command done by get_maintainer.pl --self-test=scm

    [7 lines not shown]
DeltaFile
+8-7drivers/ata/libata-core.c
+4-6Documentation/admin-guide/kernel-parameters.txt
+8-2drivers/ata/libata-scsi.c
+2-2include/linux/libata.h
+1-1MAINTAINERS
+23-185 files

Linux/linux 31c8835 — kernel/cgroup cpuset.c, tools/testing/selftests/cgroup test_cpuset_prs.sh

cgroup/cpuset: Return PERR_NOCPUS in remote_partition_enable() on subpartitions_cpus conflict

When a remote partition is created underneath an existing local partition
via a non-partition (PRS_MEMBER) intermediate cgroup, update_prstate() sees
parent->partition_root_state == PRS_MEMBER and calls
remote_partition_enable().

Commit 86888c7bd117 ("cgroup/cpuset: Add warnings to catch inconsistency
in exclusive CPUs") replaced the cpumask_intersects(tmp->new_cpus,
subpartitions_cpus) error check in remote_partition_enable() with
WARN_ON_ONCE(). As a result, remote_partition_enable() emits a warning
and proceeds to enable the remote partition on CPUs that are already
owned by the ancestor local partition in subpartitions_cpus.

This can be reproduced on Linux 7.3.0-rc3 with:

  mkdir -p /tmp/cg1
  mount -t cgroup2 none /tmp/cg1
  echo "+cpuset" > /tmp/cg1/cgroup.subtree_control

    [40 lines not shown]
DeltaFile
+2-1kernel/cgroup/cpuset.c
+2-0tools/testing/selftests/cgroup/test_cpuset_prs.sh
+4-12 files

Linux/linux fddfc3e — arch/x86/pci fixup.c, drivers/pci of_property.c setup-bus.c

Merge tag 'pci-v7.3-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci

Pull PCI fixes from Bjorn Helgaas:

 - Make BAR resize work even for devices where no upstream bridge is
   visible to the OS, which fixes an amdgpu regression on SolidRun
   HoneyComb, which doesn't expose Root Ports to the OS (Liz Fong-Jones)

 - Omit bus properties in dynamic OF nodes when a bridge has no
   subordinate bus, which fixes early boot hangs caused by NULL pointer
   dereferences with CONFIG_PCI_DYNAMIC_OF_NODES enabled (Angel J)

 - Disable enhanced atomics on AMD NBIO 7.7 and 7.11 to avoid silent
   data corruption on 64-bit DMAs (Mario Limonciello)

* tag 'pci-v7.3-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci:
  x86/PCI: Disable enhanced atomics on AMD NBIO 7.7 and 7.11
  PCI: of_property: Omit bus properties without a subordinate bus
  PCI: Fix BAR resize for devices on a root bus
DeltaFile
+99-0arch/x86/pci/fixup.c
+17-6drivers/pci/setup-bus.c
+9-2drivers/pci/of_property.c
+125-83 files

Linux/linux efb27d4 — kernel kprobes.c, kernel/trace fprobe.c

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

Pull probe fixes from Masami Hiramatsu:

 - kprobes: Fix permanent hang when flushing the kprobe optimizer

   Fix a deadlock when disabling kprobe optimization via sysctl or
   debugfs where flushers hung waiting for optimizer_completion.
   Replaced the completion with an optimizer_passes counter and
   wait_var_event_mutex() under kprobe_mutex so concurrent flushers can
   wait and wake up safely.

 - fprobe: Terminate the fgraph_data list when the reservation is not
   filled

   Fix an issue where unused shadow stack data left uninitialized by
   fprobe_fgraph_entry() was misparsed as stale fprobe headers on
   return. Explicitly write a zero word to terminate the list and update
   read_fprobe_header() to handle the zeroed slot properly.

    [12 lines not shown]
DeltaFile
+14-8kernel/kprobes.c
+15-0kernel/trace/fprobe.c
+1-1tools/testing/selftests/ftrace/test.d/kprobe/kprobe_non_uniq_symbol.tc
+30-93 files

Linux/linux eff8d27 — arch/arm64/kvm nested.c, arch/arm64/kvm/hyp/nvhe mm.c

Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm

Pull kvm fixes from Paolo Bonzini:
 "Arm:

   - Invalidate the ITS translation cache when the guest changes the
     base address of the ITS tables (Fuad Tabba)

   - Skip saving ITS devices with device IDs that are out-of-bounds
     rather than failing the entire ITS save ioctl (Fuad Tabba)

   - Close race between VM teardown and invalidations of nested MMUs
     when handling MMU operations that are allowed to block (Lorenzo
     Stoakes)

   - Various fixes for the handling of the host's untrusted SVE
     configuration in pKVM (Fuad Tabba)

   - Make sure that empty SMCCC ranges based at 0 are rejected by the

    [131 lines not shown]
DeltaFile
+441-0tools/testing/selftests/kvm/arm64/vgic_its_save.c
+62-53arch/arm64/kvm/nested.c
+37-54arch/s390/kvm/gmap/kvm_mmu.c
+41-40arch/s390/kvm/s390/interrupt.c
+70-9arch/arm64/kvm/hyp/nvhe/mm.c
+37-28arch/s390/kvm/gmap/dat.c
+688-18447 files not shown
+1,032-34753 files

Linux/linux c2f24f1 — arch/x86/kvm x86.c pmu.c, arch/x86/kvm/svm nested.c

Merge tag 'kvm-x86-fixes-7.3-rc5' of https://github.com/kvm-x86/linux into HEAD

KVM fixes for 7.3-rcN

 - Fix a brown paper bag bug where KVM would incorrectly treat Intel PMU MSRs
   as valid on AMD.

 - Fix a regression in the hardware disable selftest where it checked the wrong
   macro when detecting glibc support (breaks at least musl).

 - Never clear KVM_REQ_VM_DEAD so that dead VMs stay dead, which is especially
   important for KVM_BUG_ON() flows, which often guard more dangerous bugs.

 - Re-pend GET_NESTED_STATE_PAGES if getting the pages fails, to fix a bug
   where KVM would let userspace run a broken setup with stale vmcs12 pages.

 - Fix a class of bugs where KVM would fail to fill kvm_run exit fields if
   getting nested pages failed.


    [10 lines not shown]
DeltaFile
+29-6virt/kvm/kvm_main.c
+5-10arch/x86/kvm/vmx/nested.c
+7-2include/linux/kvm_host.h
+0-8arch/x86/kvm/pmu.c
+1-6arch/x86/kvm/svm/nested.c
+5-1arch/x86/kvm/x86.c
+47-335 files not shown
+56-3911 files

Linux/linux 12c1f6e — arch/x86/kvm/svm sev.c

KVM: SEV: Free have_run_cpus during VM destruction even if VM is no longer SEV

Unconditionally free SEV's "have run CPUs" cpumask in the VM destroy path,
i.e. even for what appear to be non-SEV VMs, as an SEV VM becomes a non-SEV
VM if its state is intra-host migrated.  Alternatively, the mask could be
freed in sev_migrate_from() when "converting" the source VM, but that gets
annoying because ideally KVM would nullify the mask to guard against UAF,
and nullifying the mask would need be conditioned on CPUMASK_OFFSTACK=y.

Freeing the mask during sev_migrate_from() is also not robust against other
KVM bugs, though that's kind of a moot point since any such bugs would show
up even if sev->active is never set.  I.e. KVM must get that side of things
correct.  But, that's not a great reason to add more code just to make
things marginally less robust.

Fixes: 6f38f8c57464 ("KVM: SVM: Flush cache only on CPUs running SEV guest")
Cc: stable at vger.kernel.org
Reported-by: Stefan Teodorescu <fane at google.com>
Signed-off-by: Sean Christopherson <seanjc at google.com>

    [2 lines not shown]
DeltaFile
+6-2arch/x86/kvm/svm/sev.c
+6-21 files

Linux/linux 93de2a6 — arch/x86/kvm/svm sev.c

KVM: SEV: Do cache maintenance on the source VM during intra-host migration

Manually perform cache maintenance on the source VM during intra-host
migration to ensure no stale data is left in CPU caches after the VM is
destroyed.  Because the source VM is "converted" to a non-SEV VM, KVM's
memory reclaim flows won't trigger cache maintenance, e.g. when all guest
memory is reclaimed in response to detaching from the mmu_notifier.

Note, relying on the destination VM to do cache maintenance isn't an option
as KVM doesn't require identical guest memory configurations, i.e. the
source VM may have access to memory that the destination VM does not.
Enforcing equivalent memory configurations is infeasible, as it would
require a *deep* comparison of memslots, e.g. to verify that not only are
the memslot identical, but what the memslots point at is also identical.

Fixes: b56639318bb2 ("KVM: SEV: Add support for SEV intra host migration")
Cc: stable at vger.kernel.org
Reported-by: Stefan Teodorescu <fane at google.com>
Signed-off-by: Sean Christopherson <seanjc at google.com>

    [2 lines not shown]
DeltaFile
+10-0arch/x86/kvm/svm/sev.c
+10-01 files

Linux/linux 6812ce4 — drivers/gpu/drm/amd/amdkfd kfd_chardev.c, drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/nvrm gsp.h

Merge tag 'drm-fixes-2026-09-26' of https://gitlab.freedesktop.org/drm/kernel

Pull drm fixes from Dave Airlie:
 "While most of this is AI inspired fixes for error handling paths,
  leaks and use after frees, there are some normal things.

  nouveau has probably the biggest changes with some fixes to stabilise
  runtime suspend/resume on 570 firmware which regressed after we moved
  from 535, there are some fixes to stackframe issues seen with amdgpu,
  and otherwise the usual bunch of i915/xe/amdgpu fixes, and some
  virtio-gpu fixes.

  Hopefully it will start to quiten down a bit from here.

  client:
   - fix restore of partially initialized client

  i915:
   - Fix incorrect RCU teardown order leading to endless loop

    [72 lines not shown]
DeltaFile
+85-11drivers/gpu/drm/xe/xe_hw_engine.c
+75-2drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r570/fbsr.c
+57-14drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
+46-3drivers/gpu/drm/virtio/virtgpu_ioctl.c
+46-0drivers/gpu/drm/virtio/virtgpu_vq.c
+45-0drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/nvrm/gsp.h
+354-3073 files not shown
+810-13579 files

Linux/linux 75467f6 — security/ipe eval.h policy_fs.c

Merge tag 'ipe-pr-20260925' of git://git.kernel.org/pub/scm/linux/kernel/git/wufan/ipe

Pull IPE fixes from Fan Wu:
 "Two fixes for use-after-free issues found by recent LLM-assisted code
  analysis.

   - move successful policy load auditing under the new policy
     directory's inode lock, preventing a concurrent policy deletion
     from freeing the policy while it is still being audited

   - protect the dm-verity root hash with RCU, preventing policy
     evaluation from racing with root hash replacement during preresume"

* tag 'ipe-pr-20260925' of git://git.kernel.org/pub/scm/linux/kernel/git/wufan/ipe:
  ipe: protect the dm-verity root hash with RCU
  ipe: fix use-after-free when auditing a newly loaded policy
DeltaFile
+17-5security/ipe/hooks.c
+8-4security/ipe/eval.c
+3-5security/ipe/fs.c
+3-0security/ipe/policy_fs.c
+1-1security/ipe/eval.h
+32-155 files

Linux/linux a9ed3aa — drivers/gpu/drm/nouveau/nvkm/engine/device user.c, drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/nvrm gsp.h

Merge tag 'drm-misc-fixes-2026-09-24' of https://gitlab.freedesktop.org/drm/misc/kernel into drm-fixes

A number of fixes:
  - bridge:
    - samsung-dsim: fix GPIO lifetime
  - client: Null pointer dereference fix
  - imagination: error handling fix, page handling fix
  - nouveau: fix reference leaks, double-frees, out-of-bounds accesses,
    use-after-frees, don't reject config without SCDC,  a number of
    workarounds
  - virtio: fix memory leak, reference leaks, null pointer dereference,
    add pixel blend mode, cache coherency fix

Signed-off-by: Dave Airlie <airlied at redhat.com>

From: Maxime Ripard <self at mripard.dev>
Link: https://patch.msgid.link/arU22zzqUGDEco1y@houat
DeltaFile
+75-2drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r570/fbsr.c
+46-3drivers/gpu/drm/virtio/virtgpu_ioctl.c
+46-0drivers/gpu/drm/virtio/virtgpu_vq.c
+45-0drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/nvrm/gsp.h
+36-0drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r570/gsp.c
+35-0drivers/gpu/drm/nouveau/nvkm/engine/device/user.c
+283-540 files not shown
+531-6146 files

Linux/linux 0493803 — block blk-zoned.c, drivers/scsi sd_zbc.c

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

Pull SCSI fixes from James Bottomley:
 "Mostly small driver fixes. The biggest fix is the one to the block
  zone handling which might trip for real or virtual hardware if the
  number of zones is > 2^32"

* tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
  scsi: megaraid_sas: Protect megasas_get_ctrl_info() in megasas_resume()
  scsi: sd_zbc: Reject disks with too many zones
  scsi: block: Fix zones_cond out-of-bounds write on zone report
  scsi: leapraid: Avoid -Wformat-security warning
  scsi: devinfo: Add BLIST_SKIP_IO_HINTS for EMC Symmetrix
  scsi: libiscsi_tcp: Check the data direction of a Data-In PDU
  scsi: ufs: pltfrm: Add quirk for R-Car S4 lacking lanes-per-direction
  scsi: ufs: core: Keep internal commands dispatchable during error handling
DeltaFile
+13-2block/blk-zoned.c
+3-5drivers/scsi/leapraid/leapraid_os.c
+7-1drivers/scsi/sd_zbc.c
+5-1drivers/ufs/host/ufshcd-pltfrm.c
+6-0drivers/ufs/core/ufshcd.c
+3-1drivers/scsi/megaraid/megaraid_sas_base.c
+37-103 files not shown
+41-139 files

Linux/linux 9814077 — security/ipe policy_fs.c fs.c

ipe: fix use-after-free when auditing a newly loaded policy

new_policy() audits the policy after ipe_new_policyfs_node() publishes it
and drops the new directory's inode lock. A concurrent delete can free
the policy while ipe_audit_policy_load() is still using it.

Audit the successful load under that lock.

Fixes: f44554b5067b ("audit,ipe: add IPE auditing support")
Cc: stable at vger.kernel.org
Assisted-by: LLM
[FW: remove model name according to latest guideline]
Signed-off-by: Fan Wu <wufan at kernel.org>

DeltaFile
+3-5security/ipe/fs.c
+3-0security/ipe/policy_fs.c
+6-52 files

Linux/linux 2776e9c — security/ipe eval.h eval.c

ipe: protect the dm-verity root hash with RCU

ipe_bdev_setintegrity() frees the old root hash when dm-verity publishes
a new one on ->preresume, while policy evaluation can still be
dereferencing it.

Protect the root hash with RCU. The evaluation path already runs under
rcu_read_lock().

Fixes: e155858dd995 ("ipe: add support for dm-verity as a trust provider")
Cc: stable at vger.kernel.org
Assisted-by: LLM
[FW: remove model name according to latest guideline]
Signed-off-by: Fan Wu <wufan at kernel.org>

DeltaFile
+17-5security/ipe/hooks.c
+8-4security/ipe/eval.c
+1-1security/ipe/eval.h
+26-103 files

Linux/linux f14572c — fs/smb/client smb2pdu.h smb2ops.c

Merge tag 'cifs-fixes-7.3-rc5' of https://git.manguebit.org/linux

Pull smb client fixes from Paulo Alcantara:

 - Fix leaked server handles and dropped errors in the SMB2 compound
   create path: a parsing error reported as success, an earlier CREATE
   left open when a later command fails, the cached directory open
   losing the FID needed for cleanup, and SMB2_open() not closing the
   handle after a create-context parse failure

 - Fix out-of-bounds reads when parsing create contexts from a
   malicious server: bound each context by its Next field, parse the
   lease and QFid contexts from their declared offsets and validate
   the POSIX create context length

 - Fix a double credit decrement, and its warning, when a compound
   send fails and triggers a reconnect; found by syzbot

 - Fix a dentry and server handle leak in cifs_atomic_open() when an

    [17 lines not shown]
DeltaFile
+58-13fs/smb/client/transport.c
+42-12fs/smb/client/smb2pdu.c
+39-13fs/smb/client/dir.c
+22-10fs/smb/client/cached_dir.c
+20-8fs/smb/client/smb2ops.c
+7-3fs/smb/client/smb2pdu.h
+188-593 files not shown
+200-669 files

Linux/linux aa98230 — fs fs-writeback.c namespace.c, fs/netfs buffered_read.c

Merge tag 'vfs-7.3-rc5.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs

Pull vfs fixes from Christian Brauner:

 - Revert "put_mnt_ns(): leave mounts connected". This allows the
   creation of reference count cycles in a very trivial way. We can't
   bring this in until we have fixed the underlying cause

 - vfs: Don't create the private nullfs instance for kthreads under
   namespace_sem to avoid false lockdeps complaints

 - binfmt_misc:
     - Copy the name into a stack buffer and look up the copy in
       bpf_binprm_select_interp()
     - bpf_binprm_set_interp() and bpf_binprm_set_interp_arg(): Check
       the private copy instead so the string that gets staged is the
       kstring that was checked

 - netfs:

    [57 lines not shown]
DeltaFile
+0-58tools/testing/selftests/filesystems/mntns_cleanup/mntns_cleanup_test.c
+19-20fs/super.c
+32-3fs/binfmt_misc_bpf.c
+19-15fs/netfs/buffered_read.c
+17-10fs/namespace.c
+20-5fs/fs-writeback.c
+107-11115 files not shown
+149-14521 files

Linux/linux a2ff1b6 — fs/isofs namei.c dir.c

Merge tag 'fs_for_v7.3-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs

Pull isofs fix from Jan Kara:
 "A fix for reading tightly packed isofs directories"

* tag 'fs_for_v7.3-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
  isofs: Fix handling of directories with tight blocks
DeltaFile
+8-12fs/isofs/dir.c
+9-7fs/isofs/namei.c
+17-192 files

Linux/linux b9dbb65 — drivers/thermal gov_step_wise.c

Merge tag 'thermal-7.3-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

Pull thermal control fix from Rafael Wysocki:
 "Fix a step-wise thermal governor issue that causes thermal mitigation
  to contiune forever after the temperature has dropped below the trip
  point threshold in some cases (Manaf Meethalavalappu Pallikunhi)"

* tag 'thermal-7.3-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
  thermal: gov_step_wise: Fix stale mitigation vote with non-zero lower bounds
DeltaFile
+4-6drivers/thermal/gov_step_wise.c
+4-61 files

Linux/linux 4ba51ef — kernel/power hibernate.c

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

Pull power management fix from Rafael Wysocki:
 "Address a hibernation regression introduced during the 7.2 development
  cycle that causes the image memory preallocation to deadlock if it
  depends on frozen kernel threads (Florian Schmaus)"

* tag 'pm-7.3-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
  PM: hibernate: Freeze kernel threads after image preallocation
DeltaFile
+14-12kernel/power/hibernate.c
+14-121 files

Linux/linux 547463e — arch/s390/include/asm debug.h, arch/s390/kernel debug.c

Merge tag 's390-7.3-4' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux

Pull s390 fixes from Heiko Carstens:

 - Fix several bugs in PCI error recovery SCLP reporting: don't report
   success on skipped recovery, report errors when no pdev is
   associated, add missing device lock, and fix struct pci_dev reference
   leak in zpci_report_status()

 - Fix several bugs in CIO code: fix use of invalid SCHIB data, guard
   PMCW field accesses, check device number valid bit in PMWC before
   accessing other fields, and fix NULL pointer dereference in
   ccw_device_get_util_str()

 - Fix virtual vs physical address confusion in channel measurement
   facility code on kernels with CONFIG_RANDOMIZE_IDENTITY_BASE=y

 - Fix couple of bugs in s390dbf: fix copy of failed static debug areas,
   skip view registration on failure, and reject NULL pointer in

    [21 lines not shown]
DeltaFile
+20-12arch/s390/pci/pci_report.c
+23-0drivers/s390/cio/device_ops.c
+14-4arch/s390/kernel/debug.c
+7-4drivers/s390/cio/cio.c
+5-4drivers/s390/cio/device.c
+6-2arch/s390/include/asm/debug.h
+75-2612 files not shown
+102-4118 files

Linux/linux 80e466f — drivers/gpio gpiolib.c gpio-arizona.c

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

Pull gpio fixes from Bartosz Golaszewski:

 - fix a regression introduced by moving GPIO hog handling into GPIOLIB
   core where of_node_name was used if line name property was missing on
   DT systems

 - fix kernel stack leak to user-space in error path in GPIO character
   device code

 - fix runtime PM leaks in gpio-xilinx and gpio-arizona

 - fix several register programming bugs in gpio-tps65219

 - fix interrupt storm on resume in gpio-mvebu

* tag 'gpio-fixes-for-v7.3-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
  gpio: tps65219: Fix TPS65214 GPIO direction programming

    [7 lines not shown]
DeltaFile
+27-6drivers/gpio/gpio-mvebu.c
+25-7drivers/gpio/gpiolib-cdev.c
+7-5drivers/gpio/gpio-tps65219.c
+1-9drivers/gpio/gpio-zynq.c
+6-2drivers/gpio/gpio-arizona.c
+7-0drivers/gpio/gpiolib.c
+73-296 files

Linux/linux b78b728 — fs/netfs rolling_buffer.c objects.c, include/linux mempool.h

netfs: Fix missing alloc tagging of direct mempool allocations

Commit 1d78d56c43ef ("netfs: Fix folio_queue ENOMEM in writeback by
adding a mempool") added a mempool for the folio_queues and made the
request, subrequest and folio_queue allocations distinguish between
writeback and everything else.  Writeback is part of memory reclaim
and must not fail due to ENOMEM, so it allocates under GFP_NOFS
through mempool_alloc(), which may dip into the pool's reserve and,
if that runs empty, wait for elements to be returned.  The
GFP_KERNEL paths, which can return -ENOMEM to their callers, invoke
the pool's ->alloc() callback directly instead.

The direct call, however, skips the alloc_hooks() wrapper that the
mempool_alloc() macro provides.  The pool callbacks, mempool_alloc_slab()
and mempool_kmalloc(), call kmem_cache_alloc_noprof() and kmalloc_noprof()
and rely on current->alloc_tag having been set by the caller.  With
CONFIG_MEM_ALLOC_PROFILING_DEBUG=y this leads to

    current->alloc_tag not set

    [24 lines not shown]
DeltaFile
+7-0include/linux/mempool.h
+2-2fs/netfs/objects.c
+1-1fs/netfs/rolling_buffer.c
+10-33 files