Linux/linux 6916d57drivers/gpu/drm/amd/amdgpu amdgpu_userq_fence.c amdgpu_userq.c, drivers/gpu/drm/xe xe_vm_madvise.c xe_bo.h

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

Pull drm fixes from Dave Airlie:
 "Weekly fixes pull, small and all over fixes, mostly xe and amdgpu,
  with some ttm and a core fix for the handle change pain.

  core:
   - fix for the fix for the handle change race

  ttm:
   - avoid infinite loop in swap out
   - avoid infinite loop in BO shrinking
   - convert -EAGAIN from dmem_cgroup_try_charge to -ENOSPC

  bridge:
   - imx8qxp-pxl2dpi: avoid ERR_PTR with device_node cleanup

  i915:
   - Skip __i915_request_skip() for already signaled requests

    [51 lines not shown]
DeltaFile
+119-126drivers/gpu/drm/amd/amdgpu/amdgpu_userq_fence.c
+10-152drivers/gpu/drm/xe/xe_vm_madvise.c
+54-77drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c
+86-2drivers/gpu/drm/xe/xe_bo.h
+38-42drivers/gpu/drm/xe/xe_dma_buf.c
+42-9drivers/gpu/drm/xe/xe_vm.c
+349-40826 files not shown
+540-49532 files

Linux/linux dc36660drivers/gpu/drm drm_gem.c

drm: Replace old pointer to new idr

Commit 5e28b7b94408 introduced a logical error by failing to replace the
newly generated IDR pointer to old id's pointer at the correct location
within the "change handle" logic; this resulted in the issue reported by
syzbot [1].

Specifically, the new IDR object pointer is intended to replace the original
id's pointer during the normal execution flow.

Additionally, an unnecessary conditional check for the ret exit path has
been removed.

[1]
!RB_EMPTY_ROOT(&prime_fpriv->dmabufs)
WARNING: drivers/gpu/drm/drm_prime.c:224 at drm_prime_destroy_file_private+0x48/0x60 drivers/gpu/drm/drm_prime.c:224, CPU#0: syz.0.17/5833
Call Trace:
 drm_file_free.part.0+0x7e6/0xcc0 drivers/gpu/drm/drm_file.c:269
 drm_file_free drivers/gpu/drm/drm_file.c:237 [inline]

    [11 lines not shown]
DeltaFile
+2-5drivers/gpu/drm/drm_gem.c
+2-51 files

Linux/linux 36343a8drivers/resctrl mpam_devices.c mpam_internal.h

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

Pull arm64 MPAM fixes from Catalin Marinas:

 - Fix NULL dereference and a false-positive warning when the driver
   probes hardware with surprising version numbers

 - Fix writing values to the wrong registers when probing
   cache-utilisation counters. Replace 'NRDY' probing with a version
   that is robust for platforms where the bit is writeable by both
   hardware and software

* tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
  arm_mpam: Check whether the config array is allocated before destroying it
  arm_mpam: Fix false positive assert failure during mpam_disable()
  arm_mpam: Improve check for whether or not NRDY is hardware managed
  arm_mpam: Pretend that NRDY is always hardware managed
  arm_mpam: Fix monitor instance selection when checking for hardware NRDY
DeltaFile
+40-41drivers/resctrl/mpam_devices.c
+0-2drivers/resctrl/mpam_internal.h
+40-432 files

Linux/linux 30e0ff6. MAINTAINERS, drivers/iommu iommu.c

Merge tag 'iommu-fixes-v7.1-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/iommu/linux

Pull iommu fixes from Joerg Roedel:
 "This is probably the largest fixes pull-request ever sent for IOMMU. I
  partially blame it on AI code review which found some issues but there
  is also some rework in here to fix issues in the iommu parts of PCI
  device reset.

  AMD-Vi:
   - Add bounds checks to debugfs and table lookups

  Intel VT-d:
   - Apply an existing quirk for Q35 graphic device
   - Skip dev_pasid teardown for the blocked domain to avoid
     out-of-bounds access
   - Return early if dev_pasid is missing to prevent NULL dereference
     or UAF

  Core:

    [25 lines not shown]
