Skip to content
Snippets Groups Projects
  1. Oct 27, 2024
  2. Oct 26, 2024
  3. Oct 25, 2024
  4. Oct 24, 2024
    • Linus Torvalds's avatar
      Merge tag 'bpf-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf · ae90f6a6
      Linus Torvalds authored
      Pull bpf fixes from Daniel Borkmann:
      
       - Fix an out-of-bounds read in bpf_link_show_fdinfo for BPF sockmap
         link file descriptors (Hou Tao)
      
       - Fix BPF arm64 JIT's address emission with tag-based KASAN enabled
         reserving not enough size (Peter Collingbourne)
      
       - Fix BPF verifier do_misc_fixups patching for inlining of the
         bpf_get_branch_snapshot BPF helper (Andrii Nakryiko)
      
       - Fix a BPF verifier bug and reject BPF program write attempts into
         read-only marked BPF maps (Daniel Borkmann)
      
       - Fix perf_event_detach_bpf_prog error handling by removing an invalid
         check which would skip BPF program release (Jiri Olsa)
      
       - Fix memory leak when parsing mount options for the BPF filesystem
         (Hou Tao)
      
      * tag 'bpf-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf:
        bpf: Check validity of link->type in bpf_link_show_fdinfo()
        bpf: Add the missing BPF_LINK_TYPE invocation for sockmap
        bpf: fix do_misc_fixups() for bpf_get_branch_snapshot()
        bpf,perf: Fix perf_event_detach_bpf_prog error handling
        selftests/bpf: Add test for passing in uninit mtu_len
        selftests/bpf: Add test for writes to .rodata
        bpf: Remove MEM_UNINIT from skb/xdp MTU helpers
        bpf: Fix overloading of MEM_UNINIT's meaning
        bpf: Add MEM_WRITE attribute
        bpf: Preserve param->string when parsing mount options
        bpf, arm64: Fix address emission with tag-based KASAN enabled
      ae90f6a6
    • Linus Torvalds's avatar
      Merge tag 'net-6.12-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · d44cd822
      Linus Torvalds authored
      Pull networking fixes from Paolo Abeni:
       "Including fixes from netfiler, xfrm and bluetooth.
      
        Oddly this includes a fix for a posix clock regression; in our
        previous PR we included a change there as a pre-requisite for
        networking one. That fix proved to be buggy and requires the follow-up
        included here. Thomas suggested we should send it, given we sent the
        buggy patch.
      
        Current release - regressions:
      
         - posix-clock: Fix unbalanced locking in pc_clock_settime()
      
         - netfilter: fix typo causing some targets not to load on IPv6
      
        Current release - new code bugs:
      
         - xfrm: policy: remove last remnants of pernet inexact list
      
        Previous releases - regressions:
      
         - core: fix races in netdev_tx_sent_queue()/dev_watchdog()
      
         - bluetooth: fix UAF on sco_sock_timeout
      
         - eth: hv_netvsc: fix VF namespace also in synthetic NIC
           NETDEV_REGISTER event
      
         - eth: usbnet: fix name regression
      
         - eth: be2net: fix potential memory leak in be_xmit()
      
         - eth: plip: fix transmit path breakage
      
        Previous releases - always broken:
      
         - sched: deny mismatched skip_sw/skip_hw flags for actions created by
           classifiers
      
         - netfilter: bpf: must hold reference on net namespace
      
         - eth: virtio_net: fix integer overflow in stats
      
         - eth: bnxt_en: replace ptp_lock with irqsave variant
      
         - eth: octeon_ep: add SKB allocation failures handling in
           __octep_oq_process_rx()
      
        Misc:
      
         - MAINTAINERS: add Simon as an official reviewer"
      
      * tag 'net-6.12-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (40 commits)
        net: dsa: mv88e6xxx: support 4000ps cycle counter period
        net: dsa: mv88e6xxx: read cycle counter period from hardware
        net: dsa: mv88e6xxx: group cycle counter coefficients
        net: usb: qmi_wwan: add Fibocom FG132 0x0112 composition
        hv_netvsc: Fix VF namespace also in synthetic NIC NETDEV_REGISTER event
        net: dsa: microchip: disable EEE for KSZ879x/KSZ877x/KSZ876x
        Bluetooth: ISO: Fix UAF on iso_sock_timeout
        Bluetooth: SCO: Fix UAF on sco_sock_timeout
        Bluetooth: hci_core: Disable works on hci_unregister_dev
        posix-clock: posix-clock: Fix unbalanced locking in pc_clock_settime()
        r8169: avoid unsolicited interrupts
        net: sched: use RCU read-side critical section in taprio_dump()
        net: sched: fix use-after-free in taprio_change()
        net/sched: act_api: deny mismatched skip_sw/skip_hw flags for actions created by classifiers
        net: usb: usbnet: fix name regression
        mlxsw: spectrum_router: fix xa_store() error checking
        virtio_net: fix integer overflow in stats
        net: fix races in netdev_tx_sent_queue()/dev_watchdog()
        net: wwan: fix global oob in wwan_rtnl_policy
        netfilter: xtables: fix typo causing some targets not to load on IPv6
        ...
      d44cd822
    • Linus Torvalds's avatar
      Merge tag 'hid-for-linus-20241024' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid · c9a50b90
      Linus Torvalds authored
      Pull HID fixes from Jiri Kosina:
       "Device-specific functionality quirks for Thinkpad X1 Gen3, Logitech
        Bolt and some Goodix touchpads (Bartłomiej Maryńczak, Hans de Goede
        and Kenneth Albanowski)"
      
      * tag 'hid-for-linus-20241024' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid:
        HID: lenovo: Add support for Thinkpad X1 Tablet Gen 3 keyboard
        HID: multitouch: Add quirk for Logitech Bolt receiver w/ Casa touchpad
        HID: i2c-hid: Delayed i2c resume wakeup for 0x0d42 Goodix touchpad
      c9a50b90
    • Dave Airlie's avatar
      Merge tag 'drm-intel-fixes-2024-10-24' of... · 2ba1f81e
      Dave Airlie authored
      Merge tag 'drm-intel-fixes-2024-10-24' of https://gitlab.freedesktop.org/drm/i915/kernel
      
       into drm-fixes
      
      - Fix DRM_I915_GVT_KVMGT dependencies in Kconfig
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/ZxniUlDg59RxOO-6@jlahtine-mobl.ger.corp.intel.com
      2ba1f81e
    • Dominique Martinet's avatar
      Revert "fs/9p: simplify iget to remove unnecessary paths" · be2ca382
      Dominique Martinet authored
      
      This reverts commit 724a0845.
      
      This code simplification introduced significant regressions on servers
      that do not remap inode numbers when exporting multiple underlying
      filesystems with colliding inodes, as can be illustrated with simple
      tmpfs exports in qemu with remapping disabled:
      ```
      # host side
      cd /tmp/linux-test
      mkdir m1 m2
      mount -t tmpfs tmpfs m1
      mount -t tmpfs tmpfs m2
      mkdir m1/dir m2/dir
      echo foo > m1/dir/foo
      echo bar > m2/dir/bar
      
      # guest side
      # started with -virtfs local,path=/tmp/linux-test,mount_tag=tmp,security_model=mapped-file
      mount -t 9p -o trans=virtio,debug=1 tmp /mnt/t
      
      ls /mnt/t/m1/dir
      # foo
      ls /mnt/t/m2/dir
      # bar (works ok if directry isn't open)
      
      # cd to keep first dir's inode alive
      cd /mnt/t/m1/dir
      ls /mnt/t/m2/dir
      # foo (should be bar)
      ```
      Other examples can be crafted with regular files with fscache enabled,
      in which case I/Os just happen to the wrong file leading to
      corruptions, or guest failing to boot with:
        | VFS: Lookup of 'com.android.runtime' in 9p 9p would have caused loop
      
      In theory, we'd want the servers to be smart enough and ensure they
      never send us two different files with the same 'qid.path', but while
      qemu has an option to remap that is recommended (and qemu prints a
      warning if this case happens), there are many other servers which do
      not (kvmtool, nfs-ganesha, probably diod...), we should at least ensure
      we don't cause regressions on this:
      - assume servers can't be trusted and operations that should get a 'new'
      inode properly do so. commit d05dcfdf (" fs/9p: mitigate inode
      collisions") attempted to do this, but v9fs_fid_iget_dotl() was not
      called so some higher level of caching got in the way; this needs to be
      fixed properly before we can re-apply the patches.
      - if we ever want to really simplify this code, we will need to add some
      negotiation with the server at mount time where the server could claim
      they handle this properly, at which point we could optimize this out.
      (but that might not be needed at all if we properly handle the 'new'
      check?)
      
      Fixes: 724a0845 ("fs/9p: simplify iget to remove unnecessary paths")
      Reported-by: default avatarWill Deacon <will@kernel.org>
      Link: https://lore.kernel.org/all/20240408141436.GA17022@redhat.com/
      Link: https://lkml.kernel.org/r/20240923100508.GA32066@willie-the-truck
      
      
      Cc: stable@vger.kernel.org # v6.9+
      Message-ID: <20241024-revert_iget-v1-4-4cac63d25f72@codewreck.org>
      Signed-off-by: default avatarDominique Martinet <asmadeus@codewreck.org>
      be2ca382
    • Dominique Martinet's avatar
      Revert "fs/9p: fix uaf in in v9fs_stat2inode_dotl" · 26f8dd2d
      Dominique Martinet authored
      
      This reverts commit 11763a85.
      
      This is a requirement to revert commit 724a0845 ("fs/9p: simplify
      iget to remove unnecessary paths"), see that revert for details.
      
      Fixes: 724a0845 ("fs/9p: simplify iget to remove unnecessary paths")
      Reported-by: default avatarWill Deacon <will@kernel.org>
      Link: https://lkml.kernel.org/r/20240923100508.GA32066@willie-the-truck
      
      
      Cc: stable@vger.kernel.org # v6.9+
      Message-ID: <20241024-revert_iget-v1-3-4cac63d25f72@codewreck.org>
      Signed-off-by: default avatarDominique Martinet <asmadeus@codewreck.org>
      26f8dd2d
    • Dominique Martinet's avatar
      Revert "fs/9p: remove redundant pointer v9ses" · fedd0621
      Dominique Martinet authored
      
      This reverts commit 10211b4a.
      
      This is a requirement to revert commit 724a0845 ("fs/9p: simplify
      iget to remove unnecessary paths"), see that revert for details.
      
      Fixes: 724a0845 ("fs/9p: simplify iget to remove unnecessary paths")
      Reported-by: default avatarWill Deacon <will@kernel.org>
      Link: https://lkml.kernel.org/r/20240923100508.GA32066@willie-the-truck
      
      
      Cc: stable@vger.kernel.org # v6.9+
      Message-ID: <20241024-revert_iget-v1-2-4cac63d25f72@codewreck.org>
      Signed-off-by: default avatarDominique Martinet <asmadeus@codewreck.org>
      fedd0621
    • Dominique Martinet's avatar
      Revert " fs/9p: mitigate inode collisions" · f69999b5
      Dominique Martinet authored
      
      This reverts commit d05dcfdf.
      
      This is a requirement to revert commit 724a0845 ("fs/9p: simplify
      iget to remove unnecessary paths"), see that revert for details.
      
      Fixes: 724a0845 ("fs/9p: simplify iget to remove unnecessary paths")
      Reported-by: default avatarWill Deacon <will@kernel.org>
      Link: https://lkml.kernel.org/r/20240923100508.GA32066@willie-the-truck
      
      
      Cc: stable@vger.kernel.org # v6.9+
      Message-ID: <20241024-revert_iget-v1-1-4cac63d25f72@codewreck.org>
      Signed-off-by: default avatarDominique Martinet <asmadeus@codewreck.org>
      f69999b5
    • Dave Airlie's avatar
      Merge tag 'amd-drm-fixes-6.12-2024-10-23' of... · 19c6890c
      Dave Airlie authored
      Merge tag 'amd-drm-fixes-6.12-2024-10-23' of https://gitlab.freedesktop.org/agd5f/linux
      
       into drm-fixes
      
      amd-drm-fixes-6.12-2024-10-23:
      
      amdgpu:
      - ACPI method handling fixes
      - SMU 14.x fixes
      - Display idle optimization fix
      - DP link layer compliance fix
      - SDMA 7.x fix
      - PSR-SU fix
      - SWSMU fix
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Alex Deucher <alexander.deucher@amd.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20241023180208.452636-1-alexander.deucher@amd.com
      19c6890c
    • Linus Torvalds's avatar
      Merge tag 'loongarch-fixes-6.12-1' of... · 3964f82a
      Linus Torvalds authored
      Merge tag 'loongarch-fixes-6.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
      
      Pull LoongArch fixes from Huacai Chen:
       "Get correct cores_per_package for SMT systems, enable IRQ if do_ale()
        triggered in irq-enabled context, and fix some bugs about vDSO, memory
        managenent, hrtimer in KVM, etc"
      
      * tag 'loongarch-fixes-6.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson:
        LoongArch: KVM: Mark hrtimer to expire in hard interrupt context
        LoongArch: Make KASAN usable for variable cpu_vabits
        LoongArch: Set initial pte entry with PAGE_GLOBAL for kernel space
        LoongArch: Don't crash in stack_top() for tasks without vDSO
        LoongArch: Set correct size for vDSO code mapping
        LoongArch: Enable IRQ if do_ale() triggered in irq-enabled context
        LoongArch: Get correct cores_per_package for SMT systems
        LoongArch: Use "Exception return address" to comment ERA
      3964f82a
Loading