1. 23 Feb, 2023 21 commits
    • Linus Torvalds's avatar
      Merge tag 'mfd-next-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd · c2c23dc7
      Linus Torvalds authored
      Pull MFD updates from Lee Jones:
       "Core Framework:
         - Change MFD support status from Supported to Maintained
      
        New Drivers:
         - Add support for the Intel Platform Management Component Interface
           (PMCI)
      
        Removed Drivers:
         - HTC PASIC3 LED/DS1WM
         - Toshiba T7L66XB, TC6387XB and TC6393XB TMIO
      
        New Device Support:
         - Add support for N6000 Flash to Intel M10 BMC PMCI
         - Add support for Lenovo Yoga Tab 3 to Intel CHTWC PMIC
      
        New Functionality:
         - Provide Reset support to Syscon
      
        Fix-ups:
         - Explicitly provide missing include files
         - Pass platform type data/info via the SPI/I2C/DT registration
           strategy
         - Lots of DT documentation / adaptions
         - Replace scnprintf() with preferred sysfs_emit()
         - Remove unused / superfluous code
         - Fix some trivial whitesspace / spelling / grammatical issues
         - Replace pm_power_off with new and improved
           register_sys_off_handler() API
      
        Bug Fixes:
         - Reintroduce RK808-clkout registration - fixing Wi-Fi and Bluetooth
         - Repair the order of AXPxxx IRQ PEK RISE/FALL definitions
         - Refuse to build CS5535 on unsupported UML architectures
         - Fix memory leaks in error return paths
         - Prevent refcount leaks in error return paths"
      
      * tag 'mfd-next-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd: (40 commits)
        dt-bindings: mfd: qcom,tcsr: Add compatible for IPQ5332
        dt-bindings: mfd: Add NXP BBNSM
        mfd: ntxec: Add version number for EC in Tolino Vision
        dt-bindings: mfd: syscon: Add mt8365-syscfg
        mfd: Remove toshiba tmio drivers
        mfd: arizona: Use pm_runtime_resume_and_get() to prevent refcnt leak
        mfd: syscon: Allow reset control for syscon devices
        dt-bindings: mfd/syscon: Add resets property
        dt-bindings: mfd: syscon: Add amd,pensando-elba-syscon compatible
        dt-bindings: mfd: qcom,tcsr: Add compatible for MSM8226
        mfd: simple-mfd-i2c: Fix incoherent comment regarding DT registration
        mfd: axp20x: Switch to the sys-off handler API
        mfd: core: Spelling s/compement/complement/
        mfd: max8925: Remove the unused function irq_to_max8925()
        mfd: qcom-pm8xxx: Remove set but unused variable 'rev'
        dt-bindings: mfd: syscon: Document GXP register compatible
        mfd: twl4030-power: Drop empty platform remove function
        mfd: twl: Fix TWL6032 phy vbus detection
        mfd: pcf50633-adc: Fix potential memleak in pcf50633_adc_async_read()
        MAINTAINERS: Move MFD from a Supported to Maintaied state
        ...
      c2c23dc7
    • Linus Torvalds's avatar
      Merge tag 'efi-next-for-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi · 06e1a81c
      Linus Torvalds authored
      Pull EFI updates from Ard Biesheuvel:
       "A healthy mix of EFI contributions this time:
      
         - Performance tweaks for efifb earlycon (Andy)
      
         - Preparatory refactoring and cleanup work in the efivar layer, which
           is needed to accommodate the Snapdragon arm64 laptops that expose
           their EFI variable store via a TEE secure world API (Johan)
      
         - Enhancements to the EFI memory map handling so that Xen dom0 can
           safely access EFI configuration tables (Demi Marie)
      
         - Wire up the newly introduced IBT/BTI flag in the EFI memory
           attributes table, so that firmware that is generated with ENDBR/BTI
           landing pads will be mapped with enforcement enabled
      
         - Clean up how we check and print the EFI revision exposed by the
           firmware
      
         - Incorporate EFI memory attributes protocol definition and wire it
           up in the EFI zboot code (Evgeniy)
      
           This ensures that these images can execute under new and stricter
           rules regarding the default memory permissions for EFI page
           allocations (More work is in progress here)
      
         - CPER header cleanup (Dan Williams)
      
         - Use a raw spinlock to protect the EFI runtime services stack on
           arm64 to ensure the correct semantics under -rt (Pierre)
      
         - EFI framebuffer quirk for Lenovo Ideapad (Darrell)"
      
      * tag 'efi-next-for-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi: (24 commits)
        firmware/efi sysfb_efi: Add quirk for Lenovo IdeaPad Duet 3
        arm64: efi: Make efi_rt_lock a raw_spinlock
        efi: Add mixed-mode thunk recipe for GetMemoryAttributes
        efi: x86: Wire up IBT annotation in memory attributes table
        efi: arm64: Wire up BTI annotation in memory attributes table
        efi: Discover BTI support in runtime services regions
        efi/cper, cxl: Remove cxl_err.h
        efi: Use standard format for printing the EFI revision
        efi: Drop minimum EFI version check at boot
        efi: zboot: Use EFI protocol to remap code/data with the right attributes
        efi/libstub: Add memory attribute protocol definitions
        efi: efivars: prevent double registration
        efi: verify that variable services are supported
        efivarfs: always register filesystem
        efi: efivars: add efivars printk prefix
        efi: Warn if trying to reserve memory under Xen
        efi: Actually enable the ESRT under Xen
        efi: Apply allowlist to EFI configuration tables when running under Xen
        efi: xen: Implement memory descriptor lookup based on hypercall
        efi: memmap: Disregard bogus entries instead of returning them
        ...
      06e1a81c
    • Linus Torvalds's avatar
      Merge tag 'bootconfig-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace · f2b98d0a
      Linus Torvalds authored
      Pull bootconfig updates from Masami Hiramatsu:
      
       - Fix ftrace2bconf.sh tool for checking event enable status correctly
      
       - Add CONFIG_BOOT_CONFIG_FORCE to apply bootconfig without 'bootconfig'
         boot parameter
      
       - Enable CONFIG_BOOT_CONFIG_FORCE by default if a bootconfig is
         embedded in the kernel
      
       - Increase max number of nodes of bootconfig to 8192
      
      * tag 'bootconfig-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
        bootconfig: Increase max nodes of bootconfig from 1024 to 8192 for DCC support
        bootconfig: Default BOOT_CONFIG_FORCE to y if BOOT_CONFIG_EMBED
        Allow forcing unconditional bootconfig processing
        tools/bootconfig: fix single & used for logical condition
      f2b98d0a
    • Linus Torvalds's avatar
      Merge tag 'sysctl-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux · fcc77d7c
      Linus Torvalds authored
      Pull sysctl update from Luis Chamberlain:
       "Just one fix which just came in.
      
        Sadly the eager beavers willing to help with the sysctl moves have
        slowed"
      
      * tag 'sysctl-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux:
        sysctl: fix proc_dobool() usability
      fcc77d7c
    • Linus Torvalds's avatar
      Merge tag 'modules-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux · c538944d
      Linus Torvalds authored
      Pull modules updates from Luis Chamberlain:
       "Nothing exciting at all for modules for v6.3.
      
        The biggest change is just the change of INSTALL_MOD_DIR from "extra"
        to "updates" which I found lingered for ages for no good reason while
        testing the CXL mock driver [0].
      
        The CXL mock driver has no kconfig integration and requires building
        an external module... and re-building the *rest* of the production
        drivers. This mock driver when loaded but not the production ones will
        crash.
      
        All this can obviously be fixed by integrating kconfig semantics into
        such test module, however that's not desirable by the maintainer, and
        so sensible defaults must be used to ensure a default "make
        modules_install" will suffice for most distros which do not have a
        file like /etc/depmod.d/dist.conf with something like `search updates
        extra built-in`.
      
        Since most distros rely on kmod and since its inception the "updates"
        directory is always in the search path it makes more sense to use that
        than the "extra" which only *some* RH based systems rely on.
      
        All this stuff has been on linux-next for a while"
      
      [0] https://lkml.kernel.org/r/20221209062919.1096779-1-mcgrof@kernel.org
      
      * tag 'modules-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux:
        Documentation: livepatch: module-elf-format: Remove local klp_modinfo definition
        module.h: Document klp_modinfo struct using kdoc
        module: Use kstrtobool() instead of strtobool()
        kernel/params.c: Use kstrtobool() instead of strtobool()
        test_kmod: stop kernel-doc warnings
        kbuild: Modify default INSTALL_MOD_DIR from extra to updates
      c538944d
    • Linus Torvalds's avatar
      Merge tag 'livepatching-for-6.3' of... · 7dd86cf8
      Linus Torvalds authored
      Merge tag 'livepatching-for-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/livepatching/livepatching
      
      Pull livepatching updates from Petr Mladek:
      
       - Allow reloading a livepatched module by clearing livepatch-specific
         relocations in the livepatch module.
      
         Otherwise, the repeated load would fail on consistency checks.
      
      * tag 'livepatching-for-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/livepatching/livepatching:
        livepatch,x86: Clear relocation targets on a module removal
        x86/module: remove unused code in __apply_relocate_add
      7dd86cf8
    • Linus Torvalds's avatar
      Merge tag 'printk-for-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux · d8763154
      Linus Torvalds authored
      Pull printk updates from Petr Mladek:
      
       - Refactor printk code for formatting messages that are shown on
         consoles. This is a preparatory step for introducing atomic consoles
         which could not share the global buffers
      
       - Prevent memory leak when removing printk index in debugfs
      
       - Dump also the newest printk message by the sample gdbmacro
      
       - Fix a compiler warning
      
      * tag 'printk-for-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux:
        printf: fix errname.c list
        kernel/printk/index.c: fix memory leak with using debugfs_lookup()
        printk: Use scnprintf() to print the message about the dropped messages on a console
        printk: adjust string limit macros
        printk: use printk_buffers for devkmsg
        printk: introduce console_prepend_dropped() for dropped messages
        printk: introduce printk_get_next_message() and printk_message
        printk: introduce struct printk_buffers
        console: Document struct console
        console: Use BIT() macros for @flags values
        printk: move size limit macros into internal.h
        docs: gdbmacros: print newest record
      d8763154
    • Linus Torvalds's avatar
      Merge tag 'slab-for-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab · cd43b506
      Linus Torvalds authored
      Pull slab updates from Vlastimil Babka:
       "This time it's just a bunch of smaller cleanups and fixes for SLAB and
        SLUB:
      
         - Make it possible to use kmem_cache_alloc_bulk() early in boot when
           interrupts are not yet enabled, as code doing that started to
           appear via new maple tree users (Thomas Gleixner)
      
         - Fix debugfs-related memory leak in SLUB (Greg Kroah-Hartman)
      
         - Use the standard idiom to get head page of folio (SeongJae Park)
      
         - Simplify and inline is_debug_pagealloc_cache() in SLAB (lvqian)
      
         - Remove unused variable in SLAB (Gou Hao)"
      
      * tag 'slab-for-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/vbabka/slab:
        mm, slab/slub: Ensure kmem_cache_alloc_bulk() is available early
        mm/slub: fix memory leak with using debugfs_lookup()
        mm/slab.c: cleanup is_debug_pagealloc_cache()
        mm/sl{a,u}b: fix wrong usages of folio_page() for getting head pages
        mm/slab: remove unused slab_early_init
      cd43b506
    • Linus Torvalds's avatar
      Merge tag 'probes-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace · 2b79eb73
      Linus Torvalds authored
      Pull kprobes updates from Masami Hiramatsu:
      
       - Skip negative return code check for snprintf in eprobe
      
       - Add recursive call test cases for kprobe unit test
      
       - Add 'char' type to probe events to show it as the character instead
         of value
      
       - Update kselftest kprobe-event testcase to ignore '__pfx_' symbols
      
       - Fix kselftest to check filter on eprobe event correctly
      
       - Add filter on eprobe to the README file in tracefs
      
       - Fix optprobes to check whether there is 'under unoptimizing' optprobe
         when optimizing another kprobe correctly
      
       - Fix optprobe to check whether there is 'under unoptimizing' optprobe
         when fetching the original instruction correctly
      
       - Fix optprobe to free 'forcibly unoptimized' optprobe correctly
      
      * tag 'probes-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
        tracing/eprobe: no need to check for negative ret value for snprintf
        test_kprobes: Add recursed kprobe test case
        tracing/probe: add a char type to show the character value of traced arguments
        selftests/ftrace: Fix probepoint testcase to ignore __pfx_* symbols
        selftests/ftrace: Fix eprobe syntax test case to check filter support
        tracing/eprobe: Fix to add filter on eprobe description in README file
        x86/kprobes: Fix arch_check_optimized_kprobe check within optimized_kprobe range
        x86/kprobes: Fix __recover_optprobed_insn check optimizing logic
        kprobes: Fix to handle forcibly unoptimized kprobes on freeing_list
      2b79eb73
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-for-v6.3-1-2023-02-22' of... · 0df82189
      Linus Torvalds authored
      Merge tag 'perf-tools-for-v6.3-1-2023-02-22' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux
      
      Pull perf tools updates from Arnaldo Carvalho de Melo:
       "Miscellaneous:
      
         - Add Ian Rogers to MAINTAINERS as a perf tools reviewer.
      
         - Add support for retire latency feature (pipeline stall of a
           instruction compared to the previous one, in cycles) present on
           some Intel processors.
      
         - Add 'perf c2c' report option to show false sharing with adjacent
           cachelines, to be used in machines with cacheline prefetching,
           where accesses to a cacheline brings the next one too.
      
         - Skip 'perf test bpf' when the required kernel-debuginfo package
           isn't installed.
      
         - Avoid d3-flame-graph package dependency in 'perf script flamegraph',
           making this feature more generally available.
      
         - Add JSON metric events to present CPI stall cycles in Power10.
      
         - Assorted improvements/refactorings on the JSON metrics parsing
           code.
      
        perf lock contention:
      
         - Add -o/--lock-owner option:
      
              $ sudo ./perf lock contention -abo -- ./perf bench sched pipe
              # Running 'sched/pipe' benchmark:
              # Executed 1000000 pipe operations between two processes
      
                   Total time: 4.766 [sec]
      
                     4.766540 usecs/op
                       209795 ops/sec
               contended   total wait     max wait     avg wait          pid   owner
      
                     403    565.32 us     26.81 us      1.40 us           -1   Unknown
                       4     27.99 us      8.57 us      7.00 us      1583145   sched-pipe
                       1      8.25 us      8.25 us      8.25 us      1583144   sched-pipe
                       1      2.03 us      2.03 us      2.03 us         5068   chrome
      
               The owner is unknown in most cases. Filtering only for the
               mutex locks, it will more likely get the owners.
      
         - -S/--callstack-filter is to limit display entries having the given
           string in the callstack:
      
              $ sudo ./perf lock contention -abv -S net sleep 1
              ...
               contended   total wait     max wait     avg wait         type   caller
      
                       5     70.20 us     16.13 us     14.04 us     spinlock   __dev_queue_xmit+0xb6d
                                      0xffffffffa5dd1c60  _raw_spin_lock+0x30
                                      0xffffffffa5b8f6ed  __dev_queue_xmit+0xb6d
                                      0xffffffffa5cd8267  ip6_finish_output2+0x2c7
                                      0xffffffffa5cdac14  ip6_finish_output+0x1d4
                                      0xffffffffa5cdb477  ip6_xmit+0x457
                                      0xffffffffa5d1fd17  inet6_csk_xmit+0xd7
                                      0xffffffffa5c5f4aa  __tcp_transmit_skb+0x54a
                                      0xffffffffa5c6467d  tcp_keepalive_timer+0x2fd
      
           Please note that to have the -b option (BPF) working above one has
           to build with BUILD_BPF_SKEL=1.
      
         - Add more 'perf test' entries to test these new features.
      
        perf script:
      
         - Add 'cgroup' field for 'perf script' output:
      
              $ perf record --all-cgroups -- true
              $ perf script -F comm,pid,cgroup
                        true 337112  /user.slice/user-657345.slice/user@657345.service/...
                        true 337112  /user.slice/user-657345.slice/user@657345.service/...
                        true 337112  /user.slice/user-657345.slice/user@657345.service/...
                        true 337112  /user.slice/user-657345.slice/user@657345.service/...
      
         - Add support for showing branch speculation information in 'perf
           script' and in the 'perf report' raw dump (-D).
      
        perf record:
      
         - Fix 'perf record' segfault with --overwrite and --max-size.
      
        perf test/bench:
      
         - Switch basic BPF filtering test to use syscall tracepoint to avoid
           the variable number of probes inserted when using the previous
           probe point (do_epoll_wait) that happens on different CPU
           architectures.
      
         - Fix DWARF unwind test by adding non-inline to expected function in
           a backtrace.
      
         - Use 'grep -c' where the longer form 'grep | wc -l' was being used.
      
         - Add getpid and execve benchmarks to 'perf bench syscall'.
      
        Intel PT:
      
         - Add support for synthesizing "cycle" events from Intel PT traces as
           we support "instruction" events when Intel PT CYC packets are
           available. This enables much more accurate profiles than when using
           the regular 'perf record -e cycles' (the default) when the workload
           lasts for very short periods (<10ms).
      
         - .plt symbol handling improvements, better handling IBT (in the past
           MPX) done in the context of decoding Intel PT processor traces,
           IFUNC symbols on x86_64, static executables, understanding .plt.got
           symbols on x86_64.
      
         - Add a 'perf test' to test symbol resolution, part of the .plt
           improvements series, this tests things like symbol size in contexts
           where only the symbol start is available (kallsyms), etc.
      
         - Better handle auxtrace/Intel PT data when using pipe mode (perf
           record sleep 1|perf report).
      
         - Fix symbol lookup with kcore with multiple segments match stext,
           getting the symbol resolution to just show DSOs as unknown.
      
        ARM:
      
         - Timestamp improvements for ARM64 systems with ETMv4 (Embedded Trace
           Macrocell v4).
      
         - Ensure ARM64 CoreSight timestamps don't go backwards.
      
         - Document that ARM64 SPE (Statistical Profiling Extension) is used
           with 'perf c2c/mem'.
      
         - Add raw decoding for ARM64 SPEv1.2 previous branch address.
      
         - Update neoverse-n2-v2 ARM vendor events (JSON tables): topdown L1,
           TLB, cache, branch, PE utilization and instruction mix metrics.
      
         - Update decoder code for OpenCSD version 1.4, on ARM64 systems.
      
         - Fix command line auto-complete of CPU events on aarch64.
      
        Build:
      
         - Fix 'perf probe' and 'perf test' when libtraceevent isn't linked,
           as several tests use tracepoints, those should be skipped.
      
         - More fallout fixes for the removal of tools/lib/traceevent/.
      
         - Fix build error when linking with libpfm"
      
      * tag 'perf-tools-for-v6.3-1-2023-02-22' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux: (114 commits)
        perf tests stat_all_metrics: Change true workload to sleep workload for system wide check
        perf vendor events power10: Add JSON metric events to present CPI stall cycles in powerpc
        perf intel-pt: Synthesize cycle events
        perf c2c: Add report option to show false sharing in adjacent cachelines
        perf record: Fix segfault with --overwrite and --max-size
        perf stat: Avoid merging/aggregating metric counts twice
        perf tools: Fix perf tool build error in util/pfm.c
        perf tools: Fix auto-complete on aarch64
        perf lock contention: Support old rw_semaphore type
        perf lock contention: Add -o/--lock-owner option
        perf lock contention: Fix to save callstack for the default modified
        perf test bpf: Skip test if kernel-debuginfo is not present
        perf probe: Update the exit error codes in function try_to_find_probe_trace_event
        perf script: Fix missing Retire Latency fields option documentation
        perf event x86: Add retire_lat when synthesizing PERF_SAMPLE_WEIGHT_STRUCT
        perf test x86: Support the retire_lat (Retire Latency) sample_type check
        perf test bpf: Check for libtraceevent support
        perf script: Support Retire Latency
        perf report: Support Retire Latency
        perf lock contention: Support filters for different aggregation
        ...
      0df82189
    • Linus Torvalds's avatar
      Merge tag 'trace-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace · b72b5fec
      Linus Torvalds authored
      Pull tracing updates from Steven Rostedt:
      
       - Add function names as a way to filter function addresses
      
       - Add sample module to test ftrace ops and dynamic trampolines
      
       - Allow stack traces to be passed from beginning event to end event for
         synthetic events. This will allow seeing the stack trace of when a
         task is scheduled out and recorded when it gets scheduled back in.
      
       - Add trace event helper __get_buf() to use as a temporary buffer when
         printing out trace event output.
      
       - Add kernel command line to create trace instances on boot up.
      
       - Add enabling of events to instances created at boot up.
      
       - Add trace_array_puts() to write into instances.
      
       - Allow boot instances to take a snapshot at the end of boot up.
      
       - Allow live patch modules to include trace events
      
       - Minor fixes and clean ups
      
      * tag 'trace-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace: (31 commits)
        tracing: Remove unnecessary NULL assignment
        tracepoint: Allow livepatch module add trace event
        tracing: Always use canonical ftrace path
        tracing/histogram: Fix stacktrace histogram Documententation
        tracing/histogram: Fix stacktrace key
        tracing/histogram: Fix a few problems with stacktrace variable printing
        tracing: Add BUILD_BUG() to make sure stacktrace fits in strings
        tracing/histogram: Don't use strlen to find length of stacktrace variables
        tracing: Allow boot instances to have snapshot buffers
        tracing: Add trace_array_puts() to write into instance
        tracing: Add enabling of events to boot instances
        tracing: Add creation of instances at boot command line
        tracing: Fix trace_event_raw_event_synth() if else statement
        samples: ftrace: Make some global variables static
        ftrace: sample: avoid open-coded 64-bit division
        samples: ftrace: Include the nospec-branch.h only for x86
        tracing: Acquire buffer from temparary trace sequence
        tracing/histogram: Wrap remaining shell snippets in code blocks
        tracing/osnoise: No need for schedule_hrtimeout range
        bpf/tracing: Use stage6 of tracing to not duplicate macros
        ...
      b72b5fec
    • Linus Torvalds's avatar
      Merge tag 'trace-v6.2-rc7-3' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace · 91914238
      Linus Torvalds authored
      Pull tracing fix from Steven Rostedt:
       "Fix race that causes a warning of corrupt ring buffer
      
        With the change that allows to read the "trace" file without disabling
        writing to the ring buffer, there was an integrity check of the ring
        buffer in the iterator read code, that expected the ring buffer to be
        write disabled. This caused the integrity check to trigger when stress
        reading the "trace" file while writing was happening.
      
        The integrity check is a bit aggressive (and has never triggered in
        practice). Change it so that it checks just the integrity of the
        linked pages without clearing the flags inside the pointers. This
        removes the warning that was being triggered"
      
      [ Heh. This was supposed to have gone in last week before the 6.2
        release, but Steven forgot to actually add me to the participants of
        the pull request, so here it is, a week later   - Linus ]
      
      * tag 'trace-v6.2-rc7-3' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
        ring-buffer: Handle race between rb_move_tail and rb_check_pages
      91914238
    • Linus Torvalds's avatar
      Merge tag 'trace-tools-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace · d392e49a
      Linus Torvalds authored
      Pull tracing tools updates from Steven Rostedt:
      
       - Use total duration to calculate average in rtla osnoise_hist
      
       - Use 2 digit precision for displaying average
      
       - Print an intuitive auto analysis of timerlat results
      
       - Add auto analysis to timerlat top
      
       - Add hwnoise, which is the same as osnoise but focuses on hardware
      
       - Small clean ups
      
      * tag 'trace-tools-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace:
        Documentation/rtla: Add hwnoise man page
        rtla: Add hwnoise tool
        Documentation/rtla: Add timerlat-top auto-analysis options
        rtla/timerlat: Add auto-analysis support to timerlat top
        rtla/timerlat: Add auto-analysis core
        tools/tracing/rtla: osnoise_hist: display average with two-digit precision
        tools/tracing/rtla: osnoise_hist: use total duration for average calculation
        tools/rv: Remove unneeded semicolon
      d392e49a
    • Linus Torvalds's avatar
      Merge tag 'ktest-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest · 2562af68
      Linus Torvalds authored
      Pull ktest updates from Steven Rostedt:
      
       - Fix three instances that the tty is not given back to the console on
         exit. Forcing the user to do a "reset" to get the console back.
      
       - Fix the console monitor to not hang when too much data is given by
         the ssh output.
      
      * tag 'ktest-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-ktest:
        ktest: Restore stty setting at first in dodie
        ktest.pl: Add RUN_TIMEOUT option with default unlimited
        ktest.pl: Give back console on Ctrt^C on monitor
        ktest.pl: Fix missing "end_monitor" when machine check fails
      2562af68
    • Linus Torvalds's avatar
      Merge tag 'linux-kselftest-kunit-6.3-rc1' of... · 89f1a244
      Linus Torvalds authored
      Merge tag 'linux-kselftest-kunit-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      Pull KUnit update from Shuah Khan:
      
       - add Function Redirection API to isolate the code being tested from
         other parts of the kernel.
      
         Documentation/dev-tools/kunit/api/functionredirection.rst has the
         details.
      
      * tag 'linux-kselftest-kunit-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
        kunit: Add printf attribute to fail_current_test_impl
        lib/hashtable_test.c: add test for the hashtable structure
        Documentation: Add Function Redirection API docs
        kunit: Expose 'static stub' API to redirect functions
        kunit: Add "hooks" to call into KUnit when it's built as a module
        kunit: kunit.py extract handlers
        tools/testing/kunit/kunit.py: remove redundant double check
      89f1a244
    • Linus Torvalds's avatar
      Merge tag 'linux-kselftest-next-6.3-rc1' of... · d6296cb6
      Linus Torvalds authored
      Merge tag 'linux-kselftest-next-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      Pull Kselftest update from Shuah Khan:
      
       - several patches to fix incorrect kernel headers search path from
         Mathieu Desnoyers
      
       - a few follow-on fixes found during testing the above change
      
       - miscellaneous fixes
      
       - support for filtering and enumerating tests
      
      * tag 'linux-kselftest-next-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: (40 commits)
        selftests/user_events: add a note about user_events.h dependency
        selftests/mount_setattr: fix to make run_tests failure
        selftests/mount_setattr: fix redefine struct mount_attr build error
        selftests/sched: fix warn_unused_result build warns
        selftests/ptp: Remove clean target from Makefile
        selftests: use printf instead of echo -ne
        selftests/ftrace: Fix bash specific "==" operator
        selftests: tpm2: remove redundant ord()
        selftests: find echo binary to use -ne options
        selftests: Fix spelling mistake "allright" -> "all right"
        selftests: tdx: Use installed kernel headers search path
        selftests: ptrace: Use installed kernel headers search path
        selftests: memfd: Use installed kernel headers search path
        selftests: iommu: Use installed kernel headers search path
        selftests: x86: Fix incorrect kernel headers search path
        selftests: vm: Fix incorrect kernel headers search path
        selftests: user_events: Fix incorrect kernel headers search path
        selftests: sync: Fix incorrect kernel headers search path
        selftests: seccomp: Fix incorrect kernel headers search path
        selftests: sched: Fix incorrect kernel headers search path
        ...
      d6296cb6
    • Linus Torvalds's avatar
      Merge tag 'nolibc.2023.02.06a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu · f01d4c8a
      Linus Torvalds authored
      Pull nolibc updates from Paul McKenney:
      
       - Add s390 support
      
       - Add support for the ARM Thumb1 instruction set
      
       - Fix O_* flags definitions for open() and fcntl()
      
       - Make errno a weak symbol instead of a static variable
      
       - Export environ as a weak symbol
      
       - Export _auxv as a weak symbol for auxilliary vector retrieval
      
       - Implement getauxval() and getpagesize()
      
       - Further improve self tests, including permitting userland testing of
         the nolibc library
      
      * tag 'nolibc.2023.02.06a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu: (28 commits)
        selftests/nolibc: Add a "run-user" target to test the program in user land
        selftests/nolibc: Support "x86_64" for arch name
        selftests/nolibc: Add `getpagesize(2)` selftest
        nolibc/sys: Implement `getpagesize(2)` function
        nolibc/stdlib: Implement `getauxval(3)` function
        tools/nolibc: add auxiliary vector retrieval for s390
        tools/nolibc: add auxiliary vector retrieval for mips
        tools/nolibc: add auxiliary vector retrieval for riscv
        tools/nolibc: add auxiliary vector retrieval for arm
        tools/nolibc: add auxiliary vector retrieval for arm64
        tools/nolibc: add auxiliary vector retrieval for x86_64
        tools/nolibc: add auxiliary vector retrieval for i386
        tools/nolibc: export environ as a weak symbol on s390
        tools/nolibc: export environ as a weak symbol on riscv
        tools/nolibc: export environ as a weak symbol on mips
        tools/nolibc: export environ as a weak symbol on arm
        tools/nolibc: export environ as a weak symbol on arm64
        tools/nolibc: export environ as a weak symbol on i386
        tools/nolibc: export environ as a weak symbol on x86_64
        tools/nolibc: make errno a weak symbol instead of a static one
        ...
      f01d4c8a
    • Linus Torvalds's avatar
      Merge tag 'nmi.2023.02.14a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu · 525445ef
      Linus Torvalds authored
      Pull x86 NMI diagnostics from Paul McKenney:
       "Add diagnostics to the x86 NMI handler to help detect NMI-handler bugs
        on the one hand and failing hardware on the other"
      
      * tag 'nmi.2023.02.14a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu:
        x86/nmi: Print reasons why backtrace NMIs are ignored
        x86/nmi: Accumulate NMI-progress evidence in exc_nmi()
      525445ef
    • Linus Torvalds's avatar
      Merge tag 'lkmm.2023.02.15a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu · 192a5e0a
      Linus Torvalds authored
      Pull LKMM (Linux Kernel Memory Model) updates from Paul McKenney:
       "Documentation updates.
      
        Add read-modify-write sequences, which means that stronger primitives
        more consistently result in stronger ordering, while still remaining
        in the envelope of the hardware that supports Linux.
      
        Address, data, and control dependencies used to ignore data that was
        stored in temporaries. This update extends these dependency chains to
        include unmarked intra-thread stores and loads. Note that these
        unmarked stores and loads should not be concurrently accessed from
        multiple threads, and doing so will cause LKMM to flag such accesses
        as data races"
      
      * tag 'lkmm.2023.02.15a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu:
        tools: memory-model: Make plain accesses carry dependencies
        Documentation: Fixed a typo in atomic_t.txt
        tools: memory-model: Add rmw-sequences to the LKMM
        locking/memory-barriers.txt: Improve documentation for writel() example
      192a5e0a
    • Linus Torvalds's avatar
      Merge tag 'drm-next-2023-02-23' of git://anongit.freedesktop.org/drm/drm · a5c95ca1
      Linus Torvalds authored
      Pull drm updates from Dave Airlie:
       "There are a bunch of changes all over in the usual places.
      
        Highlights:
      
         - habanalabs moves from misc to accel
      
         - first accel driver for Intel VPU (Versatile Processing Unit)
           inference engine
      
         - dropped all the ancient legacy DRI1 drivers. I think it's been at
           least 10 years since anyone has heard about these.
      
         - Intel DG2 updates and prelim Meteorlake enablement
      
         - etnaviv adds support for Versilicon NPU device (a GPU like engine
           with inference accelerators)
      
        Detailed summary:
      
        Removals:
         - remove legacy dri1 drivers: i810, mga, r128, savage, sis, tdfx, via
      
        New driver:
         - intel VPU accelerator driver
         - habanalabs comes via drm tree now
      
        drm/core:
         - use drm_dbg_ helpers in several places
         - Document defaults for CRTC backgrounds
         - Document use of drm_minor
      
        edid:
         - improve mode parsing and refactoring
      
        connector:
         - support analog TV mode property
      
        media:
         - add some common formats
      
        udmabuf:
         - add vmap/vunmap methods
      
        fourcc:
         - add XRGB1555 and RGB565 formats
         - document open source user waiver
      
        firmware:
         - fix color-format selection for system framebuffer
      
        format-helper:
         - Add conversion from XRGB8888 to various sysfb formats
         - Make XRGB8888 the only driver-emulated legacy format
         - Add conversion from XRGB8888 to XBGR8888 and ABGR8888
      
        fb-helper:
         - fix preferred depth and bpp values across drivers
         - Avoid blank consoles from selecting an incorrect color format
      
        probe-helper:
         - Enable/disable HPD on connectors
      
        scheduler:
         - Fix lockup in drm_sched_entity_kill()
         - Deprecate drm_sched_resubmit_jobs()
      
        bridge:
         - remove unused functions
         - implement i2c probe_new in various drivers
         - ite-it6505: Locking fixes, Cache EDID data
         - ite-it66121: Support IT6610 chip
         - lontium-tl9611: Fix HDMI on DragonBoard 845c
         - parade-ps8640: Use atomic bridge functions
         - Support i.MX93 LDB plus DT bindings
      
        debugfs:
         - add per device helpers and convert drivers
      
        displayport:
         - mst fixes
         - add DP adaptive sync DPCD definitions
      
        fbdev:
         - always pick 32bpp as default
         - remove some unused code
      
        simpledrm:
         - support system memory framebuffers
      
        panel:
         - add orientation quirks for Lenovo Yoga Tab 3 X90F and DynaBook K50
         - Use ktime_get_boottime() to measure power-down delay
         - Fix auto-suspend delay
         - Visionox VTDR6130 AMOLED DSI
         - Support Himax HX8394
         - Convert many drivers to common generic DSI write-sequence helper
         - AUO A030JTN01
      
        ttm:
         - drop bo wait wrapper
         - fix MIPS build
      
        habanalabs:
         - moved driver to accel subsystem
         - gaudi2 decoder error improvement
         - more trace events
         - Gaudi2 abrupt reset by firmware support
         - add uAPI to flush memory transactions
         - add uAPI to pass through userspace reqs to fw
         - remove dma-buf export by handle
      
        amdgpu:
         - add new INFO queries for peak and min sclk/mclk for profile modes
         - Add PCIe info to the INFO IOCTL
         - secure display support for multiple displays
         - DML optimizations
         - DCN 3.2 updates
         - PSR updates
         - DP 2.1 updates
         - SR-IOV RAS updates
         - VCN RAS support
         - SMU 13.x updates
         - Switch 1 element arrays to flexible arrays
         - Add RAS support for DF 4.3
         - Stack size improvements
         - S0ix rework
         - Allow 0 as a vram limit on APUs
         - Handle profiling modes for SMU13.x
         - Fix possible segfault in failure case
         - Rework FW requests to happen in early_init for all IPs so that we
           don't lose the sbios console if FW is missing
         - Fix power reporting on certain firmwares for CZN/RN
         - Allow S0ix without BIOS support
         - Enable freesync over PCon
         - Re-enable the AGP aperture on GMC 11.x
      
        amdkfd:
         - Error handling fixes
         - PASID fixes
         - Fix for cleared VRAM BOs
         - Fix cleanup if GPUVM creation fails
         - Memory accounting fix
         - Use resource_size rather than open codeing it
         - GC11 mGPU fix
      
        radeon:
         - Switch 1 element arrays to flexible arrays
         - Fix memory leak on shutdown
         - move to new logging
      
        i915:
         - Meteorlake display/OA/GSC fw/workarounds enabling
         - DP MST DSC support
         - Gamma/degamma readout support for the state checker
         - Enable SDP split support for DP 2.0
         - Add probe blocking support to i915.force_probe parameter
         - Enable Xe HP 4tile support
         - Avoid display direct calls to uncore
         - Fix HuC delayed load memory leaks
         - Add DG2 workarounds Wa_18018764978 and Wa_18019271663
         - Improve suspend / resume times with VT-d scanout workaround active
         - Fix DG2 visual corruption on small BAR systems by not forgetting to
           copy CCS aux state
         - Fix TLB invalidation for Gen12.50 video and compute engines
         - Enable HF-EEODB by switching HDMI, DP and LVDS to use struct
           drm_edid
         - Start using unversioned DMC firmware paths for new platforms
         - ELD refactor: Stop using hardware buffer, precompute ELD
         - lots of display code refactoring
      
        nouveau:
         - drop legacy ioctl support
         - replace 0-sized array
      
        msm:
         - dpu/dsi/mdss: Support for SM8350, SM8450 SM8550 and SC8280XP platform
         - Added bindings for SM8150
         - dpu: Partial support for DSC on SM8150 and SM8250
         - dpu: Fixed color transformation matrix being lost on suspend/resume
         - dp: Support SDM845 and SC8280XP platforms
         - dp: Support for limiting DP link rate via DT property
         - dsi: Validate display modes according to the DSI OPP table
         - dsi: DSI PHY support for the SM6375 platform
         - Add MSM_SUBMIT_BO_NO_IMPLICI
         - a2xx: Support to load legacy firmware
         - a6xx: GPU devcore dump updates for a650/a660
         - GPU devfreq tuning and fixes
         - Turn 8960 HDMI PHY into clock provider,
         - Make 8960 HDMI PHY use PXO clock from DT
      
        etnaviv:
         - experimental versilicon NPU support
         - report GPU load via fdinfo format
         - MMU fault message improvements
      
        tegra:
         - rework syncpoint interrupt
      
        mediatek:
         - DSI timing fix
         - fix config deps
      
        ast:
         - various fixes
      
        exynos:
         - restore bridge chain order fixes
      
        gud:
         - convert to shadow plane buffers
         - perform flushing synchronously during atomic update
         - Use new debugfs helpers
      
        arm/hdlcd:
         - Use new debugfs helper
      
        ili9486:
         - Support 16-bit pixel data
      
        imx:
         - Split off IPUv3 driver
      
        mipi-dbi:
         - convert to DRM shadow-plane helpers
         - rsp driver changes
         - Support separate I/O-voltage supply
      
        mxsfb:
         - Depend on ARCH_MXS or ARCH_MXC
      
        sun4i:
         - convert to new TV mode property
      
        vc4:
         - convert to new TV mode property
         - kunit tests
         - Support RGB565 and RGB666 formats
         - convert dsi driver to bridge
         - Various HVS an CRTC fixes
      
        v3d:
         - Do not opencode drm_gem_object_lookup()
      
        virtio:
         - improve tracing
      
        vkms:
         - support small cursors in IGT tests
         - Fix SEGFAULT from incorrect GEM-buffer mapping
      
        rcar-du:
         - fixes and improvements"
      
      * tag 'drm-next-2023-02-23' of git://anongit.freedesktop.org/drm/drm: (1455 commits)
        msm/fbdev: fix unused variable warning with clang.
        drm/fb-helper: Remove drm_fb_helper_unprepare() from drm_fb_helper_fini()
        dma-buf: make kobj_type structure constant
        drm/shmem-helper: Fix locking for drm_gem_shmem_get_pages_sgt()
        drm/amd/display: disable SubVP + DRR to prevent underflow
        drm/amd/display: Fail atomic_check early on normalize_zpos error
        drm/amd/pm: avoid unaligned access warnings
        drm/amd/display: avoid unaligned access warnings
        drm/amd/display: Remove duplicate/repeating expressions
        drm/amd/display: Remove duplicate/repeating expression
        drm/amd/display: Make variables declaration inside ifdef guard
        drm/amd/display: Fix excess arguments on kernel-doc
        drm/amd/display: Add previously missing includes
        drm/amd/amdgpu: Add function prototypes to headers
        drm/amd/display: Add function prototypes to headers
        drm/amd/display: Turn global functions into static
        drm/amd/display: remove unused _calculate_degamma_curve function
        drm/amd/display: remove unused func declaration from resource headers
        drm/amd/display: unset initial value for tf since it's never used
        drm/amd/display: camel case cleanup in color_gamma file
        ...
      a5c95ca1
    • Linus Torvalds's avatar
      Merge tag '6.3-rc-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 · 307e14c0
      Linus Torvalds authored
      Pull cifs client updates from Steve French:
       "The largest subset of this is from David Howells et al: making the
        cifs/smb3 driver pass iov_iters down to the lowest layers, directly to
        the network transport rather than passing lists of pages around,
        helping multiple areas:
      
         - Pin user pages, thereby fixing the race between concurrent DIO read
           and fork, where the pages containing the DIO read buffer may end up
           belonging to the child process and not the parent - with the result
           that the parent might not see the retrieved data.
      
         - cifs shouldn't take refs on pages extracted from non-user-backed
           iterators (eg. KVEC). With these changes, cifs will apply the
           appropriate cleanup.
      
         - Making it easier to transition to using folios in cifs rather than
           pages by dealing with them through BVEC and XARRAY iterators.
      
         - Allowing cifs to use the new splice function
      
        The remainder are:
      
         - fixes for stable, including various fixes for uninitialized memory,
           wrong length field causing mount issue to very old servers,
           important directory lease fixes and reconnect fixes
      
         - cleanups (unused code removal, change one element array usage, and
           a change form strtobool to kstrtobool, and Kconfig cleanups)
      
         - SMBDIRECT (RDMA) fixes including iov_iter integration and UAF fixes
      
         - reconnect fixes
      
         - multichannel fixes, including improving channel allocation (to
           least used channel)
      
         - remove the last use of lock_page_killable by moving to
           folio_lock_killable"
      
      * tag '6.3-rc-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6: (46 commits)
        update internal module version number for cifs.ko
        cifs: update ip_addr for ses only for primary chan setup
        cifs: use tcon allocation functions even for dummy tcon
        cifs: use the least loaded channel for sending requests
        cifs: DIO to/from KVEC-type iterators should now work
        cifs: Remove unused code
        cifs: Build the RDMA SGE list directly from an iterator
        cifs: Change the I/O paths to use an iterator rather than a page list
        cifs: Add a function to read into an iter from a socket
        cifs: Add some helper functions
        cifs: Add a function to Hash the contents of an iterator
        cifs: Add a function to build an RDMA SGE list from an iterator
        netfs: Add a function to extract an iterator into a scatterlist
        netfs: Add a function to extract a UBUF or IOVEC into a BVEC iterator
        cifs: Implement splice_read to pass down ITER_BVEC not ITER_PIPE
        splice: Export filemap/direct_splice_read()
        iov_iter: Add a function to extract a page list from an iterator
        iov_iter: Define flags to qualify page extraction.
        splice: Add a func to do a splice from an O_DIRECT file without ITER_PIPE
        splice: Add a func to do a splice from a buffered file without ITER_PIPE
        ...
      307e14c0
  2. 22 Feb, 2023 19 commits
    • Dave Airlie's avatar
      msm/fbdev: fix unused variable warning with clang. · a48bba98
      Dave Airlie authored
      clang builds showed this:
      drivers/gpu/drm/msm/msm_fbdev.c:144:6: error: variable 'helper' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
              if (!fbdev)
                  ^~~~~~
      
      Fixes: 3fb1f62f ("drm/fb-helper: Remove drm_fb_helper_unprepare() from drm_fb_helper_fini()")
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      a48bba98
    • Dave Airlie's avatar
      Merge tag 'drm-misc-next-fixes-2023-02-21' of... · 13daf536
      Dave Airlie authored
      Merge tag 'drm-misc-next-fixes-2023-02-21' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
      
      Short summary of fixes pull:
      
      Fixes GEM SHMEM locking and generic fbdev hotplugging. Constifies
      dma_buf kobj type.
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Thomas Zimmermann <tzimmermann@suse.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/Y/S6tu3gdQ0VizR+@linux-uq9g
      13daf536
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-6.3-1' of git://git.linux-nfs.org/projects/anna/linux-nfs · d8ca6dbb
      Linus Torvalds authored
      Pull NFS client updates from Anna Schumaker:
       "New Features:
      
         - Convert the read and write paths to use folios
      
        Bugfixes and Cleanups:
      
         - Fix tracepoint state manager flag printing
      
         - Fix disabling swap files
      
         - Fix NFSv4 client identifier sysfs path in the documentation
      
         - Don't clear NFS_CAP_COPY if server returns NFS4ERR_OFFLOAD_DENIED
      
         - Treat GETDEVICEINFO errors as a layout failure
      
         - Replace kmap_atomic() calls with kmap_local_page()
      
         - Constify sunrpc sysfs kobj_type structures"
      
      * tag 'nfs-for-6.3-1' of git://git.linux-nfs.org/projects/anna/linux-nfs: (25 commits)
        fs/nfs: Replace kmap_atomic() with kmap_local_page() in dir.c
        pNFS/filelayout: treat GETDEVICEINFO errors as layout failure
        Documentation: Fix sysfs path for the NFSv4 client identifier
        nfs42: do not fail with EIO if ssc returns NFS4ERR_OFFLOAD_DENIED
        NFS: fix disabling of swap
        SUNRPC: make kobj_type structures constant
        nfs4trace: fix state manager flag printing
        NFS: Remove unnecessary check in nfs_read_folio()
        NFS: Improve tracing of nfs_wb_folio()
        NFS: Enable tracing of nfs_invalidate_folio() and nfs_launder_folio()
        NFS: fix up nfs_release_folio() to try to release the page
        NFS: Clean up O_DIRECT request allocation
        NFS: Fix up nfs_vm_page_mkwrite() for folios
        NFS: Convert nfs_write_begin/end to use folios
        NFS: Remove unused function nfs_wb_page()
        NFS: Convert buffered writes to use folios
        NFS: Convert the function nfs_wb_page() to use folios
        NFS: Convert buffered reads to use folios
        NFS: Add a helper nfs_wb_folio()
        NFS: Convert the remaining pagelist helper functions to support folios
        ...
      d8ca6dbb
    • Linus Torvalds's avatar
      Merge tag 'nfsd-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux · 9fc2f990
      Linus Torvalds authored
      Pull nfsd updates from Chuck Lever:
       "Two significant security enhancements are part of this release:
      
         - NFSD's RPC header encoding and decoding, including RPCSEC GSS and
           gssproxy header parsing, has been overhauled to make it more
           memory-safe.
      
         - Support for Kerberos AES-SHA2-based encryption types has been added
           for both the NFS client and server. This provides a clean path for
           deprecating and removing insecure encryption types based on DES and
           SHA-1. AES-SHA2 is also FIPS-140 compliant, so that NFS with
           Kerberos may now be used on systems with fips enabled.
      
        In addition to these, NFSD is now able to handle crossing into an
        auto-mounted mount point on an exported NFS mount. A number of fixes
        have been made to NFSD's server-side copy implementation.
      
        RPC metrics have been converted to per-CPU variables. This helps
        reduce unnecessary cross-CPU and cross-node memory bus traffic, and
        significantly reduces noise when KCSAN is enabled"
      
      * tag 'nfsd-6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux: (121 commits)
        NFSD: Clean up nfsd_symlink()
        NFSD: copy the whole verifier in nfsd_copy_write_verifier
        nfsd: don't fsync nfsd_files on last close
        SUNRPC: Fix occasional warning when destroying gss_krb5_enctypes
        nfsd: fix courtesy client with deny mode handling in nfs4_upgrade_open
        NFSD: fix problems with cleanup on errors in nfsd4_copy
        nfsd: fix race to check ls_layouts
        nfsd: don't hand out delegation on setuid files being opened for write
        SUNRPC: Remove ->xpo_secure_port()
        SUNRPC: Clean up the svc_xprt_flags() macro
        nfsd: remove fs/nfsd/fault_inject.c
        NFSD: fix leaked reference count of nfsd4_ssc_umount_item
        nfsd: clean up potential nfsd_file refcount leaks in COPY codepath
        nfsd: zero out pointers after putting nfsd_files on COPY setup error
        SUNRPC: Fix whitespace damage in svcauth_unix.c
        nfsd: eliminate __nfs4_get_fd
        nfsd: add some kerneldoc comments for stateid preprocessing functions
        nfsd: eliminate find_deleg_file_locked
        nfsd: don't take nfsd4_copy ref for OP_OFFLOAD_STATUS
        SUNRPC: Add encryption self-tests
        ...
      9fc2f990
    • Linus Torvalds's avatar
      Merge tag '6.3-rc-ksmbd-fixes' of git://git.samba.org/ksmbd · 25ac8c12
      Linus Torvalds authored
      Pull ksmbd server updates from Steve French:
      
       - Fix for memory leak
      
       - Two important fixes for frame length checks (which are also now
         stricter)
      
       - four minor cleanup fixes
      
       - Fix to clarify ksmbd/Kconfig to indent properl
      
       - Conversion of the channel list and rpc handle list to xarrays
      
      * tag '6.3-rc-ksmbd-fixes' of git://git.samba.org/ksmbd:
        ksmbd: fix possible memory leak in smb2_lock()
        ksmbd: do not allow the actual frame length to be smaller than the rfc1002 length
        ksmbd: fix wrong data area length for smb2 lock request
        ksmbd: Fix parameter name and comment mismatch
        ksmbd: Fix spelling mistake "excceed" -> "exceeded"
        ksmbd: update Kconfig to note Kerberos support and fix indentation
        ksmbd: Remove duplicated codes
        ksmbd: fix typo, syncronous->synchronous
        ksmbd: Implements sess->rpc_handle_list as xarray
        ksmbd: Implements sess->ksmbd_chann_list as xarray
      25ac8c12
    • Linus Torvalds's avatar
      Merge tag 'zonefs-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/zonefs · 232dd599
      Linus Torvalds authored
      Pull zonefs updates from Damien Le Moal:
      
       - Reorganize zonefs code to split file related operations to a new
         fs/zonefs/file.c file (me)
      
       - Modify zonefs to use dynamically allocated inodes and dentries (using
         the inode and dentry caches) instead of statically allocating
         everything on mount. This saves a significant amount of memory for
         very large zoned block devices with 10s of thousands of zones (me)
      
       - Make zonefs_sb_ktype a const struct kobj_type (Thomas)
      
      * tag 'zonefs-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/zonefs:
        zonefs: make kobj_type structure constant
        zonefs: Cache zone group directory inodes
        zonefs: Dynamically create file inodes when needed
        zonefs: Separate zone information from inode information
        zonefs: Reduce struct zonefs_inode_info size
        zonefs: Simplify IO error handling
        zonefs: Reorganize code
      232dd599
    • Linus Torvalds's avatar
      Merge tag 'gfs2-v6.2-rc5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2 · b7ee8812
      Linus Torvalds authored
      Pull gfs2 updates from Andreas Gruenbacher:
      
       - Fix a race when disassociating inodes from their glocks after
         iget_failed()
      
       - On filesystems with a block size smaller than the page size, make
         sure that ->writepages() writes out all buffers of journaled inodes
      
       - Various improvements to the way the delete workqueue is drained to
         speed up unmount and prevent leftover inodes. At unmount time, evict
         deleted inodes cooperatively across the cluster to avoid unnecessary
         timeouts
      
       - Various minor cleanups and fixes
      
      * tag 'gfs2-v6.2-rc5-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2:
        gfs2: Convert gfs2_page_add_databufs to folios
        gfs2: jdata writepage fix
        gfs2: Improve gfs2_make_fs_rw error handling
        Revert "GFS2: free disk inode which is deleted by remote node -V2"
        gfs2: Evict inodes cooperatively
        gfs2: Flush delete work before shrinking inode cache
        gfs2: Cease delete work during unmount
        gfs2: Add SDF_DEACTIVATING super block flag
        gfs2: check gl_object in rgrp glops
        gfs2: Split the two kinds of glock "delete" work
        gfs2: Move delete workqueue into super block
        gfs2: Get rid of GLF_PENDING_DELETE flag
        gfs2: Make glock lru list scanning safer
        gfs2: Clean up gfs2_scan_glock_lru
        gfs2: Improve gfs2_upgrade_iopen_glock comment
        gfs2: gl_object races fix
      b7ee8812
    • Linus Torvalds's avatar
      Merge tag 'xfs-6.3-merge-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · 28e33520
      Linus Torvalds authored
      Pull xfs updates from Darrick Wong:
       "There's a couple of bug fixes, some cleanups for inconsistent variable
        names and reduction of struct boxing and unboxing in the logging code.
      
        More work is pending, which will begin reworking allocation group
        lifetimes and finally replace confusing indirect calls to the
        allocator with actual ... function calls. But I want to let that
        experience another week of testing.
      
        Summary:
      
         - Eliminate repeated boxing and unboxing of log item parameters
      
         - Clean up some confusing variable names in the log item code
      
         - Fix a deadlock when doing unwritten extent conversion that causes a
           bmbt split when there are sustained memory shortages and the worker
           pool runs out of worker threads
      
         - Fix the panic_mask debug knob not being able to trigger on verifier
           errors
      
         - Constify kobj_type objects"
      
      * tag 'xfs-6.3-merge-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        xfs: revert commit 8954c44f
        xfs: make kobj_type structures constant
        xfs: allow setting full range of panic tags
        xfs: don't use BMBT btree split workers for IO completion
        xfs: fix confusing variable names in xfs_refcount_item.c
        xfs: pass refcount intent directly through the log intent code
        xfs: fix confusing variable names in xfs_rmap_item.c
        xfs: pass rmap space mapping directly through the log intent code
        xfs: fix confusing xfs_extent_item variable names
        xfs: pass xfs_extent_free_item directly through the log intent code
        xfs: fix confusing variable names in xfs_bmap_item.c
        xfs: pass the xfs_bmbt_irec directly through the log intent code
        xfs: use strscpy() to instead of strncpy()
      28e33520
    • Linus Torvalds's avatar
      Merge tag 'iomap-6.3-merge-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · d151e8be
      Linus Torvalds authored
      Pull iomap updates from Darrick Wong:
       "This is mostly rearranging things to make life easier for gfs2,
        nothing all that mindblowing for this release.
      
         - Change when the iomap page_done function is called so that we still
           have a locked folio in the success case. This fixes a writeback
           race in gfs2
      
         - Change when the iomap page_prepare function is called so that gfs2
           can recover from OOM scenarios more gracefully
      
         - Rename the iomap page_ops to folio_ops, since they operate on
           folios now"
      
      * tag 'iomap-6.3-merge-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        iomap: Rename page_ops to folio_ops
        iomap: Rename page_prepare handler to get_folio
        iomap: Add __iomap_get_folio helper
        iomap/gfs2: Get page in page_prepare handler
        iomap: Add iomap_get_folio helper
        iomap: Rename page_done handler to put_folio
        iomap/gfs2: Unlock and put folio in page_done handler
        iomap: Add __iomap_put_folio helper
      d151e8be
    • Linus Torvalds's avatar
      Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 87620693
      Linus Torvalds authored
      Pull SCSI updates from James Bottomley:
       "Updates to the usual drivers (ufs, lpfc, qla2xxx, libsas).
      
        The major core change is a rework to remove the two helpers around
        scsi_execute_cmd and use it as the only submission interface along
        with other minor fixes and updates"
      
      * tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (142 commits)
        scsi: ufs: core: Fix an error handling path in ufshcd_read_desc_param()
        scsi: ufs: core: Fix device management cmd timeout flow
        scsi: aic94xx: Add missing check for dma_map_single()
        scsi: smartpqi: Replace one-element array with flexible-array member
        scsi: mpt3sas: Fix a memory leak
        scsi: qla2xxx: Remove the unused variable wwn
        scsi: ufs: core: Fix kernel-doc syntax
        scsi: ufs: core: Add hibernation callbacks
        scsi: snic: Fix memory leak with using debugfs_lookup()
        scsi: ufs: core: Limit DMA alignment check
        scsi: Documentation: Correct spelling
        scsi: Documentation: Correct spelling
        scsi: target: Documentation: Correct spelling
        scsi: aacraid: Allocate cmd_priv with scsicmd
        scsi: ufs: qcom: dt-bindings: Add SM8550 compatible string
        scsi: ufs: ufs-qcom: Clear qunipro_g4_sel for HW version major 5
        scsi: ufs: qcom: fix platform_msi_domain_free_irqs() reference
        scsi: ufs: core: Enable DMA clustering
        scsi: ufs: exynos: Fix the maximum segment size
        scsi: ufs: exynos: Fix DMA alignment for PAGE_SIZE != 4096
        ...
      87620693
    • Linus Torvalds's avatar
      Merge tag 'ata-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata · 6861eaf7
      Linus Torvalds authored
      Pull ATA updates from Damien Le Moal:
      
       - Small cleanup of the pata_octeon driver to drop a useless platform
         callback (Uwe)
      
       - Simplify ata_scsi_cmd_error_handler() code using the fact that
         ap->ops->error_handler is NULL most of the time (Wenchao)
      
       - Several patches improving libata error handling. This is in
         preparation for supporting the command duration limits (CDL) feature.
         The changes allow handling corner cases of ATA NCQ errors which do
         not happen with regular drives but will be triggered with CDL drives
         (Niklas)
      
       - Simplify the qc_fill_rtf operation (me)
      
       - Improve SCSI command translation for REPORT_SUPPORTED_OPERATION_CODES
         command (me)
      
       - Cleanup of libata FUA handling.
      
         This falls short of enabling FUA for ATA drives that support it by
         default as there were concerns that old drives would break. The
         series however fixes several issues with the FUA support to ensure
         that FUA is reported as being supported only for drives that can
         handle all possible write cases (NCQ and non-NCQ). A check in the
         block layer is also added to ensure that we never see read FUA
         commands (current behavior) (me)
      
       - Several patches to move the old PARIDE (parallel port IDE) driver to
         libata as pata_parport. Given that this driver also needs protocol
         modules, the driver code resides in its own pata_parport directoy
         under drivers/ata (Ondrej)
      
      * tag 'ata-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal/libata:
        ata: pata_parport: Fix ida_alloc return value error check
        drivers/block: Move PARIDE protocol modules to drivers/ata/pata_parport
        drivers/block: Remove PARIDE core and high-level protocols
        ata: pata_parport: add driver (PARIDE replacement)
        ata: libata: exclude FUA support for known buggy drives
        ata: libata: Fix FUA handling in ata_build_rw_tf()
        ata: libata: cleanup fua support detection
        ata: libata: Rename and cleanup ata_rwcmd_protocol()
        ata: libata: Introduce ata_ncq_supported()
        block: add a sanity check for non-write flush/fua bios
        ata: libata-scsi: improve ata_scsiop_maint_in()
        ata: libata-scsi: do not overwrite SCSI ML and status bytes
        ata: libata: move NCQ related ATA_DFLAGs
        ata: libata: respect successfully completed commands during errors
        ata: libata: read the shared status for successful NCQ commands once
        ata: libata: simplify qc_fill_rtf port operation interface
        ata: scsi: rename flag ATA_QCFLAG_FAILED to ATA_QCFLAG_EH
        ata: libata-eh: Cleanup ata_scsi_cmd_error_handler()
        ata: octeon: Drop empty platform remove function
      6861eaf7
    • Linus Torvalds's avatar
      Merge tag 'for-6.3/dm-changes' of... · f0b2769a
      Linus Torvalds authored
      Merge tag 'for-6.3/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
      
      Pull device mapper updates from Mike Snitzer:
      
       - Fix DM cache target to free background tracker work items, otherwise
         slab BUG will occur when kmem_cache_destroy() is called.
      
       - Improve 2 of DM's shrinker names to reflect their use.
      
       - Fix the DM flakey target to not corrupt the zero page. Fix dm-flakey
         on 32-bit hughmem systems by using bvec_kmap_local instead of
         page_address. Also, fix logic used when imposing the
         "corrupt_bio_byte" feature.
      
       - Stop using WQ_UNBOUND for DM verity target's verify_wq because it
         causes significant Android latencies on ARM64 (and doesn't show real
         benefit on other architectures).
      
       - Add negative check to catch simple case of a DM table referencing
         itself. More complex scenarios that use intermediate devices to
         self-reference still need to be avoided/handled in userspace.
      
       - Fix DM core's resize to only send one uevent instead of two. This
         fixes a race with udev, that if udev wins, will cause udev to miss
         uevents (which caused premature unmount attempts by systemd).
      
       - Add cond_resched() to workqueue functions in DM core, dn-thin and
         dm-cache so that their loops aren't the cause of unintended cpu
         scheduling fairness issues.
      
       - Fix all of DM's checkpatch errors and warnings (famous last words).
         Various other small cleanups.
      
      * tag 'for-6.3/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm: (62 commits)
        dm: remove unnecessary (void*) conversion in event_callback()
        dm ioctl: remove unnecessary check when using dm_get_mdptr()
        dm ioctl: assert _hash_lock is held in __hash_remove
        dm cache: add cond_resched() to various workqueue loops
        dm thin: add cond_resched() to various workqueue loops
        dm: add cond_resched() to dm_wq_requeue_work()
        dm: add cond_resched() to dm_wq_work()
        dm sysfs: make kobj_type structure constant
        dm: update targets using system workqueues to use a local workqueue
        dm: remove flush_scheduled_work() during local_exit()
        dm clone: prefer kvmalloc_array()
        dm: declare variables static when sensible
        dm: fix suspect indent whitespace
        dm ioctl: prefer strscpy() instead of strlcpy()
        dm: avoid void function return statements
        dm integrity: change macros min/max() -> min_t/max_t where appropriate
        dm: fix use of sizeof() macro
        dm: avoid 'do {} while(0)' loop in single statement macros
        dm log: avoid multiple line dereference
        dm log: avoid trailing semicolon in macro
        ...
      f0b2769a
    • Linus Torvalds's avatar
      Merge tag 'audit-pr-20230220' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit · 23064dfe
      Linus Torvalds authored
      Pull audit update from Paul Moore:
       "Just a single audit patch, and even that patch is pretty trivial as it
        only updates the mailing list entry in the MAINTAINERS file"
      
      * tag 'audit-pr-20230220' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit:
        audit: update the mailing list in MAINTAINERS
      23064dfe
    • Linus Torvalds's avatar
      Merge tag 'Smack-for-6.3' of https://github.com/cschaufler/smack-next · 77bc1bb1
      Linus Torvalds authored
      Pull smack update from Casey Schaufler:
       "One fix for resetting CIPSO labeling"
      
      * tag 'Smack-for-6.3' of https://github.com/cschaufler/smack-next:
        smackfs: Added check catlen
      77bc1bb1
    • Linus Torvalds's avatar
      Merge tag 'landlock-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux · 291a73a8
      Linus Torvalds authored
      Pull landlock updates from Mickaël Salaün:
       "This improves documentation, and makes some tests more flexible to be
        able to run on systems without overlayfs or with Yama restrictions"
      
      * tag 'landlock-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux:
        MAINTAINERS: Update Landlock repository
        selftests/landlock: Test ptrace as much as possible with Yama
        selftests/landlock: Skip overlayfs tests when not supported
        landlock: Explain file descriptor access rights
      291a73a8
    • Linus Torvalds's avatar
      Merge tag 'integrity-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity · 67e2dcff
      Linus Torvalds authored
      Pull integrity update from Mimi Zohar:
       "One doc and one code cleanup, and two bug fixes"
      
      * tag 'integrity-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity:
        ima: Introduce MMAP_CHECK_REQPROT hook
        ima: Align ima_file_mmap() parameters with mmap_file LSM hook
        evm: call dump_security_xattr() in all cases to remove code duplication
        ima: fix ima_delete_rules() kernel-doc warning
        ima: return IMA digest value only when IMA_COLLECTED flag is set
        ima: fix error handling logic when file measurement failed
      67e2dcff
    • Linus Torvalds's avatar
      Merge tag 'docs-6.3' of git://git.lwn.net/linux · 70756b49
      Linus Torvalds authored
      Pull documentation updates from Jonathan Corbet:
       "It has been a moderately calm cycle for documentation; the significant
        changes include:
      
         - Some significant additions to the memory-management documentation
      
         - Some improvements to navigation in the HTML-rendered docs
      
         - More Spanish and Chinese translations
      
        ... and the usual set of typo fixes and such"
      
      * tag 'docs-6.3' of git://git.lwn.net/linux: (68 commits)
        Documentation/watchdog/hpwdt: Fix Format
        Documentation/watchdog/hpwdt: Fix Reference
        Documentation: core-api: padata: correct spelling
        docs/mm: Physical Memory: correct spelling in reference to CONFIG_PAGE_EXTENSION
        docs: Use HTML comments for the kernel-toc SPDX line
        docs: Add more information to the HTML sidebar
        Documentation: KVM: Update AMD memory encryption link
        printk: Document that CONFIG_BOOT_PRINTK_DELAY required for boot_delay=
        Documentation: userspace-api: correct spelling
        Documentation: sparc: correct spelling
        Documentation: driver-api: correct spelling
        Documentation: admin-guide: correct spelling
        docs: add workload-tracing document to admin-guide
        docs/admin-guide/mm: remove useless markup
        docs/mm: remove useless markup
        docs/mm: Physical Memory: remove useless markup
        docs/sp_SP: Add process magic-number translation
        docs: ftrace: always use canonical ftrace path
        Doc/damon: fix the data path error
        dma-buf: Add "dma-buf" to title of documentation
        ...
      70756b49
    • Linus Torvalds's avatar
      Merge tag 'for-linus-6.3-1' of https://github.com/cminyard/linux-ipmi · bc009f93
      Linus Torvalds authored
      Pull IPMI updates from Corey Minyard:
       "Small fixes to the SMBus IPMI and IPMB driver.
      
        Nothing big, cleanups, fixing names, and one small deviation from the
        specification fixed"
      
      * tag 'for-linus-6.3-1' of https://github.com/cminyard/linux-ipmi:
        ipmi: ipmb: Fix the MODULE_PARM_DESC associated to 'retry_time_ms'
        ipmi:ssif: Add a timer between request retries
        ipmi:ssif: Remove rtc_us_timer
        ipmi_ssif: Rename idle state and check
        ipmi:ssif: resend_msg() cannot fail
      bc009f93
    • Linus Torvalds's avatar
      Merge tag 'hwmon-for-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging · 241ed6ab
      Linus Torvalds authored
      Pull hwmon updates from Guenter Roeck:
       "New drivers:
      
         - Infineon TDA38640 Voltage Regulator
      
         - NXP MC34VR500 PMIC
      
         - GXP fan controller
      
         - MPQ7932 Power Management IC
      
        New chip or board support added to existing drivers:
      
         - it87: IT87952E; also other cleanup/improvements
      
         - intel-m10-bmc-hwmon: N6000
      
         - pmbus/max16601: MAX16600
      
         - aquacomputer_d5next: Aquacomputer Aquastream Ultimate, Aquacomputer
           Poweradjust 3, Aquacomputer Aquaero
      
         - nct6775: Support for B650/B660/X670 ASUS boards
      
         - oxp-sensors: AYANEO AIR and AIR Pro
      
        Other notable changes:
      
         - Various kernel documentation fixes
      
         - Various devicetree bindings fixes
      
         - Explicitly deprecated [devm_]hwmon_device_register_with_groups
      
         - ftsteutates: Support for fanX_fault and other cleanup
      
         - ltc2945: Support for setting shunt resistor and other cleanup/fixes
      
         - coretemp: Avoid RDMSR interrupts to isolated CPUs, and simplify
           platform device handling
      
        ... and various other minor cleanups and fixes"
      
      * tag 'hwmon-for-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: (66 commits)
        hwmon: Deprecate [devm_]hwmon_device_register_with_groups
        hwmon: (mlxreg-fan) Return zero speed for broken fan
        hwmon: (gxp-fan-ctrl) use devm_platform_get_and_ioremap_resource()
        hwmon: (aquacomputer_d5next) Add support for Aquacomputer Aquastream Ultimate
        hwmon: (aquacomputer_d5next) Add support for Aquacomputer Poweradjust 3
        hwmon: (iio_hwmon) use dev_err_probe
        hwmon: intel-m10-bmc-hwmon: Add N6000 sensors
        Docs/hwmon/index: Add missing SPDX License Identifier
        hwmon: (it87) Updated documentation for recent updates to it87
        hwmon: (it87) Add new chipset IT87952E
        hwmon: (it87) Allow multiple chip IDs for force_id
        hwmon: (it87) Add chip_id in some info message
        hwmon: (it87) List full chip model name
        hwmon: (it87) Disable configuration exit for certain chips
        hwmon: (it87) Allow disabling exiting of configuration mode
        Documentation: hwmon: correct spelling
        hwmon: (pmbus/max16601) Add support for MAX16600
        hwmon: (ltc2945) Allow setting shunt resistor
        hwmon: (ltc2945) Handle error case in ltc2945_value_store
        hwmon: (ltc2945) Add devicetree match table
        ...
      241ed6ab