DeltaFile
+217-88drivers/iommu/iommu.c
+15-9drivers/iommu/generic_pt/iommu_pt.h
+10-6drivers/iommu/intel/iommu.c
+5-4drivers/iommu/amd/debugfs.c
+6-2drivers/iommu/amd/iommu.c
+1-1MAINTAINERS
+254-1101 files not shown
+255-1107 files

Linux/linux 3bf83e4drivers/vfio/pci vfio_pci_dmabuf.c vfio_pci_core.c, include/linux vfio_pci_core.h

Merge tag 'vfio-v7.1-rc4' of https://github.com/awilliam/linux-vfio

Pull VFIO fixes from Alex Williamson:

 - Convert vfio-pci BAR resource requests and iomaps initialization
   from a lazy, on-demand model to an eager pre-allocation model to
   avoid races while preserving legacy error behavior.  Fix unchecked
   barmap access in dma-buf export path (Matt Evans)

 - Introduce an implicit unsigned cast in converting vfio-pci device
   offsets to region indexes, closing a potential out-of-bounds
   access through the vfio_pci_ioeventfd() interface (Matt Evans)

 - Fix a dma-buf kref underflow and stuck wait_for_completion() when
   closing a previously revoked dma-buf (Alex Williamson)

* tag 'vfio-v7.1-rc4' of https://github.com/awilliam/linux-vfio:
  vfio/pci: Check BAR resources before exporting a DMABUF
  vfio/pci: Set up BAR resources and maps in vfio_pci_core_enable()

    [2 lines not shown]
DeltaFile
+22-20drivers/vfio/pci/vfio_pci_dmabuf.c
+36-1drivers/vfio/pci/vfio_pci_core.c
+7-19drivers/vfio/pci/vfio_pci_rdwr.c
+1-1include/linux/vfio_pci_core.h
+66-414 files

Linux/linux 396db75drivers/accel/qaic qaic_data.c, drivers/gpu/drm/bridge/imx imx8qxp-pxl2dpi.c

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

Short summary of fixes pull:

bridge:
- imx8qxp-pxl2dpi: avoid ERR_PTR with device_node cleanup

gma500:
- oaktrail_lvds: fix i2c handling

loongson:
- use managed cleanup for connector polling

panfrost:
- handle results from reservation locking correctly

qaic:
- check for integer overflows in mmap logic


    [12 lines not shown]
DeltaFile
+23-17drivers/gpu/drm/bridge/imx/imx8qxp-pxl2dpi.c
+21-2drivers/accel/qaic/qaic_data.c
+17-1drivers/gpu/drm/ttm/ttm_resource.c
+7-11drivers/gpu/drm/ttm/ttm_bo.c
+3-8drivers/gpu/drm/ttm/ttm_bo_util.c
+7-2drivers/gpu/drm/gma500/oaktrail_lvds.c
+78-415 files not shown
+86-4211 files

Linux/linux b0662befs/smb/client fs_context.c transport.c, fs/smb/common fscc.h smb2pdu.h

Merge tag 'v7.1-rc4-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6

Pull smb client fixes from Steve French:

 - Fix integer overflow in read

 - Fix smbdirect error cleanup

 - Multichannel reconnect fix

 - Add some missing defines and correct some references to protocol spec

 - Fix oob symlink read

* tag 'v7.1-rc4-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
  smbdirect: Fix error cleanup in smbdirect_map_sges_from_iter()
  smb: client: avoid integer overflow in SMB2 READ length check
  cifs: client: stage smb3_reconfigure() updates and restore ctx on failure
  smb/client: fix possible infinite loop and oob read in symlink_data()
  SMB3.1.1: add missing QUERY_DIR info levels
DeltaFile
+109-54fs/smb/client/fs_context.c
+9-6fs/smb/client/transport.c
+2-2fs/smb/common/fscc.h
+4-0fs/smb/common/smb2pdu.h
+3-1fs/smb/client/smb2ops.c
+3-0fs/smb/client/smb2file.c
+130-631 files not shown
+131-647 files

