1. 02 Nov, 2023 4 commits
    • Shyam Prasad N's avatar
      cifs: do not reset chan_max if multichannel is not supported at mount · 6e5e64c9
      Shyam Prasad N authored
      If the mount command has specified multichannel as a mount option,
      but multichannel is found to be unsupported by the server at the time
      of mount, we set chan_max to 1. Which means that the user needs to
      remount the share if the server starts supporting multichannel.
      
      This change removes this reset. What it means is that if the user
      specified multichannel or max_channels during mount, and at this
      time, multichannel is not supported, but the server starts supporting
      it at a later point, the client will be capable of scaling out the
      number of channels.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarShyam Prasad N <sprasad@microsoft.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      6e5e64c9
    • Shyam Prasad N's avatar
      cifs: reconnect helper should set reconnect for the right channel · c3326a61
      Shyam Prasad N authored
      We introduced a helper function to be used by non-cifsd threads to
      mark the connection for reconnect. For multichannel, when only
      a particular channel needs to be reconnected, this had a bug.
      
      This change fixes that by marking that particular channel
      for reconnect.
      
      Fixes: dca65818 ("cifs: use a different reconnect helper for non-cifsd threads")
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarShyam Prasad N <sprasad@microsoft.com>
      Reviewed-by: default avatarPaulo Alcantara (SUSE) <pc@manguebit.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      c3326a61
    • Paulo Alcantara's avatar
      smb: client: fix use-after-free in smb2_query_info_compound() · 5c869194
      Paulo Alcantara authored
      The following UAF was triggered when running fstests generic/072 with
      KASAN enabled against Windows Server 2022 and mount options
      'multichannel,max_channels=2,vers=3.1.1,mfsymlinks,noperm'
      
        BUG: KASAN: slab-use-after-free in smb2_query_info_compound+0x423/0x6d0 [cifs]
        Read of size 8 at addr ffff888014941048 by task xfs_io/27534
      
        CPU: 0 PID: 27534 Comm: xfs_io Not tainted 6.6.0-rc7 #1
        Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS
        rel-1.16.2-3-gd478f380-rebuilt.opensuse.org 04/01/2014
        Call Trace:
         dump_stack_lvl+0x4a/0x80
         print_report+0xcf/0x650
         ? srso_alias_return_thunk+0x5/0x7f
         ? srso_alias_return_thunk+0x5/0x7f
         ? __phys_addr+0x46/0x90
         kasan_report+0xda/0x110
         ? smb2_query_info_compound+0x423/0x6d0 [cifs]
         ? smb2_query_info_compound+0x423/0x6d0 [cifs]
         smb2_query_info_compound+0x423/0x6d0 [cifs]
         ? __pfx_smb2_query_info_compound+0x10/0x10 [cifs]
         ? srso_alias_return_thunk+0x5/0x7f
         ? __stack_depot_save+0x39/0x480
         ? kasan_save_stack+0x33/0x60
         ? kasan_set_track+0x25/0x30
         ? ____kasan_slab_free+0x126/0x170
         smb2_queryfs+0xc2/0x2c0 [cifs]
         ? __pfx_smb2_queryfs+0x10/0x10 [cifs]
         ? __pfx___lock_acquire+0x10/0x10
         smb311_queryfs+0x210/0x220 [cifs]
         ? __pfx_smb311_queryfs+0x10/0x10 [cifs]
         ? srso_alias_return_thunk+0x5/0x7f
         ? __lock_acquire+0x480/0x26c0
         ? lock_release+0x1ed/0x640
         ? srso_alias_return_thunk+0x5/0x7f
         ? do_raw_spin_unlock+0x9b/0x100
         cifs_statfs+0x18c/0x4b0 [cifs]
         statfs_by_dentry+0x9b/0xf0
         fd_statfs+0x4e/0xb0
         __do_sys_fstatfs+0x7f/0xe0
         ? __pfx___do_sys_fstatfs+0x10/0x10
         ? srso_alias_return_thunk+0x5/0x7f
         ? lockdep_hardirqs_on_prepare+0x136/0x200
         ? srso_alias_return_thunk+0x5/0x7f
         do_syscall_64+0x3f/0x90
         entry_SYSCALL_64_after_hwframe+0x6e/0xd8
      
        Allocated by task 27534:
         kasan_save_stack+0x33/0x60
         kasan_set_track+0x25/0x30
         __kasan_kmalloc+0x8f/0xa0
         open_cached_dir+0x71b/0x1240 [cifs]
         smb2_query_info_compound+0x5c3/0x6d0 [cifs]
         smb2_queryfs+0xc2/0x2c0 [cifs]
         smb311_queryfs+0x210/0x220 [cifs]
         cifs_statfs+0x18c/0x4b0 [cifs]
         statfs_by_dentry+0x9b/0xf0
         fd_statfs+0x4e/0xb0
         __do_sys_fstatfs+0x7f/0xe0
         do_syscall_64+0x3f/0x90
         entry_SYSCALL_64_after_hwframe+0x6e/0xd8
      
        Freed by task 27534:
         kasan_save_stack+0x33/0x60
         kasan_set_track+0x25/0x30
         kasan_save_free_info+0x2b/0x50
         ____kasan_slab_free+0x126/0x170
         slab_free_freelist_hook+0xd0/0x1e0
         __kmem_cache_free+0x9d/0x1b0
         open_cached_dir+0xff5/0x1240 [cifs]
         smb2_query_info_compound+0x5c3/0x6d0 [cifs]
         smb2_queryfs+0xc2/0x2c0 [cifs]
      
      This is a race between open_cached_dir() and cached_dir_lease_break()
      where the cache entry for the open directory handle receives a lease
      break while creating it.  And before returning from open_cached_dir(),
      we put the last reference of the new @cfid because of
      !@cfid->has_lease.
      
      Besides the UAF, while running xfstests a lot of missed lease breaks
      have been noticed in tests that run several concurrent statfs(2) calls
      on those cached fids
      
        CIFS: VFS: \\w22-root1.gandalf.test No task to wake, unknown frame...
        CIFS: VFS: \\w22-root1.gandalf.test Cmd: 18 Err: 0x0 Flags: 0x1...
        CIFS: VFS: \\w22-root1.gandalf.test smb buf 00000000715bfe83 len 108
        CIFS: VFS: Dump pending requests:
        CIFS: VFS: \\w22-root1.gandalf.test No task to wake, unknown frame...
        CIFS: VFS: \\w22-root1.gandalf.test Cmd: 18 Err: 0x0 Flags: 0x1...
        CIFS: VFS: \\w22-root1.gandalf.test smb buf 000000005aa7316e len 108
        ...
      
      To fix both, in open_cached_dir() ensure that @cfid->has_lease is set
      right before sending out compounded request so that any potential
      lease break will be get processed by demultiplex thread while we're
      still caching @cfid.  And, if open failed for some reason, re-check
      @cfid->has_lease to decide whether or not put lease reference.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarPaulo Alcantara (SUSE) <pc@manguebit.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      5c869194
    • Paulo Alcantara's avatar
      smb: client: remove extra @chan_count check in __cifs_put_smb_ses() · c37ed2d7
      Paulo Alcantara authored
      If @ses->chan_count <= 1, then for-loop body will not be executed so
      no need to check it twice.
      Reviewed-by: default avatarShyam Prasad N <sprasad@microsoft.com>
      Signed-off-by: default avatarPaulo Alcantara (SUSE) <pc@manguebit.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      c37ed2d7
  2. 31 Oct, 2023 6 commits
    • Shyam Prasad N's avatar
      cifs: add xid to query server interface call · 4cf6e110
      Shyam Prasad N authored
      We were passing 0 as the xid for the call to query
      server interfaces. This is not great for debugging.
      This change adds a real xid.
      Signed-off-by: default avatarShyam Prasad N <sprasad@microsoft.com>
      Reviewed-by: default avatarBharath SM <bharathsm@microsoft.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      4cf6e110
    • Shyam Prasad N's avatar
      cifs: print server capabilities in DebugData · 52768695
      Shyam Prasad N authored
      In the output of /proc/fs/cifs/DebugData, we do not
      print the server->capabilities field today.
      With this change, we will do that.
      Signed-off-by: default avatarShyam Prasad N <sprasad@microsoft.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      52768695
    • Eric Biggers's avatar
      smb: use crypto_shash_digest() in symlink_hash() · 783fa2c9
      Eric Biggers authored
      Simplify symlink_hash() by using crypto_shash_digest() instead of an
      init+update+final sequence.  This should also improve performance.
      Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
      Reviewed-by: default avatarPaulo Alcantara (SUSE) <pc@manguebit.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      783fa2c9
    • Paulo Alcantara's avatar
      smb: client: fix use-after-free bug in cifs_debug_data_proc_show() · d328c09e
      Paulo Alcantara authored
      Skip SMB sessions that are being teared down
      (e.g. @ses->ses_status == SES_EXITING) in cifs_debug_data_proc_show()
      to avoid use-after-free in @ses.
      
      This fixes the following GPF when reading from /proc/fs/cifs/DebugData
      while mounting and umounting
      
        [ 816.251274] general protection fault, probably for non-canonical
        address 0x6b6b6b6b6b6b6d81: 0000 [#1] PREEMPT SMP NOPTI
        ...
        [  816.260138] Call Trace:
        [  816.260329]  <TASK>
        [  816.260499]  ? die_addr+0x36/0x90
        [  816.260762]  ? exc_general_protection+0x1b3/0x410
        [  816.261126]  ? asm_exc_general_protection+0x26/0x30
        [  816.261502]  ? cifs_debug_tcon+0xbd/0x240 [cifs]
        [  816.261878]  ? cifs_debug_tcon+0xab/0x240 [cifs]
        [  816.262249]  cifs_debug_data_proc_show+0x516/0xdb0 [cifs]
        [  816.262689]  ? seq_read_iter+0x379/0x470
        [  816.262995]  seq_read_iter+0x118/0x470
        [  816.263291]  proc_reg_read_iter+0x53/0x90
        [  816.263596]  ? srso_alias_return_thunk+0x5/0x7f
        [  816.263945]  vfs_read+0x201/0x350
        [  816.264211]  ksys_read+0x75/0x100
        [  816.264472]  do_syscall_64+0x3f/0x90
        [  816.264750]  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
        [  816.265135] RIP: 0033:0x7fd5e669d381
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarPaulo Alcantara (SUSE) <pc@manguebit.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      d328c09e
    • Paulo Alcantara's avatar
      smb: client: fix potential deadlock when releasing mids · e6322fd1
      Paulo Alcantara authored
      All release_mid() callers seem to hold a reference of @mid so there is
      no need to call kref_put(&mid->refcount, __release_mid) under
      @server->mid_lock spinlock.  If they don't, then an use-after-free bug
      would have occurred anyways.
      
      By getting rid of such spinlock also fixes a potential deadlock as
      shown below
      
      CPU 0                                CPU 1
      ------------------------------------------------------------------
      cifs_demultiplex_thread()            cifs_debug_data_proc_show()
       release_mid()
        spin_lock(&server->mid_lock);
                                           spin_lock(&cifs_tcp_ses_lock)
      				      spin_lock(&server->mid_lock)
        __release_mid()
         smb2_find_smb_tcon()
          spin_lock(&cifs_tcp_ses_lock) *deadlock*
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarPaulo Alcantara (SUSE) <pc@manguebit.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      e6322fd1
    • Steve French's avatar
      smb3: fix creating FIFOs when mounting with "sfu" mount option · 72bc63f5
      Steve French authored
      Fixes some xfstests including generic/564 and generic/157
      
      The "sfu" mount option can be useful for creating special files (character
      and block devices in particular) but could not create FIFOs. It did
      recognize existing empty files with the "system" attribute flag as FIFOs
      but this is too general, so to support creating FIFOs more safely use a new
      tag (but the same length as those for char and block devices ie "IntxLNK"
      and "IntxBLK") "LnxFIFO" to indicate that the file should be treated as a
      FIFO (when mounted with the "sfu").   For some additional context note that
      "sfu" followed the way that "Services for Unix" on Windows handled these
      special files (at least for character and block devices and symlinks),
      which is different than newer Windows which can handle special files
      as reparse points (which isn't an option to many servers).
      
      Cc: stable@vger.kernel.org
      Reviewed-by: default avatarPaulo Alcantara (SUSE) <pc@manguebit.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      72bc63f5
  3. 30 Oct, 2023 2 commits
  4. 23 Oct, 2023 2 commits
  5. 22 Oct, 2023 4 commits
    • Linus Torvalds's avatar
      Linux 6.6-rc7 · 05d3ef8b
      Linus Torvalds authored
      05d3ef8b
    • Linus Torvalds's avatar
      Merge tag 'phy-fixes-6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy · fe3cfe86
      Linus Torvalds authored
      Pull phy fixes from Vinod Koul:
      
       - mapphone-mdm6600 runtime pm & pinctrl handling fixes
      
       - Qualcomm qmp usb pcs register fixes, qmp pcie register size warning
         fix, m31 fixes for wrong pointer in PTR_ERR and dropping wrong vreg
         check, qmp combo fix for 8550 power config register
      
       - realtek usb fix for debugfs_create_dir() and kconfig dependency
      
      * tag 'phy-fixes-6.6' of git://git.kernel.org/pub/scm/linux/kernel/git/phy/linux-phy:
        phy: realtek: Realtek PHYs should depend on ARCH_REALTEK
        phy: qualcomm: Fix typos in comments
        phy: qcom-qmp-combo: initialize PCS_USB registers
        phy: qcom-qmp-combo: Square out 8550 POWER_STATE_CONFIG1
        phy: qcom: m31: Remove unwanted qphy->vreg is NULL check
        phy: realtek: usb: Drop unnecessary error check for debugfs_create_dir()
        phy: qcom: phy-qcom-m31: change m31_ipq5332_regs to static
        phy: qcom: phy-qcom-m31: fix wrong pointer pass to PTR_ERR()
        dt-bindings: phy: qcom,ipq8074-qmp-pcie: fix warning regarding reg size
        phy: qcom-qmp-usb: split PCS_USB init table for sc8280xp and sa8775p
        phy: qcom-qmp-usb: initialize PCS_USB registers
        phy: mapphone-mdm6600: Fix pinctrl_pm handling for sleep pins
        phy: mapphone-mdm6600: Fix runtime PM for remove
        phy: mapphone-mdm6600: Fix runtime disable on probe
      fe3cfe86
    • Linus Torvalds's avatar
      Merge tag 'efi-fixes-for-v6.6-3' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi · 70e65afc
      Linus Torvalds authored
      Pull EFI fixes from Ard Biesheuvel:
       "The boot_params pointer fix uses a somewhat ugly extern struct
        declaration but this will be cleaned up the next cycle.
      
         - don't try to print warnings to the console when it is no longer
           available
      
         - fix theoretical memory leak in SSDT override handling
      
         - make sure that the boot_params global variable is set before the
           KASLR code attempts to hash it for 'randomness'
      
         - avoid soft lockups in the memory acceptance code"
      
      * tag 'efi-fixes-for-v6.6-3' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi:
        efi/unaccepted: Fix soft lockups caused by parallel memory acceptance
        x86/boot: efistub: Assign global boot_params variable
        efi: fix memory leak in krealloc failure handling
        x86/efistub: Don't try to print after ExitBootService()
      70e65afc
    • Linus Torvalds's avatar
      Merge tag 'powerpc-6.6-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 1acfd2bd
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
      
       - Fix stale propagated yield_cpu in qspinlocks leading to lockups
      
       - Fix broken hugepages on some configs due to ARCH_FORCE_MAX_ORDER
      
       - Fix a spurious warning when copros are in use at exit time
      
      Thanks to Nicholas Piggin, Christophe Leroy, Nysal Jan K.A Sachin Sant,
      and Shrikanth Hegde.
      
      * tag 'powerpc-6.6-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/qspinlock: Fix stale propagated yield_cpu
        powerpc/64s/radix: Don't warn on copros in radix__tlb_flush()
        powerpc/mm: Allow ARCH_FORCE_MAX_ORDER up to 12
      1acfd2bd
  6. 21 Oct, 2023 10 commits
  7. 20 Oct, 2023 12 commits
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-fixes-for-v6.6-2-2023-10-20' of... · 9c5d00cb
      Linus Torvalds authored
      Merge tag 'perf-tools-fixes-for-v6.6-2-2023-10-20' of git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools
      
      Pull perf tools fixes from Arnaldo Carvalho de Melo:
      
       - Fix regression in reading scale and unit files from sysfs for PMU
         events, so that we can use that info to pretty print instead of
         printing raw numbers:
      
           # perf stat -e power/energy-ram/,power/energy-gpu/ sleep 2
      
            Performance counter stats for 'system wide':
      
                       1.64 Joules power/energy-ram/
                       0.20 Joules power/energy-gpu/
      
                2.001228914 seconds time elapsed
           #
           # grep -m1 "model name" /proc/cpuinfo
           model name	: Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
           #
      
       - The small llvm.cpp file used to check if the llvm devel files are
         present was incorrectly deleted when removing the BPF event in 'perf
         trace', put it back as it is also used by tools/bpf/bpftool, that
         uses llvm routines to do disassembly of BPF object files.
      
       - Fix use of addr_location__exit() in dlfilter__object_code(), making
         sure that it is only used to pair a previous addr_location__init()
         call.
      
      * tag 'perf-tools-fixes-for-v6.6-2-2023-10-20' of git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools:
        tools build: Fix llvm feature detection, still used by bpftool
        perf dlfilter: Add a test for object_code()
        perf dlfilter: Fix use of addr_location__exit() in dlfilter__object_code()
        perf pmu: Fix perf stat output with correct scale and unit
      9c5d00cb
    • Linus Torvalds's avatar
      Merge tag 'linux_kselftest_active-fixes-6.6-rc7' of... · 444ccf1b
      Linus Torvalds authored
      Merge tag 'linux_kselftest_active-fixes-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      Pull Kselftest fix from Shuah Khan:
       "One single fix to assert check in user_events abi_test to properly
        check bit value on Big Endian architectures. The code treated the bit
        values as Little Endian and the check failed on Big Endian"
      
      * tag 'linux_kselftest_active-fixes-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
        selftests/user_events: Fix abi_test for BE archs
      444ccf1b
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-6.6-4' of git://git.linux-nfs.org/projects/anna/linux-nfs · f74e3ea3
      Linus Torvalds authored
      Pull NFS client fixes from Anna Schumaker:
       "Stable Fix:
         - Fix a pNFS hang in nfs4_evict_inode()
      
        Fixes:
         - Force update of suid/sgid bits after an NFS v4.2 ALLOCATE op
         - Fix a potential oops in nfs_inode_remove_request()
         - Check the validity of the layout pointer in ff_layout_mirror_prepare_stats()
         - Fix incorrectly marking the pNFS MDS with USE_PNFS_DS in some cases"
      
      * tag 'nfs-for-6.6-4' of git://git.linux-nfs.org/projects/anna/linux-nfs:
        NFSv4.1: fixup use EXCHGID4_FLAG_USE_PNFS_DS for DS server
        pNFS/flexfiles: Check the layout validity in ff_layout_mirror_prepare_stats
        pNFS: Fix a hang in nfs4_evict_inode()
        NFS: Fix potential oops in nfs_inode_remove_request()
        nfs42: client needs to strip file mode's suid/sgid bit after ALLOCATE op
      f74e3ea3
    • Linus Torvalds's avatar
      Merge tag 'fsnotify_for_v6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · 0e97fd29
      Linus Torvalds authored
      Pull fanotify fix from Jan Kara:
       "Disable superblock / mount marks for filesystems that can encode file
        handles but not open them (currently only overlayfs).
      
        It is not clear the functionality is useful in any way so let's better
        disable it before someone comes up with some creative misuse"
      
      * tag 'fsnotify_for_v6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
        fanotify: limit reporting of event with non-decodeable file handles
      0e97fd29
    • Linus Torvalds's avatar
      Merge tag 'acpi-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · f20f29cb
      Linus Torvalds authored
      Pull ACPI fixes from Rafael Wysocki:
       "These fix the ACPI initialization ordering on ARM and ACPI IRQ
        management in the cases when irq_create_fwspec_mapping() fails.
      
        Specifics:
      
         - Fix ACPI initialization ordering on ARM that was changed
           incorrectly during the 6.5 development cycle (Hanjun Guo)
      
         - Make acpi_register_gsi() return an error code as appropriate when
           irq_create_fwspec_mapping() returns 0 on failure (Sunil V L)"
      
      * tag 'acpi-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        ACPI: bus: Move acpi_arm_init() to the place of after acpi_ghes_init()
        ACPI: irq: Fix incorrect return value in acpi_register_gsi()
      f20f29cb
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 75e167c2
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "Two small fixes, both in drivers.
      
        The mptsas one is really fixing an error path issue where it can leave
        the misc driver loaded even though the sas driver fails to initialize"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: qla2xxx: Fix double free of dsd_list during driver load
        scsi: mpt3sas: Fix in error path
      75e167c2
    • Linus Torvalds's avatar
      Merge tag 'pinctrl-v6.6-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl · 659eaa00
      Linus Torvalds authored
      Pull pin control fixes from Linus Walleij:
      
       - Concurrent register updates in the Qualcomm LPASS pin controller gets
         a proper lock.
      
       - revert a mutex fix that was causing problems: contention on the mutex
         or something of the sort lead to probe reordering and MMC block
         devices start to register in a different order, which unsuspecting
         userspace is not ready to handle
      
      * tag 'pinctrl-v6.6-3' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl:
        Revert "pinctrl: avoid unsafe code pattern in find_pinctrl()"
        pinctrl: qcom: lpass-lpi: fix concurrent register updates
      659eaa00
    • Linus Torvalds's avatar
      Merge tag 'mtd/fixes-for-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux · f6176471
      Linus Torvalds authored
      Pull MTD fixes from Miquel Raynal:
       "In the raw NAND subsystem, the major fix prevents using cached reads
        with devices not supporting it. There was two bug reports about this.
      
        Apart from that, three drivers (pl353, arasan and marvell) could
        sometimes hide page program failures due to their their own program
        page helper not being fully compliant with the specification (many
        drivers use the default helpers shared by the core). Adding a missing
        check prevents these situation.
      
        Finally, the Qualcomm driver had a broken error path.
      
        In the SPI-NAND subsystem one Micron device used a wrong bitmak
        reporting possibly corrupted ECC status.
      
        Finally, the physmap-core got stripped from its map_rom fallback by
        mistake, this feature is added back"
      
      * tag 'mtd/fixes-for-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux:
        mtd: rawnand: Ensure the nand chip supports cached reads
        mtd: rawnand: qcom: Unmap the right resource upon probe failure
        mtd: rawnand: pl353: Ensure program page operations are successful
        mtd: rawnand: arasan: Ensure program page operations are successful
        mtd: spinand: micron: correct bitmask for ecc status
        mtd: physmap-core: Restore map_rom fallback
        mtd: rawnand: marvell: Ensure program page operations are successful
      f6176471
    • Linus Torvalds's avatar
      Merge tag 'mmc-v6.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · 7da6c042
      Linus Torvalds authored
      Pull MMC fixes from Ulf Hansson:
       "MMC core:
         - Capture correct oemid-bits for eMMC cards
         - Fix error propagation for some ioctl commands
         - Hold retuning if SDIO is in 1-bit mode
      
        MMC host:
         - mtk-sd: Use readl_poll_timeout_atomic to not "schedule while atomic"
         - sdhci-msm: Correct minimum number of clocks
         - sdhci-pci-gli: Fix LPM negotiation so x86/S0ix SoCs can suspend
         - sdhci-sprd: Fix error code in sdhci_sprd_tuning()"
      
      * tag 'mmc-v6.6-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
        mmc: core: Capture correct oemid-bits for eMMC cards
        mmc: mtk-sd: Use readl_poll_timeout_atomic in msdc_reset_hw
        mmc: core: Fix error propagation for some ioctl commands
        mmc: sdhci-sprd: Fix error code in sdhci_sprd_tuning()
        mmc: sdhci-pci-gli: fix LPM negotiation so x86/S0ix SoCs can suspend
        mmc: core: sdio: hold retuning if sdio in 1-bit mode
        dt-bindings: mmc: sdhci-msm: correct minimum number of clocks
      7da6c042
    • Linus Torvalds's avatar
      Merge tag 'block-6.6-2023-10-20' of git://git.kernel.dk/linux · c3200081
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
       "A fix for a regression with sed-opal and saved keys, and outside of
        that an NVMe pull request fixing a few minor issues on that front"
      
      * tag 'block-6.6-2023-10-20' of git://git.kernel.dk/linux:
        nvme-pci: add BOGUS_NID for Intel 0a54 device
        nvmet-auth: complete a request only after freeing the dhchap pointers
        nvme: sanitize metadata bounce buffer for reads
        block: Fix regression in sed-opal for a saved key.
        nvme-auth: use chap->s2 to indicate bidirectional authentication
        nvmet-tcp: Fix a possible UAF in queue intialization setup
        nvme-rdma: do not try to stop unallocated queues
      c3200081
    • Linus Torvalds's avatar
      Merge tag 'io_uring-6.6-2023-10-20' of git://git.kernel.dk/linux · 747b7628
      Linus Torvalds authored
      Pull io_uring fix from Jens Axboe:
       "Just a single fix for a bug report that came in, fixing a case where
        failure to init a ring with IORING_SETUP_NO_MMAP can trigger a NULL
        pointer dereference"
      
      * tag 'io_uring-6.6-2023-10-20' of git://git.kernel.dk/linux:
        io_uring: fix crash with IORING_SETUP_NO_MMAP and invalid SQ ring address
      747b7628
    • Linus Torvalds's avatar
      Merge tag 'sound-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 14f68633
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "Still higher volume than wished, but all are driver-specific small
        fixes and look safe for this late RC.
      
        The majority of changes are for ASoC, especially for wcd938x driver
        and Cirrus codec drivers, while there are other random fixes including
        usual HD-audio quirks"
      
      * tag 'sound-6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (22 commits)
        ASoC: da7219: Correct the process of setting up Gnd switch in AAD
        ALSA: hda/realtek - Fixed ASUS platform headset Mic issue
        ALSA: hda/realtek: Add quirk for ASUS ROG GU603ZV
        ALSA: hda/relatek: Enable Mute LED on HP Laptop 15s-fq5xxx
        ASoC: dwc: Fix non-DT instantiation
        ASoC: codecs: tas2780: Fix log of failed reset via I2C.
        ASoC: rt5650: fix the wrong result of key button
        ASoC: cs42l42: Fix missing include of gpio/consumer.h
        ASoC: cs42l43: Update values for bias sense
        ASoC: dt-bindings: cirrus,cs42l43: Update values for bias sense
        ASoC: cs35l56: ASP1 DOUT must default to Hi-Z when not transmitting
        ASoC: pxa: fix a memory leak in probe()
        ASoC: cs35l56: Fix illegal use of init_completion()
        ASoC: codecs: wcd938x-sdw: fix runtime PM imbalance on probe errors
        ASoC: codecs: wcd938x-sdw: fix use after free on driver unbind
        ASoC: codecs: wcd938x: fix runtime PM imbalance on remove
        ASoC: codecs: wcd938x: fix regulator leaks on probe errors
        ASoC: codecs: wcd938x: fix resource leaks on bind errors
        ASoC: codecs: wcd938x: fix unbind tear down order
        ASoC: codecs: wcd938x: drop bogus bind error handling
        ...
      14f68633