Skip to content
  1. Aug 06, 2023
    • Linus Torvalds's avatar
      Merge tag 'powerpc-6.5-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 251a94f1
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
      
       - Fix vmemmap altmap boundary check which could cause memory hotunplug
         failure
      
       - Create a dummy stackframe to fix ftrace stack unwind
      
       - Fix secondary thread bringup for Book3E ELFv2 kernels
      
       - Use early_ioremap/unmap() in via_calibrate_decr()
      
      Thanks to Aneesh Kumar K.V, Benjamin Gray, Christophe Leroy, David
      Hildenbrand, and Naveen N Rao.
      
      * tag 'powerpc-6.5-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/powermac: Use early_* IO variants in via_calibrate_decr()
        powerpc/64e: Fix secondary thread bringup for ELFv2 kernels
        powerpc/ftrace: Create a dummy stackframe to fix stack unwind
        powerpc/mm/altmap: Fix altmap boundary check
      251a94f1
    • Linus Torvalds's avatar
      Merge tag 'parisc-for-6.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · 947c2a83
      Linus Torvalds authored
      Pull parisc architecture fixes from Helge Deller:
      
       - early fixmap preallocation to fix boot failures on kernel >= 6.4
      
       - remove DMA leftover code in parport_gsc
      
       - drop old comments and code style fixes
      
      * tag 'parisc-for-6.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        parisc: unaligned: Add required spaces after ','
        parport: gsc: remove DMA leftover code
        parisc: pci-dma: remove unused and dead EISA code and comment
        parisc/mm: preallocate fixmap page tables at init
      947c2a83
  2. Aug 05, 2023
    • Linus Torvalds's avatar
      Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux · c9d26d8d
      Linus Torvalds authored
      Pull clk fixes from Stephen Boyd:
       "A few clk driver fixes for some SoC clk drivers:
      
         - Change a usleep() to udelay() to avoid scheduling while atomic in
           the Amlogic PLL code
      
         - Revert a patch to the Mediatek MT8183 driver that caused an
           out-of-bounds write
      
         - Return the right error value when devm_of_iomap() fails in
           imx93_clocks_probe()
      
         - Constrain the Kconfig for the fixed mmio clk so that it depends on
           HAS_IOMEM and can't be compiled on architectures such as s390"
      
      * tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux:
        clk: fixed-mmio: make COMMON_CLK_FIXED_MMIO depend on HAS_IOMEM
        clk: imx93: Propagate correct error in imx93_clocks_probe()
        clk: mediatek: mt8183: Add back SSPM related clocks
        clk: meson: change usleep_range() to udelay() for atomic context
      c9d26d8d
    • Linus Torvalds's avatar
      Merge tag 'hyperv-fixes-signed-20230804' of... · 024ff300
      Linus Torvalds authored
      Merge tag 'hyperv-fixes-signed-20230804' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux
      
      Pull hyperv fixes from Wei Liu:
      
       - Fix a bug in a python script for Hyper-V (Ani Sinha)
      
       - Workaround a bug in Hyper-V when IBT is enabled (Michael Kelley)
      
       - Fix an issue parsing MP table when Linux runs in VTL2 (Saurabh
         Sengar)
      
       - Several cleanup patches (Nischala Yelchuri, Kameron Carr, YueHaibing,
         ZhiHu)
      
      * tag 'hyperv-fixes-signed-20230804' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux:
        Drivers: hv: vmbus: Remove unused extern declaration vmbus_ontimer()
        x86/hyperv: add noop functions to x86_init mpparse functions
        vmbus_testing: fix wrong python syntax for integer value comparison
        x86/hyperv: fix a warning in mshyperv.h
        x86/hyperv: Disable IBT when hypercall page lacks ENDBR instruction
        x86/hyperv: Improve code for referencing hyperv_pcpu_input_arg
        Drivers: hv: Change hv_free_hyperv_page() to take void * argument
      024ff300
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-6.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · e661f98c
      Linus Torvalds authored
      Pull RISC-V fixes from Palmer Dabbelt:
      
       - A pair of fixes for build-related failures in the selftests
      
       - A fix for a sparse warning in acpi_os_ioremap()
      
       - A fix to restore the kernel PA offset in vmcoreinfo, to fix crash
         handling
      
      * tag 'riscv-for-linus-6.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        Documentation: kdump: Add va_kernel_pa_offset for RISCV64
        riscv: Export va_kernel_pa_offset in vmcoreinfo
        RISC-V: ACPI: Fix acpi_os_ioremap to return iomem address
        selftests: riscv: Fix compilation error with vstate_exec_nolibc.c
        selftests/riscv: fix potential build failure during the "emit_tests" step
      e661f98c
    • Linus Torvalds's avatar
      Merge tag 'pm-6.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · ea4f142f
      Linus Torvalds authored
      Pull power management fix from Rafael Wysocki:
       "Fix a sparse warning triggered by the TPMI interface recently added to
        the Intel RAPL power capping driver (Zhang Rui)"
      
      * tag 'pm-6.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        powercap: intel_rapl: Fix a sparse warning in TPMI interface
      ea4f142f
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · e6fda526
      Linus Torvalds authored
      Pull arm64 fixes from Catalin Marinas:
       "More SVE/SME fixes for ptrace() and for the (potentially future) case
        where SME is implemented in hardware without SVE support"
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64/fpsimd: Sync and zero pad FPSIMD state for streaming SVE
        arm64/fpsimd: Sync FPSIMD state with SVE for SME only systems
        arm64/ptrace: Don't enable SVE when setting streaming SVE
        arm64/ptrace: Flush FP state when setting ZT0
        arm64/fpsimd: Clear SME state in the target task when setting the VL
      e6fda526
    • Linus Torvalds's avatar
      Merge tag 'mtd/fixes-for-6.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux · c8273a25
      Linus Torvalds authored
      Pull mtd fixes from Miquel Raynal:
       "Raw NAND fixes:
         - fsl_upm: Fix an off-by one test in fun_exec_op()
         - Rockchip:
             - Align hwecc vs. raw page helper layouts
             - Fix oobfree offset and description
         - Meson: Fix OOB available bytes for ECC
         - Omap ELM: Fix incorrect type in assignment
      
        SPI-NOR fix:
         - Avoid holes in struct spi_mem_op
      
        Hyperbus fix:
         - Add Tudor as reviewer in MAINTAINERS
      
        SPI-NAND fixes:
         - Winbond and Toshiba: Fix ecc_get_status"
      
      * tag 'mtd/fixes-for-6.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux:
        mtd: rawnand: fsl_upm: Fix an off-by one test in fun_exec_op()
        mtd: spi-nor: avoid holes in struct spi_mem_op
        MAINTAINERS: Add myself as reviewer for HYPERBUS
        mtd: rawnand: rockchip: Align hwecc vs. raw page helper layouts
        mtd: rawnand: rockchip: fix oobfree offset and description
        mtd: rawnand: meson: fix OOB available bytes for ECC
        mtd: rawnand: omap_elm: Fix incorrect type in assignment
        mtd: spinand: winbond: Fix ecc_get_status
        mtd: spinand: toshiba: Fix ecc_get_status
      c8273a25
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2023-08-04' of git://anongit.freedesktop.org/drm/drm · 4142fc67
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Small set of fixes this week, i915 and a few misc ones. I didn't see
        an amd pull so maybe next week it'll have a few more on that driver.
      
        ttm:
         - NULL ptr deref fix
      
        panel:
         - add missing MODULE_DEVICE_TABLE
      
        imx/ipuv3:
         - timing fix
      
        i915:
         - Fix bug in getting msg length in AUX CH registers handler
         - Gen12 AUX invalidation fixes
         - Fix premature release of request's reusable memory"
      
      * tag 'drm-fixes-2023-08-04' of git://anongit.freedesktop.org/drm/drm:
        drm/panel: samsung-s6d7aa0: Add MODULE_DEVICE_TABLE
        drm/i915: Fix premature release of request's reusable memory
        drm/i915/gt: Support aux invalidation on all engines
        drm/i915/gt: Poll aux invalidation register bit on invalidation
        drm/i915/gt: Enable the CCS_FLUSH bit in the pipe control and in the CS
        drm/i915/gt: Rename flags with bit_group_X according to the datasheet
        drm/i915/gt: Ensure memory quiesced before invalidation
        drm/i915: Add the gen12_needs_ccs_aux_inv helper
        drm/i915/gt: Cleanup aux invalidation registers
        drm/i915/gvt: Fix bug in getting msg length in AUX CH registers handler
        drm/imx/ipuv3: Fix front porch adjustment upon hactive aligning
        drm/ttm: check null pointer before accessing when swapping
      4142fc67
    • Linus Torvalds's avatar
      Merge tag 'ceph-for-6.5-rc5' of https://github.com/ceph/ceph-client · 4593f3c2
      Linus Torvalds authored
      Pull ceph fixes from Ilya Dryomov:
       "Two patches to improve RBD exclusive lock interaction with
        osd_request_timeout option and another fix to reduce the potential for
        erroneous blocklisting -- this time in CephFS. All going to stable"
      
      * tag 'ceph-for-6.5-rc5' of https://github.com/ceph/ceph-client:
        libceph: fix potential hang in ceph_osdc_notify()
        rbd: prevent busy loop when requesting exclusive lock
        ceph: defer stopping mdsc delayed_work
      4593f3c2
    • Linus Torvalds's avatar
      file: reinstate f_pos locking optimization for regular files · 79796425
      Linus Torvalds authored
      In commit 20ea1e7d
      
       ("file: always lock position for
      FMODE_ATOMIC_POS") we ended up always taking the file pos lock, because
      pidfd_getfd() could get a reference to the file even when it didn't have
      an elevated file count due to threading of other sharing cases.
      
      But Mateusz Guzik reports that the extra locking is actually measurable,
      so let's re-introduce the optimization, and only force the locking for
      directory traversal.
      
      Directories need the lock for correctness reasons, while regular files
      only need it for "POSIX semantics".  Since pidfd_getfd() is about
      debuggers etc special things that are _way_ outside of POSIX, we can
      relax the rules for that case.
      
      Reported-by: default avatarMateusz Guzik <mjguzik@gmail.com>
      Cc: Christian Brauner <brauner@kernel.org>
      Link: https://lore.kernel.org/linux-fsdevel/20230803095311.ijpvhx3fyrbkasul@f/
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      79796425
  3. Aug 04, 2023
    • Mark Brown's avatar
      arm64/fpsimd: Sync and zero pad FPSIMD state for streaming SVE · 69af56ae
      Mark Brown authored
      We have a function sve_sync_from_fpsimd_zeropad() which is used by the
      ptrace code to update the SVE state when the user writes to the the
      FPSIMD register set.  Currently this checks that the task has SVE
      enabled but this will miss updates for tasks which have streaming SVE
      enabled if SVE has not been enabled for the thread, also do the
      conversion if the task has streaming SVE enabled.
      
      Fixes: e12310a0
      
       ("arm64/sme: Implement ptrace support for streaming mode SVE registers")
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      Cc: stable@vger.kernel.org
      Link: https://lore.kernel.org/r/20230803-arm64-fix-ptrace-ssve-no-sve-v1-3-49df214bfb3e@kernel.org
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      69af56ae
    • Mark Brown's avatar
      arm64/fpsimd: Sync FPSIMD state with SVE for SME only systems · 507ea5dd
      Mark Brown authored
      Currently we guard FPSIMD/SVE state conversions with a check for the system
      supporting SVE but SME only systems may need to sync streaming mode SVE
      state so add a check for SME support too.  These functions are only used
      by the ptrace code.
      
      Fixes: e12310a0
      
       ("arm64/sme: Implement ptrace support for streaming mode SVE registers")
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      Cc: stable@vger.kernel.org
      Link: https://lore.kernel.org/r/20230803-arm64-fix-ptrace-ssve-no-sve-v1-2-49df214bfb3e@kernel.org
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      507ea5dd
    • Mark Brown's avatar
      arm64/ptrace: Don't enable SVE when setting streaming SVE · 045aecdf
      Mark Brown authored
      Systems which implement SME without also implementing SVE are
      architecturally valid but were not initially supported by the kernel,
      unfortunately we missed one issue in the ptrace code.
      
      The SVE register setting code is shared between SVE and streaming mode
      SVE. When we set full SVE register state we currently enable TIF_SVE
      unconditionally, in the case where streaming SVE is being configured on a
      system that supports vanilla SVE this is not an issue since we always
      initialise enough state for both vector lengths but on a system which only
      support SME it will result in us attempting to restore the SVE vector
      length after having set streaming SVE registers.
      
      Fix this by making the enabling of SVE conditional on setting SVE vector
      state. If we set streaming SVE state and SVE was not already enabled this
      will result in a SVE access trap on next use of normal SVE, this will cause
      us to flush our register state but this is fine since the only way to
      trigger a SVE access trap would be to exit streaming mode which will cause
      the in register state to be flushed anyway.
      
      Fixes: e12310a0
      
       ("arm64/sme: Implement ptrace support for streaming mode SVE registers")
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      Cc: stable@vger.kernel.org
      Link: https://lore.kernel.org/r/20230803-arm64-fix-ptrace-ssve-no-sve-v1-1-49df214bfb3e@kernel.org
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      045aecdf
    • Dave Airlie's avatar
      Merge tag 'drm-intel-fixes-2023-08-03' of... · 1958b0f9
      Dave Airlie authored
      
      Merge tag 'drm-intel-fixes-2023-08-03' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
      
      - Fix bug in getting msg length in AUX CH registers handler [gvt] (Yan Zhao)
      - Gen12 AUX invalidation fixes [gt] (Andi Shyti, Jonathan Cavitt)
      - Fix premature release of request's reusable memory (Janusz Krzysztofik)
      
      - Merge tag 'gvt-fixes-2023-08-02' of https://github.com/intel/gvt-linux into drm-intel-fixes (Tvrtko Ursulin)
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/ZMtkxWGuUKpaRMmo@tursulin-desk
      1958b0f9
    • Dave Airlie's avatar
      Merge tag 'drm-misc-fixes-2023-08-03' of ssh://git.freedesktop.org/git/drm/drm-misc into drm-fixes · 062ff85b
      Dave Airlie authored
      
      
      A NULL pointer dereference fix for TTM, a timings fix for imx/ipuv3 and
      the addition of a MODULE_DEVICE_TABLE for the samsung-s6d7aa0 panel.
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Maxime Ripard <mripard@redhat.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/ztfogof2dhtlvjwe73mvd2jp5kbldhkkav7k5culuseqblwpti@qfobohwx3c3j
      062ff85b
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-fixes-for-v6.5-2-2023-08-03' of... · c1a515d3
      Linus Torvalds authored
      Merge tag 'perf-tools-fixes-for-v6.5-2-2023-08-03' of git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools
      
      Pull perf tools fixes from Arnaldo Carvalho de Melo:
      
       - Fix segfault in the powerpc specific arch_skip_callchain_idx
         function. The patch doing the reference count init/exit that went
         into 6.5 missed this function.
      
       - Fix regression reading the arm64 PMU cpu slots in sysfs, a patch
         removing some code duplication ended up duplicating the /sysfs prefix
         for these files.
      
       - Fix grouping of events related to topdown, addressing a regression on
         the CSV output produced by 'perf stat' noticed on the downstream tool
         toplev.
      
       - Fix the uprobe_from_different_cu 'perf test' entry, it is failing
         when gcc isn't available, so we need to check that and skip the test
         if it is not installed.
      
      * tag 'perf-tools-fixes-for-v6.5-2-2023-08-03' of git://git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools:
        perf test parse-events: Test complex name has required event format
        perf pmus: Create placholder regardless of scanning core_only
        perf test uprobe_from_different_cu: Skip if there is no gcc
        perf parse-events: Only move force grouped evsels when sorting
        perf parse-events: When fixing group leaders always set the leader
        perf parse-events: Extra care around force grouped events
        perf callchain powerpc: Fix addr location init during arch_skip_callchain_idx function
        perf pmu arm64: Fix reading the PMU cpu slots in sysfs
      c1a515d3
    • Linus Torvalds's avatar
      Merge tag 'cxl-fixes-6.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl · 638c1913
      Linus Torvalds authored
      Pull cxl fixes from Vishal Verma:
      
       - Fixup the Sanitixe device ABI that was merged for v6.5 to hide some
         sysfs files when the necessary support is missing. Update the ABI
         documentation around this as well.
      
      * tag 'cxl-fixes-6.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl:
        cxl/memdev: Only show sanitize sysfs files when supported
        cxl/memdev: Document security state in kern-doc
        cxl/memdev: Improve sanitize ABI descriptions
      638c1913
    • Linus Torvalds's avatar
      Merge tag 'net-6.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net · 999f6631
      Linus Torvalds authored
      Pull networking fixes from Jakub Kicinski:
       "Including fixes from bpf and wireless.
      
        Nothing scary here. Feels like the first wave of regressions from v6.5
        is addressed - one outstanding fix still to come in TLS for the
        sendpage rework.
      
        Current release - regressions:
      
         - udp: fix __ip_append_data()'s handling of MSG_SPLICE_PAGES
      
         - dsa: fix older DSA drivers using phylink
      
        Previous releases - regressions:
      
         - gro: fix misuse of CB in udp socket lookup
      
         - mlx5: unregister devlink params in case interface is down
      
         - Revert "wifi: ath11k: Enable threaded NAPI"
      
        Previous releases - always broken:
      
         - sched: cls_u32: fix match key mis-addressing
      
         - sched: bind logic fixes for cls_fw, cls_u32 and cls_route
      
         - add bound checks to a number of places which hand-parse netlink
      
         - bpf: disable preemption in perf_event_output helpers code
      
         - qed: fix scheduling in a tasklet while getting stats
      
         - avoid using APIs which are not hardirq-safe in couple of drivers,
           when we may be in a hard IRQ (netconsole)
      
         - wifi: cfg80211: fix return value in scan logic, avoid page
           allocator warning
      
         - wifi: mt76: mt7615: do not advertise 5 GHz on first PHY of MT7615D
           (DBDC)
      
        Misc:
      
         - drop handful of inactive maintainers, put some new in place"
      
      * tag 'net-6.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net: (98 commits)
        MAINTAINERS: update TUN/TAP maintainers
        test/vsock: remove vsock_perf executable on `make clean`
        tcp_metrics: fix data-race in tcpm_suck_dst() vs fastopen
        tcp_metrics: annotate data-races around tm->tcpm_net
        tcp_metrics: annotate data-races around tm->tcpm_vals[]
        tcp_metrics: annotate data-races around tm->tcpm_lock
        tcp_metrics: annotate data-races around tm->tcpm_stamp
        tcp_metrics: fix addr_same() helper
        prestera: fix fallback to previous version on same major version
        udp: Fix __ip_append_data()'s handling of MSG_SPLICE_PAGES
        net/mlx5e: Set proper IPsec source port in L4 selector
        net/mlx5: fs_core: Skip the FTs in the same FS_TYPE_PRIO_CHAINS fs_prio
        net/mlx5: fs_core: Make find_closest_ft more generic
        wifi: brcmfmac: Fix field-spanning write in brcmf_scan_params_v2_to_v1()
        vxlan: Fix nexthop hash size
        ip6mr: Fix skb_under_panic in ip6mr_cache_report()
        s390/qeth: Don't call dev_close/dev_open (DOWN/UP)
        net: tap_open(): set sk_uid from current_fsuid()
        net: tun_chr_open(): set sk_uid from current_fsuid()
        net: dcb: choose correct policy to parse DCB_ATTR_BCN
        ...
      999f6631
    • Jakub Kicinski's avatar
      MAINTAINERS: update TUN/TAP maintainers · 0765c5f2
      Jakub Kicinski authored
      
      
      Willem and Jason have agreed to take over the maintainer
      duties for TUN/TAP, thank you!
      
      There's an existing entry for TUN/TAP which only covers
      the user mode Linux implementation.
      Since we haven't heard from Maxim on the list for almost
      a decade, extend that entry and take it over, rather than
      adding a new one.
      
      Acked-by: default avatarWillem de Bruijn <willemb@google.com>
      Acked-by: default avatarJason Wang <jasowang@redhat.com>
      Link: https://lore.kernel.org/r/20230802182843.4193099-1-kuba@kernel.org
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      0765c5f2
    • Jakub Kicinski's avatar
      Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf · 3932f227
      Jakub Kicinski authored
      
      
      Martin KaFai Lau says:
      
      ====================
      pull-request: bpf 2023-08-03
      
      We've added 5 non-merge commits during the last 7 day(s) which contain
      a total of 3 files changed, 37 insertions(+), 20 deletions(-).
      
      The main changes are:
      
      1) Disable preemption in perf_event_output helpers code,
         from Jiri Olsa
      
      2) Add length check for SK_DIAG_BPF_STORAGE_REQ_MAP_FD parsing,
         from Lin Ma
      
      3) Multiple warning splat fixes in cpumap from Hou Tao
      
      * tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf:
        bpf, cpumap: Handle skb as well when clean up ptr_ring
        bpf, cpumap: Make sure kthread is running before map update returns
        bpf: Add length check for SK_DIAG_BPF_STORAGE_REQ_MAP_FD parsing
        bpf: Disable preemption in bpf_event_output
        bpf: Disable preemption in bpf_perf_event_output
      ====================
      
      Link: https://lore.kernel.org/r/20230803181429.994607-1-martin.lau@linux.dev
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      3932f227
    • Jakub Kicinski's avatar
      Merge tag 'wireless-2023-08-03' of git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless · 0d48a84b
      Jakub Kicinski authored
      
      
      Kalle Valo says:
      
      ====================
      wireless fixes for v6.5
      
      We did some house cleaning in MAINTAINERS file so several patches
      about that. Few regressions fixed and also fix some recently enabled
      memcpy() warnings. Only small commits and nothing special standing
      out.
      
      * tag 'wireless-2023-08-03' of git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless:
        wifi: brcmfmac: Fix field-spanning write in brcmf_scan_params_v2_to_v1()
        wifi: ray_cs: Replace 1-element array with flexible array
        MAINTAINERS: add Jeff as ath10k, ath11k and ath12k maintainer
        MAINTAINERS: wifi: mark mlw8k as orphan
        MAINTAINERS: wifi: mark b43 as orphan
        MAINTAINERS: wifi: mark zd1211rw as orphan
        MAINTAINERS: wifi: mark wl3501 as orphan
        MAINTAINERS: wifi: mark rndis_wlan as orphan
        MAINTAINERS: wifi: mark ar5523 as orphan
        MAINTAINERS: wifi: mark cw1200 as orphan
        MAINTAINERS: wifi: atmel: mark as orphan
        MAINTAINERS: wifi: rtw88: change Ping as the maintainer
        Revert "wifi: ath6k: silence false positive -Wno-dangling-pointer warning on GCC 12"
        wifi: cfg80211: Fix return value in scan logic
        Revert "wifi: ath11k: Enable threaded NAPI"
        MAINTAINERS: Update mwifiex maintainer list
        wifi: mt76: mt7615: do not advertise 5 GHz on first phy of MT7615D (DBDC)
      ====================
      
      Link: https://lore.kernel.org/r/20230803140058.57476C433C9@smtp.kernel.org
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      0d48a84b
    • Stefano Garzarella's avatar
      test/vsock: remove vsock_perf executable on `make clean` · 3c50c8b2
      Stefano Garzarella authored
      We forgot to add vsock_perf to the rm command in the `clean`
      target, so now we have a left over after `make clean` in
      tools/testing/vsock.
      
      Fixes: 8abbffd2
      
       ("test/vsock: vsock_perf utility")
      Cc: AVKrasnov@sberdevices.ru
      Signed-off-by: default avatarStefano Garzarella <sgarzare@redhat.com>
      Reviewed-by: default avatarSimon Horman <horms@kernel.org>
      Tested-by: Simon Horman <horms@kernel.org> # build-tested
      Link: https://lore.kernel.org/r/20230803085454.30897-1-sgarzare@redhat.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      3c50c8b2
    • Jakub Kicinski's avatar
      Merge branch 'tcp_metrics-series-of-fixes' · 374297e8
      Jakub Kicinski authored
      
      
      Eric Dumazet says:
      
      ====================
      tcp_metrics: series of fixes
      
      This series contains a fix for addr_same() and various
      data-race annotations.
      
      We still have to address races over tm->tcpm_saddr and
      tm->tcpm_daddr later.
      ====================
      
      Link: https://lore.kernel.org/r/20230802131500.1478140-1-edumazet@google.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      374297e8
    • Eric Dumazet's avatar
      tcp_metrics: fix data-race in tcpm_suck_dst() vs fastopen · ddf251fa
      Eric Dumazet authored
      Whenever tcpm_new() reclaims an old entry, tcpm_suck_dst()
      would overwrite data that could be read from tcp_fastopen_cache_get()
      or tcp_metrics_fill_info().
      
      We need to acquire fastopen_seqlock to maintain consistency.
      
      For newly allocated objects, tcpm_new() can switch to kzalloc()
      to avoid an extra fastopen_seqlock acquisition.
      
      Fixes: 1fe4c481
      
       ("net-tcp: Fast Open client - cookie cache")
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Cc: Yuchung Cheng <ycheng@google.com>
      Reviewed-by: default avatarKuniyuki Iwashima <kuniyu@amazon.com>
      Link: https://lore.kernel.org/r/20230802131500.1478140-7-edumazet@google.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      ddf251fa
    • Eric Dumazet's avatar
      tcp_metrics: annotate data-races around tm->tcpm_net · d5d986ce
      Eric Dumazet authored
      tm->tcpm_net can be read or written locklessly.
      
      Instead of changing write_pnet() and read_pnet() and potentially
      hurt performance, add the needed READ_ONCE()/WRITE_ONCE()
      in tm_net() and tcpm_new().
      
      Fixes: 849e8a0c
      
       ("tcp_metrics: Add a field tcpm_net and verify it matches on lookup")
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
      Reviewed-by: default avatarKuniyuki Iwashima <kuniyu@amazon.com>
      Link: https://lore.kernel.org/r/20230802131500.1478140-6-edumazet@google.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      d5d986ce
    • Eric Dumazet's avatar
      tcp_metrics: annotate data-races around tm->tcpm_vals[] · 8c4d04f6
      Eric Dumazet authored
      tm->tcpm_vals[] values can be read or written locklessly.
      
      Add needed READ_ONCE()/WRITE_ONCE() to document this,
      and force use of tcp_metric_get() and tcp_metric_set()
      
      Fixes: 51c5d0c4
      
       ("tcp: Maintain dynamic metrics in local cache.")
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
      Reviewed-by: default avatarKuniyuki Iwashima <kuniyu@amazon.com>
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      8c4d04f6
    • Eric Dumazet's avatar
      tcp_metrics: annotate data-races around tm->tcpm_lock · 285ce119
      Eric Dumazet authored
      tm->tcpm_lock can be read or written locklessly.
      
      Add needed READ_ONCE()/WRITE_ONCE() to document this.
      
      Fixes: 51c5d0c4
      
       ("tcp: Maintain dynamic metrics in local cache.")
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
      Reviewed-by: default avatarKuniyuki Iwashima <kuniyu@amazon.com>
      Link: https://lore.kernel.org/r/20230802131500.1478140-4-edumazet@google.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      285ce119
    • Eric Dumazet's avatar
      tcp_metrics: annotate data-races around tm->tcpm_stamp · 949ad62a
      Eric Dumazet authored
      tm->tcpm_stamp can be read or written locklessly.
      
      Add needed READ_ONCE()/WRITE_ONCE() to document this.
      
      Also constify tcpm_check_stamp() dst argument.
      
      Fixes: 51c5d0c4
      
       ("tcp: Maintain dynamic metrics in local cache.")
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
      Reviewed-by: default avatarKuniyuki Iwashima <kuniyu@amazon.com>
      Link: https://lore.kernel.org/r/20230802131500.1478140-3-edumazet@google.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      949ad62a
    • Eric Dumazet's avatar
      tcp_metrics: fix addr_same() helper · e6638094
      Eric Dumazet authored
      Because v4 and v6 families use separate inetpeer trees (respectively
      net->ipv4.peers and net->ipv6.peers), inetpeer_addr_cmp(a, b) assumes
      a & b share the same family.
      
      tcp_metrics use a common hash table, where entries can have different
      families.
      
      We must therefore make sure to not call inetpeer_addr_cmp()
      if the families do not match.
      
      Fixes: d39d14ff
      
       ("net: Add helper function to compare inetpeer addresses")
      Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
      Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
      Reviewed-by: default avatarKuniyuki Iwashima <kuniyu@amazon.com>
      Link: https://lore.kernel.org/r/20230802131500.1478140-2-edumazet@google.com
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      e6638094
    • Jonas Gorski's avatar
      prestera: fix fallback to previous version on same major version · b755c25f
      Jonas Gorski authored
      When both supported and previous version have the same major version,
      and the firmwares are missing, the driver ends in a loop requesting the
      same (previous) version over and over again:
      
          [   76.327413] Prestera DX 0000:01:00.0: missing latest mrvl/prestera/mvsw_prestera_fw-v4.1.img firmware, fall-back to previous 4.0 version
          [   76.339802] Prestera DX 0000:01:00.0: missing latest mrvl/prestera/mvsw_prestera_fw-v4.0.img firmware, fall-back to previous 4.0 version
          [   76.352162] Prestera DX 0000:01:00.0: missing latest mrvl/prestera/mvsw_prestera_fw-v4.0.img firmware, fall-back to previous 4.0 version
          [   76.364502] Prestera DX 0000:01:00.0: missing latest mrvl/prestera/mvsw_prestera_fw-v4.0.img firmware, fall-back to previous 4.0 version
          [   76.376848] Prestera DX 0000:01:00.0: missing latest mrvl/prestera/mvsw_prestera_fw-v4.0.img firmware, fall-back to previous 4.0 version
          [   76.389183] Prestera DX 0000:01:00.0: missing latest mrvl/prestera/mvsw_prestera_fw-v4.0.img firmware, fall-back to previous 4.0 version
          [   76.401522] Prestera DX 0000:01:00.0: missing latest mrvl/prestera/mvsw_prestera_fw-v4.0.img firmware, fall-back to previous 4.0 version
          [   76.413860] Prestera DX 0000:01:00.0: missing latest mrvl/prestera/mvsw_prestera_fw-v4.0.img firmware, fall-back to previous 4.0 version
          [   76.426199] Prestera DX 0000:01:00.0: missing latest mrvl/prestera/mvsw_prestera_fw-v4.0.img firmware, fall-back to previous 4.0 version
          ...
      
      Fix this by inverting the check to that we aren't yet at the previous
      version, and also check the minor version.
      
      This also catches the case where both versions are the same, as it was
      after commit bb5dbf2c ("net: marvell: prestera: add firmware v4.0
      support").
      
      With this fix applied:
      
          [   88.499622] Prestera DX 0000:01:00.0: missing latest mrvl/prestera/mvsw_prestera_fw-v4.1.img firmware, fall-back to previous 4.0 version
          [   88.511995] Prestera DX 0000:01:00.0: failed to request previous firmware: mrvl/prestera/mvsw_prestera_fw-v4.0.img
          [   88.522403] Prestera DX: probe of 0000:01:00.0 failed with error -2
      
      Fixes: 47f26018
      
       ("net: marvell: prestera: try to load previous fw version")
      Signed-off-by: default avatarJonas Gorski <jonas.gorski@bisdn.de>
      Acked-by: default avatarElad Nachman <enachman@marvell.com>
      Reviewed-by: default avatarJesse Brandeburg <jesse.brandeburg@intel.com>
      Acked-by: default avatarTaras Chornyi <taras.chornyi@plvision.eu>
      Link: https://lore.kernel.org/r/20230802092357.163944-1-jonas.gorski@bisdn.de
      Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
      b755c25f
    • Linus Torvalds's avatar
      Merge tag 'nfsd-6.5-3' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux · 7bafbd40
      Linus Torvalds authored
      Pull nfsd fix from Chuck Lever:
      
       - Fix tmpfs splice read support
      
      * tag 'nfsd-6.5-3' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux:
        nfsd: Fix reading via splice
      7bafbd40
    • Linus Torvalds's avatar
      Merge tag 'erofs-for-6.5-rc5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs · 556c9424
      Linus Torvalds authored
      Pull erofs fixes from Gao Xiang:
      
       - Fix data corruption caused by insufficient decompression on
         deduplicated compressed extents
      
       - Drop a useless s_magic checking in erofs_kill_sb()
      
      * tag 'erofs-for-6.5-rc5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs:
        erofs: drop unnecessary WARN_ON() in erofs_kill_sb()
        erofs: fix wrong primary bvec selection on deduplicated extents
      556c9424
    • Linus Torvalds's avatar
      Merge tag 's390-6.5-4' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · 5e0ba145
      Linus Torvalds authored
      Pull s390 fixes from Heiko Carstens:
      
       - Split kernel large page mappings into 4k mappings in case debug
         pagealloc is enabled again. This got accidentally removed by commit
         bb1520d5 ("s390/mm: start kernel with DAT enabled")
      
       - Fix error handling in KVM's sthyi handling
      
       - Add missing include to s390's uapi ptrace.h
      
       - Update defconfigs
      
      * tag 's390-6.5-4' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
        s390/ptrace: add missing linux/const.h include
        KVM: s390: fix sthyi error handling
        s390: update defconfigs
        s390/vmem: split pages when debug pagealloc is enabled
      5e0ba145
  4. Aug 03, 2023
    • Mark Brown's avatar
      arm64/ptrace: Flush FP state when setting ZT0 · 89a65c3f
      Mark Brown authored
      When setting ZT0 via ptrace we do not currently force a reload of the
      floating point register state from memory, do that to ensure that the newly
      set value gets loaded into the registers on next task execution.
      
      The function was templated off the function for FPSIMD which due to our
      providing the option of embedding a FPSIMD regset within the SVE regset
      does not directly include the flush.
      
      Fixes: f90b529b
      
       ("arm64/sme: Implement ZT0 ptrace support")
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      Cc: stable@vger.kernel.org
      Link: https://lore.kernel.org/r/20230803-arm64-fix-ptrace-zt0-flush-v1-1-72e854eaf96e@kernel.org
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      89a65c3f
    • Mark Brown's avatar
      arm64/fpsimd: Clear SME state in the target task when setting the VL · c9bb40b7
      Mark Brown authored
      When setting SME vector lengths we clear TIF_SME to reenable SME traps,
      doing a reallocation of the backing storage on next use. We do this using
      clear_thread_flag() which operates on the current thread, meaning that when
      setting the vector length via ptrace we may both not force traps for the
      target task and force a spurious flush of any SME state that the tracing
      task may have.
      
      Clear the flag in the target task.
      
      Fixes: e12310a0
      
       ("arm64/sme: Implement ptrace support for streaming mode SVE registers")
      Reported-by: default avatarDavid Spickett <David.Spickett@arm.com>
      Signed-off-by: default avatarMark Brown <broonie@kernel.org>
      Cc: stable@vger.kernel.org
      Link: https://lore.kernel.org/r/20230803-arm64-fix-ptrace-tif-sme-v1-1-88312fd6fbfd@kernel.org
      Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      c9bb40b7
    • hanyu001@208suo.com's avatar
      parisc: unaligned: Add required spaces after ',' · 99b2f159
      hanyu001@208suo.com authored
      
      
      Fix checkpatch warnings:
      unaligned.c:475: ERROR: space required after that ','
      
      Signed-off-by: default avatarYu Han <hanyu001@208suo.com>
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      99b2f159
    • Arnd Bergmann's avatar
      parport: gsc: remove DMA leftover code · 2e1b1d70
      Arnd Bergmann authored
      
      
      This driver does not actually work with DMA mode, but still tries
      to call ISA DMA interface functions that are stubbed out on
      parisc, resulting in a W=1 build warning:
      
      drivers/parport/parport_gsc.c: In function 'parport_remove_chip':
      drivers/parport/parport_gsc.c:389:20: warning: suggest braces around empty body in an 'if' statement [-Wempty-body]
        389 |    free_dma(p->dma);
      
      Remove the corresponding code as a prerequisite for turning on -Wempty-body
      by default in all kernels.
      
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      2e1b1d70
    • Petr Tesarik's avatar
      parisc: pci-dma: remove unused and dead EISA code and comment · ce9ff57d
      Petr Tesarik authored
      
      
      Clearly, this code isn't needed, but it gives a false positive when
      grepping the complete source tree for coherent_dma_mask.
      
      Signed-off-by: default avatarPetr Tesarik <petr.tesarik.ext@huawei.com>
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      ce9ff57d
    • Mike Rapoport (IBM)'s avatar
      parisc/mm: preallocate fixmap page tables at init · c2ff2b73
      Mike Rapoport (IBM) authored
      
      
      Christoph Biedl reported early OOM on recent kernels:
      
          swapper: page allocation failure: order:0, mode:0x100(__GFP_ZERO),
      nodemask=(null)
          CPU: 0 PID: 0 Comm: swapper Not tainted 6.3.0-rc4+ #16
          Hardware name: 9000/785/C3600
          Backtrace:
           [<10408594>] show_stack+0x48/0x5c
           [<10e152d8>] dump_stack_lvl+0x48/0x64
           [<10e15318>] dump_stack+0x24/0x34
           [<105cf7f8>] warn_alloc+0x10c/0x1c8
           [<105d068c>] __alloc_pages+0xbbc/0xcf8
           [<105d0e4c>] __get_free_pages+0x28/0x78
           [<105ad10c>] __pte_alloc_kernel+0x30/0x98
           [<10406934>] set_fixmap+0xec/0xf4
           [<10411ad4>] patch_map.constprop.0+0xa8/0xdc
           [<10411bb0>] __patch_text_multiple+0xa8/0x208
           [<10411d78>] patch_text+0x30/0x48
           [<1041246c>] arch_jump_label_transform+0x90/0xcc
           [<1056f734>] jump_label_update+0xd4/0x184
           [<1056fc9c>] static_key_enable_cpuslocked+0xc0/0x110
           [<1056fd08>] static_key_enable+0x1c/0x2c
           [<1011362c>] init_mem_debugging_and_hardening+0xdc/0xf8
           [<1010141c>] start_kernel+0x5f0/0xa98
           [<10105da8>] start_parisc+0xb8/0xe4
      
          Mem-Info:
          active_anon:0 inactive_anon:0 isolated_anon:0
           active_file:0 inactive_file:0 isolated_file:0
           unevictable:0 dirty:0 writeback:0
           slab_reclaimable:0 slab_unreclaimable:0
           mapped:0 shmem:0 pagetables:0
           sec_pagetables:0 bounce:0
           kernel_misc_reclaimable:0
           free:0 free_pcp:0 free_cma:0
          Node 0 active_anon:0kB inactive_anon:0kB active_file:0kB
      inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB
      mapped:0kB dirty:0kB writeback:0kB shmem:0kB
      +writeback_tmp:0kB kernel_stack:0kB pagetables:0kB sec_pagetables:0kB
      all_unreclaimable? no
          Normal free:0kB boost:0kB min:0kB low:0kB high:0kB
      reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:0kB
      inactive_file:0kB unevictable:0kB writepending:0kB
      +present:1048576kB managed:1039360kB mlocked:0kB bounce:0kB free_pcp:0kB
      local_pcp:0kB free_cma:0kB
          lowmem_reserve[]: 0 0
          Normal: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB
      0*1024kB 0*2048kB 0*4096kB = 0kB
          0 total pagecache pages
          0 pages in swap cache
          Free swap  = 0kB
          Total swap = 0kB
          262144 pages RAM
          0 pages HighMem/MovableOnly
          2304 pages reserved
          Backtrace:
           [<10411d78>] patch_text+0x30/0x48
           [<1041246c>] arch_jump_label_transform+0x90/0xcc
           [<1056f734>] jump_label_update+0xd4/0x184
           [<1056fc9c>] static_key_enable_cpuslocked+0xc0/0x110
           [<1056fd08>] static_key_enable+0x1c/0x2c
           [<1011362c>] init_mem_debugging_and_hardening+0xdc/0xf8
           [<1010141c>] start_kernel+0x5f0/0xa98
           [<10105da8>] start_parisc+0xb8/0xe4
      
          Kernel Fault: Code=15 (Data TLB miss fault) at addr 0f7fe3c0
          CPU: 0 PID: 0 Comm: swapper Not tainted 6.3.0-rc4+ #16
          Hardware name: 9000/785/C3600
      
      This happens because patching static key code temporarily maps it via
      fixmap and if it happens before page allocator is initialized set_fixmap()
      cannot allocate memory using pte_alloc_kernel().
      
      Make sure that fixmap page tables are preallocated early so that
      pte_offset_kernel() in set_fixmap() never resorts to pte allocation.
      
      Signed-off-by: default avatarMike Rapoport (IBM) <rppt@kernel.org>
      Acked-by: default avatarVlastimil Babka <vbabka@suse.cz>
      Signed-off-by: default avatarHelge Deller <deller@gmx.de>
      Tested-by: default avatarChristoph Biedl <linux-kernel.bfrz@manchmal.in-ulm.de>
      Tested-by: default avatarJohn David Anglin <dave.anglin@bell.net>
      Cc: <stable@vger.kernel.org> # v6.4+
      c2ff2b73