1. 15 Aug, 2023 3 commits
    • Linus Torvalds's avatar
      Merge tag '6.5-rc6-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 · 2d7b8c6b
      Linus Torvalds authored
      Pull smb client fixes from Steve French:
       "Three smb client fixes, all for stable:
      
         - fix for oops in unmount race with lease break of deferred close
      
         - debugging improvement for reconnect
      
         - fix for fscache deadlock (folio_wait_bit_common hang)"
      
      * tag '6.5-rc6-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        smb3: display network namespace in debug information
        cifs: Release folio lock on fscache read hit.
        cifs: fix potential oops in cifs_oplock_break
      2d7b8c6b
    • Linus Torvalds's avatar
      Merge tag 'regulator-fix-v6.5-rc6' of... · d4f8e13b
      Linus Torvalds authored
      Merge tag 'regulator-fix-v6.5-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
      
      Pull regulator fixes from Mark Brown:
       "Two small driver specific fixes: one incorrect definition for one of
        the Qualcomm regulators and better handling of poorly formed DTs in
        the DA9063 driver"
      
      * tag 'regulator-fix-v6.5-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
        regulator: qcom-rpmh: Fix LDO 12 regulator for PM8550
        regulator: da9063: better fix null deref with partial DT
      d4f8e13b
    • Linus Torvalds's avatar
      Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost · 91aa6c41
      Linus Torvalds authored
      Pull virtio fixes from Michael Tsirkin:
       "Just a bunch of bugfixes all over the place"
      
      * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost: (26 commits)
        virtio-mem: check if the config changed before fake offlining memory
        virtio-mem: keep retrying on offline_and_remove_memory() errors in Sub Block Mode (SBM)
        virtio-mem: convert most offline_and_remove_memory() errors to -EBUSY
        virtio-mem: remove unsafe unplug in Big Block Mode (BBM)
        pds_vdpa: fix up debugfs feature bit printing
        pds_vdpa: alloc irq vectors on DRIVER_OK
        pds_vdpa: clean and reset vqs entries
        pds_vdpa: always allow offering VIRTIO_NET_F_MAC
        pds_vdpa: reset to vdpa specified mac
        virtio-net: Zero max_tx_vq field for VIRTIO_NET_CTRL_MQ_HASH_CONFIG case
        vdpa/mlx5: Fix crash on shutdown for when no ndev exists
        vdpa/mlx5: Delete control vq iotlb in destroy_mr only when necessary
        vdpa/mlx5: Fix mr->initialized semantics
        vdpa/mlx5: Correct default number of queues when MQ is on
        virtio-vdpa: Fix cpumask memory leak in virtio_vdpa_find_vqs()
        vduse: Use proper spinlock for IRQ injection
        vdpa: Enable strict validation for netlinks ops
        vdpa: Add max vqp attr to vdpa_nl_policy for nlattr length check
        vdpa: Add queue index attr to vdpa_nl_policy for nlattr length check
        vdpa: Add features attr to vdpa_nl_policy for nlattr length check
        ...
      91aa6c41
  2. 14 Aug, 2023 2 commits
    • Steve French's avatar
      smb3: display network namespace in debug information · 7b38f6dd
      Steve French authored
      We recently had problems where a network namespace was deleted
      causing hard to debug reconnect problems.  To help deal with
      configuration issues like this it is useful to dump the network
      namespace to better debug what happened.
      
      So add this to information displayed in /proc/fs/cifs/DebugData for
      the server (and channels if mounted with multichannel). For example:
      
         Local Users To Server: 1 SecMode: 0x1 Req On Wire: 0 Net namespace: 4026531840
      
      This can be easily compared with what is displayed for the
      processes on the system. For example /proc/1/ns/net in this case
      showed the same thing (see below), and we can see that the namespace
      is still valid in this example.
      
         'net:[4026531840]'
      
      Cc: stable@vger.kernel.org
      Acked-by: default avatarPaulo Alcantara (SUSE) <pc@manguebit.com>
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      7b38f6dd
    • Russell Harmon via samba-technical's avatar
      cifs: Release folio lock on fscache read hit. · 69513dd6
      Russell Harmon via samba-technical authored
      Under the current code, when cifs_readpage_worker is called, the call
      contract is that the callee should unlock the page. This is documented
      in the read_folio section of Documentation/filesystems/vfs.rst as:
      
      > The filesystem should unlock the folio once the read has completed,
      > whether it was successful or not.
      
      Without this change, when fscache is in use and cache hit occurs during
      a read, the page lock is leaked, producing the following stack on
      subsequent reads (via mmap) to the page:
      
      $ cat /proc/3890/task/12864/stack
      [<0>] folio_wait_bit_common+0x124/0x350
      [<0>] filemap_read_folio+0xad/0xf0
      [<0>] filemap_fault+0x8b1/0xab0
      [<0>] __do_fault+0x39/0x150
      [<0>] do_fault+0x25c/0x3e0
      [<0>] __handle_mm_fault+0x6ca/0xc70
      [<0>] handle_mm_fault+0xe9/0x350
      [<0>] do_user_addr_fault+0x225/0x6c0
      [<0>] exc_page_fault+0x84/0x1b0
      [<0>] asm_exc_page_fault+0x27/0x30
      
      This requires a reboot to resolve; it is a deadlock.
      
      Note however that the call to cifs_readpage_from_fscache does mark the
      page clean, but does not free the folio lock. This happens in
      __cifs_readpage_from_fscache on success. Releasing the lock at that
      point however is not appropriate as cifs_readahead also calls
      cifs_readpage_from_fscache and *does* unconditionally release the lock
      after its return. This change therefore effectively makes
      cifs_readpage_worker work like cifs_readahead.
      Signed-off-by: default avatarRussell Harmon <russ@har.mn>
      Acked-by: default avatarPaulo Alcantara (SUSE) <pc@manguebit.com>
      Reviewed-by: default avatarDavid Howells <dhowells@redhat.com>
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
      69513dd6
  3. 13 Aug, 2023 9 commits
  4. 12 Aug, 2023 11 commits
    • Linus Torvalds's avatar
      Merge tag 'for-6.5-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · a785fd28
      Linus Torvalds authored
      Pull btrfs fixes from David Sterba:
       "More fixes, some of them going back to older releases and there are
        fixes for hangs in stress tests regarding space caching:
      
         - fixes and progress tracking for hangs in free space caching, found
           by test generic/475
      
         - writeback fixes, write pages in integrity mode and skip writing
           pages that have been written meanwhile
      
         - properly clear end of extent range after an error
      
         - relocation fixes:
            - fix race betwen qgroup tree creation and relocation
            - detect and report invalid reloc roots"
      
      * tag 'for-6.5-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        btrfs: set cache_block_group_error if we find an error
        btrfs: reject invalid reloc tree root keys with stack dump
        btrfs: exit gracefully if reloc roots don't match
        btrfs: avoid race between qgroup tree creation and relocation
        btrfs: properly clear end of the unreserved range in cow_file_range
        btrfs: don't wait for writeback on clean pages in extent_write_cache_pages
        btrfs: don't stop integrity writeback too early
        btrfs: wait for actual caching progress during allocation
      a785fd28
    • Linus Torvalds's avatar
      Merge tag 'gpio-fixes-for-v6.5-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux · ae545c32
      Linus Torvalds authored
      Pull gpio fixes from Bartosz Golaszewski:
      
       - mark virtual chips exposed by gpio-sim as ones that can sleep
         (callbacks must not be called from interrupt context)
      
       - fix an off-by-one error in gpio-ws16c48
      
      * tag 'gpio-fixes-for-v6.5-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
        gpio: ws16c48: Fix off-by-one error in WS16C48 resource region extent
        gpio: sim: mark the GPIO chip as a one that can sleep
      ae545c32
    • Mateusz Guzik's avatar
      locking: remove spin_lock_prefetch · c8afaa1b
      Mateusz Guzik authored
      The only remaining consumer is new_inode, where it showed up in 2001 as
      commit c37fa164 ("v2.4.9.9 -> v2.4.9.10") in a historical repo [1]
      with a changelog which does not mention it.
      
      Since then the line got only touched up to keep compiling.
      
      While it may have been of benefit back in the day, it is guaranteed to
      at best not get in the way in the multicore setting -- as the code
      performs *a lot* of work between the prefetch and actual lock acquire,
      any contention means the cacheline is already invalid by the time the
      routine calls spin_lock().  It adds spurious traffic, for short.
      
      On top of it prefetch is notoriously tricky to use for single-threaded
      purposes, making it questionable from the get go.
      
      As such, remove it.
      
      I admit upfront I did not see value in benchmarking this change, but I
      can do it if that is deemed appropriate.
      
      Removal from new_inode and of the entire thing are in the same patch as
      requested by Linus, so whatever weird looks can be directed at that guy.
      
      Link: https://git.kernel.org/pub/scm/linux/kernel/git/tglx/history.git/commit/fs/inode.c?id=c37fa164f793735b32aa3f53154ff1a7659e6442 [1]
      Signed-off-by: default avatarMateusz Guzik <mjguzik@gmail.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      c8afaa1b
    • Linus Torvalds's avatar
      Merge tag 'char-misc-6.5-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · 3feecb1b
      Linus Torvalds authored
      Pull char / misc driver fixes from Greg KH:
       "Here are some small char/misc driver fixes for 6.5-rc6 that resolve
        some reported issues. Included in here are:
      
         - bunch of iio driver fixes for reported problems
      
         - interconnect driver fixes
      
         - counter driver build fix
      
         - cardreader driver fixes
      
         - binder driver fixes
      
         - other tiny driver fixes
      
        All of these have been in linux-next for a while with no reported
        problems"
      
      * tag 'char-misc-6.5-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (21 commits)
        misc: tps6594-esm: Disable ESM for rev 1 PMIC
        misc: rtsx: judge ASPM Mode to set PETXCFG Reg
        binder: fix memory leak in binder_init()
        iio: cros_ec: Fix the allocation size for cros_ec_command
        tools/counter: Makefile: Replace rmdir by rm to avoid make,clean failure
        iio: imu: lsm6dsx: Fix mount matrix retrieval
        iio: adc: meson: fix core clock enable/disable moment
        iio: core: Prevent invalid memory access when there is no parent
        iio: frequency: admv1013: propagate errors from regulator_get_voltage()
        counter: Fix menuconfig "Counter support" submenu entries disappearance
        dt-bindings: iio: adi,ad74115: remove ref from -nanoamp
        iio: adc: ina2xx: avoid NULL pointer dereference on OF device match
        iio: light: bu27008: Fix intensity data type
        iio: light: bu27008: Fix scale format
        iio: light: bu27034: Fix scale format
        iio: adc: ad7192: Fix ac excitation feature
        interconnect: qcom: sa8775p: add enable_mask for bcm nodes
        interconnect: qcom: sm8550: add enable_mask for bcm nodes
        interconnect: qcom: sm8450: add enable_mask for bcm nodes
        interconnect: qcom: Add support for mask-based BCMs
        ...
      3feecb1b
    • Linus Torvalds's avatar
      Merge tag 'usb-6.5-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 469a2f50
      Linus Torvalds authored
      Pull USB / Thunderbolt driver fixes from Greg KH:
       "Here are some small USB and Thunderbolt driver fixes for reported
        problems. Included in here are:
      
         - thunderbolt driver memory leak fix
      
         - thunderbolt display flicker fix
      
         - usb dwc3 driver fix
      
         - usb gadget uvc disconnect crash fix
      
         - usb typec Kconfig build dependency fix
      
         - usb typec small fixes
      
         - usb-con-gpio bugfix
      
         - usb-storage old driver bugfix
      
        All of these have been in linux-next for a while with no reported
        issues"
      
      * tag 'usb-6.5-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
        thunderbolt: Fix memory leak in tb_handle_dp_bandwidth_request()
        usb: dwc3: Properly handle processing of pending events
        usb-storage: alauda: Fix uninit-value in alauda_check_media()
        usb: common: usb-conn-gpio: Prevent bailing out if initial role is none
        USB: Gadget: core: Help prevent panic during UVC unconfigure
        usb: typec: mux: intel: Add dependency on USB_COMMON
        usb: typec: nb7vpq904m: Add an error handling path in nb7vpq904m_probe()
        usb: typec: altmodes/displayport: Signal hpd when configuring pin assignment
        usb: typec: tcpm: Fix response to vsafe0V event
        thunderbolt: Fix Thunderbolt 3 display flickering issue on 2nd hot plug onwards
      469a2f50
    • Linus Torvalds's avatar
      Merge tag 'x86_urgent_for_v6.5_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 43972cf2
      Linus Torvalds authored
      Pull x86 fixes from Borislav Petkov:
      
       - Do not parse the confidential computing blob on non-AMD hardware as
         it leads to an EFI config table ending up unmapped
      
       - Use the correct segment selector in the 32-bit version of getcpu() in
         the vDSO
      
       - Make sure vDSO and VVAR regions are placed in the 47-bit VA range
         even on 5-level paging systems
      
       - Add models 0x90-0x91 to the range of AMD Zenbleed-affected CPUs
      
      * tag 'x86_urgent_for_v6.5_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/cpu/amd: Enable Zenbleed fix for AMD Custom APU 0405
        x86/mm: Fix VDSO and VVAR placement on 5-level paging machines
        x86/linkage: Fix typo of BUILD_VDSO in asm/linkage.h
        x86/vdso: Choose the right GDT_ENTRY_CPUNODE for 32-bit getcpu() on 64-bit kernel
        x86/sev: Do not try to parse for the CC blob on non-AMD hardware
      43972cf2
    • Linus Torvalds's avatar
      Merge tag 'x86_bugs_for_v6.5_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 272b86ba
      Linus Torvalds authored
      Pull x86 mitigation fixes from Borislav Petkov:
       "The first set of fallout fixes after the embargo madness. There will
        be another set next week too.
      
         - A first series of cleanups/unifications and documentation
           improvements to the SRSO and GDS mitigations code which got
           postponed to after the embargo date
      
         - Fix the SRSO aliasing addresses assertion so that the LLVM linker
           can parse it too"
      
      * tag 'x86_bugs_for_v6.5_rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        driver core: cpu: Fix the fallback cpu_show_gds() name
        x86: Move gds_ucode_mitigated() declaration to header
        x86/speculation: Add cpu_show_gds() prototype
        driver core: cpu: Make cpu_show_not_affected() static
        x86/srso: Fix build breakage with the LLVM linker
        Documentation/srso: Document IBPB aspect and fix formatting
        driver core: cpu: Unify redundant silly stubs
        Documentation/hw-vuln: Unify filename specification in index
      272b86ba
    • Linus Torvalds's avatar
      Merge tag 'tpmdd-v6.5-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd · f8de32cc
      Linus Torvalds authored
      Pull tpm irq fixes from Jarkko Sakkinen:
       "These change the probing and enabling of interrupts advertised by the
        platform firmware (i.e. ACPI, Device Tree) to be an opt-in for tpm_tis,
        which can be set from the kernel command-line.
      
        Note that the opt-in change is only for the PC MMIO tpm_tis module. It
        does not affect other similar drivers using IRQs, like tpm_tis_spi and
        synquacer"
      
      * tag 'tpmdd-v6.5-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd:
        tpm_tis: Opt-in interrupts
        tpm: tpm_tis: Fix UPX-i11 DMI_MATCH condition
      f8de32cc
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma · 9a20704f
      Linus Torvalds authored
      Pull rdma fixes from Jason Gunthorpe:
       "A few small bugs:
      
         - Fix longstanding mlx5 bug where ODP would fail with certain MR
           alignments
      
         - cancel work to prevent a hfi1 UAF
      
         - MAINTAINERS update
      
         - UAF, missing mutex_init and an error unwind bug in bnxt_re"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma:
        RDMA/bnxt_re: Initialize dpi_tbl_lock mutex
        RDMA/bnxt_re: Fix error handling in probe failure path
        RDMA/bnxt_re: Properly order ib_device_unalloc() to avoid UAF
        MAINTAINERS: Remove maintainer of HiSilicon RoCE
        IB/hfi1: Fix possible panic during hotplug remove
        RDMA/umem: Set iova in ODP flow
      9a20704f
    • Linus Torvalds's avatar
      Merge tag 'zonefs-6.5-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/zonefs · 0725a704
      Linus Torvalds authored
      Pull zonefs fix from Damien Le Moal:
      
       - The switch to using iomap for executing a direct synchronous write to
         sequential files using a zone append BIO overlooked cases where the
         BIO built by iomap is too large and needs splitting, which is not
         allowed with zone append.
      
         Fix this by using regular write commands instead. The use of zone
         append commands will be reintroduced later with proper support from
         iomap.
      
      * tag 'zonefs-6.5-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/zonefs:
        zonefs: fix synchronous direct writes to sequential files
      0725a704
    • Linus Torvalds's avatar
      Merge tag 'hwmon-for-v6.5-rc6' of... · 5512c33c
      Linus Torvalds authored
      Merge tag 'hwmon-for-v6.5-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
      
      Pull hwmon fixes from Guenter Roeck:
      
       - Fix sporadic comunication errors in pmbus/bel-pfe and
         aquacomputer_d5next drivers
      
      * tag 'hwmon-for-v6.5-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
        hwmon: (aquacomputer_d5next) Add selective 200ms delay after sending ctrl report
        hwmon: (pmbus/bel-pfe) Enable PMBUS_SKIP_STATUS_CHECK for pfe1100
      5512c33c
  5. 11 Aug, 2023 15 commits