Skip to content
  1. Jun 29, 2025
  2. Jun 28, 2025
    • Linus Torvalds's avatar
      Merge tag 'i2c-for-6.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · dfba48a7
      Linus Torvalds authored
      Pull i2c fixes from Wolfram Sang:
      
       - imx: fix SMBus protocol compliance during block read
      
       - omap: fix error handling path in probe
      
       - robotfuzz, tiny-usb: prevent zero-length reads
      
       - x86, designware, amdisp: fix build error when modules are disabled
         (agreed to go in via i2c)
      
       - scx200_acb: fix build error because of missing HAS_IOPORT
      
      * tag 'i2c-for-6.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
        i2c: scx200_acb: depends on HAS_IOPORT
        i2c: omap: Fix an error handling path in omap_i2c_probe()
        platform/x86: Use i2c adapter name to fix build errors
        i2c: amd-isp: Initialize unique adapter name
        i2c: designware: Initialize adapter name only when not set
        i2c: tiny-usb: disable zero-length read messages
        i2c: robotfuzz-osif: disable zero-length read messages
        i2c: imx: fix emulated smbus block read
      dfba48a7
    • Linus Torvalds's avatar
      Merge tag 'trace-v6.16-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace · ded77901
      Linus Torvalds authored
      Pull tracing fix from Steven Rostedt:
      
       - Fix possible UAF on error path in filter_free_subsystem_filters()
      
         When freeing a subsystem filter, the filter for the subsystem is
         passed in to be freed and all the events within the subsystem will
         have their filter freed too. In order to free without waiting for RCU
         synchronization, list items are allocated to hold what is going to be
         freed to free it via a call_rcu(). If the allocation of these items
         fails, it will call the synchronization directly and free after that
         (causing a bit of delay for the user).
      
         The subsystem filter is first added to this list and then the filters
         for all the events under the subsystem. The bug is if one of the
         allocations of the list items for the event filters fail to allocate,
         it jumps to the "free_now" label which will free the subsystem
         filter, then all the items on the allocated list, and then the event
         filters that were not added to the list yet. But because the
         subsystem filter was added first, it gets freed twice.
      
         The solution is to add the subsystem filter after the events, and
         then if any of the allocations fail it will not try to free any of
         them twice
      
      * tag 'trace-v6.16-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
        tracing: Fix filter logic error
      ded77901
    • Linus Torvalds's avatar
      Merge tag 'loongarch-fixes-6.16-1' of... · 3a3de75a
      Linus Torvalds authored
      Merge tag 'loongarch-fixes-6.16-1' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
      
      Pull LoongArch fixes from Huacai Chen:
      
       - replace __ASSEMBLY__ with __ASSEMBLER__ in headers like others
      
       - fix build warnings about export.h
      
       - reserve the EFI memory map region for kdump
      
       - handle __init vs inline mismatches
      
       - fix some KVM bugs
      
      * tag 'loongarch-fixes-6.16-1' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson:
        LoongArch: KVM: Disable updating of "num_cpu" and "feature"
        LoongArch: KVM: Check validity of "num_cpu" from user space
        LoongArch: KVM: Check interrupt route from physical CPU
        LoongArch: KVM: Fix interrupt route update with EIOINTC
        LoongArch: KVM: Add address alignment check for IOCSR emulation
        LoongArch: KVM: Avoid overflow with array index
        LoongArch: Handle KCOV __init vs inline mismatches
        LoongArch: Reserve the EFI memory map region
        LoongArch: Fix build warnings about export.h
        LoongArch: Replace __ASSEMBLY__ with __ASSEMBLER__ in headers
      3a3de75a
    • Linus Torvalds's avatar
      Merge tag 'v6.16-rc3-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 · aaf724ed
      Linus Torvalds authored
      Pull smb client fixes from Steve French:
      
       - Multichannel reconnect lock ordering deadlock fix
      
       - Fix for regression in handling native Windows symlinks
      
       - Three smbdirect fixes:
           - oops in RDMA response processing
           - smbdirect memcpy issue
           - fix smbdirect regression with large writes (smbdirect test cases
             now all passing)
      
       - Fix for "FAILED_TO_PARSE" warning in trace-cmd report output
      
      * tag 'v6.16-rc3-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: Fix reading into an ITER_FOLIOQ from the smbdirect code
        cifs: Fix the smbd_response slab to allow usercopy
        smb: client: fix potential deadlock when reconnecting channels
        smb: client: remove \t from TP_printk statements
        smb: client: let smbd_post_send_iter() respect the peers max_send_size and transmit all data
        smb: client: fix regression with native SMB symlinks
      aaf724ed
    • Linus Torvalds's avatar
      Merge tag 'mm-hotfixes-stable-2025-06-27-16-56' of... · 0fd39af2
      Linus Torvalds authored
      Merge tag 'mm-hotfixes-stable-2025-06-27-16-56' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
      
      Pull misc fixes from Andrew Morton:
       "16 hotfixes.
      
        6 are cc:stable and the remainder address post-6.15 issues or aren't
        considered necessary for -stable kernels. 5 are for MM"
      
      * tag 'mm-hotfixes-stable-2025-06-27-16-56' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm:
        MAINTAINERS: add Lorenzo as THP co-maintainer
        mailmap: update Duje Mihanović's email address
        selftests/mm: fix validate_addr() helper
        crashdump: add CONFIG_KEYS dependency
        mailmap: correct name for a historical account of Zijun Hu
        mailmap: add entries for Zijun Hu
        fuse: fix runtime warning on truncate_folio_batch_exceptionals()
        scripts/gdb: fix dentry_name() lookup
        mm/damon/sysfs-schemes: free old damon_sysfs_scheme_filter->memcg_path on write
        mm/alloc_tag: fix the kmemleak false positive issue in the allocation of the percpu variable tag->counters
        lib/group_cpus: fix NULL pointer dereference from group_cpus_evenly()
        mm/hugetlb: remove unnecessary holding of hugetlb_lock
        MAINTAINERS: add missing files to mm page alloc section
        MAINTAINERS: add tree entry to mm init block
        mm: add OOM killer maintainer structure
        fs/proc/task_mmu: fix PAGE_IS_PFNZERO detection for the huge zero folio
      0fd39af2
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-5.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · 867b9987
      Linus Torvalds authored
      Pull RISC-V Fixes for 5.16-rc4
      
       - .rodata is no longer linkd into PT_DYNAMIC.
      
         It was not supposed to be there in the first place and resulted in
         invalid (but unused) entries. This manifests as at least warnings in
         llvm-readelf
      
       - A fix for runtime constants with all-0 upper 32-bits. This should
         only manifest on MMU=n kernels
      
       - A fix for context save/restore on systems using the T-Head vector
         extensions
      
       - A fix for a conflicting "+r"/"r" register constraint in the VDSO
         getrandom syscall wrapper, which is undefined behavior in clang
      
       - A fix for a missing register clobber in the RVV raid6 implementation.
      
         This manifests as a NULL pointer reference on some compilers, but
         could trigger in other ways
      
       - Misaligned accesses from userspace at faulting addresses are now
         handled correctly
      
       - A fix for an incorrect optimization that allowed access_ok() to mark
         invalid addresses as accessible, which can result in userspace
         triggering BUG()s
      
       - A few fixes for build warnings, and an update to Drew's email address
      
      * tag 'riscv-for-linus-5.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        riscv: export boot_cpu_hartid
        Revert "riscv: Define TASK_SIZE_MAX for __access_ok()"
        riscv: Fix sparse warning in vendor_extensions/sifive.c
        Revert "riscv: misaligned: fix sleeping function called during misaligned access handling"
        MAINTAINERS: Update Drew Fustini's email address
        RISC-V: uaccess: Wrap the get_user_8 uaccess macro
        raid6: riscv: Fix NULL pointer dereference caused by a missing clobber
        RISC-V: vDSO: Correct inline assembly constraints in the getrandom syscall wrapper
        riscv: vector: Fix context save/restore with xtheadvector
        riscv: fix runtime constant support for nommu kernels
        riscv: vdso: Exclude .rodata from the PT_DYNAMIC segment
      867b9987
    • Linus Torvalds's avatar
      Merge tag 'pci-v6.16-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci · fa33adca
      Linus Torvalds authored
      Pull PCI fix from Bjorn Helgaas:
      
       - Fix a PTM debugfs build error with CONFIG_DEBUG_FS=n &&
         CONFIG_PCIE_PTM=y (Manivannan Sadhasivam)
      
      * tag 'pci-v6.16-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pci/pci:
        PCI/PTM: Build debugfs code only if CONFIG_DEBUG_FS is enabled
      fa33adca
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2025-06-28' of https://gitlab.freedesktop.org/drm/kernel · 7abdafd2
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Regular weekly drm updates, nothing out of the ordinary, amdgpu, xe,
        i915 and a few misc bits. Seems about right for this time in the
        release cycle.
      
        core:
         - fix drm_writeback_connector_cleanup function signature
         - use correct HDMI audio bridge in drm_connector_hdmi_audio_init
      
        bridge:
         - SN65DSI86: fix HPD
      
        amdgpu:
         - Cleaner shader support for additional GFX9 GPUs
         - MES firmware compatibility fixes
         - Discovery error reporting fixes
         - SDMA6/7 userq fixes
         - Backlight fix
         - EDID sanity check
      
        i915:
         - Fix for SNPS PHY HDMI for 1080p@120Hz
         - Correct DP AUX DPCD probe address
         - Followup build fix for GCOV and AutoFDO enabled config
      
        xe:
         - Missing error check
         - Fix xe_hwmon_power_max_write
         - Move flushes
         - Explicitly exit CT safe mode on unwind
         - Process deferred GGTT node removals on device unwind"
      
      * tag 'drm-fixes-2025-06-28' of https://gitlab.freedesktop.org/drm/kernel:
        drm/xe: Process deferred GGTT node removals on device unwind
        drm/xe/guc: Explicitly exit CT safe mode on unwind
        drm/xe: move DPT l2 flush to a more sensible place
        drm/xe: Move DSB l2 flush to a more sensible place
        drm/bridge: ti-sn65dsi86: Add HPD for DisplayPort connector type
        drm/i915: fix build error some more
        drm/xe/hwmon: Fix xe_hwmon_power_max_write
        drm/xe/display: Add check for alloc_ordered_workqueue()
        drm/amd/display: Add sanity checks for drm_edid_raw()
        drm/amd/display: Fix AMDGPU_MAX_BL_LEVEL value
        drm/amdgpu/sdma7: add ucode version checks for userq support
        drm/amdgpu/sdma6: add ucode version checks for userq support
        drm/amd: Adjust output for discovery error handling
        drm/amdgpu/mes: add compatibility checks for set_hw_resource_1
        drm/amdgpu/gfx9: Add Cleaner Shader Support for GFX9.x GPUs
        drm/bridge-connector: Fix bridge in drm_connector_hdmi_audio_init()
        drm/dp: Change AUX DPCD probe address from DPCD_REV to LANE0_1_STATUS
        drm/i915/snps_hdmi_pll: Fix 64-bit divisor truncation by using div64_u64
        drm: writeback: Fix drm_writeback_connector_cleanup signature
      7abdafd2
    • Linus Torvalds's avatar
      Merge tag 'cxl-fixes-6.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl · 26fd9f7b
      Linus Torvalds authored
      Pull Compute Express Link (CXL) fixes from Dave Jiang:
       "These fixes address a few issues in the CXL subsystem, including
        dealing with some bugs in the CXL EDAC and RAS drivers:
      
         - Fix return value of cxlctl_validate_set_features()
      
         - Fix min_scrub_cycle of a region miscaculation and add additional
           documentation
      
         - Fix potential memory leak issues for CXL EDAC
      
         - Fix CPER handler device confusion for CXL RAS
      
         - Fix using wrong repair type to check DRAM event record"
      
      * tag 'cxl-fixes-6.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl:
        cxl/edac: Fix using wrong repair type to check dram event record
        cxl/ras: Fix CPER handler device confusion
        cxl/edac: Fix potential memory leak issues
        cxl/Documentation: Add more description about min/max scrub cycle
        cxl/edac: Fix the min_scrub_cycle of a region miscalculation
        cxl: fix return value in cxlctl_validate_set_features()
      26fd9f7b
    • Linus Torvalds's avatar
      Merge tag 'libcrypto-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux · 5683cd63
      Linus Torvalds authored
      Pull crypto library fix from Eric Biggers:
       "Fix a regression where the purgatory code sometimes fails to build"
      
      * tag 'libcrypto-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiggers/linux:
        lib/crypto: sha256: Mark sha256_choose_blocks as __always_inline
      5683cd63
  3. Jun 27, 2025
    • Dave Airlie's avatar
      Merge tag 'drm-misc-fixes-2025-06-26' of... · 9fbceb37
      Dave Airlie authored
      Merge tag 'drm-misc-fixes-2025-06-26' of https://gitlab.freedesktop.org/drm/misc/kernel
      
       into drm-fixes
      
      drm-misc-fixes for v6.16-rc4:
      - Fix function signature of drm_writeback_connector_cleanup.
      - Use correct HDMI audio bridge in drm_connector_hdmi_audio_init.
      - Make HPD work on SN65DSI86.
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Link: https://lore.kernel.org/r/3dd1d5e1-73b6-4b0c-a208-f7d6235cf530@linux.intel.com
      9fbceb37
    • Edward Adam Davis's avatar
      tracing: Fix filter logic error · 6921d1e0
      Edward Adam Davis authored
      If the processing of the tr->events loop fails, the filter that has been
      added to filter_head will be released twice in free_filter_list(&head->rcu)
      and __free_filter(filter).
      
      After adding the filter of tr->events, add the filter to the filter_head
      process to avoid triggering uaf.
      
      Link: https://lore.kernel.org/tencent_4EF87A626D702F816CD0951CE956EC32CD0A@qq.com
      
      
      Fixes: a9d0aab5 ("tracing: Fix regression of filter waiting a long time on RCU synchronization")
      Reported-by: default avatar <syzbot+daba72c4af9915e9c894@syzkaller.appspotmail.com>
      Closes: https://syzkaller.appspot.com/bug?extid=daba72c4af9915e9c894
      
      
      Tested-by: default avatar <syzbot+daba72c4af9915e9c894@syzkaller.appspotmail.com>
      Acked-by: default avatarMasami Hiramatsu (Google) <mhiramat@kernel.org>
      Signed-off-by: default avatarEdward Adam Davis <eadavis@qq.com>
      Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
      6921d1e0
    • Linus Torvalds's avatar
      Merge tag 'acpi-6.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 35e261cd
      Linus Torvalds authored
      Pull ACPI fix from Rafael Wysocki:
       "Revert a commit that attempted to fix a memory leak in an error code
        path and introduced a different issue (Zhe Qiao)"
      
      * tag 'acpi-6.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        Revert "PCI/ACPI: Fix allocated memory release on error in pci_acpi_scan_root()"
      35e261cd
    • Linus Torvalds's avatar
      Merge tag 'block-6.16-20250626' of git://git.kernel.dk/linux · e5403415
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - Fixes for ublk:
            - fix C++ narrowing warnings in the uapi header
            - update/improve UBLK_F_SUPPORT_ZERO_COPY comment in uapi header
            - fix for the ublk ->queue_rqs() implementation, limiting a batch
              to just the specific task AND ring
            - ublk_get_data() error handling fix
            - sanity check more arguments in ublk_ctrl_add_dev()
            - selftest addition
      
       - NVMe pull request via Christoph:
            - reset delayed remove_work after reconnect
            - fix atomic write size validation
      
       - Fix for a warning introduced in bdev_count_inflight_rw() in this
         merge window
      
      * tag 'block-6.16-20250626' of git://git.kernel.dk/linux:
        block: fix false warning in bdev_count_inflight_rw()
        ublk: sanity check add_dev input for underflow
        nvme: fix atomic write size validation
        nvme: refactor the atomic write unit detection
        nvme: reset delayed remove_work after reconnect
        ublk: setup ublk_io correctly in case of ublk_get_data() failure
        ublk: update UBLK_F_SUPPORT_ZERO_COPY comment in UAPI header
        ublk: fix narrowing warnings in UAPI header
        selftests: ublk: don't take same backing file for more than one ublk devices
        ublk: build batch from IOs in same io_ring_ctx and io task
      e5403415
    • Linus Torvalds's avatar
      Merge tag 'io_uring-6.16-20250626' of git://git.kernel.dk/linux · 0a47e02d
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
      
       - Two tweaks for a recent fix: fixing a memory leak if multiple iovecs
         were initially mapped but only the first was used and hence turned
         into a UBUF rathan than an IOVEC iterator, and catching a case where
         a retry would be done even if the previous segment wasn't full
      
       - Small series fixing an issue making the vm unhappy if debugging is
         turned on, hitting a VM_BUG_ON_PAGE()
      
       - Fix a resource leak in io_import_dmabuf() in the error handling case,
         which is a regression in this merge window
      
       - Mark fallocate as needing to be write serialized, as is already done
         for truncate and buffered writes
      
      * tag 'io_uring-6.16-20250626' of git://git.kernel.dk/linux:
        io_uring/kbuf: flag partial buffer mappings
        io_uring/net: mark iov as dynamically allocated even for single segments
        io_uring: fix resource leak in io_import_dmabuf()
        io_uring: don't assume uaddr alignment in io_vec_fill_bvec
        io_uring/rsrc: don't rely on user vaddr alignment
        io_uring/rsrc: fix folio unpinning
        io_uring: make fallocate be hashed work
      0a47e02d
    • Linus Torvalds's avatar
      Merge tag 'ata-6.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux · 9c7331f1
      Linus Torvalds authored
      Pull ata fix from Niklas Cassel:
      
       - Use the correct DMI identifier for ASUSPRO-D840SA LPM quirk such that
         the quirk actually gets applied (me)
      
      * tag 'ata-6.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/libata/linux:
        ata: ahci: Use correct DMI identifier for ASUSPRO-D840SA LPM quirk
      9c7331f1
    • Linus Torvalds's avatar
      Merge tag 's390-6.16-3' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · 51df97f9
      Linus Torvalds authored
      Pull s390 fixes from Alexander Gordeev:
      
       - Fix incorrectly dropped dereferencing of the stack nth entry
         introduced with a previous KASAN false positive fix
      
       - Use a proper memdup_array_user() helper to prevent overflow in a
         protected key size calculation
      
      * tag 's390-6.16-3' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
        s390/ptrace: Fix pointer dereferencing in regs_get_kernel_stack_nth()
        s390/pkey: Prevent overflow in size calculation for memdup_user()
      51df97f9
    • Linus Torvalds's avatar
      Merge tag 'sound-6.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 9c2f9705
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "A collection of small fixes again:
      
         - A regression fix for hibernation bug in ASoC SoundWire
      
         - Fixes for the new Qualcomm USB offload stuff
      
         - A potential OOB access fix in USB-audio
      
         - A potential memleadk fix in ASoC Intel
      
         - Quirks for HD-audio and ASoC AMD ACP"
      
      * tag 'sound-6.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
        ALSA: hda/realtek: Fix built-in mic on ASUS VivoBook X507UAR
        ALSA: usb: qcom: fix NULL pointer dereference in qmi_stop_session
        ASoC: SOF: Intel: hda: Use devm_kstrdup() to avoid memleak.
        ASoC: rt721-sdca: fix boost gain calculation error
        ALSA: qc_audio_offload: Fix missing error code in prepare_qmi_response()
        ALSA: hda/realtek: Add mic-mute LED setup for ASUS UM5606
        ALSA: usb-audio: Fix out-of-bounds read in snd_usb_get_audioformat_uac3()
        ALSA: hda/realtek: fix mute/micmute LEDs for HP EliteBook 6 G1a
        ASoC: amd: ps: fix for soundwire failures during hibernation exit sequence
        ASoC: amd: yc: Add DMI quirk for Lenovo IdeaPad Slim 5 15
        ASoC: amd: yc: add quirk for Acer Nitro ANV15-41 internal mic
        ASoC: qcom: sm8250: Fix possibly undefined reference
        ALSA: hda/realtek - Enable mute LED on HP Pavilion Laptop 15-eg100
        ALSA: hda/realtek: Add quirks for some Clevo laptops
      9c2f9705
    • Johannes Berg's avatar
      i2c: scx200_acb: depends on HAS_IOPORT · f40213cd
      Johannes Berg authored
      
      
      It already depends on X86_32, but that's also set for ARCH=um.
      Recent changes made UML no longer have IO port access since
      it's not needed, but this driver uses it. Build it only for
      HAS_IOPORT. This is pretty much the same as depending on X86,
      but on the off-chance that HAS_IOPORT will ever be optional
      on x86 HAS_IOPORT is the real prerequisite.
      
      Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
      f40213cd
    • bibo-mao's avatar
      LoongArch: KVM: Disable updating of "num_cpu" and "feature" · 955853cf
      bibo-mao authored
      
      
      Property "num_cpu" and "feature" are read-only once eiointc is created,
      which are set with KVM_DEV_LOONGARCH_EXTIOI_GRP_CTRL attr group before
      device creation.
      
      Attr group KVM_DEV_LOONGARCH_EXTIOI_GRP_SW_STATUS is to update register
      and software state for migration and reset usage, property "num_cpu" and
      "feature" can not be update again if it is created already.
      
      Here discard write operation with property "num_cpu" and "feature" in
      attr group KVM_DEV_LOONGARCH_EXTIOI_GRP_CTRL.
      
      Cc: stable@vger.kernel.org
      Fixes: 1ad7efa5 ("LoongArch: KVM: Add EIOINTC user mode read and write functions")
      Signed-off-by: bibo-mao's avatarBibo Mao <maobibo@loongson.cn>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      955853cf
    • bibo-mao's avatar
      LoongArch: KVM: Check validity of "num_cpu" from user space · cc8d5b20
      bibo-mao authored
      
      
      The maximum supported cpu number is EIOINTC_ROUTE_MAX_VCPUS about
      irqchip EIOINTC, here add validation about cpu number to avoid array
      pointer overflow.
      
      Cc: stable@vger.kernel.org
      Fixes: 1ad7efa5 ("LoongArch: KVM: Add EIOINTC user mode read and write functions")
      Signed-off-by: bibo-mao's avatarBibo Mao <maobibo@loongson.cn>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      cc8d5b20
    • bibo-mao's avatar
      LoongArch: KVM: Check interrupt route from physical CPU · 45515c64
      bibo-mao authored
      
      
      With EIOINTC interrupt controller, physical CPU ID is set for irq route.
      However the function kvm_get_vcpu() is used to get destination vCPU when
      delivering irq. With API kvm_get_vcpu(), the logical CPU ID is used.
      
      With API kvm_get_vcpu_by_cpuid(), vCPU ID can be searched from physical
      CPU ID.
      
      Cc: stable@vger.kernel.org
      Fixes: 3956a52b ("LoongArch: KVM: Add EIOINTC read and write functions")
      Signed-off-by: bibo-mao's avatarBibo Mao <maobibo@loongson.cn>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      45515c64
    • bibo-mao's avatar
      LoongArch: KVM: Fix interrupt route update with EIOINTC · c34bbc2c
      bibo-mao authored
      
      
      With function eiointc_update_sw_coremap(), there is forced assignment
      like val = *(u64 *)pvalue. Parameter pvalue may be pointer to char type
      or others, there is problem with forced assignment with u64 type.
      
      Here the detailed value is passed rather address pointer.
      
      Cc: stable@vger.kernel.org
      Fixes: 3956a52b ("LoongArch: KVM: Add EIOINTC read and write functions")
      Signed-off-by: bibo-mao's avatarBibo Mao <maobibo@loongson.cn>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      c34bbc2c
    • bibo-mao's avatar
      LoongArch: KVM: Add address alignment check for IOCSR emulation · 9159c5e7
      bibo-mao authored
      
      
      IOCSR instruction supports 1/2/4/8 bytes access, the address should be
      naturally aligned with its access size. Here address alignment check is
      added in the EIOINTC kernel emulation.
      
      Cc: stable@vger.kernel.org
      Fixes: 3956a52b ("LoongArch: KVM: Add EIOINTC read and write functions")
      Signed-off-by: bibo-mao's avatarBibo Mao <maobibo@loongson.cn>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      9159c5e7
    • Wolfram Sang's avatar
      Merge tag 'i2c-host-fixes-6.16-rc4' of... · 48e29133
      Wolfram Sang authored
      Merge tag 'i2c-host-fixes-6.16-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux into i2c/for-current
      
      i2c-host fixes for v6.16-rc4
      
      - imx: fix SMBus protocol compliance during block read
      - omap: fix error handling path in probe
      - robotfuzz, tiny-usb: prevent zero-length reads
      - x86, designware, amdisp: fix build error when modules are
        disabled
      48e29133
    • Linus Torvalds's avatar
      Merge tag 'v6.16-p6' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · 67a99386
      Linus Torvalds authored
      Pull crypto fix from Herbert Xu:
       "This fixes a regression where wp512 can no longer be used with hmac"
      
      * tag 'v6.16-p6' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
        crypto: wp512 - Use API partial block handling
      67a99386
    • Linus Torvalds's avatar
      Merge tag 'bcachefs-2025-06-26' of git://evilpiepirate.org/bcachefs · 6f2a71a9
      Linus Torvalds authored
      Pull bcachefs fixes from Kent Overstreet:
      
       - Lots of small check/repair fixes, primarily in subvol loop and
         directory structure loop (when involving snapshots).
      
       - Fix a few 6.16 regressions: rare UAF in the foreground allocator path
         when taking a transaction restart from the transaction bump
         allocator, and some small fallout from the change to log the error
         being corrected in the journal when repairing errors, also some
         fallout from the btree node read error logging improvements.
      
         (Alan, Bharadwaj)
      
       - New option: journal_rewind
      
         This lets the entire filesystem be reset to an earlier point in time.
      
         Note that this is only a disaster recovery tool, and right now there
         are major caveats to using it (discards should be disabled, in
         particular), but it successfully restored the filesystem of one of
         the users who was bit by the subvolume deletion bug and didn't have
         backups. I'll likely be making some changes to the discard path in
         the future to make this a reliable recovery tool.
      
       - Some new btree iterator tracepoints, for tracking down some
         livelock-ish behaviour we've been seeing in the main data write path.
      
      * tag 'bcachefs-2025-06-26' of git://evilpiepirate.org/bcachefs: (51 commits)
        bcachefs: Plumb correct ip to trans_relock_fail tracepoint
        bcachefs: Ensure we rewind to run recovery passes
        bcachefs: Ensure btree node scan runs before checking for scanned nodes
        bcachefs: btree_root_unreadable_and_scan_found_nothing should not be autofix
        bcachefs: fix bch2_journal_keys_peek_prev_min() underflow
        bcachefs: Use wait_on_allocator() when allocating journal
        bcachefs: Check for bad write buffer key when moving from journal
        bcachefs: Don't unlock the trans if ret doesn't match BCH_ERR_operation_blocked
        bcachefs: Fix range in bch2_lookup_indirect_extent() error path
        bcachefs: fix spurious error_throw
        bcachefs: Add missing bch2_err_class() to fileattr_set()
        bcachefs: Add missing key type checks to check_snapshot_exists()
        bcachefs: Don't log fsck err in the journal if doing repair elsewhere
        bcachefs: Fix *__bch2_trans_subbuf_alloc() error path
        bcachefs: Fix missing newlines before ero
        bcachefs: fix spurious error in read_btree_roots()
        bcachefs: fsck: Fix oops in key_visible_in_snapshot()
        bcachefs: fsck: fix unhandled restart in topology repair
        bcachefs: fsck: Fix check_directory_structure when no check_dirents
        bcachefs: Fix restart handling in btree_node_scrub_work()
        ...
      6f2a71a9
    • Linus Torvalds's avatar
      Merge tag 'hid-for-linus-2025062701' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid · 8a20830f
      Linus Torvalds authored
      Pull HID fixes from Jiri Kosina:
      
       - fix for stalls during suspend/resume cycles with hid-nintendo (Daniel
         J. Ogorchock)
      
       - memory leak and reference count fixes in hid-wacom and in-appletb-kdb
         (Qasim Ijaz)
      
       - race condition (leading to kernel crash) fix during device removal in
         hid-wacom (Thomas Zeitlhofer)
      
       - fix for missed interrupt in intel-thc-hid (Intel-thc-hid:)
      
       - support for a bunch of new device IDs
      
      * tag 'hid-for-linus-2025062701' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid:
        HID: lenovo: Add support for ThinkPad X1 Tablet Thin Keyboard Gen2
        HID: appletb-kbd: fix "appletb_backlight" backlight device reference counting
        HID: wacom: fix crash in wacom_aes_battery_handler()
        HID: intel-ish-hid: ipc: Add Wildcat Lake PCI device ID
        hid: intel-ish-hid: Use PCI_DEVICE_DATA() macro for ISH device table
        HID: lenovo: Restrict F7/9/11 mode to compact keyboards only
        HID: Add IGNORE quirk for SMARTLINKTECHNOLOGY
        HID: input: lower message severity of 'No inputs registered, leaving' to debug
        HID: quirks: Add quirk for 2 Chicony Electronics HP 5MP Cameras
        HID: Intel-thc-hid: Intel-quicki2c: Enhance QuickI2C reset flow
        HID: nintendo: avoid bluetooth suspend/resume stalls
        HID: wacom: fix kobject reference count leak
        HID: wacom: fix memory leak on sysfs attribute creation failure
        HID: wacom: fix memory leak on kobject creation failure
      8a20830f
  4. Jun 26, 2025
Loading