Linux/linux fcbf68dfs/ceph quota.c xattr.c, net/ceph osdmap.c auth_x.c

Merge tag 'ceph-for-7.1-rc4' of https://github.com/ceph/ceph-client

Pull ceph fixes from Ilya Dryomov:
 "An important patch from Hristo that squashes a folio reference leak
  that could lead to OOM kills in CephFS and a number of miscellaneous
  fixes from Raphael and Slava.

  All but two are marked for stable"

* tag 'ceph-for-7.1-rc4' of https://github.com/ceph/ceph-client:
  libceph: Fix potential null-ptr-deref in decode_choose_args()
  libceph: handle rbtree insertion error in decode_choose_args()
  libceph: Fix potential out-of-bounds access in osdmap_decode()
  ceph: put folios not suitable for writeback
  ceph: add ceph_has_realms_with_quotas() check to ceph_quota_update_statfs()
  libceph: Fix potential out-of-bounds access in __ceph_x_decrypt()
  ceph: fix BUG_ON in __ceph_build_xattrs_blob() due to stale blob size
  ceph: fix a buffer leak in __ceph_setxattr()
  libceph: Fix unnecessarily high ceph_decode_need() for uniform bucket
  libceph: Fix potential out-of-bounds access in crush_decode()
DeltaFile
+27-10fs/ceph/quota.c
+12-5net/ceph/osdmap.c
+17-0fs/ceph/xattr.c
+1-5net/ceph/crush/crush.c
+5-0net/ceph/auth_x.c
+2-0fs/ceph/addr.c
+64-206 files

Linux/linux 96f34d1drivers/gpu/drm/xe xe_vm_madvise.c xe_bo.h

Merge tag 'drm-xe-fixes-2026-05-14' of https://gitlab.freedesktop.org/drm/xe/kernel into drm-fixes

- Madvise fix around purgeability tracking (Arvind)
- Restore engine mask for specific blitter style (Roper)
- Couple UAF fixes (Auld)
- Drop unused ggtt_balloon field (Wajdeczko)

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

From: Rodrigo Vivi <rodrigo.vivi at intel.com>
Link: https://patch.msgid.link/agXWkM3Y98bqt6TG@intel.com
DeltaFile
+10-152drivers/gpu/drm/xe/xe_vm_madvise.c
+86-2drivers/gpu/drm/xe/xe_bo.h
+38-42drivers/gpu/drm/xe/xe_dma_buf.c
+42-9drivers/gpu/drm/xe/xe_vm.c
+25-3drivers/gpu/drm/xe/xe_bo_types.h
+2-16drivers/gpu/drm/xe/xe_migrate.c
+203-2245 files not shown
+222-23111 files

Linux/linux a8b0b72fs/btrfs inode.c compression.c, include/trace/events btrfs.h

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

Pull btrfs fixes from David Sterba:

 - fixup warning when allocating memory for readahead, __GFP_NOWARN was
   accidentally dropped when setting mapping constraints

 - in tracepoint of file sync, fix sleeping in atomic context when
   handling dentries

 - harden initial loading of block group on crafted/fuzzed images,
   iterate all chunk mapping entries unconditionally

 - fix freeing pages of submitted io after checking for errors

 - fix incorrect inode size after remount when using fallocate KEEP_SIZE
   mode (also requires disabled 'no-holes' feature)

* tag 'for-7.1-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:

    [5 lines not shown]
DeltaFile
+28-0fs/btrfs/inode.c
+14-12fs/btrfs/compression.c
+8-15fs/btrfs/block-group.c
+4-5fs/btrfs/transaction.c
+1-3include/trace/events/btrfs.h
+1-0fs/btrfs/disk-io.c
+56-356 files

Linux/linux 663ea69fs/xfs xfs_trans.c xfs_inode.c, fs/xfs/libxfs xfs_dir2_data.c

Merge tag 'xfs-fixes-7.1-rc4' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux

Pull xfs fixes from Carlos Maiolino:
 "A few bug fixes, nothing really special stands out"

