Skip to content
  1. Dec 23, 2023
    • Linus Torvalds's avatar
      Merge tag 'block-6.7-2023-12-22' of git://git.kernel.dk/linux · 5254c0cb
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
       "Just an NVMe pull request this time, with a fix for bad sleeping
        context, and a revert of a patch that caused some trouble"
      
      * tag 'block-6.7-2023-12-22' of git://git.kernel.dk/linux:
        nvme-pci: fix sleeping function called from interrupt context
        Revert "nvme-fc: fix race between error recovery and creating association"
      5254c0cb
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 867583b3
      Linus Torvalds authored
      Pull kvm fixes from Paolo Bonzini:
      "RISC-V:
      
         - Fix a race condition in updating external interrupt for
           trap-n-emulated IMSIC swfile
      
         - Fix print_reg defaults in get-reg-list selftest
      
        ARM:
      
         - Ensure a vCPU's redistributor is unregistered from the MMIO bus if
           vCPU creation fails
      
         - Fix building KVM selftests for arm64 from the top-level Makefile
      
        x86:
      
         - Fix breakage for SEV-ES guests that use XSAVES
      
        Selftests:
      
         - Fix bad use of strcat(), by not using strcat() at all"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
        KVM: SEV: Do not intercept accesses to MSR_IA32_XSS for SEV-ES guests
        KVM: selftests: Fix dynamic generation of configuration names
        RISCV: KVM: update external interrupt atomically for IMSIC swfile
        KVM: riscv: selftests: Fix get-reg-list print_reg defaults
        KVM: selftests: Ensure sysreg-defs.h is generated at the expected path
        KVM: Convert comment into an assertion in kvm_io_bus_register_dev()
        KVM: arm64: vgic: Ensure that slots_lock is held in vgic_register_all_redist_iodevs()
        KVM: arm64: vgic: Force vcpu vgic teardown on vcpu destroy
        KVM: arm64: vgic: Add a non-locking primitive for kvm_vgic_vcpu_destroy()
        KVM: arm64: vgic: Simplify kvm_vgic_destroy()
      867583b3
    • Paolo Bonzini's avatar
      Merge tag 'kvm-riscv-fixes-6.7-1' of https://github.com/kvm-riscv/linux into kvm-master · ef5b2837
      Paolo Bonzini authored
      KVM/riscv fixes for 6.7, take #1
      
      - Fix a race condition in updating external interrupt for
        trap-n-emulated IMSIC swfile
      - Fix print_reg defaults in get-reg-list selftest
      ef5b2837
    • Paolo Bonzini's avatar
      Merge tag 'kvmarm-fixes-6.7-2' of... · 5c2b2176
      Paolo Bonzini authored
      Merge tag 'kvmarm-fixes-6.7-2' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into kvm-master
      
      KVM/arm64 fixes for 6.7, part #2
      
       - Ensure a vCPU's redistributor is unregistered from the MMIO bus
         if vCPU creation fails
      
       - Fix building KVM selftests for arm64 from the top-level Makefile
      5c2b2176
    • Linus Torvalds's avatar
      Merge tag 'printk-for-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux · c0f65a7c
      Linus Torvalds authored
      Pull printk fix from Petr Mladek:
      
       - Prevent refcount warning from code releasing a fwnode
      
      * tag 'printk-for-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux:
        lib/vsprintf: Fix %pfwf when current node refcount == 0
      c0f65a7c
    • Linus Torvalds's avatar
      Merge tag 'sound-6.7-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 5414aea7
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "Apparently there were so many kids wishing bug fixes that made Santa
        busy; here we have lots of fixes although it's a bit late. But all
        changes are device-specific, hence it should be relatively safe to
        apply.
      
        Most of changes are for Cirrus codecs (for both ASoC and HD-audio),
        while the remaining are fixes for TI codecs, HD-audio and USB-audio
        quirks"
      
      * tag 'sound-6.7-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (24 commits)
        ALSA: hda: cs35l41: Only add SPI CS GPIO if SPI is enabled in kernel
        ALSA: hda: cs35l41: Do not allow uninitialised variables to be freed
        ASoC: fsl_sai: Fix channel swap issue on i.MX8MP
        ASoC: hdmi-codec: fix missing report for jack initial status
        ALSA: hda/realtek: Add quirks for ASUS Zenbook 2023 Models
        ALSA: hda: cs35l41: Support additional ASUS Zenbook 2023 Models
        ALSA: hda/realtek: Add quirks for ASUS Zenbook 2022 Models
        ALSA: hda: cs35l41: Support additional ASUS Zenbook 2022 Models
        ALSA: hda/realtek: Add quirks for ASUS ROG 2023 models
        ALSA: hda: cs35l41: Support additional ASUS ROG 2023 models
        ALSA: hda: cs35l41: Add config table to support many laptops without _DSD
        ASoC: Intel: bytcr_rt5640: Add new swapped-speakers quirk
        ASoC: Intel: bytcr_rt5640: Add quirk for the Medion Lifetab S10346
        kselftest: alsa: fixed a print formatting warning
        ALSA: usb-audio: Increase delay in MOTU M quirk
        ASoC: tas2781: check the validity of prm_no/cfg_no
        ALSA: hda/tas2781: select program 0, conf 0 by default
        ALSA: hda/realtek: Add quirk for ASUS ROG GV302XA
        ASoC: cs42l43: Don't enable bias sense during type detect
        ASoC: Intel: soc-acpi-intel-mtl-match: Change CS35L56 prefixes to AMPn
        ...
      5414aea7
    • Linus Torvalds's avatar
      Merge tag 'i2c-for-6.7-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux · 2618280d
      Linus Torvalds authored
      Pull i2c fixes from Wolfram Sang:
      
       - error path fixes (qcom-geni)
      
       - polling mode fix (rk3x)
      
       - target mode state machine fix (aspeed)
      
      * tag 'i2c-for-6.7-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
        i2c: aspeed: Handle the coalesced stop conditions with the start conditions.
        i2c: rk3x: fix potential spinlock recursion on poll
        i2c: qcom-geni: fix missing clk_disable_unprepare() and geni_se_resources_off()
      2618280d
    • Linus Torvalds's avatar
      Merge tag 'gpio-fixes-for-v6.7-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux · a9ca0330
      Linus Torvalds authored
      Pull gpio fixes from Bartosz Golaszewski:
       "Here's another round of fixes from the GPIO subsystem for this release
        cycle.
      
        There's one commit adding synchronization to an ioctl() we overlooked
        previously and another synchronization changeset for one of the
        drivers:
      
         - add protection against GPIO device removal to an overlooked ioctl()
      
         - synchronize the interrupt mask register manually in gpio-dwapb"
      
      * tag 'gpio-fixes-for-v6.7-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
        gpio: dwapb: mask/unmask IRQ when disable/enale it
        gpiolib: cdev: add gpio_device locking wrapper around gpio_ioctl()
      a9ca0330
    • Linus Torvalds's avatar
      Merge tag 'for-linus-6.7a-rc7-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · b7bc7bce
      Linus Torvalds authored
      Pull xen fix from Juergen Gross:
       "A single patch fixing a build issue for x86 32-bit configurations with
        CONFIG_XEN, which was introduced in the 6.7 development cycle"
      
      * tag 'for-linus-6.7a-rc7-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        x86/xen: add CPU dependencies for 32-bit build
      b7bc7bce
  2. Dec 22, 2023
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2023-12-22' of git://anongit.freedesktop.org/drm/drm · 8afe6f0e
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Pretty quiet for this week, just i915 and amdgpu fixes,
      
        I think the misc tree got lost this week, but didn't seem to have too
        much in it, so it can wait. I've also got a bunch of nouveau GSP fixes
        sailing around that'll probably land next time as well.
      
        amdgpu:
         - DCN 3.5 fixes
         - DCN 3.2 SubVP fix
         - GPUVM fix
      
        amdkfd:
         - SVM fix for APUs
      
        i915:
         - Fix state readout and check for DSC and bigjoiner combo
         - Fix a potential integer overflow
         - Reject async flips with bigjoiner
         - Fix MTL HDMI/DP PLL clock selection
         - Fix various issues by disabling pipe DMC events"
      
      * tag 'drm-fixes-2023-12-22' of git://anongit.freedesktop.org/drm/drm:
        drm/amdgpu: re-create idle bo's PTE during VM state machine reset
        drm/amd/display: dereference variable before checking for zero
        drm/amd/display: get dprefclk ss info from integration info table
        drm/amd/display: Add case for dcn35 to support usb4 dmub hpd event
        drm/amd/display: disable FPO and SubVP for older DMUB versions on DCN32x
        drm/amdkfd: svm range always mapped flag not working on APU
        drm/amd/display: Revert " drm/amd/display: Use channel_width = 2 for vram table 3.0"
        drm/i915/dmc: Don't enable any pipe DMC events
        drm/i915/mtl: Fix HDMI/DP PLL clock selection
        drm/i915: Reject async flips with bigjoiner
        drm/i915/hwmon: Fix static analysis tool reported issues
        drm/i915/display: Get bigjoiner config before dsc config during readout
      8afe6f0e
    • Linus Torvalds's avatar
      Merge tag '9p-for-6.7-rc7' of https://github.com/martinetd/linux · 93a165cb
      Linus Torvalds authored
      Pull 9p fixes from Dominique Martinet:
       "Two small fixes scheduled for stable trees:
      
        A tracepoint fix that's been reading past the end of messages forever,
        but semi-recently also went over the end of the buffer. And a
        potential incorrectly freeing garbage in pdu parsing error path"
      
      * tag '9p-for-6.7-rc7' of https://github.com/martinetd/linux:
        net: 9p: avoid freeing uninit memory in p9pdu_vreadf
        9p: prevent read overrun in protocol dump tracepoint
      93a165cb
    • Dave Airlie's avatar
      Merge tag 'drm-intel-fixes-2023-12-21' of... · d4b6e7f5
      Dave Airlie authored
      Merge tag 'drm-intel-fixes-2023-12-21' of git://anongit.freedesktop.org/drm/drm-intel
      
       into drm-fixes
      
      drm/i915 fixes for v6.7-rc7:
      - Fix state readout and check for DSC and bigjoiner combo
      - Fix a potential integer overflow
      - Reject async flips with bigjoiner
      - Fix MTL HDMI/DP PLL clock selection
      - Fix various issues by disabling pipe DMC events
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Jani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/87plyzsnxi.fsf@intel.com
      d4b6e7f5
    • Dave Airlie's avatar
      Merge tag 'amd-drm-fixes-6.7-2023-12-20' of... · b7ef7caf
      Dave Airlie authored
      Merge tag 'amd-drm-fixes-6.7-2023-12-20' of https://gitlab.freedesktop.org/agd5f/linux
      
       into drm-fixes
      
      amd-drm-fixes-6.7-2023-12-20:
      
      amdgpu:
      - DCN 3.5 fixes
      - DCN 3.2 SubVP fix
      - GPUVM fix
      
      amdkfd:
      - SVM fix for APUs
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Alex Deucher <alexander.deucher@amd.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20231220164845.4975-1-alexander.deucher@amd.com
      b7ef7caf
    • Linus Torvalds's avatar
      Merge tag 'pinctrl-v6.7-4' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl · 24e0d2e5
      Linus Torvalds authored
      Pull pin control fixes from Linus Walleij:
       "Some driver fixes for v6.7, all are in drivers, the most interesting
        one is probably the AMD laptop suspend bug which really needs fixing.
        Freedestop org has the bug description:
      
          https://gitlab.freedesktop.org/drm/amd/-/issues/2812
      
        Summary:
      
         - Ignore disabled device tree nodes in the Starfive 7100 and 7100
           drivers.
      
         - Mask non-wake source pins with interrupt enabled at suspend in the
           AMD driver, this blocks unnecessary wakeups from misc interrupts.
           This can be power consuming because in many cases the system
           doesn't really suspend, it just wakes right back up.
      
         - Fix a typo breaking compilation of the cy8c95x0 driver, and fix up
           bugs in the get/set config callbacks.
      
         - Use a dedicated lock class for the PIO4 drivers IRQ. This fixes a
           crash on suspend"
      
      * tag 'pinctrl-v6.7-4' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl:
        pinctrl: at91-pio4: use dedicated lock class for IRQ
        pinctrl: cy8c95x0: Fix get_pincfg
        pinctrl: cy8c95x0: Fix regression
        pinctrl: cy8c95x0: Fix typo
        pinctrl: amd: Mask non-wake source pins with interrupt enabled at suspend
        pinctrl: starfive: jh7100: ignore disabled device tree nodes
        pinctrl: starfive: jh7110: ignore disabled device tree nodes
      24e0d2e5
    • Jens Axboe's avatar
      Merge tag 'nvme-6.7-2023-12-21' of git://git.infradead.org/nvme into block-6.7 · 13d822bf
      Jens Axboe authored
      Pull NVMe fixes from Keith:
      
      "nvme fixes for Linux 6.7
      
       - Revert a commit with improper sleep context (Keith)
       - Fix async event handling sleep context (Maurizio)"
      
      * tag 'nvme-6.7-2023-12-21' of git://git.infradead.org/nvme:
        nvme-pci: fix sleeping function called from interrupt context
        Revert "nvme-fc: fix race between error recovery and creating association"
      13d822bf
    • David Howells's avatar
      afs: Fix use-after-free due to get/remove race in volume tree · 9a6b294a
      David Howells authored
      
      
      When an afs_volume struct is put, its refcount is reduced to 0 before
      the cell->volume_lock is taken and the volume removed from the
      cell->volumes tree.
      
      Unfortunately, this means that the lookup code can race and see a volume
      with a zero ref in the tree, resulting in a use-after-free:
      
          refcount_t: addition on 0; use-after-free.
          WARNING: CPU: 3 PID: 130782 at lib/refcount.c:25 refcount_warn_saturate+0x7a/0xda
          ...
          RIP: 0010:refcount_warn_saturate+0x7a/0xda
          ...
          Call Trace:
           afs_get_volume+0x3d/0x55
           afs_create_volume+0x126/0x1de
           afs_validate_fc+0xfe/0x130
           afs_get_tree+0x20/0x2e5
           vfs_get_tree+0x1d/0xc9
           do_new_mount+0x13b/0x22e
           do_mount+0x5d/0x8a
           __do_sys_mount+0x100/0x12a
           do_syscall_64+0x3a/0x94
           entry_SYSCALL_64_after_hwframe+0x62/0x6a
      
      Fix this by:
      
       (1) When putting, use a flag to indicate if the volume has been removed
           from the tree and skip the rb_erase if it has.
      
       (2) When looking up, use a conditional ref increment and if it fails
           because the refcount is 0, replace the node in the tree and set the
           removal flag.
      
      Fixes: 20325960 ("afs: Reorganise volume and server trees to be rooted on the cell")
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Reviewed-by: default avatarJeffrey Altman <jaltman@auristor.com>
      cc: Marc Dionne <marc.dionne@auristor.com>
      cc: linux-afs@lists.infradead.org
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      9a6b294a
    • Matthew Wilcox (Oracle)'s avatar
      ida: Fix crash in ida_free when the bitmap is empty · af73483f
      Matthew Wilcox (Oracle) authored
      
      
      The IDA usually detects double-frees, but that detection failed to
      consider the case when there are no nearby IDs allocated and so we have a
      NULL bitmap rather than simply having a clear bit.  Add some tests to the
      test-suite to be sure we don't inadvertently reintroduce this problem.
      Unfortunately they're quite noisy so include a message to disregard
      the warnings.
      
      Reported-by: default avatarZhenghan Wang <wzhmmmmm@gmail.com>
      Signed-off-by: default avatarMatthew Wilcox (Oracle) <willy@infradead.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      af73483f
    • David Howells's avatar
      afs: Fix overwriting of result of DNS query · a9e01ac8
      David Howells authored
      
      
      In afs_update_cell(), ret is the result of the DNS lookup and the errors
      are to be handled by a switch - however, the value gets clobbered in
      between by setting it to -ENOMEM in case afs_alloc_vlserver_list()
      fails.
      
      Fix this by moving the setting of -ENOMEM into the error handling for
      OOM failure.  Further, only do it if we don't have an alternative error
      to return.
      
      Found by Linux Verification Center (linuxtesting.org) with SVACE.  Based
      on a patch from Anastasia Belova [1].
      
      Fixes: d5c32c89 ("afs: Fix cell DNS lookup")
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Reviewed-by: default avatarJeffrey Altman <jaltman@auristor.com>
      cc: Anastasia Belova <abelova@astralinux.ru>
      cc: Marc Dionne <marc.dionne@auristor.com>
      cc: linux-afs@lists.infradead.org
      cc: lvc-project@linuxtesting.org
      Link: https://lore.kernel.org/r/20231221085849.1463-1-abelova@astralinux.ru/ [1]
      Link: https://lore.kernel.org/r/1700862.1703168632@warthog.procyon.org.uk/
      
       # v1
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      a9e01ac8
    • Linus Torvalds's avatar
      Merge tag 'afs-fixes-20231221' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs · 937fd403
      Linus Torvalds authored
      Pull AFS fixes from David Howells:
       "Improve the interaction of arbitrary lookups in the AFS dynamic root
        that hit DNS lookup failures [1] where kafs behaves differently from
        openafs and causes some applications to fail that aren't expecting
        that. Further, negative DNS results aren't getting removed and are
        causing failures to persist.
      
         - Always delete unused (particularly negative) dentries as soon as
           possible so that they don't prevent future lookups from retrying.
      
         - Fix the handling of new-style negative DNS lookups in ->lookup() to
           make them return ENOENT so that userspace doesn't get confused when
           stat succeeds but the following open on the looked up file then
           fails.
      
         - Fix key handling so that DNS lookup results are reclaimed almost as
           soon as they expire rather than sitting round either forever or for
           an additional 5 mins beyond a set expiry time returning
           EKEYEXPIRED. They persist for 1s as /bin/ls will do a second stat
           call if the first fails"
      
      Link: https://bugzilla.kernel.org/show_bug.cgi?id=216637
      
       [1]
      Reviewed-by: default avatarJeffrey Altman <jaltman@auristor.com>
      
      * tag 'afs-fixes-20231221' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs:
        keys, dns: Allow key types (eg. DNS) to be reclaimed immediately on expiry
        afs: Fix dynamic root lookup DNS check
        afs: Fix the dynamic root's d_delete to always delete unused dentries
      937fd403
    • Linus Torvalds's avatar
      Merge tag 'trace-v6.7-rc6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace · 13b73446
      Linus Torvalds authored
      Pull tracing fixes from Steven Rostedt:
      
       - Fix another kerneldoc warning
      
       - Fix eventfs files to inherit the ownership of its parent directory.
      
         The dynamic creation of dentries in eventfs did not take into account
         if the tracefs file system was mounted with a gid/uid, and would
         still default to the gid/uid of root. This is a regression.
      
       - Fix warning when synthetic event testing is enabled along with
         startup event tracing testing is enabled
      
      * tag 'trace-v6.7-rc6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
        tracing / synthetic: Disable events after testing in synth_event_gen_test_init()
        eventfs: Have event files and directories default to parent uid and gid
        tracing/synthetic: fix kernel-doc warnings
      13b73446
    • Linus Torvalds's avatar
      Merge tag 'net-6.7-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 7c5e046b
      Linus Torvalds authored
      Pull networking fixes from Paolo Abeni:
       "Including fixes from WiFi and bpf.
      
        Current release - regressions:
      
         - bpf: syzkaller found null ptr deref in unix_bpf proto add
      
         - eth: i40e: fix ST code value for clause 45
      
        Previous releases - regressions:
      
         - core: return error from sk_stream_wait_connect() if sk_wait_event()
           fails
      
         - ipv6: revert remove expired routes with a separated list of routes
      
         - wifi rfkill:
             - set GPIO direction
             - fix crash with WED rx support enabled
      
         - bluetooth:
             - fix deadlock in vhci_send_frame
             - fix use-after-free in bt_sock_recvmsg
      
         - eth: mlx5e: fix a race in command alloc flow
      
         - eth: ice: fix PF with enabled XDP going no-carrier after reset
      
         - eth: bnxt_en: do not map packet buffers twice
      
        Previous releases - always broken:
      
         - core:
             - check vlan filter feature in vlan_vids_add_by_dev() and
               vlan_vids_del_by_dev()
             - check dev->gso_max_size in gso_features_check()
      
         - mptcp: fix inconsistent state on fastopen race
      
         - phy: skip LED triggers on PHYs on SFP modules
      
         - eth: mlx5e:
             - fix double free of encap_header
             - fix slab-out-of-bounds in mlx5_query_nic_vport_mac_list()"
      
      * tag 'net-6.7-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (69 commits)
        net: check dev->gso_max_size in gso_features_check()
        kselftest: rtnetlink.sh: use grep_fail when expecting the cmd fail
        net/ipv6: Revert remove expired routes with a separated list of routes
        net: avoid build bug in skb extension length calculation
        net: ethernet: mtk_wed: fix possible NULL pointer dereference in mtk_wed_wo_queue_tx_clean()
        net: stmmac: fix incorrect flag check in timestamp interrupt
        selftests: add vlan hw filter tests
        net: check vlan filter feature in vlan_vids_add_by_dev() and vlan_vids_del_by_dev()
        net: hns3: add new maintainer for the HNS3 ethernet driver
        net: mana: select PAGE_POOL
        net: ks8851: Fix TX stall caused by TX buffer overrun
        ice: Fix PF with enabled XDP going no-carrier after reset
        ice: alter feature support check for SRIOV and LAG
        ice: stop trashing VF VSI aggregator node ID information
        mailmap: add entries for Geliang Tang
        mptcp: fill in missing MODULE_DESCRIPTION()
        mptcp: fix inconsistent state on fastopen race
        selftests: mptcp: join: fix subflow_send_ack lookup
        net: phy: skip LED triggers on PHYs on SFP modules
        bpf: Add missing BPF_LINK_TYPE invocations
        ...
      7c5e046b
  3. Dec 21, 2023