1. 19 Aug, 2022 8 commits
    • Linus Torvalds's avatar
      Merge tag '5.20-rc2-ksmbd-smb3-server-fixes' of git://git.samba.org/ksmbd · a3a78b63
      Linus Torvalds authored
      Pull ksmbd server fixes from Steve French:
      
       - important sparse file fix
      
       - allocation size fix
      
       - fix incorrect rc on bad share
      
       - share config fix
      
      * tag '5.20-rc2-ksmbd-smb3-server-fixes' of git://git.samba.org/ksmbd:
        ksmbd: don't remove dos attribute xattr on O_TRUNC open
        ksmbd: remove unnecessary generic_fillattr in smb2_open
        ksmbd: request update to stale share config
        ksmbd: return STATUS_BAD_NETWORK_NAME error status if share is not configured
      a3a78b63
    • Linus Torvalds's avatar
      Merge tag 'sound-6.0-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 963a70be
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "The only significant core change is ASoC DPCM fix for asymmetric
        setup; other remaining changes are device-specific fixes, including
        the hardening of string manipulations.
      
        One change in platform/x86 is the patch I forgot to apply from a
        series for CS35L41 codec"
      
      * tag 'sound-6.0-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (21 commits)
        ALSA: hda/realtek: Add quirk for Clevo NS50PU, NS70PU
        ALSA: info: Fix llseek return value when using callback
        ALSA: hda/cs8409: Support new Dolphin Variants
        platform/x86: serial-multi-instantiate: Add CLSA0101 Laptop
        ALSA: hda/realtek: Add quirk for Lenovo Yoga7 14IAL7
        ALSA: hda: cs35l41: Clarify support for CSC3551 without _DSD Properties
        ALSA: hda/realtek: Add quirks for ASUS Zenbooks using CS35L41
        ASoC: codec: tlv320aic32x4: fix mono playback via I2S
        ASoC: rt5640: Fix the JD voltage dropping issue
        ASoC: tas2770: Fix handling of mute/unmute
        ASoC: tas2770: Drop conflicting set_bias_level power setting
        ASoC: tas2770: Allow mono streams
        ASoC: tas2770: Set correct FSYNC polarity
        ASoC: Intel: fix sof_es8336 probe
        ASoC: DPCM: Don't pick up BE without substream
        ASoC: SOF: ipc3-topology: Fix clang -Wformat warning
        ASoC: sh: rz-ssi: Improve error handling in rz_ssi_probe() error path
        ASoC: SOF: Intel: hda: Fix potential buffer overflow by snprintf()
        ASoC: SOF: debug: Fix potential buffer overflow by snprintf()
        ASoC: Intel: avs: Fix potential buffer overflow by snprintf()
        ...
      963a70be
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2022-08-19' of git://anongit.freedesktop.org/drm/drm · adb67b37
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Regular weekly fixes.
      
        The nouveau patch just enables modesetting on GA103 hw which is like
        other ampere cards that are already supported. amdgpu has 2 weeks of
        fixes, as Alex was away, so a bit larger than usual, otherwise some
        i915 and misc other fixes.
      
        ttm:
         - NULL ptr dereference
      
        i915:
         - disable pci resize on 32-bit systems
         - don't leak the ccs state
         - TLB invalidation fixes
      
        nouveau:
         - GA103 enablement
         - off-by-one fix
      
        amdgpu:
         - Revert some DML stack changes
         - Rounding fixes in KFD allocations
         - atombios vram info table parsing fix
         - DCN 3.1.4 fixes
         - Clockgating fixes for various new IPs
         - SMU 13.0.4 fixes
         - DCN 3.1.4 FP fixes
         - TMDS fixes for YCbCr420 4k modes
         - DCN 3.2.x fixes
         - USB 4 fixes
         - SMU 13.0 fixes
         - SMU driver unload memory leak fixes
         - Display orientation fix
         - Regression fix for generic fbdev conversion
         - SDMA 6.x fixes
         - SR-IOV fixes
         - IH 6.x fixes
         - Use after free fix in bo list handling
         - Revert pipe1 support
         - XGMI hive reset fix
      
        amdkfd:
         - Fix potential crach in kfd_create_indirect_link_prop()
      
        imx:
         - warning fix
      
        meson:
         - refcounting fix
      
        lvds-codec:
         - error check fix
      
        sun4i:
         - underflow fix
         - dt-binding fix"
      
      * tag 'drm-fixes-2022-08-19' of git://anongit.freedesktop.org/drm/drm: (109 commits)
        Revert "drm/amd/amdgpu: add pipe1 hardware support"
        drm/amdgpu: Fix use-after-free on amdgpu_bo_list mutex
        drm/amdgpu: Fix interrupt handling on ih_soft ring
        drm/amdgpu: Add secure display TA load for Renoir
        drm/amd/display: Include scaling factor for SubVP command
        drm/amdgpu/vcn: Return void from the stop_dbg_mode
        drm/amdgpu: remove useless condition in amdgpu_job_stop_all_jobs_on_sched()
        drm/amdgpu: Add decode_iv_ts helper for ih_v6 block
        drm/amd/display: add chip revision to DCN32
        drm/amd/display: avoid doing vm_init multiple time
        drm/amd/display: Use pitch when calculating size to cache in MALL
        drm/amd/display: Don't set DSC for phantom pipes
        drm/amd/display: Update clock table policy for DCN314
        drm/amd/display: Modify header inclusion pattern
        drm/amd/display: Fix plug/unplug external monitor will hang while playback MPO video
        drm/amd/display: Add debug parameter to retain default clock table
        drm/amdgpu: Increase tlb flush timeout for sriov
        drm/amd/display: do not compare integers of different widths
        drm/amd/display: Add reserved dc_log_type.
        drm/amd/display: Fix pixel clock programming
        ...
      adb67b37
    • Linus Torvalds's avatar
      Merge tag 'bitmap-6.0-rc2' of https://github.com/norov/linux · a4ee891b
      Linus Torvalds authored
      Pull bitmap updates from Yury Norov:
       "cpumask: UP optimisation fixes follow-up
      
        As an older version of the UP optimisation fixes was merged, not all
        review feedback has been implemented.
      
        This implements the feedback received on the merged version [1], and
        the respin [2], for changes related to <linux/cpumask.h> and
        lib/cpumask.c"
      
      Link: https://lore.kernel.org/lkml/cover.1656777646.git.sander@svanheule.net/ [1]
      Link: https://lore.kernel.org/lkml/cover.1659077534.git.sander@svanheule.net/ [2]
      
      It spent for more than a week with no issues.
      
      * tag 'bitmap-6.0-rc2' of https://github.com/norov/linux:
        lib/cpumask: drop always-true preprocessor guard
        lib/cpumask: add inline cpumask_next_wrap() for UP
        cpumask: align signatures of UP implementations
      a4ee891b
    • Aaron Lu's avatar
      x86/mm: Use proper mask when setting PUD mapping · 88e0a749
      Aaron Lu authored
      Commit c164fbb4("x86/mm: thread pgprot_t through
      init_memory_mapping()") mistakenly used __pgprot() which doesn't respect
      __default_kernel_pte_mask when setting PUD mapping.
      
      Fix it by only setting the one bit we actually need (PSE) and leaving
      the other bits (that have been properly masked) alone.
      
      Fixes: c164fbb4 ("x86/mm: thread pgprot_t through init_memory_mapping()")
      Signed-off-by: default avatarAaron Lu <aaron.lu@intel.com>
      Cc: stable@kernel.org
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      88e0a749
    • Linus Torvalds's avatar
      Merge tag 'net-6.0-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 4c2d0b03
      Linus Torvalds authored
      Pull networking fixes from Jakub Kicinski:
       "Including fixes from netfilter.
      
        Current release - regressions:
      
         - tcp: fix cleanup and leaks in tcp_read_skb() (the new way BPF
           socket maps get data out of the TCP stack)
      
         - tls: rx: react to strparser initialization errors
      
         - netfilter: nf_tables: fix scheduling-while-atomic splat
      
         - net: fix suspicious RCU usage in bpf_sk_reuseport_detach()
      
        Current release - new code bugs:
      
         - mlxsw: ptp: fix a couple of races, static checker warnings and
           error handling
      
        Previous releases - regressions:
      
         - netfilter:
            - nf_tables: fix possible module reference underflow in error path
            - make conntrack helpers deal with BIG TCP (skbs > 64kB)
            - nfnetlink: re-enable conntrack expectation events
      
         - net: fix potential refcount leak in ndisc_router_discovery()
      
        Previous releases - always broken:
      
         - sched: cls_route: disallow handle of 0
      
         - neigh: fix possible local DoS due to net iface start/stop loop
      
         - rtnetlink: fix module refcount leak in rtnetlink_rcv_msg
      
         - sched: fix adding qlen to qcpu->backlog in gnet_stats_add_queue_cpu
      
         - virtio_net: fix endian-ness for RSS
      
         - dsa: mv88e6060: prevent crash on an unused port
      
         - fec: fix timer capture timing in `fec_ptp_enable_pps()`
      
         - ocelot: stats: fix races, integer wrapping and reading incorrect
           registers (the change of register definitions here accounts for
           bulk of the changed LoC in this PR)"
      
      * tag 'net-6.0-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (77 commits)
        net: moxa: MAC address reading, generating, validity checking
        tcp: handle pure FIN case correctly
        tcp: refactor tcp_read_skb() a bit
        tcp: fix tcp_cleanup_rbuf() for tcp_read_skb()
        tcp: fix sock skb accounting in tcp_read_skb()
        igb: Add lock to avoid data race
        dt-bindings: Fix incorrect "the the" corrections
        net: genl: fix error path memory leak in policy dumping
        stmmac: intel: Add a missing clk_disable_unprepare() call in intel_eth_pci_remove()
        net: ethernet: mtk_eth_soc: fix possible NULL pointer dereference in mtk_xdp_run
        net/mlx5e: Allocate flow steering storage during uplink initialization
        net: mscc: ocelot: report ndo_get_stats64 from the wraparound-resistant ocelot->stats
        net: mscc: ocelot: keep ocelot_stat_layout by reg address, not offset
        net: mscc: ocelot: make struct ocelot_stat_layout array indexable
        net: mscc: ocelot: fix race between ndo_get_stats64 and ocelot_check_stats_work
        net: mscc: ocelot: turn stats_lock into a spinlock
        net: mscc: ocelot: fix address of SYS_COUNT_TX_AGING counter
        net: mscc: ocelot: fix incorrect ndo_get_stats64 packet counters
        net: dsa: felix: fix ethtool 256-511 and 512-1023 TX packet counters
        net: dsa: don't warn in dsa_port_set_state_now() when driver doesn't support it
        ...
      4c2d0b03
    • Linus Torvalds's avatar
      Merge tag 'linux-kselftest-next-6.0-rc2' of... · 90b6b686
      Linus Torvalds authored
      Merge tag 'linux-kselftest-next-6.0-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      Pull Kselftest fix from Shuah Khan:
      
       - fix landlock test build regression
      
      * tag 'linux-kselftest-next-6.0-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
        selftests/landlock: fix broken include of linux/landlock.h
      90b6b686
    • Linus Torvalds's avatar
      Merge tag 'trace-rtla-v6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · 0de277d4
      Linus Torvalds authored
      Pull rtla tool fixes from Steven Rostedt:
       "Fixes for the Real-Time Linux Analysis tooling:
      
         - Fix tracer name in comments and prints
      
         - Fix setting up symlinks
      
         - Allow extra flags to be set in build
      
         - Consolidate and show all necessary libraries not found in build
           error"
      
      * tag 'trace-rtla-v6.0' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        rtla: Consolidate and show all necessary libraries that failed for building
        tools/rtla: Build with EXTRA_{C,LD}FLAGS
        tools/rtla: Fix command symlinks
        rtla: Fix tracer name
      0de277d4
  2. 18 Aug, 2022 27 commits
  3. 17 Aug, 2022 5 commits
    • David Howells's avatar
      net: Fix suspicious RCU usage in bpf_sk_reuseport_detach() · fc4aaf9f
      David Howells authored
      bpf_sk_reuseport_detach() calls __rcu_dereference_sk_user_data_with_flags()
      to obtain the value of sk->sk_user_data, but that function is only usable
      if the RCU read lock is held, and neither that function nor any of its
      callers hold it.
      
      Fix this by adding a new helper, __locked_read_sk_user_data_with_flags()
      that checks to see if sk->sk_callback_lock() is held and use that here
      instead.
      
      Alternatively, making __rcu_dereference_sk_user_data_with_flags() use
      rcu_dereference_checked() might suffice.
      
      Without this, the following warning can be occasionally observed:
      
      =============================
      WARNING: suspicious RCU usage
      6.0.0-rc1-build2+ #563 Not tainted
      -----------------------------
      include/net/sock.h:592 suspicious rcu_dereference_check() usage!
      
      other info that might help us debug this:
      
      rcu_scheduler_active = 2, debug_locks = 1
      5 locks held by locktest/29873:
       #0: ffff88812734b550 (&sb->s_type->i_mutex_key#9){+.+.}-{3:3}, at: __sock_release+0x77/0x121
       #1: ffff88812f5621b0 (sk_lock-AF_INET){+.+.}-{0:0}, at: tcp_close+0x1c/0x70
       #2: ffff88810312f5c8 (&h->lhash2[i].lock){+.+.}-{2:2}, at: inet_unhash+0x76/0x1c0
       #3: ffffffff83768bb8 (reuseport_lock){+...}-{2:2}, at: reuseport_detach_sock+0x18/0xdd
       #4: ffff88812f562438 (clock-AF_INET){++..}-{2:2}, at: bpf_sk_reuseport_detach+0x24/0xa4
      
      stack backtrace:
      CPU: 1 PID: 29873 Comm: locktest Not tainted 6.0.0-rc1-build2+ #563
      Hardware name: ASUS All Series/H97-PLUS, BIOS 2306 10/09/2014
      Call Trace:
       <TASK>
       dump_stack_lvl+0x4c/0x5f
       bpf_sk_reuseport_detach+0x6d/0xa4
       reuseport_detach_sock+0x75/0xdd
       inet_unhash+0xa5/0x1c0
       tcp_set_state+0x169/0x20f
       ? lockdep_sock_is_held+0x3a/0x3a
       ? __lock_release.isra.0+0x13e/0x220
       ? reacquire_held_locks+0x1bb/0x1bb
       ? hlock_class+0x31/0x96
       ? mark_lock+0x9e/0x1af
       __tcp_close+0x50/0x4b6
       tcp_close+0x28/0x70
       inet_release+0x8e/0xa7
       __sock_release+0x95/0x121
       sock_close+0x14/0x17
       __fput+0x20f/0x36a
       task_work_run+0xa3/0xcc
       exit_to_user_mode_prepare+0x9c/0x14d
       syscall_exit_to_user_mode+0x18/0x44
       entry_SYSCALL_64_after_hwframe+0x63/0xcd
      
      Fixes: cf8c1e96 ("net: refactor bpf_sk_reuseport_detach()")
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      cc: Hawkins Jiawei <yin31149@gmail.com>
      Link: https://lore.kernel.org/r/166064248071.3502205.10036394558814861778.stgit@warthog.procyon.org.ukSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      fc4aaf9f
    • Dave Airlie's avatar
      Merge tag 'drm-misc-fixes-2022-08-16' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes · 2ae6ab9d
      Dave Airlie authored
      One patch for imx/dcss to get rid of a warning message, one off-by-one
      fix and GA103 support for nouveau, a refcounting fix for meson, a NULL
      pointer dereference fix for ttm, a error check fix for lvds-codec, a
      dt-binding schema fix and an underflow fix for sun4i
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Maxime Ripard <maxime@cerno.tech>
      Link: https://patchwork.freedesktop.org/patch/msgid/20220816094401.wtadc7ddr6lzq6aj@houat
      2ae6ab9d
    • Dave Airlie's avatar
      Merge tag 'drm-intel-next-fixes-2022-08-11' of... · 8ae4be56
      Dave Airlie authored
      Merge tag 'drm-intel-next-fixes-2022-08-11' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
      
      - disable pci resize on 32-bit systems (Nirmoy)
      - don't leak the ccs state (Matt)
      - TLB invalidation fixes (Chris)
      [now with all fixes of fixes]
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/YvVumNCga+90fYN0@intel.com
      8ae4be56
    • Linus Torvalds's avatar
      Merge tag 'ntfs3_for_6.0' of https://github.com/Paragon-Software-Group/linux-ntfs3 · 3b06a275
      Linus Torvalds authored
      Pull ntfs3 updates from Konstantin Komarov:
      
       - implement FALLOC_FL_INSERT_RANGE
      
       - fix some logic errors
      
       - fixed xfstests (tested on x86_64): generic/064 generic/213
         generic/300 generic/361 generic/449 generic/485
      
       - some dead code removed or refactored
      
      * tag 'ntfs3_for_6.0' of https://github.com/Paragon-Software-Group/linux-ntfs3: (39 commits)
        fs/ntfs3: uninitialized variable in ntfs_set_acl_ex()
        fs/ntfs3: Remove unused function wnd_bits
        fs/ntfs3: Make ni_ins_new_attr return error
        fs/ntfs3: Create MFT zone only if length is large enough
        fs/ntfs3: Refactoring attr_insert_range to restore after errors
        fs/ntfs3: Refactoring attr_punch_hole to restore after errors
        fs/ntfs3: Refactoring attr_set_size to restore after errors
        fs/ntfs3: New function ntfs_bad_inode
        fs/ntfs3: Make MFT zone less fragmented
        fs/ntfs3: Check possible errors in run_pack in advance
        fs/ntfs3: Added comments to frecord functions
        fs/ntfs3: Fill duplicate info in ni_add_name
        fs/ntfs3: Make static function attr_load_runs
        fs/ntfs3: Add new argument is_mft to ntfs_mark_rec_free
        fs/ntfs3: Remove unused mi_mark_free
        fs/ntfs3: Fix very fragmented case in attr_punch_hole
        fs/ntfs3: Fix work with fragmented xattr
        fs/ntfs3: Make ntfs_fallocate return -ENOSPC instead of -EFBIG
        fs/ntfs3: extend ni_insert_nonresident to return inserted ATTR_LIST_ENTRY
        fs/ntfs3: Check reserved size for maximum allowed
        ...
      3b06a275
    • Linus Torvalds's avatar
      dcache: move the DCACHE_OP_COMPARE case out of the __d_lookup_rcu loop · ae2a8236
      Linus Torvalds authored
      __d_lookup_rcu() is one of the hottest functions in the kernel on
      certain loads, and it is complicated by filesystems that might want to
      have their own name compare function.
      
      We can improve code generation by moving the test of DCACHE_OP_COMPARE
      outside the loop, which makes the loop itself much simpler, at the cost
      of some code duplication.  But both cases end up being simpler, and the
      "native" direct case-sensitive compare particularly so.
      
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      ae2a8236