* tag 'xfs-fixes-7.1-rc4' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
  xfs: Fix typo in comment
  xfs: fix the "limiting open zones" message
  xfs: flush delalloc blocks on ENOSPC in xfs_trans_alloc_icreate
  xfs: check da node block pad field during scrub
  xfs: fix memory leak for data allocated by xfs_zone_gc_data_alloc()
  xfs: fix memory leak on error in xfs_alloc_zone_info()
  xfs: check directory data block header padding in scrub
  xfs: zero directory data block padding on write verification
  xfs: zero entire directory data block header region at init
  xfs: remove the meaningless XFS_ALLOC_FLAG_FREEING
DeltaFile
+11-7fs/xfs/libxfs/xfs_dir2_data.c
+11-0fs/xfs/xfs_trans.c
+11-0fs/xfs/scrub/common.c
+6-1fs/xfs/scrub/dabtree.c
+6-1fs/xfs/scrub/dir.c
+0-6fs/xfs/xfs_inode.c
+45-155 files not shown
+52-2111 files

Linux/linux 56ec2b6fs/nfsd nfs4state.c nfs4proc.c, net/sunrpc cache.c

Merge tag 'nfsd-7.1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux

Pull nfsd fixes from Chuck Lever:
 "Fixes for this release:
   - Correctness fix for the new sunrpc cache netlink protocol

  Marked for stable:
   - Correctness fixes for delegated attributes
   - Prevent an infinite loop when revoking layouts"

* tag 'nfsd-7.1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux:
  NFSD: Fix infinite loop in layout state revocation
  sunrpc: start cache request seqno at 1 to fix netlink GET_REQS
  nfsd: update mtime/ctime on COPY in presence of delegated attributes
  nfsd: update mtime/ctime on CLONE in presense of delegated attributes
  nfsd: fix file change detection in CB_GETATTR
  nfsd: fix GET_DIR_DELEGATION when VFS leases are disabled
DeltaFile
+44-20fs/nfsd/nfs4state.c
+13-5fs/nfsd/nfs4proc.c
+1-1net/sunrpc/cache.c
+1-0fs/nfsd/state.h
+1-0fs/nfsd/xdr4.h
+60-265 files

Linux/linux d458a24block blk-zoned.c bio.c, drivers/nvme/host ioctl.c

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

Pull block fixes from Jens Axboe:

 - NVMe merge request via Keith:
     - Fix memory leak on a passthrough integrity mapping failure (Keith)
     - Hide secrets behind debug option (Hannes)
     - Fix pci use-after-free for host memory buffer (Chia-Lin Kao)
     - Fix tcp taregt use-after-free for data digest (Sagi)
     - Revert a mistaken quirk (Alan Cui)
     - Fix uevent and controller state race condition (Maurizio)
     - Fix apple submission queue re-initialization (Nick Chan)

 - Three fixes for blk-integrity, fixing an issue with the user data
   mapping and two problems with recomputing number of segments

 - Two fixes for the iov_iter bounce buffering

 - Fix for the handling of dead zoned write plugs

    [20 lines not shown]
DeltaFile
+27-5block/blk-zoned.c
+15-12block/bio.c
+19-0block/blk-mq.c
+18-1block/bio-integrity.c
+4-14drivers/nvme/host/ioctl.c
+8-5drivers/nvme/target/auth.c
+91-379 files not shown
+130-4515 files

Linux/linux ee7226bio_uring io_uring.c timeout.c

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

Pull io_uring fixes from Jens Axboe:

 - Small series sanitizing the locking done for either modifying or
   reading a chain of requests

 - If the application has a pid namespace, ensure that the sqthread pid
   is correctly printed in fdinfo

 - Fix for a hashing issue in the io-wq thread pool, which could lead to
   a use-after-free

 - Kill dead argument from io_prep_rw_pi()

 - Fix for a missed validation of the CQ ring head, affecting CQE refill

* tag 'io_uring-7.1-20260515' of git://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux:
  io_uring: validate user-controlled cq.head in io_cqe_cache_refill()

    [6 lines not shown]
