1. 10 Sep, 2022 3 commits
  2. 09 Sep, 2022 20 commits
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · ce888220
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "Eight patches which looks like quite a large core change, but most of
        the diffstat is reverting the attempt to rejig reference counting
        introduced in the last merge window which caused issues with device
        and module removal.
      
        Of the remaining four patches, only the fix use-after-free is
        substantial"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: mpt3sas: Fix use-after-free warning
        scsi: core: Fix a use-after-free
        scsi: core: Revert "Make sure that targets outlive devices"
        scsi: core: Revert "Make sure that hosts outlive targets"
        scsi: core: Revert "Simplify LLD module reference counting"
        scsi: core: Revert "Call blk_mq_free_tag_set() earlier"
        scsi: lpfc: Add missing destroy_workqueue() in error path
        scsi: lpfc: Return DID_TRANSPORT_DISRUPTED instead of DID_REQUEUE
      ce888220
    • Linus Torvalds's avatar
      Merge tag 'driver-core-6.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core · e35be05d
      Linus Torvalds authored
      Pull driver core fixes from Greg KH:
       "Here are some small driver core and debugfs fixes for 6.0-rc5.
      
        Included in here are:
      
         - multiple attempts to get the arch_topology code to work properly on
           non-cluster SMT systems. First attempt caused build breakages in
           linux-next and 0-day, second try worked.
      
         - debugfs fixes for a long-suffering memory leak. The pattern of
           debugfs_remove(debugfs_lookup(...)) turns out to leak dentries, so
           add debugfs_lookup_and_remove() to fix this problem. Also fix up
           the scheduler debug code that highlighted this problem. Fixes for
           other subsystems will be trickling in over the next few months for
           this same issue once the debugfs function is merged.
      
        All of these have been in linux-next since Wednesday with no reported
        problems"
      
      * tag 'driver-core-6.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core:
        arch_topology: Make cluster topology span at least SMT CPUs
        sched/debug: fix dentry leak in update_sched_domain_debugfs
        debugfs: add debugfs_lookup_and_remove()
        driver core: fix driver_set_override() issue with empty strings
        Revert "arch_topology: Make cluster topology span at least SMT CPUs"
        arch_topology: Make cluster topology span at least SMT CPUs
      e35be05d
    • Linus Torvalds's avatar
      Merge tag 'block-6.0-2022-09-09' of git://git.kernel.dk/linux-block · 9ebc0ecb
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - NVMe pull via Christoph:
            - fix a use after free in nvmet (Bart Van Assche)
            - fix a use after free when detecting digest errors
              (Sagi Grimberg)
            - fix regression that causes sporadic TCP requests to time out
              (Sagi Grimberg)
            - fix two off by ones errors in the nvmet ZNS support
              (Dennis Maisenbacher)
            - requeue aen after firmware activation (Keith Busch)
      
       - Fix missing request flags in debugfs code (me)
      
       - Partition scan fix (Ming)
      
      * tag 'block-6.0-2022-09-09' of git://git.kernel.dk/linux-block:
        block: add missing request flags to debugfs code
        nvme: requeue aen after firmware activation
        nvmet: fix mar and mor off-by-one errors
        nvme-tcp: fix regression that causes sporadic requests to time out
        nvme-tcp: fix UAF when detecting digest errors
        nvmet: fix a use-after-free
        block: don't add partitions if GD_SUPPRESS_PART_SCAN is set
      9ebc0ecb
    • Linus Torvalds's avatar
      Merge tag 'io_uring-6.0-2022-09-09' of git://git.kernel.dk/linux-block · d2b768c3
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
      
       - Removed function that became unused after last week's merge (Jiapeng)
      
       - Two small fixes for kbuf recycling (Pavel)
      
       - Include address copy for zc send for POLLFIRST (Pavel)
      
       - Fix for short IO handling in the normal read/write path (Pavel)
      
      * tag 'io_uring-6.0-2022-09-09' of git://git.kernel.dk/linux-block:
        io_uring/rw: fix short rw error handling
        io_uring/net: copy addr for zc on POLL_FIRST
        io_uring: recycle kbuf recycle on tw requeue
        io_uring/kbuf: fix not advancing READV kbuf ring
        io_uring/notif: Remove the unused function io_notif_complete()
      d2b768c3
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma · 0099baa8
      Linus Torvalds authored
      Pull rdma fixes from Jason Gunthorpe:
       "Many bug fixes in several drivers:
      
         - Fix misuse of the DMA API in rtrs
      
         - Several irdma issues: hung task due to SQ flushing, incorrect
           capability reporting to userspace, improper error handling for MW
           corners, touching an uninitialized SGL for during invalidation.
      
         - hns was using the wrong page size limits for the HW, an incorrect
           calculation of wqe_shift causing WQE corruption, and mis computed a
           timer id.
      
         - Fix a crash in SRP triggered by blktests
      
         - Fix compiler errors by calling virt_to_page() with the proper type
           in siw
      
         - Userspace triggerable deadlock in ODP
      
         - mlx5 could use the wrong profile due to some driver loading races,
           counters were not working in some device configurations, and a
           crash on error unwind"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma:
        RDMA/irdma: Report RNR NAK generation in device caps
        RDMA/irdma: Use s/g array in post send only when its valid
        RDMA/irdma: Return correct WC error for bind operation failure
        RDMA/irdma: Return error on MR deregister CQP failure
        RDMA/irdma: Report the correct max cqes from query device
        MAINTAINERS: Update maintainers of HiSilicon RoCE
        RDMA/mlx5: Fix UMR cleanup on error flow of driver init
        RDMA/mlx5: Set local port to one when accessing counters
        RDMA/mlx5: Rely on RoCE fw cap instead of devlink when setting profile
        IB/core: Fix a nested dead lock as part of ODP flow
        RDMA/siw: Pass a pointer to virt_to_page()
        RDMA/srp: Set scmnd->result only when scmnd is not NULL
        RDMA/hns: Remove the num_qpc_timer variable
        RDMA/hns: Fix wrong fixed value of qp->rq.wqe_shift
        RDMA/hns: Fix supported page size
        RDMA/cma: Fix arguments order in net device validation
        RDMA/irdma: Fix drain SQ hang with no completion
        RDMA/rtrs-srv: Pass the correct number of entries for dma mapped SGL
        RDMA/rtrs-clt: Use the right sg_cnt after ib_dma_map_sg
      0099baa8
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2022-09-10' of git://anongit.freedesktop.org/drm/drm · b7e00d6f
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "From a train in the Irish countryside, regular drm fixes for 6.0-rc5.
      
        This is mostly amdgpu/amdkfd and i915 fixes, then one panfrost, one
        ttm and one edid fix. Nothing too major going on. Hopefully a quiet
        week next week for LPC.
      
        edid:
         - Fix EDID 1.4 range-descriptor parsing
      
        ttm:
         - Fix ghost-object bulk moves
      
        i915:
         - Fix MIPI sequence block copy from BIOS' table
         - Fix PCODE min freq setup when GuC's SLPC is in use
         - Implement Workaround for eDP
         - Fix has_flat_ccs selection for DG1
      
        amdgpu:
         - Firmware header fix
         - SMU 13.x fix
         - Debugfs memory leak fix
         - NBIO 7.7 fix
         - Firmware memory leak fix
      
        amdkfd:
         - Debug output fix
      
        panfrost:
         - Fix devfreq OPP"
      
      * tag 'drm-fixes-2022-09-10' of git://anongit.freedesktop.org/drm/drm:
        drm/panfrost: devfreq: set opp to the recommended one to configure regulator
        drm/ttm: cleanup the resource of ghost objects after locking them
        drm/amdgpu: prevent toc firmware memory leak
        drm/amdgpu: correct doorbell range/size value for CSDMA_DOORBELL_RANGE
        drm/amdkfd: print address in hex format rather than decimal
        drm/amd/display: fix memory leak when using debugfs_lookup()
        drm/amd/pm: add missing SetMGpuFanBoostLimitRpm mapping for SMU 13.0.7
        drm/amd/amdgpu: add rlc_firmware_header_v2_4 to amdgpu_firmware_header
        drm/i915: consider HAS_FLAT_CCS() in needs_ccs_pages
        drm/i915: Implement WaEdpLinkRateDataReload
        drm/i915/slpc: Let's fix the PCODE min freq table setup for SLPC
        drm/i915/bios: Copy the whole MIPI sequence block
        drm/ttm: update bulk move object of ghost BO
        drm/edid: Handle EDID 1.4 range descriptor h/vfreq offsets
      b7e00d6f
    • Linus Torvalds's avatar
      Merge tag 'linux-kselftest-kunit-fixes-6.0-rc5' of... · e35ff25f
      Linus Torvalds authored
      Merge tag 'linux-kselftest-kunit-fixes-6.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      Pull KUnit fixes from Shuah Khan:
       "Two fixes to test build and a fix for incorrect taint reason reporting"
      
      * tag 'linux-kselftest-kunit-fixes-6.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
        tools: Add new "test" taint to kernel-chktaint
        kunit: fix Kconfig for build-in tests USB4 and Nitro Enclaves
        kunit: fix assert_type for comparison macros
      e35ff25f
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-6.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · 22b2e2d6
      Linus Torvalds authored
      Pull RISC-V fixes from Palmer Dabbelt:
      
       - A pair of device tree fixes for the Polarfire SOC
      
       - A fix to avoid overflowing the PMU counter array when firmware
         incorrectly reports the number of supported counters, which manifests
         on OpenSBI versions prior to 1.1
      
      * tag 'riscv-for-linus-6.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        perf: RISC-V: fix access beyond allocated array
        riscv: dts: microchip: use an mpfs specific l2 compatible
        dt-bindings: riscv: sifive-l2: add a PolarFire SoC compatible
      22b2e2d6
    • Linus Torvalds's avatar
      Merge tag 'powerpc-6.0-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 2fc1171d
      Linus Torvalds authored
      Pull powerpc fix from Michael Ellerman:
      
       - Fix crashes on bare metal due to the new plkps driver trying to probe
         and call the hypervisor on non-pseries machines.
      
      Thanks to Nathan Chancellor and Dan Horák.
      
      * tag 'powerpc-6.0-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/pseries: Fix plpks crash on non-pseries
      2fc1171d
    • Eugene Shalygin's avatar
      hwmon: (asus-ec-sensors) autoload module via DMI data · 88700d13
      Eugene Shalygin authored
      Replace autoloading data based on the ACPI EC device with the DMI
      records for motherboards models. The ACPI method created a bug that when
      this driver returns error from the probe function because of the
      unsupported motherboard model, the ACPI subsystem concludes
      that the EC device does not work properly.
      
      Fixes: 5cd29012 ("hwmon: (asus-ec-sensors) introduce ec_board_info struct for board data")
      Bug: https://bugzilla.kernel.org/show_bug.cgi?id=216412
      Bug: https://bugzilla.redhat.com/show_bug.cgi?id=2121844Signed-off-by: default avatarEugene Shalygin <eugene.shalygin@gmail.com>
      Link: https://lore.kernel.org/r/20220909155654.123398-2-eugene.shalygin@gmail.com
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      88700d13
    • Dave Airlie's avatar
      Merge tag 'drm-intel-fixes-2022-09-08' of... · 2edb79a5
      Dave Airlie authored
      Merge tag 'drm-intel-fixes-2022-09-08' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
      
      - Fix MIPI sequence block copy from BIOS' table. (Ville)
      - Fix PCODE min freq setup when GuC's SLPC is in use. (Rodrigo)
      - Implement Workaround for eDP. (Ville)
      - Fix has_flat_ccs selection for DG1. (Matt)
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Rodrigo Vivi <rodrigo.vivi@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/Yxn1WpmUJnJpqq23@intel.com
      2edb79a5
    • Dave Airlie's avatar
      Merge tag 'drm-misc-fixes-2022-09-08' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes · b34c1d53
      Dave Airlie authored
      Short summary of fixes pull:
      
       * edid: Fix EDID 1.4 range-descriptor parsing
       * panfrost: Fix devfreq OPP
       * ttm: Fix ghost-object bulk moves
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Thomas Zimmermann <tzimmermann@suse.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/YxniKN4rK4qPp+J9@linux-uq9g
      b34c1d53
    • Pavel Begunkov's avatar
      io_uring/rw: fix short rw error handling · 4d9cb92c
      Pavel Begunkov authored
      We have a couple of problems, first reports of unexpected link breakage
      for reads when cqe->res indicates that the IO was done in full. The
      reason here is partial IO with retries.
      
      TL;DR; we compare the result in __io_complete_rw_common() against
      req->cqe.res, but req->cqe.res doesn't store the full length but rather
      the length left to be done. So, when we pass the full corrected result
      via kiocb_done() -> __io_complete_rw_common(), it fails.
      
      The second problem is that we don't try to correct res in
      io_complete_rw(), which, for instance, might be a problem for O_DIRECT
      but when a prefix of data was cached in the page cache. We also
      definitely don't want to pass a corrected result into io_rw_done().
      
      The fix here is to leave __io_complete_rw_common() alone, always pass
      not corrected result into it and fix it up as the last step just before
      actually finishing the I/O.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: default avatarPavel Begunkov <asml.silence@gmail.com>
      Link: https://github.com/axboe/liburing/issues/643Reported-by: default avatarBeld Zhang <beldzhang@gmail.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      4d9cb92c
    • Jens Axboe's avatar
      block: add missing request flags to debugfs code · 745ed372
      Jens Axboe authored
      We're missing TIMED_OUT and RESV. Particularly the former is handy
      for debugging, let's get them added.
      Reviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      745ed372
    • Linus Torvalds's avatar
      Merge tag 'for-6.0-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 9b450949
      Linus Torvalds authored
      Pull btrfs fixes from David Sterba:
       "A few more fixes to zoned mode and one regression fix for chunk limit:
      
          - Zoned mode fixes:
              - fix how wait/wake up is done when finishing zone
              - fix zone append limit in emulated mode
              - fix mount on devices with conventional zones
      
         - fix regression, user settable data chunk limit got accidentally
           lowered and causes allocation problems on some profiles (raid0,
           raid1)"
      
      * tag 'for-6.0-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        btrfs: fix the max chunk size and stripe length calculation
        btrfs: zoned: fix mounting with conventional zones
        btrfs: zoned: set pseudo max append zone limit in zone emulation mode
        btrfs: zoned: fix API misuse of zone finish waiting
      9b450949
    • Linus Torvalds's avatar
      Merge tag 'vfio-v6.0-rc5' of https://github.com/awilliam/linux-vfio · 725f3f3b
      Linus Torvalds authored
      Pull VFIO fix from Alex Williamson:
      
       - Fix zero page refcount leak (Alex Williamson)
      
      * tag 'vfio-v6.0-rc5' of https://github.com/awilliam/linux-vfio:
        vfio/type1: Unpin zero pages
      725f3f3b
    • Linus Torvalds's avatar
      Merge tag 'sound-6.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 83dfc0e2
      Linus Torvalds authored
      Pull sound fixes from Takashi Iwai:
       "Lots of small fixes for various drivers at this time, hopefully it
        will be the last big bump before 6.0 release.
      
        The significant changes are regression fixes for (yet again) HD-audio
        memory allocations and USB-audio PCM parameter handling, while there
        are many small ASoC device-specific fixes as well as a few
        out-of-bounds and race issues spotted by fuzzers"
      
      * tag 'sound-6.0-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (29 commits)
        ALSA: usb-audio: Clear fixed clock rate at closing EP
        ALSA: emu10k1: Fix out of bounds access in snd_emu10k1_pcm_channel_alloc()
        ALSA: hda: Once again fix regression of page allocations with IOMMU
        ALSA: usb-audio: Fix an out-of-bounds bug in __snd_usb_parse_audio_interface()
        ALSA: hda/tegra: Align BDL entry to 4KB boundary
        ALSA: hda/sigmatel: Fix unused variable warning for beep power change
        ALSA: pcm: oss: Fix race at SNDCTL_DSP_SYNC
        ALSA: hda/sigmatel: Keep power up while beep is enabled
        ALSA: aloop: Fix random zeros in capture data when using jiffies timer
        ALSA: usb-audio: Split endpoint setups for hw_params and prepare
        ALSA: usb-audio: Register card again for iface over delayed_register option
        ALSA: usb-audio: Inform the delayed registration more properly
        ASoC: fsl_aud2htx: Add error handler for pm_runtime_enable
        ASoC: fsl_aud2htx: register platform component before registering cpu dai
        ASoC: SOF: ipc4-topology: fix alh_group_ida max value
        ASoC: mchp-spdiftx: Fix clang -Wbitfield-constant-conversion
        ASoC: SOF: Kconfig: Make IPC_MESSAGE_INJECTOR depend on SND_SOC_SOF
        ASoC: SOF: Kconfig: Make IPC_FLOOD_TEST depend on SND_SOC_SOF
        ASoC: fsl_mqs: Fix supported clock DAI format
        ASoC: nau8540: Implement hw constraint for rates
        ...
      83dfc0e2
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-fixes-for-v6.0-2022-09-08' of... · d8a450a8
      Linus Torvalds authored
      Merge tag 'perf-tools-fixes-for-v6.0-2022-09-08' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux
      
      Pull perf tools fixes from Arnaldo Carvalho de Melo:
      
       - Fix per-thread mmaps for multi-threaded targets, noticed with
         'perf top --pid' with multithreaded targets
      
       - Fix synthesis failure warnings in 'perf record'
      
       - Fix L2 Topdown metrics disappearance for raw events in 'perf stat'
      
       - Fix out of bound access in some CPU masks
      
       - Fix segfault if there is no CPU PMU table and a metric is sought,
         noticed when building with NO_JEVENTS=1
      
       - Skip dummy event attr check in 'perf script' fixing nonsensical
         warning about UREGS attribute not set, as 'dummy' events have no
         samples
      
       - Fix 'iregs' field handling with dummy events on hybrid systems in
         'perf script'
      
       - Prevent potential memory leak in c2c_he_zalloc() in 'perf c2c'
      
       - Don't install data files with x permissions
      
       - Fix types for print format in dlfilter-show-cycles
      
       - Switch deprecated openssl MD5_* functions to new EVP API in 'genelf'
      
       - Remove redundant word 'contention' in 'perf lock' help message
      
      * tag 'perf-tools-fixes-for-v6.0-2022-09-08' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux:
        perf record: Fix synthesis failure warnings
        perf tools: Don't install data files with x permissions
        perf script: Fix Cannot print 'iregs' field for hybrid systems
        perf lock: Remove redundant word 'contention' in help message
        perf dlfilter dlfilter-show-cycles: Fix types for print format
        libperf evlist: Fix per-thread mmaps for multi-threaded targets
        perf c2c: Prevent potential memory leak in c2c_he_zalloc()
        perf genelf: Switch deprecated openssl MD5_* functions to new EVP API
        tools/perf: Fix out of bound access to cpu mask array
        perf affinity: Fix out of bound access to "sched_cpus" mask
        perf stat: Fix L2 Topdown metrics disappear for raw events
        perf script: Skip dummy event attr check
        perf metric: Return early if no CPU PMU table exists
      d8a450a8
    • Linus Torvalds's avatar
      Merge tag 'trace-v6.0-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · 460a75a6
      Linus Torvalds authored
      Pull tracing fixes from Steven Rostedt:
      
       - Do not stop trace events in modules if TAINT_TEST is set
      
       - Do not clobber mount options when tracefs is mounted a second time
      
       - Prevent crash of kprobes in gate area
      
       - Add static annotation to some non global functions
      
       - Add some entries into the MAINTAINERS file
      
       - Fix check of event_mutex held when accessing trigger list
      
       - Add some __init/__exit annotations
      
       - Fix reporting of what called hardirq_{enable,disable}_ip function
      
      * tag 'trace-v6.0-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        tracefs: Only clobber mode/uid/gid on remount if asked
        kprobes: Prohibit probes in gate area
        rv/reactor: add __init/__exit annotations to module init/exit funcs
        tracing: Fix to check event_mutex is held while accessing trigger list
        tracing: hold caller_addr to hardirq_{enable,disable}_ip
        tracepoint: Allow trace events in modules with TAINT_TEST
        MAINTAINERS: add scripts/tracing/ to TRACING
        MAINTAINERS: Add Runtime Verification (RV) entry
        rv/monitors: Make monitor's automata definition static
      460a75a6
    • Linus Torvalds's avatar
      Merge tag 'asm-generic-fixes-6.0-rc4' of... · f448dda8
      Linus Torvalds authored
      Merge tag 'asm-generic-fixes-6.0-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic
      
      Pull SOFTIRQ_ON_OWN_STACK rework from Arnd Bergmann:
       "Just one fixup patch, reworking the softirq_on_own_stack logic for
        preempt-rt kernels as discussed in
      
          https://lore.kernel.org/all/CAHk-=wgZSD3W2y6yczad2Am=EfHYyiPzTn3CfXxrriJf9i5W5w@mail.gmail.com/"
      
      * tag 'asm-generic-fixes-6.0-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic:
        asm-generic: Conditionally enable do_softirq_own_stack() via Kconfig.
      f448dda8
  3. 08 Sep, 2022 17 commits
    • Brian Norris's avatar
      tracefs: Only clobber mode/uid/gid on remount if asked · 47311db8
      Brian Norris authored
      Users may have explicitly configured their tracefs permissions; we
      shouldn't overwrite those just because a second mount appeared.
      
      Only clobber if the options were provided at mount time.
      
      Note: the previous behavior was especially surprising in the presence of
      automounted /sys/kernel/debug/tracing/.
      
      Existing behavior:
      
        ## Pre-existing status: tracefs is 0755.
        # stat -c '%A' /sys/kernel/tracing/
        drwxr-xr-x
      
        ## (Re)trigger the automount.
        # umount /sys/kernel/debug/tracing
        # stat -c '%A' /sys/kernel/debug/tracing/.
        drwx------
      
        ## Unexpected: the automount changed mode for other mount instances.
        # stat -c '%A' /sys/kernel/tracing/
        drwx------
      
      New behavior (after this change):
      
        ## Pre-existing status: tracefs is 0755.
        # stat -c '%A' /sys/kernel/tracing/
        drwxr-xr-x
      
        ## (Re)trigger the automount.
        # umount /sys/kernel/debug/tracing
        # stat -c '%A' /sys/kernel/debug/tracing/.
        drwxr-xr-x
      
        ## Expected: the automount does not change other mount instances.
        # stat -c '%A' /sys/kernel/tracing/
        drwxr-xr-x
      
      Link: https://lkml.kernel.org/r/20220826174353.2.Iab6e5ea57963d6deca5311b27fb7226790d44406@changeid
      
      Cc: stable@vger.kernel.org
      Fixes: 4282d606 ("tracefs: Add new tracefs file system")
      Signed-off-by: default avatarBrian Norris <briannorris@chromium.org>
      Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
      47311db8
    • Christian A. Ehrhardt's avatar
      kprobes: Prohibit probes in gate area · 1efda38d
      Christian A. Ehrhardt authored
      The system call gate area counts as kernel text but trying
      to install a kprobe in this area fails with an Oops later on.
      To fix this explicitly disallow the gate area for kprobes.
      
      Found by syzkaller with the following reproducer:
      perf_event_open$cgroup(&(0x7f00000001c0)={0x6, 0x80, 0x0, 0x0, 0x0, 0x0, 0x80ffff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, @perf_config_ext={0x0, 0xffffffffff600000}}, 0xffffffffffffffff, 0x0, 0xffffffffffffffff, 0x0)
      
      Sample report:
      BUG: unable to handle page fault for address: fffffbfff3ac6000
      PGD 6dfcb067 P4D 6dfcb067 PUD 6df8f067 PMD 6de4d067 PTE 0
      Oops: 0000 [#1] PREEMPT SMP KASAN NOPTI
      CPU: 0 PID: 21978 Comm: syz-executor.2 Not tainted 6.0.0-rc3-00363-g7726d4c3-dirty #6
      Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014
      RIP: 0010:__insn_get_emulate_prefix arch/x86/lib/insn.c:91 [inline]
      RIP: 0010:insn_get_emulate_prefix arch/x86/lib/insn.c:106 [inline]
      RIP: 0010:insn_get_prefixes.part.0+0xa8/0x1110 arch/x86/lib/insn.c:134
      Code: 49 be 00 00 00 00 00 fc ff df 48 8b 40 60 48 89 44 24 08 e9 81 00 00 00 e8 e5 4b 39 ff 4c 89 fa 4c 89 f9 48 c1 ea 03 83 e1 07 <42> 0f b6 14 32 38 ca 7f 08 84 d2 0f 85 06 10 00 00 48 89 d8 48 89
      RSP: 0018:ffffc900088bf860 EFLAGS: 00010246
      RAX: 0000000000040000 RBX: ffffffff9b9bebc0 RCX: 0000000000000000
      RDX: 1ffffffff3ac6000 RSI: ffffc90002d82000 RDI: ffffc900088bf9e8
      RBP: ffffffff9d630001 R08: 0000000000000000 R09: ffffc900088bf9e8
      R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000001
      R13: ffffffff9d630000 R14: dffffc0000000000 R15: ffffffff9d630000
      FS:  00007f63eef63640(0000) GS:ffff88806d000000(0000) knlGS:0000000000000000
      CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      CR2: fffffbfff3ac6000 CR3: 0000000029d90005 CR4: 0000000000770ef0
      PKRU: 55555554
      Call Trace:
       <TASK>
       insn_get_prefixes arch/x86/lib/insn.c:131 [inline]
       insn_get_opcode arch/x86/lib/insn.c:272 [inline]
       insn_get_modrm+0x64a/0x7b0 arch/x86/lib/insn.c:343
       insn_get_sib+0x29a/0x330 arch/x86/lib/insn.c:421
       insn_get_displacement+0x350/0x6b0 arch/x86/lib/insn.c:464
       insn_get_immediate arch/x86/lib/insn.c:632 [inline]
       insn_get_length arch/x86/lib/insn.c:707 [inline]
       insn_decode+0x43a/0x490 arch/x86/lib/insn.c:747
       can_probe+0xfc/0x1d0 arch/x86/kernel/kprobes/core.c:282
       arch_prepare_kprobe+0x79/0x1c0 arch/x86/kernel/kprobes/core.c:739
       prepare_kprobe kernel/kprobes.c:1160 [inline]
       register_kprobe kernel/kprobes.c:1641 [inline]
       register_kprobe+0xb6e/0x1690 kernel/kprobes.c:1603
       __register_trace_kprobe kernel/trace/trace_kprobe.c:509 [inline]
       __register_trace_kprobe+0x26a/0x2d0 kernel/trace/trace_kprobe.c:477
       create_local_trace_kprobe+0x1f7/0x350 kernel/trace/trace_kprobe.c:1833
       perf_kprobe_init+0x18c/0x280 kernel/trace/trace_event_perf.c:271
       perf_kprobe_event_init+0xf8/0x1c0 kernel/events/core.c:9888
       perf_try_init_event+0x12d/0x570 kernel/events/core.c:11261
       perf_init_event kernel/events/core.c:11325 [inline]
       perf_event_alloc.part.0+0xf7f/0x36a0 kernel/events/core.c:11619
       perf_event_alloc kernel/events/core.c:12059 [inline]
       __do_sys_perf_event_open+0x4a8/0x2a00 kernel/events/core.c:12157
       do_syscall_x64 arch/x86/entry/common.c:50 [inline]
       do_syscall_64+0x38/0x90 arch/x86/entry/common.c:80
       entry_SYSCALL_64_after_hwframe+0x63/0xcd
      RIP: 0033:0x7f63ef7efaed
      Code: 02 b8 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
      RSP: 002b:00007f63eef63028 EFLAGS: 00000246 ORIG_RAX: 000000000000012a
      RAX: ffffffffffffffda RBX: 00007f63ef90ff80 RCX: 00007f63ef7efaed
      RDX: 0000000000000000 RSI: ffffffffffffffff RDI: 00000000200001c0
      RBP: 00007f63ef86019c R08: 0000000000000000 R09: 0000000000000000
      R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000000
      R13: 0000000000000002 R14: 00007f63ef90ff80 R15: 00007f63eef43000
       </TASK>
      Modules linked in:
      CR2: fffffbfff3ac6000
      ---[ end trace 0000000000000000 ]---
      RIP: 0010:__insn_get_emulate_prefix arch/x86/lib/insn.c:91 [inline]
      RIP: 0010:insn_get_emulate_prefix arch/x86/lib/insn.c:106 [inline]
      RIP: 0010:insn_get_prefixes.part.0+0xa8/0x1110 arch/x86/lib/insn.c:134
      Code: 49 be 00 00 00 00 00 fc ff df 48 8b 40 60 48 89 44 24 08 e9 81 00 00 00 e8 e5 4b 39 ff 4c 89 fa 4c 89 f9 48 c1 ea 03 83 e1 07 <42> 0f b6 14 32 38 ca 7f 08 84 d2 0f 85 06 10 00 00 48 89 d8 48 89
      RSP: 0018:ffffc900088bf860 EFLAGS: 00010246
      RAX: 0000000000040000 RBX: ffffffff9b9bebc0 RCX: 0000000000000000
      RDX: 1ffffffff3ac6000 RSI: ffffc90002d82000 RDI: ffffc900088bf9e8
      RBP: ffffffff9d630001 R08: 0000000000000000 R09: ffffc900088bf9e8
      R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000001
      R13: ffffffff9d630000 R14: dffffc0000000000 R15: ffffffff9d630000
      FS:  00007f63eef63640(0000) GS:ffff88806d000000(0000) knlGS:0000000000000000
      CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      CR2: fffffbfff3ac6000 CR3: 0000000029d90005 CR4: 0000000000770ef0
      PKRU: 55555554
      ==================================================================
      
      Link: https://lkml.kernel.org/r/20220907200917.654103-1-lk@c--e.de
      
      cc: "Naveen N. Rao" <naveen.n.rao@linux.ibm.com>
      cc: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com>
      cc: "David S. Miller" <davem@davemloft.net>
      Cc: stable@vger.kernel.org
      Fixes: 1da177e4 ("Linux-2.6.12-rc2")
      Acked-by: default avatarMasami Hiramatsu (Google) <mhiramat@kernel.org>
      Signed-off-by: default avatarChristian A. Ehrhardt <lk@c--e.de>
      Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
      1efda38d
    • Sergey Matyukevich's avatar
      perf: RISC-V: fix access beyond allocated array · 20e0fbab
      Sergey Matyukevich authored
      SBI firmware should report total number of firmware and hardware counters
      including unused ones or special ones. In this case the kernel doesn't need
      to make any assumptions about gaps in reported counters, e.g. excluded timer
      counter. That was fixed in OpenSBI v1.1 by commit 3f66465fb6bf ("lib: pmu:
      allow to use the highest available counter"). This kernel patch has no effect
      if SBI firmware behaves correctly. However it eliminates access beyond the
      allocated pmu_ctr_list if the kernel is used with OpenSBI older than v1.1.
      
      Fixes: e9991434 ("RISC-V: Add perf platform driver based on SBI PMU extension")
      Signed-off-by: default avatarSergey Matyukevich <sergey.matyukevich@syntacore.com>
      Reviewed-by: default avatarAtish Patra <atishp@rivosinc.com>
      Cc: stable@vger.kernel.org
      Link: https://lore.kernel.org/r/20220830155306.301714-2-geomatsi@gmail.comSigned-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
      20e0fbab
    • Adrian Hunter's avatar
      perf record: Fix synthesis failure warnings · faf59ec8
      Adrian Hunter authored
      Some calls to synthesis functions set err < 0 but only warn about the
      failure and continue.  However they do not set err back to zero, relying
      on subsequent code to do that.
      
      That changed with the introduction of option --synth. When --synth=no
      subsequent functions that set err back to zero are not called.
      
      Fix by setting err = 0 in those cases.
      
      Example:
      
       Before:
      
         $ perf record --no-bpf-event --synth=all -o /tmp/huh uname
         Couldn't synthesize bpf events.
         Linux
         [ perf record: Woken up 1 times to write data ]
         [ perf record: Captured and wrote 0.014 MB /tmp/huh (7 samples) ]
         $ perf record --no-bpf-event --synth=no -o /tmp/huh uname
         Couldn't synthesize bpf events.
      
       After:
      
         $ perf record --no-bpf-event --synth=no -o /tmp/huh uname
         Couldn't synthesize bpf events.
         Linux
         [ perf record: Woken up 1 times to write data ]
         [ perf record: Captured and wrote 0.014 MB /tmp/huh (7 samples) ]
      
      Fixes: 41b740b6 ("perf record: Add --synth option")
      Signed-off-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
      Acked-by: default avatarNamhyung Kim <namhyung@kernel.org>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Link: https://lore.kernel.org/r/20220907162458.72817-1-adrian.hunter@intel.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      faf59ec8
    • Eliav Farber's avatar
      hwmon: (mr75203) enable polling for all VM channels · e43212e0
      Eliav Farber authored
      Configure ip-polling register to enable polling for all voltage monitor
      channels.
      This enables reading the voltage values for all inputs other than just
      input 0.
      
      Fixes: 9d823351 ("hwmon: Add hardware monitoring driver for Moortec MR75203 PVT controller")
      Signed-off-by: default avatarEliav Farber <farbere@amazon.com>
      Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Link: https://lore.kernel.org/r/20220908152449.35457-7-farbere@amazon.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      e43212e0
    • Eliav Farber's avatar
      hwmon: (mr75203) fix multi-channel voltage reading · 91a9e063
      Eliav Farber authored
      Fix voltage allocation and reading to support all channels in all VMs.
      Prior to this change allocation and reading were done only for the first
      channel in each VM.
      This change counts the total number of channels for allocation, and takes
      into account the channel offset when reading the sample data register.
      
      Fixes: 9d823351 ("hwmon: Add hardware monitoring driver for Moortec MR75203 PVT controller")
      Signed-off-by: default avatarEliav Farber <farbere@amazon.com>
      Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Link: https://lore.kernel.org/r/20220908152449.35457-6-farbere@amazon.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      91a9e063
    • Jiri Slaby's avatar
      perf tools: Don't install data files with x permissions · 0a9eaf61
      Jiri Slaby authored
      install(1), by default, installs with rwxr-xr-x permissions. Modify
      perf's Makefile to pass '-m 644' when installing:
      
        * Documentation/tips.txt
        * examples/bpf/*
        * perf-completion.sh
        * perf_dlfilter.h header
        * scripts/perl/Perf-Trace-Util/lib/Perf/Trace/*
        * scripts/perl/*.pl
        * tests/attr/*
        * tests/attr.py
        * tests/shell/lib/*.sh
        * trace/strace/groups/*
      
      All those are supposed to be non-executable. Either they are not scripts
      at all, or they don't have shebang.
      
      Signed-off-by: <jslaby@suse.cz>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Andi Kleen <ak@linux.intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Kan Liang <kan.liang@linux.intel.com>
      Cc: Leo Yan <leo.yan@linaro.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: https://lore.kernel.org/r/20220908060426.9619-1-jslaby@suse.czSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      0a9eaf61
    • Eliav Farber's avatar
      hwmon: (mr75203) fix voltage equation for negative source input · 227a3a2f
      Eliav Farber authored
      According to Moortec Embedded Voltage Monitor (MEVM) series 3 data
      sheet, the minimum input signal is -100mv and maximum input signal
      is +1000mv.
      
      The equation used to convert the digital word to voltage uses mixed
      types (*val signed and n unsigned), and on 64 bit machines also has
      different size, since sizeof(u32) = 4 and sizeof(long) = 8.
      
      So when measuring a negative input, n will be small enough, such that
      PVT_N_CONST * n < PVT_R_CONST, and the result of
      (PVT_N_CONST * n - PVT_R_CONST) will overflow to a very big positive
      32 bit number. Then when storing the result in *val it will be the same
      value just in 64 bit (instead of it representing a negative number which
      will what happen when sizeof(long) = 4).
      
      When -1023 <= (PVT_N_CONST * n - PVT_R_CONST) <= -1
      dividing the number by 1024 should result of in 0, but because ">> 10"
      is used, and the sign bit is used to fill the vacated bit positions, it
      results in -1 (0xf...fffff) which is wrong.
      
      This change fixes the sign problem and supports negative values by
      casting n to long and replacing the shift right with div operation.
      
      Fixes: 9d823351 ("hwmon: Add hardware monitoring driver for Moortec MR75203 PVT controller")
      Signed-off-by: default avatarEliav Farber <farbere@amazon.com>
      Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Link: https://lore.kernel.org/r/20220908152449.35457-5-farbere@amazon.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      227a3a2f
    • Eliav Farber's avatar
      hwmon: (mr75203) update pvt->v_num and vm_num to the actual number of used sensors · bb9195bd
      Eliav Farber authored
      This issue is relevant when "intel,vm-map" is set in device-tree, and
      defines a lower number of VMs than actually supported.
      
      This change is needed for all places that use pvt->v_num or vm_num
      later on in the code.
      
      Fixes: 9d823351 ("hwmon: Add hardware monitoring driver for Moortec MR75203 PVT controller")
      Signed-off-by: default avatarEliav Farber <farbere@amazon.com>
      Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Link: https://lore.kernel.org/r/20220908152449.35457-4-farbere@amazon.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      bb9195bd
    • Eliav Farber's avatar
      hwmon: (mr75203) fix VM sensor allocation when "intel,vm-map" not defined · 81114fc3
      Eliav Farber authored
      Bug - in case "intel,vm-map" is missing in device-tree ,'num' is set
      to 0, and no voltage channel infos are allocated.
      
      The reason num is set to 0 when "intel,vm-map" is missing is to set the
      entire pvt->vm_idx[] with incremental channel numbers, but it didn't
      take into consideration that same num is used later in devm_kcalloc().
      
      If "intel,vm-map" does exist there is no need to set the unspecified
      channels with incremental numbers, because the unspecified channels
      can't be accessed in pvt_read_in() which is the only other place besides
      the probe functions that uses pvt->vm_idx[].
      
      This change fixes the bug by moving the incremental channel numbers
      setting to be done only if "intel,vm-map" property is defined (starting
      loop from 0), and removing 'num = 0'.
      
      Fixes: 9d823351 ("hwmon: Add hardware monitoring driver for Moortec MR75203 PVT controller")
      Signed-off-by: default avatarEliav Farber <farbere@amazon.com>
      Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Link: https://lore.kernel.org/r/20220908152449.35457-3-farbere@amazon.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      81114fc3
    • Eliav Farber's avatar
      dt-bindings: hwmon: (mr75203) fix "intel,vm-map" property to be optional · d0b34d5b
      Eliav Farber authored
      Change "intel,vm-map" property to be optional instead of required.
      
      The driver implementation indicates it is not mandatory to have
      "intel,vm-map" in the device tree:
       - probe doesn't fail in case it is absent.
       - explicit comment in code - "Incase intel,vm-map property is not
         defined, we assume incremental channel numbers".
      
      Fixes: 748022ef ("hwmon: Add DT bindings schema for PVT controller")
      Signed-off-by: default avatarEliav Farber <farbere@amazon.com>
      Acked-by: default avatarRob Herring <robh@kernel.org>
      Link: https://lore.kernel.org/r/20220908152449.35457-2-farbere@amazon.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
      d0b34d5b
    • Zhengjun Xing's avatar
      perf script: Fix Cannot print 'iregs' field for hybrid systems · 82b2425f
      Zhengjun Xing authored
      Commit b91e5492 ("perf record: Add a dummy event on hybrid
      systems to collect metadata records") adds a dummy event on hybrid
      systems to fix the symbol "unknown" issue when the workload is created
      in a P-core but runs on an E-core. The added dummy event will cause
      "perf script -F iregs" to fail. Dummy events do not have "iregs"
      attribute set, so when we do evsel__check_attr, the "iregs" attribute
      check will fail, so the issue happened.
      
      The following commit [1] has fixed a similar issue by skipping the attr
      check for the dummy event because it does not have any samples anyway. It
      works okay for the normal mode, but the issue still happened when running
      the test in the pipe mode. In the pipe mode, it calls process_attr() which
      still checks the attr for the dummy event. This commit fixed the issue by
      skipping the attr check for the dummy event in the API evsel__check_attr,
      Otherwise, we have to patch everywhere when evsel__check_attr() is called.
      
      Before:
      
        #./perf record -o - --intr-regs=di,r8,dx,cx -e br_inst_retired.near_call:p -c 1000 --per-thread true 2>/dev/null|./perf script -F iregs |head -5
        Samples for 'dummy:HG' event do not have IREGS attribute set. Cannot print 'iregs' field.
        0x120 [0x90]: failed to process type: 64
        #
      
      After:
      
        # ./perf record -o - --intr-regs=di,r8,dx,cx -e br_inst_retired.near_call:p -c 1000 --per-thread true 2>/dev/null|./perf script -F iregs |head -5
        ABI:2    CX:0x55b8efa87000    DX:0x55b8efa7e000    DI:0xffffba5e625efbb0    R8:0xffff90e51f8ae100
        ABI:2    CX:0x7f1dae1e4000    DX:0xd0    DI:0xffff90e18c675ac0    R8:0x71
        ABI:2    CX:0xcc0    DX:0x1    DI:0xffff90e199880240    R8:0x0
        ABI:2    CX:0xffff90e180dd7500    DX:0xffff90e180dd7500    DI:0xffff90e180043500    R8:0x1
        ABI:2    CX:0x50    DX:0xffff90e18c583bd0    DI:0xffff90e1998803c0    R8:0x58
        #
      
      [1]https://lore.kernel.org/lkml/20220831124041.219925-1-jolsa@kernel.org/
      
      Fixes: b91e5492 ("perf record: Add a dummy event on hybrid systems to collect metadata records")
      Suggested-by: default avatarNamhyung Kim <namhyung@kernel.org>
      Signed-off-by: default avatarXing Zhengjun <zhengjun.xing@linux.intel.com>
      Acked-by: default avatarJiri Olsa <jolsa@kernel.org>
      Cc: Alexander Shishkin <alexander.shishkin@intel.com>
      Cc: Andi Kleen <ak@linux.intel.com>
      Cc: Ian Rogers <irogers@google.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Kan Liang <kan.liang@linux.intel.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: https://lore.kernel.org/r/20220908070030.3455164-1-zhengjun.xing@linux.intel.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      82b2425f
    • Yang Jihong's avatar
      perf lock: Remove redundant word 'contention' in help message · 3705a6ef
      Yang Jihong authored
      Before:
        # perf lock -h
      
         Usage: perf lock [<options>] {record|report|script|info|contention|contention}
      
            -D, --dump-raw-trace  dump raw trace in ASCII
            -f, --force           don't complain, do it
            -i, --input <file>    input file name
            -v, --verbose         be more verbose (show symbol address, etc)
                --kallsyms <file>
                                  kallsyms pathname
                --vmlinux <file>  vmlinux pathname
      
      After:
        # perf lock -h
      
         Usage: perf lock [<options>] {record|report|script|info|contention}
      
            -D, --dump-raw-trace  dump raw trace in ASCII
            -f, --force           don't complain, do it
            -i, --input <file>    input file name
            -v, --verbose         be more verbose (show symbol address, etc)
                --kallsyms <file>
                                  kallsyms pathname
                --vmlinux <file>  vmlinux pathname
      
      Fixes: 528b9cab ("perf lock: Add 'contention' subcommand")
      Signed-off-by: default avatarYang Jihong <yangjihong1@huawei.com>
      Acked-by: default avatarNamhyung Kim <namhyung@kernel.org>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Jiri Olsa <jolsa@kernel.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: Namhyung Kim <namhyung@kernel.org>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Link: https://lore.kernel.org/r/20220908014854.151203-1-yangjihong1@huawei.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      3705a6ef
    • Linus Torvalds's avatar
      Merge tag 'spi-fix-v6.0-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi · 50635787
      Linus Torvalds authored
      Pull spi fixes from Mark Brown:
       "Several fixes that came in since the merge window, the major one being
        a fix for the spi-mux driver which was broken by the performance
        optimisations due to it peering inside the core's data structures more
        than it should"
      
      * tag 'spi-fix-v6.0-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
        spi: spi: Fix queue hang if previous transfer failed
        spi: mux: Fix mux interaction with fast path optimisations
        spi: cadence-quadspi: Disable irqs during indirect reads
        spi: bitbang: Fix lsb-first Rx
      50635787
    • Linus Torvalds's avatar
      Merge tag 'regulator-fix-v6.0-rc4' of... · c5e68c4f
      Linus Torvalds authored
      Merge tag 'regulator-fix-v6.0-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator
      
      Pull regulator fixes from Mark Brown:
       "One core fix here improving the error handling on enable failure, plus
        smaller fixes for the pfuze100 drive and the SPMI DT bindings"
      
      * tag 'regulator-fix-v6.0-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator:
        regulator: Fix qcom,spmi-regulator schema
        regulator: pfuze100: Fix the global-out-of-bounds access in pfuze100_regulator_probe()
        regulator: core: Clean up on enable failure
      c5e68c4f
    • Linus Torvalds's avatar
      Merge tag 'regmap-fix-v6.0-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap · b1d27aa3
      Linus Torvalds authored
      Pull regmap fix from Mark Brown:
       "A fix for how we handle controller constraints on SPI message sizes,
        only impacting systems with SPI controllers with very low limits like
        the AMD controller used in the Steam Deck"
      
      * tag 'regmap-fix-v6.0-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap:
        regmap: spi: Reserve space for register address/padding
      b1d27aa3
    • Jens Axboe's avatar
      Merge tag 'nvme-6.0-2022-09-08' of git://git.infradead.org/nvme into block-6.0 · 75c523ac
      Jens Axboe authored
      Pull NVMe fixes from Christoph:
      
      "nvme fixes for Linux 6.1
      
       - fix a use after free in nvmet (Bart Van Assche)
       - fix a use after free when detecting digest errors (Sagi Grimberg)
       - fix regression that causes sporadic TCP requests to time out
         (Sagi Grimberg)
       - fix two off by ones errors in the nvmet ZNS support
         (Dennis Maisenbacher)
       - requeue aen after firmware activation (Keith Busch)"
      
      * tag 'nvme-6.0-2022-09-08' of git://git.infradead.org/nvme:
        nvme: requeue aen after firmware activation
        nvmet: fix mar and mor off-by-one errors
        nvme-tcp: fix regression that causes sporadic requests to time out
        nvme-tcp: fix UAF when detecting digest errors
        nvmet: fix a use-after-free
      75c523ac