Skip to content
Snippets Groups Projects
  1. Jan 16, 2025
  2. Jan 15, 2025
  3. Jan 12, 2025
    • Linus Torvalds's avatar
      Linux 6.13-rc7 · 5bc55a33
      Linus Torvalds authored
      v6.13-rc7
      5bc55a33
    • Linus Torvalds's avatar
      Merge tag 'char-misc-6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · 0cbe1047
      Linus Torvalds authored
      Pull char/misc/IIO driver fixes from Greg KH:
       "Here are a bunch of small IIO and interconnect and other driver fixes
        to resolve reported issues. Included in here are:
      
         - loads of iio driver fixes as a result of an audit of places where
          uninitialized data would leak to userspace.
      
         - other smaller, and normal, iio driver fixes.
      
         - mhi driver fix
      
         - interconnect driver fixes
      
         - pci1xxxx driver fix
      
        All of these have been in linux-next for a while with no reported
        issues"
      
      * tag 'char-misc-6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (32 commits)
        misc: microchip: pci1xxxx: Resolve return code mismatch during GPIO set config
        misc: microchip: pci1xxxx: Resolve kernel panic during GPIO IRQ handling
        interconnect: icc-clk: check return values of devm_kasprintf()
        interconnect: qcom: icc-rpm: Set the count member before accessing the flex array
        iio: adc: ti-ads1119: fix sample size in scan struct for triggered buffer
        iio: temperature: tmp006: fix information leak in triggered buffer
        iio: inkern: call iio_device_put() only on mapped devices
        iio: adc: ad9467: Fix the "don't allow reading vref if not available" case
        iio: adc: at91: call input_free_device() on allocated iio_dev
        iio: adc: ad7173: fix using shared static info struct
        iio: adc: ti-ads124s08: Use gpiod_set_value_cansleep()
        iio: adc: ti-ads1119: fix information leak in triggered buffer
        iio: pressure: zpa2326: fix information leak in triggered buffer
        iio: adc: rockchip_saradc: fix information leak in triggered buffer
        iio: imu: kmx61: fix information leak in triggered buffer
        iio: light: vcnl4035: fix information leak in triggered buffer
        iio: light: bh1745: fix information leak in triggered buffer
        iio: adc: ti-ads8688: fix information leak in triggered buffer
        iio: dummy: iio_simply_dummy_buffer: fix information leak in triggered buffer
        iio: test: Fix GTS test config
        ...
      0cbe1047
    • Linus Torvalds's avatar
      Merge tag 'driver-core-6.13-rc7' of... · 083f9fac
      Linus Torvalds authored
      Merge tag 'driver-core-6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
      
      Pull driver core and debugfs fixes from Greg KH:
       "Here are some small driver core and debugfs fixes that resolve some
        reported problems:
      
         - debugfs runtime error reporting fixes
      
         - topology cpumask race-condition fix
      
         - MAINTAINERS file email update
      
        All of these have been in linux-next this week with no reported
        issues"
      
      * tag 'driver-core-6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
        fs: debugfs: fix open proxy for unsafe files
        MAINTAINERS: align Danilo's maintainer entries
        topology: Keep the cpumask unchanged when printing cpumap
        debugfs: fix missing mutex_destroy() in short_fops case
        fs: debugfs: differentiate short fops with proxy ops
      083f9fac
    • Linus Torvalds's avatar
      Merge tag 'staging-6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · 91fff6fa
      Linus Torvalds authored
      Pull staging driver fixes from Greg KH:
       "Here are some small staging driver fixes that resolve some reported
        issues and have been in my tree for too long due to the holiday break.
        They resolve the following issues:
      
         - lots of gpib build-time fixes as reported by testers and 0-day
      
         - gpib logical fixes
      
         - mailmap fix
      
        All of these have been in linux-next for a while, with no reported
        issues other than the duplicated change"
      
      * tag 'staging-6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
        staging: gpib: mite: remove unused global functions
        staging: gpib: refer to correct config symbol in tnt4882 Makefile
        mailmap: update Bingwu Zhang's email address
        staging: gpib: fix address space mixup
        staging: gpib: use ioport_map
        staging: gpib: fix pcmcia dependencies
        staging: gpib: add module author and description fields
        staging: gpib: fix Makefiles
        staging: gpib: make global 'usec_diff' functions static
        staging: gpib: Modify mismatched function name
        staging: gpib: Add lower bound check for secondary address
        staging: gpib: Fix erroneous removal of blank before newline
      91fff6fa
    • Linus Torvalds's avatar
      Merge tag 'tty-6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · 4bd9e3b4
      Linus Torvalds authored
      Pull serial driver fixes from Greg KH:
       "Here are three small serial driver fixes tree. They resolve some
        reported issues:
      
         - stm32 break control fix
      
         - 8250 runtime pm usage counter fix
      
         - imx driver locking fix
      
        All have been in my tree and linux-next for three weeks now, with no
        reported issues"
      
      * tag 'tty-6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        serial: stm32: use port lock wrappers for break control
        serial: imx: Use uart_port_lock_irq() instead of uart_port_lock()
        tty: serial: 8250: Fix another runtime PM usage counter underflow
      4bd9e3b4
    • Linus Torvalds's avatar
      Merge tag 'usb-6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 196856db
      Linus Torvalds authored
      Pull USB fixes from Greg KH:
       "Here are some small USB driver fixes and new device ids for 6.13-rc7.
        Included in here are:
      
         - usb serial new device ids
      
         - typec bugfixes for reported issues
      
         - dwc3 driver fixes
      
         - chipidea driver fixes
      
         - gadget driver fixes
      
         - other minor fixes for reported problems.
      
        All of these have been in linux-next for a while, with no reported
        issues"
      
      * tag 'usb-6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
        USB: serial: option: add Neoway N723-EA support
        USB: serial: option: add MeiG Smart SRM815
        USB: serial: cp210x: add Phoenix Contact UPS Device
        usb: typec: fix pm usage counter imbalance in ucsi_ccg_sync_control()
        usb-storage: Add max sectors quirk for Nokia 208
        usb: gadget: midi2: Reverse-select at the right place
        usb: gadget: f_fs: Remove WARN_ON in functionfs_bind
        USB: core: Disable LPM only for non-suspended ports
        usb: fix reference leak in usb_new_device()
        usb: typec: tcpci: fix NULL pointer issue on shared irq case
        usb: gadget: u_serial: Disable ep before setting port to null to fix the crash caused by port being null
        usb: chipidea: ci_hdrc_imx: decrement device's refcount in .remove() and in the error path of .probe()
        usb: typec: ucsi: Set orientation as none when connector is unplugged
        usb: gadget: configfs: Ignore trailing LF for user strings to cdev
        USB: usblp: return error when setting unsupported protocol
        usb: gadget: f_uac2: Fix incorrect setting of bNumEndpoints
        usb: typec: tcpm/tcpci_maxim: fix error code in max_contaminant_read_resistance_kohm()
        usb: host: xhci-plat: set skip_phy_initialization if software node has XHCI_SKIP_PHY_INIT property
        usb: dwc3-am62: Disable autosuspend during remove
        usb: dwc3: gadget: fix writing NYET threshold
      196856db
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · be548645
      Linus Torvalds authored
      Pull kvm fixes from Paolo Bonzini:
       "The largest part here is for KVM/PPC, where a NULL pointer dereference
        was introduced in the 6.13 merge window and is now fixed.
      
        There's some "holiday-induced lateness", as the s390 submaintainer put
        it, but otherwise things looks fine.
      
        s390:
      
         - fix a latent bug when the kernel is compiled in debug mode
      
         - two small UCONTROL fixes and their selftests
      
        arm64:
      
         - always check page state in hyp_ack_unshare()
      
         - align set_id_regs selftest with the fact that ASIDBITS field is RO
      
         - various vPMU fixes for bugs that only affect nested virt
      
        PPC e500:
      
         - Fix a mostly impossible (but just wrong) case where IRQs were never
           re-enabled
      
         - Observe host permissions instead of mapping readonly host pages as
           guest-writable. This fixes a NULL-pointer dereference in 6.13
      
         - Replace brittle VMA-based attempts at building huge shadow TLB
           entries with PTE lookups"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        KVM: e500: perform hugepage check after looking up the PFN
        KVM: e500: map readonly host pages for read
        KVM: e500: track host-writability of pages
        KVM: e500: use shadow TLB entry as witness for writability
        KVM: e500: always restore irqs
        KVM: s390: selftests: Add has device attr check to uc_attr_mem_limit selftest
        KVM: s390: selftests: Add ucontrol gis routing test
        KVM: s390: Reject KVM_SET_GSI_ROUTING on ucontrol VMs
        KVM: s390: selftests: Add ucontrol flic attr selftests
        KVM: s390: Reject setting flic pfault attributes on ucontrol VMs
        KVM: s390: vsie: fix virtual/physical address in unpin_scb()
        KVM: arm64: Only apply PMCR_EL0.P to the guest range of counters
        KVM: arm64: nv: Reload PMU events upon MDCR_EL2.HPME change
        KVM: arm64: Use KVM_REQ_RELOAD_PMU to handle PMCR_EL0.E change
        KVM: arm64: Add unified helper for reprogramming counters by mask
        KVM: arm64: Always check the state from hyp_ack_unshare()
        KVM: arm64: Fix set_id_regs selftest for ASIDBITS becoming unwritable
      be548645
    • Linus Torvalds's avatar
      Merge tag 'perf_urgent_for_v6.13_rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · a603abe3
      Linus Torvalds authored
      Pull perf fix from Borislav Petkov:
      
       - Fix a #GP in the perf user callchain code caused by a race between
         uprobe freeing the task and the bpf profiler unwinding the task's
         user stack
      
      * tag 'perf_urgent_for_v6.13_rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        uprobes: Fix race in uprobe_free_utask
      a603abe3
    • Linus Torvalds's avatar
      Merge tag 'x86_urgent_for_v6.13_rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · f31acaef
      Linus Torvalds authored
      Pull x86 fixes from Borislav Petkov:
      
       - Check whether shadow stack is active before using the ptrace regset
         getter
      
       - Remove a wrong BUG_ON in the early static call code which breaks Xen
         PVH when booting as dom0
      
      * tag 'x86_urgent_for_v6.13_rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/fpu: Ensure shadow stack is active before "getting" registers
        x86/static-call: Remove early_boot_irqs_disabled check to fix Xen PVH dom0
      f31acaef
    • Paolo Bonzini's avatar
      Merge tag 'kvm-s390-master-6.13-1' of... · a5546c2f
      Paolo Bonzini authored
      Merge tag 'kvm-s390-master-6.13-1' of https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux into HEAD
      
      KVM: s390: three small bugfixes
      
      Fix a latent bug when the kernel is compiled in debug mode.
      Two small UCONTROL fixes and their selftests.
      a5546c2f
    • Paolo Bonzini's avatar
      Merge tag 'kvmarm-fixes-6.13-3' of... · 5c99a684
      Paolo Bonzini authored
      Merge tag 'kvmarm-fixes-6.13-3' of https://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD
      
      KVM/arm64 changes for 6.13, part #3
      
       - Always check page state in hyp_ack_unshare()
      
       - Align set_id_regs selftest with the fact that ASIDBITS field is RO
      
       - Various vPMU fixes for bugs that only affect nested virt
      5c99a684
    • Paolo Bonzini's avatar
      Merge branch 'kvm-e500-check-writable-pfn' into HEAD · 71b7bf17
      Paolo Bonzini authored
      The new __kvm_faultin_pfn() function is upset by the fact that e500
      KVM ignores host page permissions - __kvm_faultin requires a "writable"
      outgoing argument, but e500 KVM is passing NULL.
      
      While a simple fix would be possible that simply allows writable to
      be NULL, it is quite ugly to have e500 KVM ignore completely the host
      permissions and map readonly host pages as guest-writable.  Merge a more
      complete fix and remove the VMA-based attempts at building huge shadow TLB
      entries.  Using a PTE lookup, similar to what is done for x86, is better
      and works with remap_pfn_range() because it does not assume that VM_PFNMAP
      areas are contiguous.  Note that the same incorrect logic is there in
      ARM's get_vma_page_shift() and RISC-V's kvm_riscv_gstage_ioremap().
      
      Fortunately, for e500 most of the code is already there; it just has to
      be changed to compute the range from find_linux_pte()'s output rather
      than find_vma().  The new code works for both VM_PFNMAP and hugetlb
      mappings, so the latter is removed.
      
      Patches 2-5 were tested by the reporter, Christian Zigotzky.  Since
      the difference with v1 is minimal, I am going to send it to Linus
      today.
      71b7bf17
    • Paolo Bonzini's avatar
      KVM: e500: perform hugepage check after looking up the PFN · 55f4db79
      Paolo Bonzini authored
      
      e500 KVM tries to bypass __kvm_faultin_pfn() in order to map VM_PFNMAP
      VMAs as huge pages.  This is a Bad Idea because VM_PFNMAP VMAs could
      become noncontiguous as a result of callsto remap_pfn_range().
      
      Instead, use the already existing host PTE lookup to retrieve a
      valid host-side mapping level after __kvm_faultin_pfn() has
      returned.  Then find the largest size that will satisfy the
      guest's request while staying within a single host PTE.
      
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      55f4db79
    • Paolo Bonzini's avatar
      KVM: e500: map readonly host pages for read · 03b755b2
      Paolo Bonzini authored
      
      The new __kvm_faultin_pfn() function is upset by the fact that e500 KVM
      ignores host page permissions - __kvm_faultin requires a "writable"
      outgoing argument, but e500 KVM is nonchalantly passing NULL.
      
      If the host page permissions do not include writability, the shadow
      TLB entry is forcibly mapped read-only.
      
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      03b755b2
    • Paolo Bonzini's avatar
      KVM: e500: track host-writability of pages · f2104bf2
      Paolo Bonzini authored
      
      Add the possibility of marking a page so that the UW and SW bits are
      force-cleared.  This is stored in the private info so that it persists
      across multiple calls to kvmppc_e500_setup_stlbe.
      
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      f2104bf2
    • Paolo Bonzini's avatar
      KVM: e500: use shadow TLB entry as witness for writability · e97fbb43
      Paolo Bonzini authored
      
      kvmppc_e500_ref_setup is returning whether the guest TLB entry is writable,
      which is than passed to kvm_release_faultin_page.  This makes little sense
      for two reasons: first, because the function sets up the private data for
      the page and the return value feels like it has been bolted on the side;
      second, because what really matters is whether the _shadow_ TLB entry is
      writable.  If it is not writable, the page can be released as non-dirty.
      Shift from using tlbe_is_writable(gtlbe) to doing the same check on
      the shadow TLB entry.
      
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      e97fbb43
    • Paolo Bonzini's avatar
      KVM: e500: always restore irqs · 87ecfdbc
      Paolo Bonzini authored
      
      If find_linux_pte fails, IRQs will not be restored.  This is unlikely
      to happen in practice since it would have been reported as hanging
      hosts, but it should of course be fixed anyway.
      
      Cc: stable@vger.kernel.org
      Reported-by: default avatarSean Christopherson <seanjc@google.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      87ecfdbc
    • Linus Torvalds's avatar
      Merge tag 'probes-fixes-v6.13-rc6' of... · a87d1203
      Linus Torvalds authored
      Merge tag 'probes-fixes-v6.13-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace
      
      Pull probes fix from Masami Hiramatsu:
       "Fix to free trace_kprobe objects at a failure path in
        __trace_kprobe_create() function. This fixes a memory leak"
      
      * tag 'probes-fixes-v6.13-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
        tracing/kprobes: Fix to free objects when failed to copy a symbol
      a87d1203
  4. Jan 11, 2025
    • Linus Torvalds's avatar
      Merge tag 'hwmon-for-v6.13-rc7' of... · b62cef9a
      Linus Torvalds authored
      Merge tag 'hwmon-for-v6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
      
      Pull hwmon fix from Guenter Roeck:
       "One patch to fix error handling in drivetemp driver"
      
      * tag 'hwmon-for-v6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
        hwmon: (drivetemp) Fix driver producing garbage data when SCSI errors occur
      b62cef9a
    • Linus Torvalds's avatar
      Merge tag 'block-6.13-20250111' of git://git.kernel.dk/linux · 05c2d1f2
      Linus Torvalds authored
      Pull block fix from Jens Axboe:
       "A single fix for a use-after-free in the BFQ IO scheduler"
      
      * tag 'block-6.13-20250111' of git://git.kernel.dk/linux:
        block, bfq: fix waker_bfqq UAF after bfq_split_bfqq()
      05c2d1f2
    • Linus Torvalds's avatar
      Merge tag 'io_uring-6.13-20250111' of git://git.kernel.dk/linux · 52a5a22d
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
      
       - Fix for multishot timeout updates only using the updated value for
         the first invocation, not subsequent ones
      
       - Silence a false positive lockdep warning
      
       - Fix the eventfd signaling and putting RCU logic
      
       - Fix fault injected SQPOLL setup not clearing the task pointer in the
         error path
      
       - Fix local task_work looking at the SQPOLL thread rather than just
         signaling the safe variant. Again one of those theoretical issues,
         which should be closed up none the less.
      
      * tag 'io_uring-6.13-20250111' of git://git.kernel.dk/linux:
        io_uring: don't touch sqd->thread off tw add
        io_uring/sqpoll: zero sqd->thread on tctx errors
        io_uring/eventfd: ensure io_eventfd_signal() defers another RCU period
        io_uring: silence false positive warnings
        io_uring/timeout: fix multishot updates
      52a5a22d
    • Linus Torvalds's avatar
      Merge tag '6.13-rc6-SMB3-client-fix' of git://git.samba.org/sfrench/cifs-2.6 · 57162361
      Linus Torvalds authored
      Pull smb client fix from Steve French:
      
       - fix unneeded session setup retry due to stale password e.g. for DFS
         automounts
      
      * tag '6.13-rc6-SMB3-client-fix' of git://git.samba.org/sfrench/cifs-2.6:
        smb: client: sync the root session and superblock context passwords before automounting
      57162361
    • Linus Torvalds's avatar
      Merge tag 'soc-fixes-6.13-3' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · da60d154
      Linus Torvalds authored
      Pull SoC fixes from Arnd Bergmann:
       "Over the Christmas break a couple of devicetree fixes came in for
        Rockchips, Qualcomm and NXP/i.MX. These add some missing board
        specific properties, address build time warnings,
      
        The USB/TOG supoprt on X1 Elite regressed, so two earlier DT changes
        get reverted for now.
      
        Aside from the devicetree fixes, there is One build fix for the stm32
        firewall driver, and a defconfig change to enable SPDIF support for
        i.MX"
      
      * tag 'soc-fixes-6.13-3' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc:
        firewall: remove misplaced semicolon from stm32_firewall_get_firewall
        arm64: dts: rockchip: add hevc power domain clock to rk3328
        arm64: dts: rockchip: Fix the SD card detection on NanoPi R6C/R6S
        arm64: dts: qcom: sa8775p: fix the secure device bootup issue
        Revert "arm64: dts: qcom: x1e80100: enable OTG on USB-C controllers"
        Revert "arm64: dts: qcom: x1e80100-crd: enable otg on usb ports"
        arm64: dts: qcom: x1e80100: Fix up BAR space size for PCIe6a
        Revert "arm64: dts: qcom: x1e78100-t14s: enable otg on usb-c ports"
        ARM: dts: imxrt1050: Fix clocks for mmc
        ARM: imx_v6_v7_defconfig: enable SND_SOC_SPDIF
        arm64: dts: imx95: correct the address length of netcmix_blk_ctrl
        arm64: dts: imx8-ss-audio: add fallback compatible string fsl,imx6ull-esai for esai
        arm64: dts: rockchip: rename rfkill label for Radxa ROCK 5B
        arm64: dts: rockchip: add reset-names for combphy on rk3568
        arm64: dts: qcom: sa8775p: Fix the size of 'addr_space' regions
      da60d154
    • Michael Ellerman's avatar
      MAINTAINERS: powerpc: Update my status · 77a903cd
      Michael Ellerman authored
      
      Maddy is taking over the day-to-day maintenance of powerpc. I will still
      be around to help, and as a backup.
      
      Re-order the main POWERPC list to put Maddy first to reflect that.
      
      KVM/powerpc patches will be handled by Maddy via the powerpc tree with
      review from Nick, so replace myself with Maddy there.
      
      Remove myself from BPF, leaving Hari & Christophe as maintainers.
      
      Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      77a903cd
  5. Jan 10, 2025
    • Meetakshi Setiya's avatar
      smb: client: sync the root session and superblock context passwords before automounting · 20b1aa91
      Meetakshi Setiya authored
      
      In some cases, when password2 becomes the working password, the
      client swaps the two password fields in the root session struct, but
      not in the smb3_fs_context struct in cifs_sb. DFS automounts inherit
      fs context from their parent mounts. Therefore, they might end up
      getting the passwords in the stale order.
      The automount should succeed, because the mount function will end up
      retrying with the actual password anyway. But to reduce these
      unnecessary session setup retries for automounts, we can sync the
      parent context's passwords with the root session's passwords before
      duplicating it to the child's fs context.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarMeetakshi Setiya <msetiya@microsoft.com>
      Reviewed-by: default avatarShyam Prasad N <sprasad@microsoft.com>
      Acked-by: default avatarPaulo Alcantara (Red Hat) <pc@manguebit.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      20b1aa91
    • Linus Torvalds's avatar
      Merge tag 'sched_ext-for-6.13-rc6-fixes' of... · 2e3f3090
      Linus Torvalds authored
      Merge tag 'sched_ext-for-6.13-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext
      
      Pull sched_ext fixes from Tejun Heo:
      
       - Fix corner case bug where ops.dispatch() couldn't extend the
         execution of the current task if SCX_OPS_ENQ_LAST is set.
      
       - Fix ops.cpu_release() not being called when a SCX task is preempted
         by a higher priority sched class task.
      
       - Fix buitin idle mask being incorrectly left as busy after an idle CPU
         is picked and kicked.
      
       - scx_ops_bypass() was unnecessarily using rq_lock() which comes with
         rq pinning related sanity checks which could trigger spuriously.
         Switch to raw_spin_rq_lock().
      
      * tag 'sched_ext-for-6.13-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/sched_ext:
        sched_ext: idle: Refresh idle masks during idle-to-idle transitions
        sched_ext: switch class when preempted by higher priority scheduler
        sched_ext: Replace rq_lock() to raw_spin_rq_lock() in scx_ops_bypass()
        sched_ext: keep running prev when prev->scx.slice != 0
      2e3f3090
    • Linus Torvalds's avatar
      Merge tag 'cgroup-for-6.13-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup · 58624e4b
      Linus Torvalds authored
      Pull cgroup fixes from Tejun Heo:
       "Cpuset fixes:
      
         - Fix isolated CPUs leaking into sched domains
      
         - Remove now unnecessary kernfs active break which can trigger a
           warning
      
         - Comment updates"
      
      * tag 'cgroup-for-6.13-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup:
        cgroup/cpuset: remove kernfs active break
        cgroup/cpuset: Prevent leakage of isolated CPUs into sched domains
        cgroup/cpuset: Remove stale text
      58624e4b
    • Linus Torvalds's avatar
      Merge tag 'wq-for-6.13-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq · 257a8be4
      Linus Torvalds authored
      Pull workqueue fix from Tejun Heo:
      
       - Add a WARN_ON_ONCE() on queue_delayed_work_on() on an offline CPU as
         such work items won't get executed till the CPU comes back online
      
      * tag 'wq-for-6.13-rc6-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq:
        workqueue: warn if delayed_work is queued to an offlined cpu.
      257a8be4
    • Linus Torvalds's avatar
      Merge tag 'thermal-6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · da13af83
      Linus Torvalds authored
      Pull thermal control fix from Rafael Wysocki:
       "Fix an OF node leak in the code parsing thermal zone DT properties
        (Joe Hattori)"
      
      * tag 'thermal-6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        thermal: of: fix OF node leak in of_thermal_zone_find()
      da13af83
    • Linus Torvalds's avatar
      Merge tag 'acpi-6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 475c9f58
      Linus Torvalds authored
      Pull ACPI fixes from Rafael Wysocki:
       "Add two more ACPI IRQ override quirks and update the code using them
        to avoid unnecessary overhead (Hans de Goede)"
      
      * tag 'acpi-6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: resource: acpi_dev_irq_override(): Check DMI match last
        ACPI: resource: Add TongFang GM5HG0A to irq1_edge_low_force_override[]
        ACPI: resource: Add Asus Vivobook X1504VAP to irq1_level_low_skip_override[]
      475c9f58
    • Andrea Righi's avatar
      sched_ext: idle: Refresh idle masks during idle-to-idle transitions · a2a3374c
      Andrea Righi authored
      With the consolidation of put_prev_task/set_next_task(), see
      commit 436f3eed ("sched: Combine the last put_prev_task() and the
      first set_next_task()"), we are now skipping the transition between
      these two functions when the previous and the next tasks are the same.
      
      As a result, the scx idle state of a CPU is updated only when
      transitioning to or from the idle thread. While this is generally
      correct, it can lead to uneven and inefficient core utilization in
      certain scenarios [1].
      
      A typical scenario involves proactive wake-ups: scx_bpf_pick_idle_cpu()
      selects and marks an idle CPU as busy, followed by a wake-up via
      scx_bpf_kick_cpu(), without dispatching any tasks. In this case, the CPU
      continues running the idle thread, returns to idle, but remains marked
      as busy, preventing it from being selected again as an idle CPU (until a
      task eventually runs on it and releases the CPU).
      
      For example, running a workload that uses 20% of each CPU, combined with
      an scx scheduler using proactive wake-ups, results in the following core
      utilization:
      
       CPU 0: 25.7%
       CPU 1: 29.3%
       CPU 2: 26.5%
       CPU 3: 25.5%
       CPU 4:  0.0%
       CPU 5: 25.5%
       CPU 6:  0.0%
       CPU 7: 10.5%
      
      To address this, refresh the idle state also in pick_task_idle(), during
      idle-to-idle transitions, but only trigger ops.update_idle() on actual
      state changes to prevent unnecessary updates to the scx scheduler and
      maintain balanced state transitions.
      
      With this change in place, the core utilization in the previous example
      becomes the following:
      
       CPU 0: 18.8%
       CPU 1: 19.4%
       CPU 2: 18.0%
       CPU 3: 18.7%
       CPU 4: 19.3%
       CPU 5: 18.9%
       CPU 6: 18.7%
       CPU 7: 19.3%
      
      [1] https://github.com/sched-ext/scx/pull/1139
      
      
      
      Fixes: 7c65ae81 ("sched_ext: Don't call put_prev_task_scx() before picking the next task")
      Signed-off-by: default avatarAndrea Righi <arighi@nvidia.com>
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      a2a3374c
    • Pavel Begunkov's avatar
      io_uring: don't touch sqd->thread off tw add · bd2703b4
      Pavel Begunkov authored
      
      With IORING_SETUP_SQPOLL all requests are created by the SQPOLL task,
      which means that req->task should always match sqd->thread. Since
      accesses to sqd->thread should be separately protected, use req->task
      in io_req_normal_work_add() instead.
      
      Note, in the eyes of io_req_normal_work_add(), the SQPOLL task struct
      is always pinned and alive, and sqd->thread can either be the task or
      NULL. It's only problematic if the compiler decides to reload the value
      after the null check, which is not so likely.
      
      Cc: stable@vger.kernel.org
      Cc: Bui Quang Minh <minhquangbui99@gmail.com>
      Reported-by: default avatarlizetao <lizetao1@huawei.com>
      Fixes: 78f9b61b ("io_uring: wake SQPOLL task when task_work is added to an empty queue")
      Signed-off-by: default avatarPavel Begunkov <asml.silence@gmail.com>
      Link: https://lore.kernel.org/r/1cbbe72cf32c45a8fee96026463024cd8564a7d7.1736541357.git.asml.silence@gmail.com
      
      
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      bd2703b4
    • Pavel Begunkov's avatar
      io_uring/sqpoll: zero sqd->thread on tctx errors · 4b7cfa8b
      Pavel Begunkov authored
      
      Syzkeller reports:
      
      BUG: KASAN: slab-use-after-free in thread_group_cputime+0x409/0x700 kernel/sched/cputime.c:341
      Read of size 8 at addr ffff88803578c510 by task syz.2.3223/27552
       Call Trace:
        <TASK>
        ...
        kasan_report+0x143/0x180 mm/kasan/report.c:602
        thread_group_cputime+0x409/0x700 kernel/sched/cputime.c:341
        thread_group_cputime_adjusted+0xa6/0x340 kernel/sched/cputime.c:639
        getrusage+0x1000/0x1340 kernel/sys.c:1863
        io_uring_show_fdinfo+0xdfe/0x1770 io_uring/fdinfo.c:197
        seq_show+0x608/0x770 fs/proc/fd.c:68
        ...
      
      That's due to sqd->task not being cleared properly in cases where
      SQPOLL task tctx setup fails, which can essentially only happen with
      fault injection to insert allocation errors.
      
      Cc: stable@vger.kernel.org
      Fixes: 1251d202 ("io_uring/sqpoll: early exit thread if task_context wasn't allocated")
      Reported-by: default avatar <syzbot+3d92cfcfa84070b0a470@syzkaller.appspotmail.com>
      Signed-off-by: default avatarPavel Begunkov <asml.silence@gmail.com>
      Link: https://lore.kernel.org/r/efc7ec7010784463b2e7466d7b5c02c2cb381635.1736519461.git.asml.silence@gmail.com
      
      
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      4b7cfa8b
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2025-01-11' of https://gitlab.freedesktop.org/drm/kernel · e0daef7d
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Regular weekly fixes, this has the usual amdgpu/xe/i915 bits.
      
        There is a bigger bunch of mediatek patches that I considered not
        including at this stage, but all the changes (except for one were
        obvious small fixes, and the rotation one is a few lines, and I
        suppose will help someone have their screen up the right way), I
        decided to include it since I expect it got slowed down by holidays
        etc, and it's not that mainstream a hw platform.
      
        i915:
         - Revert "drm/i915/hdcp: Don't enable HDCP1.4 directly from
           check_link"
      
        amdgpu:
         - Display interrupt fixes
         - Fix display max surface mismatches
         - Fix divide error in DM plane scale calcs
         - Display divide by 0 checks in dml helpers
         - SMU 13 AD/DC interrrupt handling fix
         - Fix locking around buddy trim handling
      
        amdkfd:
         - Fix page fault with shader debugger enabled
         - Fix eviction fence wq handling
      
        xe:
         - Avoid a NULL ptr deref when wedging
         - Fix power gate sequence on DG1
      
        mediatek:
         - Revert "drm/mediatek: dsi: Correct calculation formula of PHY
           Timing"
         - Set private->all_drm_private[i]->drm to NULL if mtk_drm_bind
           returns err
         - Move mtk_crtc_finish_page_flip() to ddp_cmdq_cb()
         - Only touch DISP_REG_OVL_PITCH_MSB if AFBC is supported
         - Add support for 180-degree rotation in the display driver
         - Stop selecting foreign drivers
         - Revert "drm/mediatek: Switch to for_each_child_of_node_scoped()"
         - Fix YCbCr422 color format issue for DP
         - Fix mode valid issue for dp
         - dp: Reference common DAI properties
         - dsi: Add registers to pdata to fix MT8186/MT8188
         - Remove unneeded semicolon
         - Add return value check when reading DPCD
         - Initialize pointer in mtk_drm_of_ddp_path_build_one()"
      
      * tag 'drm-fixes-2025-01-11' of https://gitlab.freedesktop.org/drm/kernel: (26 commits)
        drm/xe/dg1: Fix power gate sequence.
        drm/xe: Fix tlb invalidation when wedging
        Revert "drm/i915/hdcp: Don't enable HDCP1.4 directly from check_link"
        drm/amdgpu: Add a lock when accessing the buddy trim function
        drm/amd/pm:  fix BUG: scheduling while atomic
        drm/amdkfd: wq_release signals dma_fence only when available
        drm/amd/display: Add check for granularity in dml ceil/floor helpers
        drm/amdkfd: fixed page fault when enable MES shader debugger
        drm/amd/display: fix divide error in DM plane scale calcs
        drm/amd/display: increase MAX_SURFACES to the value supported by hw
        drm/amd/display: fix page fault due to max surface definition mismatch
        drm/amd/display: Remove unnecessary amdgpu_irq_get/put
        drm/mediatek: Initialize pointer in mtk_drm_of_ddp_path_build_one()
        drm/mediatek: Add return value check when reading DPCD
        drm/mediatek: Remove unneeded semicolon
        drm/mediatek: mtk_dsi: Add registers to pdata to fix MT8186/MT8188
        dt-bindings: display: mediatek: dp: Reference common DAI properties
        drm/mediatek: Fix mode valid issue for dp
        drm/mediatek: Fix YCbCr422 color format issue for DP
        Revert "drm/mediatek: Switch to for_each_child_of_node_scoped()"
        ...
      e0daef7d
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · f8c62633
      Linus Torvalds authored
      Pull RISC-V fixes from Palmer Dabbelt:
      
       - a handful of selftest fixes
      
       - fix a memory leak in relocation processing during module loading
      
       - avoid sleeping in die()
      
       - fix kprobe instruction slot address calculations
      
       - fix DT node reference leak in SBI idle probing
      
       - avoid initializing out of bounds pages on sparse vmemmap systems with
         a gap at the start of their physical memory map
      
       - fix backtracing through exceptions
      
       - _Q_PENDING_LOOPS is now defined whenever QUEUED_SPINLOCKS=y
      
       - local labels in entry.S are now marked with ".L", which prevents them
         from trashing backtraces
      
       - a handful of fixes for SBI-based performance counters
      
      * tag 'riscv-for-linus-6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        drivers/perf: riscv: Do not allow invalid raw event config
        drivers/perf: riscv: Return error for default case
        drivers/perf: riscv: Fix Platform firmware event data
        tools: selftests: riscv: Add test count for vstate_prctl
        tools: selftests: riscv: Add pass message for v_initval_nolibc
        riscv: use local label names instead of global ones in assembly
        riscv: qspinlock: Fixup _Q_PENDING_LOOPS definition
        riscv: stacktrace: fix backtracing through exceptions
        riscv: mm: Fix the out of bound issue of vmemmap address
        cpuidle: riscv-sbi: fix device node release in early exit of for_each_possible_cpu
        riscv: kprobes: Fix incorrect address calculation
        riscv: Fix sleeping in invalid context in die()
        riscv: module: remove relocation_head rel_entry member allocation
        riscv: selftests: Fix warnings pointer masking test
      f8c62633
Loading