DeltaFile
+23-6io_uring/io_uring.c
+14-2io_uring/timeout.c
+2-2io_uring/rw.c
+2-1io_uring/io-wq.c
+2-1io_uring/fdinfo.c
+1-1io_uring/cancel.c
+44-136 files

Linux/linux 78e8370scripts/gcc-plugins gcc-common.h

Merge tag 'hardening-v7.1-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux

Pull hardening fix from Kees Cook:

 - gcc-plugins: Fix GCC 16 removal of CONST_CAST macros

* tag 'hardening-v7.1-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
  gcc-plugins: Always define CONST_CAST_GIMPLE and CONST_CAST_TREE
DeltaFile
+3-1scripts/gcc-plugins/gcc-common.h
+3-11 files

Linux/linux 36d49bbDocumentation/process threat-model.rst security-bugs.rst

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

Pull documentation fixes from Jonathan Corbet:
 "This is Willy Tarreau's new document clarifying the definition and
  handling of security-related bugs, which we're trying to get out there
  quickly on the theory that some of the bug reporters might actually
  read and pay attention to it"

* tag 'docs-7.1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/docs/linux:
  docs: threat-model: don't limit root capabilities to CAP_SYS_ADMIN
  docs: security-bugs: add a link to the threat-model documentation
  Documentation: security-bugs: clarify requirements for AI-assisted reports
  Documentation: security-bugs: explain what is and is not a security bug
  Documentation: security-bugs: do not systematically Cc the security team
DeltaFile
+235-0Documentation/process/threat-model.rst
+104-2Documentation/process/security-bugs.rst
+1-0Documentation/process/index.rst
+340-23 files

Linux/linux 4844e7carch/x86/xen mmu_pv.c setup.c, include/xen/arm interface.h

Merge tag 'for-linus-7.1b-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip

Pull xen fixes from Juergen Gross:

 - one simple cleanup

 - a fix for a corner case when running as Xen PV dom0

 - a fix of a regression for Xen PV guests, introduced in 7.0

* tag 'for-linus-7.1b-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
  x86/xen: Tolerate nested XEN_LAZY_MMU entering/leaving
  x86/xen: Fix xen_e820_swap_entry_with_ram()
  xen/arm: Replace __ASSEMBLY__ with __ASSEMBLER__ in interface.h
DeltaFile
+6-2arch/x86/xen/mmu_pv.c
+1-1arch/x86/xen/setup.c
+1-1include/xen/arm/interface.h
+8-43 files

Linux/linux 4c2cd91drivers/platform/x86 samsung-galaxybook.c, drivers/platform/x86/intel plr_tpmi.c vsec_tpmi.c

Merge tag 'platform-drivers-x86-v7.1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86

Pull x86 platform driver fixes from Ilpo Järvinen:

 - asus-nb-wmi:
    - Use existing keyboard quirk for ASUS Zenbook Duo UX8407AA

 - hp-wmi:
    - Add support for Victus 16-r0xxx (8BC2)

 - intel/vsec_tpmi:
    - Move debugfs register before creating devices
    - Prevent fault during unbind

 - lenovo-wmi-*:
    - Fix memory leak in lwmi_dev_evaluate_int()
    - Balance IDA id allocation and free
    - Balance component bind and unbind
    - Prevent sending uninitialized WMI arguments to the device

    [24 lines not shown]
DeltaFile
+138-156drivers/platform/x86/lenovo/wmi-other.c
+103-2drivers/platform/x86/lenovo/wmi-helpers.c
+48-21drivers/platform/x86/samsung-galaxybook.c
+43-2drivers/platform/x86/intel/plr_tpmi.c
+25-4drivers/platform/x86/intel/vsec_tpmi.c
+21-0drivers/platform/x86/lenovo/wmi-helpers.h
+378-18510 files not shown
+424-23216 files

Linux/linux fd6b566include/linux slab.h, lib rhashtable.c

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

Pull crypto fixes from Herbert Xu:

 - Fix potential dead-lock in rhashtable when used by xattr

 - Avoid calling kvfree on atomic path in rhashtable

