1. Jan 20, 2023
    • Yuan Can's avatar
      eeprom: idt_89hpesx: Fix error handling in idt_init() · d717a3ab
      Yuan Can authored
      A problem about idt_89hpesx create debugfs failed is triggered with the
      following log given:
      
       [ 4973.269647] debugfs: Directory 'idt_csr' with parent '/' already present!
      
      The reason is that idt_init() returns i2c_add_driver() directly without
      checking its return value, if i2c_add_driver() failed, it returns without
      destroy the newly created debugfs, resulting the debugfs of idt_csr can
      never be created later.
      
       idt_init()
         debugfs_create_dir() # create debugfs directory
         i2c_add_driver()
           driver_register()
             bus_add_driver()
               priv = kzalloc(...) # OOM happened
         # return without destroy debugfs directory
      
      Fix by removing debugfs when i2c_add_driver() returns error.
      
      Fixes: cfad6425
      
       ("eeprom: Add IDT 89HPESx EEPROM/CSR driver")
      Signed-off-by: default avatarYuan Can <yuancan@huawei.com>
      Acked-by: default avatarSerge Semin <fancer.lancer@gmail.com>
      Link: https://lore.kernel.org/r/20221110020030.47711-1-yuancan@huawei.com
      
      
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      d717a3ab
    • Andy Shevchenko's avatar
    • Ian Abbott's avatar
      comedi: check data length for INSN_CONFIG_GET_PWM_OUTPUT · 863cf332
      Ian Abbott authored
      
      
      Comedi INSN_CONFIG instructions have different expected instructtion
      data lengths depending on the type of configuration instruction
      specified by the first word of data.  This is checked by
      `check_insn_config_length()`.  There are a few configuration
      instructions whose data lengths are not currently checked, usually for
      rare configuration instructions that are implemented differently by
      different drivers.  For unknown configuration instructions, the function
      logs a warning and accepts the specified data length.
      
      The `INSN_CONFIG_GET_PWM_OUTPUT` configuration instruction length is not
      currently checked, but all the places it is currently used expect a data
      length of 3.  (These places are `ni_get_pwm_config()` in
      "ni_mio_common.c", and `pci1760_pwm_insn_config()` in "adv_pci1760.c".)
      Make this length official by checking it in
      `check_insn_config_length()`.
      
      Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
      Link: https://lore.kernel.org/r/20230103151127.19287-1-abbotti@mev.co.uk
      
      
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      863cf332
    • Randy Dunlap's avatar
      comedi: use menuconfig for main Comedi menu · 28ecbbae
      Randy Dunlap authored
      Bring the Comedi menu in line with most other device drivers
      by using "menuconfig" instead of "config" for the top-level entry.
      This also fixes a menu presentation issue with xconfig.
      
      Fixes: ed9eccbe
      
       ("Staging: add comedi core")
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Cc: Ian Abbott <abbotti@mev.co.uk>
      Cc: H Hartley Sweeten <hsweeten@visionengravers.com>
      Cc: David Schleef <ds@schleef.org>
      Cc: Shawn Bohrer <shawn.bohrer@gmail.com>
      Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Link: https://lore.kernel.org/r/20230110064844.18533-1-rdunlap@infradead.org
      
      
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      28ecbbae
    • Randy Dunlap's avatar
      misc: genwqe: move intervening macros away from kernel-doc · 0e656b80
      Randy Dunlap authored
      
      
      Don't separate a function's kernel-doc comment and its definition with
      macros or data; move the macro and data ahead of the function and its
      comments to prevent a warning:
      
      drivers/misc/genwqe/card_utils.c:162: warning: expecting prototype for genwqe_init_crc32(). Prototype was for CRC32_POLYNOMIAL() instead
      
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Cc: Frank Haverkamp <haver@linux.ibm.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Link: https://lore.kernel.org/r/20230113063909.19694-1-rdunlap@infradead.org
      
      
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      0e656b80
    • Duoming Zhou's avatar
      Revert "char: pcmcia: cm4000_cs: Replace mdelay with usleep_range in set_protocol" · 70fae37a
      Duoming Zhou authored
      This reverts commit be826ada.
      
      The function monitor_card() is a timer handler that runs in an
      atomic context, but it calls usleep_range() that can sleep.
      As a result, the sleep-in-atomic-context bugs will happen.
      The process is shown below:
      
          (atomic context)
      monitor_card()
        set_protocol()
          usleep_range() //sleep
      
      The origin commit c1986ee9 ("[PATCH] New Omnikey Cardman
      4000 driver") works fine.
      
      Fixes: be826ada
      
       ("char: pcmcia: cm4000_cs: Replace mdelay with usleep_range in set_protocol")
      Signed-off-by: default avatarDuoming Zhou <duoming@zju.edu.cn>
      Link: https://lore.kernel.org/r/20230118141000.5580-1-duoming@zju.edu.cn
      
      
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      70fae37a
    • Randy Dunlap's avatar
      pcmcia: synclink_cs: remove kernel-doc notation · af35dbad
      Randy Dunlap authored
      
      
      Remove all kernel-doc "/**" markers; just use "/*" comments since
      these are not in kernel-doc format.
      This eliminates 11 kernel-doc warnings:
      
      drivers/char/pcmcia/synclink_cs.c:487: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
       * line discipline callback wrappers
      drivers/char/pcmcia/synclink_cs.c:3861: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
       * called by generic HDLC layer when protocol selected (PPP, frame relay, etc.)
      drivers/char/pcmcia/synclink_cs.c:3914: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
       * called by generic HDLC layer to send frame
      drivers/char/pcmcia/synclink_cs.c:3959: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
       * called by network layer when interface enabled
      drivers/char/pcmcia/synclink_cs.c:4022: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
       * called by network layer when interface is disabled
      drivers/char/pcmcia/synclink_cs.c:4053: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
       * called by network layer to process IOCTL call to network device
      drivers/char/pcmcia/synclink_cs.c:4156: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
       * called by network layer when transmit timeout is detected
      drivers/char/pcmcia/synclink_cs.c:4179: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
       * called by device driver when transmit completes
      drivers/char/pcmcia/synclink_cs.c:4191: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
       * called by device driver when frame received
      drivers/char/pcmcia/synclink_cs.c:4231: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
       * called by device driver when adding device instance
      drivers/char/pcmcia/synclink_cs.c:4279: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
       * called by device driver when removing device instance
      
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Cc: Dominik Brodowski <linux@dominikbrodowski.net>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Link: https://lore.kernel.org/r/20230114034646.1535-1-rdunlap@infradead.org
      
      
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      af35dbad
    • Randy Dunlap's avatar
      most: tell what the MOST acronym means · 34d0938e
      Randy Dunlap authored
      
      
      Tell kconfig users what "MOST" means so that they can have a bit
      of information about what it is. I.e., more than zero information.
      
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Cc: Christian Gromm <christian.gromm@microchip.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Link: https://lore.kernel.org/r/20230117182840.26890-1-rdunlap@infradead.org
      
      
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      34d0938e
    • Randy Dunlap's avatar
      most: fix kernel-doc warnings · fba3993e
      Randy Dunlap authored
      
      
      Fix various W=1 kernel-doc warnings in drivers/most/:
      
      drivers/most/most_usb.c:669: warning: Excess function parameter 'data' description in 'link_stat_timer_handler'
      drivers/most/most_usb.c:769: warning: cannot understand function prototype: 'const struct file_operations hdm_usb_fops = '
      drivers/most/most_usb.c:776: warning: cannot understand function prototype: 'const struct usb_device_id usbid[] = '
      drivers/most/most_cdev.c:301: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
       * Initialization of struct file_operations
      drivers/most/most_cdev.c:414: warning: Function parameter or member 'args' not described in 'comp_probe'
      drivers/most/most_snd.c:56: warning: Function parameter or member 'pcm_hardware' not described in 'channel'
      drivers/most/most_snd.c:56: warning: Function parameter or member 'copy_fn' not described in 'channel'
      drivers/most/most_snd.c:404: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
       * Initialization of struct snd_pcm_ops
      drivers/most/most_snd.c:514: warning: Function parameter or member 'device_name' not described in 'audio_probe_channel'
      drivers/most/most_snd.c:703: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
       * Initialization of the struct most_component
      
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Cc: Christian Gromm <christian.gromm@microchip.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Link: https://lore.kernel.org/r/20230113063947.23174-1-rdunlap@infradead.org
      
      
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      fba3993e
    • Randy Dunlap's avatar
      android: fix W=1 kernel-doc warnings · ad228a34
      Randy Dunlap authored
      
      
      Clean up kernel-doc notation, use correct function and parameter
      names.
      
      drivers/android/binderfs.c:236: warning: expecting prototype for binderfs_ctl_ioctl(). Prototype was for binder_ctl_ioctl() instead
      drivers/android/binder.c:386: warning: expecting prototype for binder_node_unlock(). Prototype was for binder_node_inner_unlock() instead
      drivers/android/binder.c:1206: warning: expecting prototype for binder_dec_ref(). Prototype was for binder_dec_ref_olocked() instead
      drivers/andrond/binder.c:284: warning: Excess function parameter 'proc' description in 'binder_proc_unlock'
      drivers/andrond/binder.c:387: warning: expecting prototype for binder_node_unlock(). Prototype was for binder_node_inner_unlock() instead
      
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Arve Hjønnevåg <arve@android.com>
      Cc: Todd Kjos <tkjos@android.com>
      Cc: Martijn Coenen <maco@android.com>
      Cc: Joel Fernandes <joel@joelfernandes.org>
      Cc: Christian Brauner <christian@brauner.io>
      Cc: Carlos Llamas <cmllamas@google.com>
      Cc: Suren Baghdasaryan <surenb@google.com>
      Acked-by: default avatarCarlos Llamas <cmllamas@google.com>
      Link: https://lore.kernel.org/r/20230117183745.20842-1-rdunlap@infradead.org
      
      
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      ad228a34
    • Li Li's avatar
      binder: return pending info for frozen async txns · 0567461a
      Li Li authored
      
      
      An async transaction to a frozen process will still be successfully
      put in the queue. But this pending async transaction won't be processed
      until the target process is unfrozen at an unspecified time in the
      future. Pass this important information back to the user space caller
      by returning BR_TRANSACTION_PENDING_FROZEN.
      
      Signed-off-by: default avatarLi Li <dualli@google.com>
      Acked-by: default avatarCarlos Llamas <cmllamas@google.com>
      Link: https://lore.kernel.org/r/20221123201654.589322-2-dualli@chromium.org
      
      
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      0567461a
    • Jiazi.Li's avatar
      binder: remove unneeded size check code · 7feb35bc
      Jiazi.Li authored
      
      
      In binder_ioctl function, the legitimacy check of cmd size has been
      done in switch-case code:
      switch (cmd) {
      	case BINDER_WRITE_READ;//BINDER_WRITE_READ contains size info
      
      So unneeded do size check in binder_ioctl and binder_ioctl_write_read
      again.
      
      In the following version of Google GKI:
      
      Linux version 5.10.110-android12-9-00011-g2c814f559132-ab8969555
      
      It seems that the compiler has made optimization and has not passed
      cmd parameters to binder_ioctl_write_read:
      <binder_ioctl+628>:  mov     w8, #0x6201                     // #25089
      <binder_ioctl+632>:  movk    w8, #0xc030, lsl #16
      <binder_ioctl+636>:  cmp     w20, w8
      <binder_ioctl+640>:  b.ne    0xffffffda8aa97880 <binder_ioctl+3168>
      <binder_ioctl+644>:  mov     x0, x23 //filp
      <binder_ioctl+648>:  mov     x1, x27 //arg
      <binder_ioctl+652>:  mov     x2, x22 //thread
      <binder_ioctl+656>:  bl      0xffffffda8aa9e6e4 <binder_ioctl_write_read>
      <binder_ioctl+660>:  mov     w26, w0
      
      Signed-off-by: default avatarJiazi.Li <jiazi.li@transsion.com>
      Acked-by: default avatarCarlos Llamas <cmllamas@google.com>
      Link: https://lore.kernel.org/r/20221115120351.2769-1-jiazi.li@transsion.com
      
      
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      7feb35bc
  2. Jan 15, 2023
    • Linus Torvalds's avatar
      Linux 6.2-rc4 · 5dc4c995
      Linus Torvalds authored
      5dc4c995
    • Linus Torvalds's avatar
      Merge tag 'x86_urgent_for_v6.2_rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · f0f70ddb
      Linus Torvalds authored
      Pull x86 fixes from Borislav Petkov:
      
       - Make sure the poking PGD is pinned for Xen PV as it requires it this
         way
      
       - Fixes for two resctrl races when moving a task or creating a new
         monitoring group
      
       - Fix SEV-SNP guests running under HyperV where MTRRs are disabled to
         not return a UC- type mapping type on memremap() and thus cause a
         serious slowdown
      
       - Fix insn mnemonics in bioscall.S now that binutils is starting to fix
         confusing insn suffixes
      
      * tag 'x86_urgent_for_v6.2_rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/mm: fix poking_init() for Xen PV guests
        x86/resctrl: Fix event counts regression in reused RMIDs
        x86/resctrl: Fix task CLOSID/RMID update race
        x86/pat: Fix pat_x_mtrr_type() for MTRR disabled case
        x86/boot: Avoid using Intel mnemonics in AT&T syntax asm
      f0f70ddb
    • Linus Torvalds's avatar
      Merge tag 'edac_urgent_for_v6.2_rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras · 8aa97612
      Linus Torvalds authored
      Pull EDAC fixes from Borislav Petkov:
      
       - Fix the EDAC device's confusion in the polling setting units
      
       - Fix a memory leak in highbank's probing function
      
      * tag 'edac_urgent_for_v6.2_rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras:
        EDAC/highbank: Fix memory leak in highbank_mc_probe()
        EDAC/device: Fix period calculation in edac_device_reset_delay_period()
      8aa97612
    • Linus Torvalds's avatar
      Merge tag 'powerpc-6.2-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · b1d63f0c
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
      
       - Fix a build failure with some versions of ld that have an odd version
         string
      
       - Fix incorrect use of mutex in the IMC PMU driver
      
      Thanks to Kajol Jain, Michael Petlan, Ojaswin Mujoo, Peter Zijlstra, and
      Yang Yingliang.
      
      * tag 'powerpc-6.2-3' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/64s/hash: Make stress_hpt_timer_fn() static
        powerpc/imc-pmu: Fix use of mutex in IRQs disabled section
        powerpc/boot: Fix incorrect version calculation issue in ld_version
      b1d63f0c
    • Linus Torvalds's avatar
      Merge tag 'iommu-fixes-v6.2-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu · 7c698440
      Linus Torvalds authored
      Pull iommu fixes from Joerg Roedel:
      
       - Core: Fix an iommu-group refcount leak
      
       - Fix overflow issue in IOVA alloc path
      
       - ARM-SMMU fixes from Will:
          - Fix VFIO regression on NXP SoCs by reporting IOMMU_CAP_CACHE_COHERENCY
          - Fix SMMU shutdown paths to avoid device unregistration race
      
       - Error handling fix for Mediatek IOMMU driver
      
      * tag 'iommu-fixes-v6.2-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu:
        iommu/mediatek-v1: Fix an error handling path in mtk_iommu_v1_probe()
        iommu/iova: Fix alloc iova overflows issue
        iommu: Fix refcount leak in iommu_device_claim_dma_owner
        iommu/arm-smmu-v3: Don't unregister on shutdown
        iommu/arm-smmu: Don't unregister on shutdown
        iommu/arm-smmu: Report IOMMU_CAP_CACHE_COHERENCY even betterer
      7c698440
    • Linus Torvalds's avatar
      Merge tag 'fixes-2023-01-14' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock · 4f43ade4
      Linus Torvalds authored
      Pull memblock fix from Mike Rapoport:
       "memblock: always release pages to the buddy allocator in
        memblock_free_late()
      
        If CONFIG_DEFERRED_STRUCT_PAGE_INIT is enabled, memblock_free_pages()
        only releases pages to the buddy allocator if they are not in the
        deferred range. This is correct for free pages (as defined by
        for_each_free_mem_pfn_range_in_zone()) because free pages in the
        deferred range will be initialized and released as part of the
        deferred init process.
      
        memblock_free_pages() is called by memblock_free_late(), which is used
        to free reserved ranges after memblock_free_all() has run. All pages
        in reserved ranges have been initialized at that point, and
        accordingly, those pages are not touched by the deferred init process.
      
        This means that currently, if the pages that memblock_free_late()
        intends to release are in the deferred range, they will never be
        released to the buddy allocator. They will forever be reserved.
      
        In addition, memblock_free_pages() calls kmsan_memblock_free_pages(),
        which is also correct for free pages but is not correct for reserved
        pages. KMSAN metadata for reserved pages is initialized by
        kmsan_init_shadow(), which runs shortly before memblock_free_all().
      
        For both of these reasons, memblock_free_pages() should only be called
        for free pages, and memblock_free_late() should call
        __free_pages_core() directly instead.
      
        One case where this issue can occur in the wild is EFI boot on x86_64.
        The x86 EFI code reserves all EFI boot services memory ranges via
        memblock_reserve() and frees them later via memblock_free_late()
        (efi_reserve_boot_services() and efi_free_boot_services(),
        respectively).
      
        If any of those ranges happens to fall within the deferred init range,
        the pages will not be released and that memory will be unavailable.
      
        For example, on an Amazon EC2 t3.micro VM (1 GB) booting via EFI:
      
          v6.2-rc2:
          Node 0, zone      DMA
                spanned  4095
                present  3999
                managed  3840
          Node 0, zone    DMA32
                spanned  246652
                present  245868
                managed  178867
      
          v6.2-rc2 + patch:
          Node 0, zone      DMA
                spanned  4095
                present  3999
                managed  3840
          Node 0, zone    DMA32
                spanned  246652
                present  245868
                managed  222816   # +43,949 pages"
      
      * tag 'fixes-2023-01-14' of git://git.kernel.org/pub/scm/linux/kernel/git/rppt/memblock:
        mm: Always release pages to the buddy allocator in memblock_free_late().
      4f43ade4
    • Linus Torvalds's avatar
      Merge tag 'hardening-v6.2-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux · 880ca43e
      Linus Torvalds authored
      Pull kernel hardening fixes from Kees Cook:
      
       - Fix CFI hash randomization with KASAN (Sami Tolvanen)
      
       - Check size of coreboot table entry and use flex-array
      
      * tag 'hardening-v6.2-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
        kbuild: Fix CFI hash randomization with KASAN
        firmware: coreboot: Check size of table entry and use flex-array
      880ca43e
  3. Jan 14, 2023
  4. Jan 13, 2023
    • Pavel Begunkov's avatar
      io_uring: lock overflowing for IOPOLL · 544d163d
      Pavel Begunkov authored
      
      
      syzbot reports an issue with overflow filling for IOPOLL:
      
      WARNING: CPU: 0 PID: 28 at io_uring/io_uring.c:734 io_cqring_event_overflow+0x1c0/0x230 io_uring/io_uring.c:734
      CPU: 0 PID: 28 Comm: kworker/u4:1 Not tainted 6.2.0-rc3-syzkaller-16369-g358a161a6a9e #0
      Workqueue: events_unbound io_ring_exit_work
      Call trace:
       io_cqring_event_overflow+0x1c0/0x230 io_uring/io_uring.c:734
       io_req_cqe_overflow+0x5c/0x70 io_uring/io_uring.c:773
       io_fill_cqe_req io_uring/io_uring.h:168 [inline]
       io_do_iopoll+0x474/0x62c io_uring/rw.c:1065
       io_iopoll_try_reap_events+0x6c/0x108 io_uring/io_uring.c:1513
       io_uring_try_cancel_requests+0x13c/0x258 io_uring/io_uring.c:3056
       io_ring_exit_work+0xec/0x390 io_uring/io_uring.c:2869
       process_one_work+0x2d8/0x504 kernel/workqueue.c:2289
       worker_thread+0x340/0x610 kernel/workqueue.c:2436
       kthread+0x12c/0x158 kernel/kthread.c:376
       ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:863
      
      There is no real problem for normal IOPOLL as flush is also called with
      uring_lock taken, but it's getting more complicated for IOPOLL|SQPOLL,
      for which __io_cqring_overflow_flush() happens from the CQ waiting path.
      
      Reported-and-tested-by: default avatar <syzbot+6805087452d72929404e@syzkaller.appspotmail.com>
      Cc: stable@vger.kernel.org # 5.10+
      Signed-off-by: default avatarPavel Begunkov <asml.silence@gmail.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      544d163d
    • Linus Torvalds's avatar
      Merge tag 'sound-6.2-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 689968db
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "This became a slightly big update, but it's more or less expected, as
        the first batch after holidays.
      
        All changes (but for the last two last-minute fixes) have been stewed
        in linux-next long enough, so it's fairly safe to take:
      
         - PCM UAF fix in 32bit compat layer
      
         - ASoC board-specific fixes for Intel, AMD, Medathek, Qualcomm
      
         - SOF power management fixes
      
         - ASoC Intel link failure fixes
      
         - A series of fixes for USB-audio regressions
      
         - CS35L41 HD-audio codec regression fixes
      
         - HD-audio device-specific fixes / quirks
      
        Note that one SPI patch has been taken in ASoC subtree mistakenly, and
        the same fix is found in spi tree, but it should be OK to apply"
      
      * tag 'sound-6.2-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (39 commits)
        ALSA: pcm: Move rwsem lock inside snd_ctl_elem_read to prevent UAF
        ALSA: usb-audio: Fix possible NULL pointer dereference in snd_usb_pcm_has_fixed_rate()
        ALSA: hda/realtek: Enable mute/micmute LEDs on HP Spectre x360 13-aw0xxx
        ASoC: fsl-asoc-card: Fix naming of AC'97 CODEC widgets
        ASoC: fsl_ssi: Rename AC'97 streams to avoid collisions with AC'97 CODEC
        ALSA: hda/hdmi: Add a HP device 0x8715 to force connect list
        ALSA: control-led: use strscpy in set_led_id()
        ALSA: usb-audio: Always initialize fixed_rate in snd_usb_find_implicit_fb_sync_format()
        ASoC: dt-bindings: qcom,lpass-tx-macro: correct clocks on SC7280
        ASoC: dt-bindings: qcom,lpass-wsa-macro: correct clocks on SM8250
        ASoC: qcom: Fix building APQ8016 machine driver without SOUNDWIRE
        ALSA: hda: cs35l41: Check runtime suspend capability at runtime_idle
        ALSA: hda: cs35l41: Don't return -EINVAL from system suspend/resume
        ASoC: fsl_micfil: Correct the number of steps on SX controls
        ALSA: hda/realtek: fix mute/micmute LEDs don't work for a HP platform
        Revert "ALSA: usb-audio: Drop superfluous interface setup at parsing"
        ALSA: usb-audio: More refactoring of hw constraint rules
        ALSA: usb-audio: Relax hw constraints for implicit fb sync
        ALSA: usb-audio: Make sure to stop endpoints before closing EPs
        ALSA: hda - Enable headset mic on another Dell laptop with ALC3254
        ...
      689968db
    • Linus Torvalds's avatar
      Merge tag 'pm-6.2-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · d863f053
      Linus Torvalds authored
      Pull power management fixes from Rafael Wysocki:
       "These fix assorted issues in the ARM cpufreq drivers and in the AMD
        P-state driver.
      
        Specifics:
      
         - Fix cpufreq policy reference counting in amd-pstate to prevent it
           from crashing on removal (Perry Yuan)
      
         - Fix double initialization and set suspend-freq for Apple's cpufreq
           driver (Arnd Bergmann, Hector Martin)
      
         - Fix reading of "reg" property, update cpufreq-dt's blocklist and
           update DT documentation for Qualcomm's cpufreq driver (Konrad
           Dybcio, Krzysztof Kozlowski)
      
         - Replace 0 with NULL in the Armada cpufreq driver (Miles Chen)
      
         - Fix potential overflows in the CPPC cpufreq driver (Pierre Gondois)
      
         - Update blocklist for the Tegra234 Soc cpufreq driver (Sumit Gupta)"
      
      * tag 'pm-6.2-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        cpufreq: amd-pstate: fix kernel hang issue while amd-pstate unregistering
        cpufreq: armada-37xx: stop using 0 as NULL pointer
        cpufreq: apple-soc: Switch to the lowest frequency on suspend
        dt-bindings: cpufreq: cpufreq-qcom-hw: document interrupts
        cpufreq: Add SM6375 to cpufreq-dt-platdev blocklist
        cpufreq: Add Tegra234 to cpufreq-dt-platdev blocklist
        cpufreq: qcom-hw: Fix reading "reg" with address/size-cells != 2
        cpufreq: CPPC: Add u64 casts to avoid overflowing
        cpufreq: apple: remove duplicate intializer
      d863f053
    • Linus Torvalds's avatar
      Merge tag 'acpi-6.2-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · cdbbca25
      Linus Torvalds authored
      Pull ACPI fixes from Rafael Wysocki:
       "These add one more ACPI IRQ override quirk, improve ACPI companion
        lookup for backlight devices and add missing kernel command line
        option values for backlight detection.
      
        Specifics:
      
         - Improve ACPI companion lookup for backlight devices in the cases
           when there is more than one candidate ACPI device object (Hans de
           Goede)
      
         - Add missing support for manual selection of NVidia-WMI-EC or Apple
           GMUX backlight in the kernel command line to the ACPI backlight
           driver (Hans de Goede)
      
         - Skip ACPI IRQ override on Asus Expertbook B2402CBA (Tamim Khan)"
      
      * tag 'acpi-6.2-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: Fix selecting wrong ACPI fwnode for the iGPU on some Dell laptops
        ACPI: video: Allow selecting NVidia-WMI-EC or Apple GMUX backlight from the cmdline
        ACPI: resource: Skip IRQ override on Asus Expertbook B2402CBA
      cdbbca25