* tag 'v7.1-p4' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
  rhashtable: Add bucket_table_free_atomic() helper
  mm/slab: Add kvfree_atomic() helper
  rhashtable: drop ht->mutex in rhashtable_free_and_destroy()
DeltaFile
+26-7lib/rhashtable.c
+16-0mm/slub.c
+3-0include/linux/slab.h
+45-73 files

Linux/linux 0a9c56ddrivers/gpu/drm/loongson lsdc_drv.c

drm/loongson: Use managed KMS polling

lsdc_pci_probe() initializes KMS polling before setting up vblank support,
requesting the IRQ and registering the DRM device. If any of those later
steps fails, probe returns without finalizing polling. The driver also
never finalizes polling on regular removal.

Use drmm_kms_helper_poll_init() so polling is tied to the DRM device
lifetime and automatically finalized on probe failure and device removal.

This issue was identified during our ongoing static-analysis research while
reviewing kernel code.

Fixes: f39db26c5428 ("drm: Add kms driver for loongson display controller")
Cc: stable at vger.kernel.org
Co-developed-by: Ijae Kim <ae878000 at gmail.com>
Signed-off-by: Ijae Kim <ae878000 at gmail.com>
Reviewed-by: Thomas Zimmermann <tzimmermann at suse.de>
Acked-by: Jianmin Lv <lvjianmin at loongson.cn>

    [4 lines not shown]
DeltaFile
+1-1drivers/gpu/drm/loongson/lsdc_drv.c
+1-11 files

Linux/linux 1bb5404. MAINTAINERS .mailmap

MAINTAINERS: update Tomasz Jeznach's email address

Switch from the previous work address to a linux.dev account,
as the work address is no longer actively monitored.

Signed-off-by: Tomasz Jeznach <tomasz.jeznach at linux.dev>
Signed-off-by: Joerg Roedel <joerg.roedel at amd.com>
DeltaFile
+1-1MAINTAINERS
+1-0.mailmap
+2-12 files

Linux/linux 8ef3f77drivers/iommu/generic_pt iommu_pt.h

iommupt: Check for missing PAGE_SIZE in the pgsize_bitmap

Sashiko pointed out that the driver could drop PAGE_SIZE from the
pgsize_bitmap. That is technically allowed but nothing does it, and
such an iommu_domain would not be used with the DMA API today.

Still, it is against the design and it is trivial to fix up. Lift
the PT_WARN_ON to the if branch and just skip the fast path.

Fixes: dcd6a011a8d5 ("iommupt: Add map_pages op")
Signed-off-by: Jason Gunthorpe <jgg at nvidia.com>
Reviewed-by: Pranjal Shrivastava <praan at google.com>
Reviewed-by: Samiullah Khawaja <skhawaja at google.com>
Tested-by: Josua Mayer <josua at solid-run.com>
Signed-off-by: Joerg Roedel <joerg.roedel at amd.com>
DeltaFile
+2-2drivers/iommu/generic_pt/iommu_pt.h
+2-21 files

Linux/linux 0735c54drivers/iommu iommu.c

iommu: Handle unmap error when iommu_debug is enabled

Sashiko noticed a latent bug where the map error flow called iommu_unmap()
which calls iommu_debug_unmap_begin()/iommu_debug_unmap_end() however
since this is an error path the map flow never actually established the
original iommu_debug_map() it will malfunction.

Lift the unmap error handling into iommu_map_nosync() and reorder it so
the trace_map()/iommu_debug_map() records the partial mapping and then
immediately unmaps it. This avoid creating the unbalanced tracking and
provides saner tracing instead of a unmap unmatched to any map.

Fixes: ccc21213f013 ("iommu: Add calls for IOMMU_DEBUG_PAGEALLOC")
Signed-off-by: Jason Gunthorpe <jgg at nvidia.com>
Reviewed-by: Pranjal Shrivastava <praan at google.com>
Reviewed-by: Samiullah Khawaja <skhawaja at google.com>
Reviewed-by: Mostafa Saleh <smostafa at google.com>
Tested-by: Josua Mayer <josua at solid-run.com>
Signed-off-by: Joerg Roedel <joerg.roedel at amd.com>
DeltaFile
+19-30drivers/iommu/iommu.c
+19-301 files

Linux/linux 5882951drivers/iommu/generic_pt iommu_pt.h

iommupt: Fix the end_index calculation in __map_range_leaf()

Sashiko noticed a mismatch of units in this math: num_leaves is
actually the number of leaf *entries* (so a 16-item contiguous leaf
is one num_leaves), while index is in items. The mismatch in maths
causes __map_range_leaf() to exit early instead of efficiently
filling a larger range of contiguous PTEs.

The early exit is caught by the functions above and then
__map_range_leaf() is re-invoked, so there is no functional issue.

Correct the misuse of units by adjusting num_leaves with the leaf
size and avoid the performance cost of looping externally.

There are also some mismatched types for num_leaves; simplify
things to remove the duplicated calculations.

Fixes: d6c65b0fd621 ("iommupt: Avoid rewalking during map")
Signed-off-by: Jason Gunthorpe <jgg at nvidia.com>

    [4 lines not shown]
DeltaFile
+13-7drivers/iommu/generic_pt/iommu_pt.h
+13-71 files

Linux/linux b948a87drivers/iommu iommu.c

iommu: Fix up map/unmap debugging for iommupt domains

Sashiko noticed a few issues in this path, and a few more were
found on review. Tidy them up further. These are intertwined
because the debug code depends on some of the WARN_ONs to function
right:

Lift into iommu_map_nosync():
- The might_sleep_if()
- 0 pgsize_bitmap WARN_ON
- Promote the illegal domain->type to a WARN_ON
- WARN_ON for illegal gfp flags

Then remove the return 0 since it is now safe to call
iommu_debug_map().

Lift into __iommu_unmap():
- 0 pgsize_bitmap WARN_ON
- Promote the illegal domain->type to a WARN_ON

    [14 lines not shown]
DeltaFile
+22-21drivers/iommu/iommu.c
+22-211 files

Linux/linux 6fc7e8adrivers/iommu iommu.c

iommu: Fix loss of errno on map failure for classic ops

A typo, likely from a rebase, inverted the condition and caused
errors to be lost. Fix it to be "if (ret)".

This was breaking iommu_create_device_direct_mappings() on drivers
that don't use iommupt and don't fully set up their domain in
alloc_pages() (i.e., SMMUv2). In this case the first call of
iommu_create_device_direct_mappings() should fail due to the
incompletely initialized domain. Since it wrongly returns success,
the second call to iommu_create_device_direct_mappings() doesn't
happen and IOMMU_RESV_DIRECT is never set up.

Cc: stable at vger.kernel.org
Fixes: d6c65b0fd621 ("iommupt: Avoid rewalking during map")
Reported-by: Josua Mayer <josua at solid-run.com>
Closes: https://lore.kernel.org/all/321c2e57-6a17-4aef-ba42-d2ebd577e472@solid-run.com/
Signed-off-by: Jason Gunthorpe <jgg at nvidia.com>
Reviewed-by: Pranjal Shrivastava <praan at google.com>

    [4 lines not shown]
DeltaFile
+1-1drivers/iommu/iommu.c
+1-11 files

Linux/linux 4141f46drivers/nvme/host ioctl.c pci.c, drivers/nvme/target auth.c Kconfig

Merge tag 'nvme-7.1-2026-05-14' of git://git.infradead.org/nvme into block-7.1

Pull NVMe fixes from Keith:

"- Fix memory leak on a passthrough integrity mapping failure (Keith)
 - Hide secrets behind debug option (Hannes)
 - Fix pci use-after-free for host memory buffer (Chia-Lin Kao)
 - Fix tcp taregt use-after-free for data digest  (Sagi)
 - Revert a mistaken quirk (Alan Cui)
 - Fix uevent and controller state race condition (Maurizio)
 - Fix apple submission queue re-initialization (Nick Chan)"

* tag 'nvme-7.1-2026-05-14' of git://git.infradead.org/nvme:
  nvme-apple: Reset q->sq_tail during queue init
  nvme: fix race condition between connected uevent and STARTED_ONCE flag
  Revert "nvme: add quirk NVME_QUIRK_IGNORE_DEV_SUBNQN for 144d:a808"
  nvmet-tcp: Fix potential UAF when ddgst mismatch
  nvme-pci: fix use-after-free in nvme_free_host_mem()
  nvmet-auth: Do not print DH-HMAC-CHAP secrets

    [2 lines not shown]
DeltaFile
+4-14drivers/nvme/host/ioctl.c
+8-5drivers/nvme/target/auth.c
+9-0drivers/nvme/target/Kconfig
+4-4drivers/nvme/host/pci.c
+5-1drivers/nvme/host/core.c
+3-1drivers/nvme/target/tcp.c
+33-251 files not shown
+34-257 files

Linux/linux 70eda68drivers/hid hid-core.c hid-appletb-kbd.c

Merge tag 'hid-for-linus-2026051401' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid

Pull HID fixes from Jiri Kosina:

 - fixes for a few OOB/UAF in several HID drivers (Florian Pradines, Lee
   Jones, Michael Zaidman, Rosalie Wanders, Sangyun Kim and Tomasz
   Pakuła)

 - more general sanitation of input data, dealing with potentially
   malicious hardware in hid-core (Benjamin Tissoires)

 - a few device-specific quirks and fixups

* tag 'hid-for-linus-2026051401' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid: (22 commits)
  HID: logitech-hidpp: Add support for newer Bluetooth keyboards
  HID: pidff: Fix integer overflow in pidff_rescale
  HID: i2c-hid: add reset quirk for BLTP7853 touchpad
  HID: core: introduce hid_safe_input_report()
  HID: pass the buffer size to hid_report_raw_event

    [16 lines not shown]
DeltaFile
+53-14drivers/hid/hid-core.c
+37-21drivers/hid/hid-appletb-kbd.c
+44-0drivers/hid/hid-lenovo-go-s.c
+39-1drivers/hid/hid-logitech-hidpp.c
+14-2drivers/hid/hid-ft260.c
+16-0drivers/hid/hid-magicmouse.c
+203-3822 files not shown
+280-8928 files

Linux/linux 48f76a1drivers/acpi button.c ac.c

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

Pull ACPI support fixes from Rafael Wysocki:
 "These fix several platform drivers that use the ACPI companion of the
  given platform device without checking its presence, which may lead to
  a NULL pointer dereference or other kind of malfunction if the driver
  is forced to match a device without an ACPI companion via driver
  override, and restore debug log level for some messages in the ACPI
  CPPC library:

   - Check ACPI_COMPANION() against NULL during probe in several core
     ACPI device drivers (Rafael Wysocki)

   - Restore log level of messages in amd_set_max_freq_ratio() (Mario
     Limonciello)"

* tag 'acpi-7.1-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
  ACPI: PAD: xen: Check ACPI_COMPANION() against NULL
  ACPI: driver: Check ACPI_COMPANION() against NULL during probe
  Revert "ACPI: CPPC: Adjust debug messages in amd_set_max_freq_ratio() to warn"
DeltaFile
+7-2drivers/acpi/button.c
+5-1drivers/acpi/ac.c
+5-1drivers/acpi/acpi_pad.c
+5-1drivers/acpi/acpi_tad.c
+5-1drivers/acpi/battery.c
+5-1drivers/acpi/ec.c
+32-710 files not shown
+76-1916 files

Linux/linux af149b6arch/x86/kernel/acpi cppc.c

Merge branch 'acpi-cppc'

Merge a revert of an ACPI CPPC commit that increased the log level of
some debug messages which turned out to be a bad idea:

 - Restore log level of messages in amd_set_max_freq_ratio() (Mario
   Limonciello)

* acpi-cppc:
  Revert "ACPI: CPPC: Adjust debug messages in amd_set_max_freq_ratio() to warn"
DeltaFile
+3-3arch/x86/kernel/acpi/cppc.c
+3-31 files