1. 19 Jun, 2022 5 commits
    • Ian Rogers's avatar
      libperf evsel: Open shouldn't leak fd on failure · 94725994
      Ian Rogers authored
      If perf_event_open() fails the fd is opened but it is only freed by
      closing (not by delete).
      
      Typically when an open fails you don't call close and so this results in
      a memory leak. To avoid this, add a close when open fails.
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Reviewed-By: default avatarKajol Jain <kjain@linux.ibm.com>
      Cc: Adrian Hunter <adrian.hunter@intel.com>
      Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
      Cc: Andi Kleen <ak@linux.intel.com>
      Cc: Anshuman Khandual <anshuman.khandual@arm.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>
      Cc: Rob Herring <robh@kernel.org>
      Cc: Stephane Eranian <eranian@google.com>
      Link: https://lore.kernel.org/r/20220609052355.1300162-2-irogers@google.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      94725994
    • Thomas Richter's avatar
      perf test: Fix "perf stat CSV output linter" test on s390 · ec906102
      Thomas Richter authored
      perf test -F 83 ("perf stat CSV output linter") fails on s390.
      
      Reason is the wrong number of fields for certain CPU core/die/socket
      related output.
      
      On x84_64 the output of command:
      
        # ./perf stat -x, -A -a --no-merge true
        CPU0,1.50,msec,cpu-clock,1502781,100.00,1.052,CPUs utilized
        CPU1,1.48,msec,cpu-clock,1476113,100.00,1.034,CPUs utilized
        ...
      
      results in 8 fields with 7 comma separators.
      
      On s390 the output of command:
      
        #  ./perf stat -x, -A -a --no-merge -- true
        0.95,msec,cpu-clock,949800,100.00,1.060,CPUs utilized
        ...
      
      results in 7 fields with 6 comma separators. Therefore this tests
      fails on s390. Similar issues exist for per-die and per-socket output
      which is not supported on s390.
      
      I have rewritten the python program to count commas in each output line
      into a bash function to achieve the same result. I hope this makes it a
      bit easier.
      
      Output before:
      
        # ./perf test -F 83
        83: perf stat CSV output linter  :
        Checking CSV output: no args [Success]
        Checking CSV output: system wide [Success]
        Checking CSV output: system wide Checking CSV output: \
      	  system wide no aggregation 6.92,msec,cpu-clock,\
      	  6918131,100.00,6.972,CPUs utilized
        ...
        RuntimeError: wrong number of fields. expected 7 in \
      	  6.92,msec,cpu-clock,6918131,100.00,6.972,CPUs utilized
      
        FAILED!
        #
      
      Output after:
      
        # ./perf test -F 83
        83: perf stat CSV output linter             :
        Checking CSV output: no args [Success]
        Checking CSV output: system wide [Success]
        Checking CSV output: system wide Checking CSV output:\
      	  system wide no aggregation [Success]
        Checking CSV output: interval [Success]
        Checking CSV output: event [Success]
        Checking CSV output: per core [Success]
        Checking CSV output: per thread [Success]
        Checking CSV output: per die [Success]
        Checking CSV output: per node [Success]
        Checking CSV output: per socket [Success]
        Ok
        #
      
      Committer notes:
      
      Continues to work on x86_64
      
        $ perf test lint
         89: perf stat CSV output linter                                     : Ok
        $ perf test -v lint
        Couldn't bump rlimit(MEMLOCK), failures may take place when creating BPF maps, etc
         89: perf stat CSV output linter                                     :
        --- start ---
        test child forked, pid 53133
        Checking CSV output: no args [Success]
        Checking CSV output: system wide [Skip] paranoid and not root
        Checking CSV output: system wide [Skip] paranoid and not root
        Checking CSV output: interval [Success]
        Checking CSV output: event [Success]
        Checking CSV output: per core [Skip] paranoid and not root
        Checking CSV output: per thread [Skip] paranoid and not root
        Checking CSV output: per die [Skip] paranoid and not root
        Checking CSV output: per node [Skip] paranoid and not root
        Checking CSV output: per socket [Skip] paranoid and not root
        test child finished with 0
        ---- end ----
        perf stat CSV output linter: Ok
        $
      Signed-off-by: default avatarThomas Richter <tmricht@linux.ibm.com>
      Acked-by: default avatarIan Rogers <irogers@google.com>
      Tested-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Claire Jensen <cjense@google.com>
      Cc: Heiko Carstens <hca@linux.ibm.com>
      Cc: Sumanth Korikkar <sumanthk@linux.ibm.com>
      Cc: Sven Schnelle <svens@linux.ibm.com>
      Cc: Vasily Gorbik <gor@linux.ibm.com>
      Cc: linux390-list@tuxmaker.boeblingen.de.ibm.com
      Link: https://lore.kernel.org/r/20220603113034.2009728-1-tmricht@linux.ibm.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      ec906102
    • Ian Rogers's avatar
      perf unwind: Fix uninitialized variable · 1d98cdf7
      Ian Rogers authored
      The 'ret' variable may be uninitialized on error goto paths.
      
      Fixes: dc2cf4ca ("perf unwind: Fix segbase for ld.lld linked objects")
      Reported-by: default avatarSedat Dilek <sedat.dilek@gmail.com>
      Reviewed-by: default avatarFangrui Song <maskray@google.com>
      Signed-off-by: default avatarIan Rogers <irogers@google.com>
      Tested-by: Sedat Dilek <sedat.dilek@gmail.com> # LLVM-14 (x86-64)
      Cc: Fangrui Song <maskray@google.com>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: llvm@lists.linux.dev
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Sebastian Ullrich <sebasti@nullri.ch>
      Link: https://lore.kernel.org/r/20220607000851.39798-1-irogers@google.comSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
      1d98cdf7
    • Linus Torvalds's avatar
      Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4 · 354c6e07
      Linus Torvalds authored
      Pull ext4 fixes from Ted Ts'o:
       "Fix a variety of bugs, many of which were found by folks using fuzzing
        or error injection.
      
        Also fix up how test_dummy_encryption mount option is handled for the
        new mount API.
      
        Finally, fix/cleanup a number of comments and ext4 Documentation
        files"
      
      * tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
        ext4: fix a doubled word "need" in a comment
        ext4: add reserved GDT blocks check
        ext4: make variable "count" signed
        ext4: correct the judgment of BUG in ext4_mb_normalize_request
        ext4: fix bug_on ext4_mb_use_inode_pa
        ext4: fix up test_dummy_encryption handling for new mount API
        ext4: use kmemdup() to replace kmalloc + memcpy
        ext4: fix super block checksum incorrect after mount
        ext4: improve write performance with disabled delalloc
        ext4: fix warning when submitting superblock in ext4_commit_super()
        ext4, doc: remove unnecessary escaping
        ext4: fix incorrect comment in ext4_bio_write_page()
        fs: fix jbd2_journal_try_to_free_buffers() kernel-doc comment
      354c6e07
    • Linus Torvalds's avatar
      Merge tag '5.19-rc2-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6 · ace2045e
      Linus Torvalds authored
      Pull cifs client fixes from Steve French:
       "Two cifs debugging improvements - one found to deal with debugging a
        multichannel problem and one for a recent fallocate issue
      
        This does include the two larger multichannel reconnect (dynamically
        adjusting interfaces on reconnect) patches, because we recently found
        an additional problem with multichannel to one server type that I want
        to include at the same time"
      
      * tag '5.19-rc2-smb3-client-fixes' of git://git.samba.org/sfrench/cifs-2.6:
        cifs: when a channel is not found for server, log its connection id
        smb3: add trace point for SMB2_set_eof
      ace2045e
  2. 18 Jun, 2022 9 commits
  3. 17 Jun, 2022 26 commits
    • Linus Torvalds's avatar
      Merge tag 'nfs-for-5.19-2' of git://git.linux-nfs.org/projects/anna/linux-nfs · 4b35035b
      Linus Torvalds authored
      Pull NFS client fixes from Anna Schumaker:
      
       - Add FMODE_CAN_ODIRECT support to NFSv4 so opens don't fail
      
       - Fix trunking detection & cl_max_connect setting
      
       - Avoid pnfs_update_layout() livelocks
      
       - Don't keep retrying pNFS if the server replies with NFS4ERR_UNAVAILABLE
      
      * tag 'nfs-for-5.19-2' of git://git.linux-nfs.org/projects/anna/linux-nfs:
        NFSv4: Add FMODE_CAN_ODIRECT after successful open of a NFS4.x file
        sunrpc: set cl_max_connect when cloning an rpc_clnt
        pNFS: Avoid a live lock condition in pnfs_update_layout()
        pNFS: Don't keep retrying if the server replied NFS4ERR_LAYOUTUNAVAILABLE
      4b35035b
    • Linus Torvalds's avatar
      Merge tag 'pci-v5.19-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci · 32efdbff
      Linus Torvalds authored
      Pull pci fix from Bjorn Helgaas:
       "Revert clipping of PCI host bridge windows to avoid E820 regions,
        which broke several machines by forcing unnecessary BAR reassignments
        (Hans de Goede)"
      
      * tag 'pci-v5.19-fixes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci:
        x86/PCI: Revert "x86/PCI: Clip only host bridge windows for E820 regions"
      32efdbff
    • Linus Torvalds's avatar
      Merge tag 'printk-for-5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux · 93d17c1c
      Linus Torvalds authored
      Pull printk fixes from Petr Mladek:
       "Make the global console_sem available for CPU that is handling panic()
        or shutdown.
      
        This is an old problem when an existing console lock owner might block
        console output, but it became more visible with the kthreads"
      
      * tag 'printk-for-5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux:
        printk: Wait for the global console lock when the system is going down
        printk: Block console kthreads when direct printing will be required
      93d17c1c
    • Hans de Goede's avatar
      x86/PCI: Revert "x86/PCI: Clip only host bridge windows for E820 regions" · a2b36ffb
      Hans de Goede authored
      This reverts commit 4c5e242d.
      
      Prior to 4c5e242d ("x86/PCI: Clip only host bridge windows for E820
      regions"), E820 regions did not affect PCI host bridge windows.  We only
      looked at E820 regions and avoided them when allocating new MMIO space.
      If firmware PCI bridge window and BAR assignments used E820 regions, we
      left them alone.
      
      After 4c5e242d, we removed E820 regions from the PCI host bridge
      windows before looking at BARs, so firmware assignments in E820 regions
      looked like errors, and we moved things around to fit in the space left
      (if any) after removing the E820 regions.  This unnecessary BAR
      reassignment broke several machines.
      
      Guilherme reported that Steam Deck fails to boot after 4c5e242d.  We
      clipped the window that contained most 32-bit BARs:
      
        BIOS-e820: [mem 0x00000000a0000000-0x00000000a00fffff] reserved
        acpi PNP0A08:00: clipped [mem 0x80000000-0xf7ffffff window] to [mem 0xa0100000-0xf7ffffff window] for e820 entry [mem 0xa0000000-0xa00fffff]
      
      which forced us to reassign all those BARs, for example, this NVMe BAR:
      
        pci 0000:00:01.2: PCI bridge to [bus 01]
        pci 0000:00:01.2:   bridge window [mem 0x80600000-0x806fffff]
        pci 0000:01:00.0: BAR 0: [mem 0x80600000-0x80603fff 64bit]
        pci 0000:00:01.2: can't claim window [mem 0x80600000-0x806fffff]: no compatible bridge window
        pci 0000:01:00.0: can't claim BAR 0 [mem 0x80600000-0x80603fff 64bit]: no compatible bridge window
      
        pci 0000:00:01.2: bridge window: assigned [mem 0xa0100000-0xa01fffff]
        pci 0000:01:00.0: BAR 0: assigned [mem 0xa0100000-0xa0103fff 64bit]
      
      All the reassignments were successful, so the devices should have been
      functional at the new addresses, but some were not.
      
      Andy reported a similar failure on an Intel MID platform.  Benjamin
      reported a similar failure on a VMWare Fusion VM.
      
      Note: this is not a clean revert; this revert keeps the later change to
      make the clipping dependent on a new pci_use_e820 bool, moving the checking
      of this bool to arch_remove_reservations().
      
      [bhelgaas: commit log, add more reporters and testers]
      BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=216109Reported-by: default avatarGuilherme G. Piccoli <gpiccoli@igalia.com>
      Reported-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
      Reported-by: default avatarBenjamin Coddington <bcodding@redhat.com>
      Reported-by: default avatarJongman Heo <jongman.heo@gmail.com>
      Fixes: 4c5e242d ("x86/PCI: Clip only host bridge windows for E820 regions")
      Link: https://lore.kernel.org/r/20220612144325.85366-1-hdegoede@redhat.comTested-by: default avatarGuilherme G. Piccoli <gpiccoli@igalia.com>
      Tested-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Tested-by: default avatarBenjamin Coddington <bcodding@redhat.com>
      Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
      Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
      a2b36ffb
    • Linus Torvalds's avatar
      Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · ef06e682
      Linus Torvalds authored
      Pull arm64 fixes from Catalin Marinas:
      
       - Revert the moving of the jump labels initialisation before
         setup_machine_fdt(). The bug was fixed in drivers/char/random.c.
      
       - Ftrace fixes: branch range check and consistent handling of PLTs.
      
       - Clean rather than invalidate FROM_DEVICE buffers at start of DMA
         transfer (safer if such buffer is mapped in user space). A cache
         invalidation is done already at the end of the transfer.
      
       - A couple of clean-ups (unexport symbol, remove unused label).
      
      * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
        arm64: mm: Don't invalidate FROM_DEVICE buffers at start of DMA transfer
        arm64/cpufeature: Unexport set_cpu_feature()
        arm64: ftrace: remove redundant label
        arm64: ftrace: consistently handle PLTs.
        arm64: ftrace: fix branch range checks
        Revert "arm64: Initialize jump labels before setup_machine_fdt()"
      ef06e682
    • Linus Torvalds's avatar
      Merge tag 'loongarch-fixes-5.19-2' of... · cc2fb31d
      Linus Torvalds authored
      Merge tag 'loongarch-fixes-5.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
      
      Pull LoongArch fixes from Huacai Chen:
       "Add missing ELF_DETAILS in vmlinux.lds.S and fix document rendering"
      
      * tag 'loongarch-fixes-5.19-2' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson:
        docs/zh_CN/LoongArch: Fix notes rendering by using reST directives
        docs/LoongArch: Fix notes rendering by using reST directives
        LoongArch: vmlinux.lds.S: Add missing ELF_DETAILS
      cc2fb31d
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · f1051632
      Linus Torvalds authored
      Pull RISC-V fixes from Palmer Dabbelt:
      
       - A fix for the PolarFire SOC's device tree
      
       - A handful of fixes for the recently added Svpmbt support
      
       - An improvement to the Kconfig text for Svpbmt
      
      * tag 'riscv-for-linus-5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        riscv: Improve description for RISCV_ISA_SVPBMT Kconfig symbol
        riscv: drop cpufeature_apply_feature tracking variable
        riscv: fix dependency for t-head errata
        riscv: dts: microchip: re-add pdma to mpfs device tree
      f1051632
    • Linus Torvalds's avatar
      Merge tag 'hyperv-fixes-signed-20220617' of... · 2d806a68
      Linus Torvalds authored
      Merge tag 'hyperv-fixes-signed-20220617' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux
      
      Pull hyperv fixes from Wei Liu:
      
       - Fix hv_init_clocksource annotation (Masahiro Yamada)
      
       - Two bug fixes for vmbus driver (Saurabh Sengar)
      
       - Fix SEV negotiation (Tianyu Lan)
      
       - Fix comments in code (Xiang Wang)
      
       - One minor fix to HID driver (Michael Kelley)
      
      * tag 'hyperv-fixes-signed-20220617' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux:
        x86/Hyper-V: Add SEV negotiate protocol support in Isolation VM
        Drivers: hv: vmbus: Release cpu lock in error case
        HID: hyperv: Correctly access fields declared as __le16
        clocksource: hyper-v: unexport __init-annotated hv_init_clocksource()
        Drivers: hv: Fix syntax errors in comments
        Drivers: hv: vmbus: Don't assign VMbus channel interrupts to isolated CPUs
      2d806a68
    • Linus Torvalds's avatar
      Merge tag 'block-5.19-2022-06-16' of git://git.kernel.dk/linux-block · 462abc9d
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - NVMe pull request from Christoph
            - Quirks, quirks, quirks to work around buggy consumer grade
              devices (Keith Bush, Ning Wang, Stefan Reiter, Rasheed Hsueh)
            - Better kernel messages for devices that need quirking (Keith
              Bush)
            - Make a kernel message more useful (Thomas Weißschuh)
      
       - MD pull request from Song, with a few fixes
      
       - blk-mq sysfs locking fixes (Ming)
      
       - BFQ stats fix (Bart)
      
       - blk-mq offline queue fix (Bart)
      
       - blk-mq flush request tag fix (Ming)
      
      * tag 'block-5.19-2022-06-16' of git://git.kernel.dk/linux-block:
        block/bfq: Enable I/O statistics
        blk-mq: don't clear flush_rq from tags->rqs[]
        blk-mq: avoid to touch q->elevator without any protection
        blk-mq: protect q->elevator by ->sysfs_lock in blk_mq_elv_switch_none
        block: Fix handling of offline queues in blk_mq_alloc_request_hctx()
        md/raid5-ppl: Fix argument order in bio_alloc_bioset()
        Revert "md: don't unregister sync_thread with reconfig_mutex held"
        nvme-pci: disable write zeros support on UMIC and Samsung SSDs
        nvme-pci: avoid the deepest sleep state on ZHITAI TiPro7000 SSDs
        nvme-pci: sk hynix p31 has bogus namespace ids
        nvme-pci: smi has bogus namespace ids
        nvme-pci: phison e12 has bogus namespace ids
        nvme-pci: add NVME_QUIRK_BOGUS_NID for ADATA XPG GAMMIX S50
        nvme-pci: add trouble shooting steps for timeouts
        nvme: add bug report info for global duplicate id
        nvme: add device name to warning in uuid_show()
      462abc9d
    • Linus Torvalds's avatar
      Merge tag 'io_uring-5.19-2022-06-16' of git://git.kernel.dk/linux-block · f8e174c3
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
       "Bigger than usual at this time, both because we missed -rc2, but also
        because of some reverts that we chose to do. In detail:
      
         - Adjust mapped buffer API while we still can (Dylan)
      
         - Mapped buffer fixes (Dylan, Hao, Pavel, me)
      
         - Fix for uring_cmd wrong API usage for task_work (Dylan)
      
         - Fix for bug introduced in fixed file closing (Hao)
      
         - Fix race in buffer/file resource handling (Pavel)
      
         - Revert the NOP support for CQE32 and buffer selection that was
           brought up during the merge window (Pavel)
      
         - Remove IORING_CLOSE_FD_AND_FILE_SLOT introduced in this merge
           window. The API needs further refining, so just yank it for now and
           we'll revisit for a later kernel.
      
         - Series cleaning up the CQE32 support added in this merge window,
           making it more integrated rather than sitting on the side (Pavel)"
      
      * tag 'io_uring-5.19-2022-06-16' of git://git.kernel.dk/linux-block: (21 commits)
        io_uring: recycle provided buffer if we punt to io-wq
        io_uring: do not use prio task_work_add in uring_cmd
        io_uring: commit non-pollable provided mapped buffers upfront
        io_uring: make io_fill_cqe_aux honour CQE32
        io_uring: remove __io_fill_cqe() helper
        io_uring: fix ->extra{1,2} misuse
        io_uring: fill extra big cqe fields from req
        io_uring: unite fill_cqe and the 32B version
        io_uring: get rid of __io_fill_cqe{32}_req()
        io_uring: remove IORING_CLOSE_FD_AND_FILE_SLOT
        Revert "io_uring: add buffer selection support to IORING_OP_NOP"
        Revert "io_uring: support CQE32 for nop operation"
        io_uring: limit size of provided buffer ring
        io_uring: fix types in provided buffer ring
        io_uring: fix index calculation
        io_uring: fix double unlock for pbuf select
        io_uring: kbuf: fix bug of not consuming ring buffer in partial io case
        io_uring: openclose: fix bug of closing wrong fixed file
        io_uring: fix not locked access to fixed buf table
        io_uring: fix races with buffer table unregister
        ...
      f8e174c3
    • Will Deacon's avatar
      arm64: mm: Don't invalidate FROM_DEVICE buffers at start of DMA transfer · c50f11c6
      Will Deacon authored
      Invalidating the buffer memory in arch_sync_dma_for_device() for
      FROM_DEVICE transfers
      
      When using the streaming DMA API to map a buffer prior to inbound
      non-coherent DMA (i.e. DMA_FROM_DEVICE), we invalidate any dirty CPU
      cachelines so that they will not be written back during the transfer and
      corrupt the buffer contents written by the DMA. This, however, poses two
      potential problems:
      
        (1) If the DMA transfer does not write to every byte in the buffer,
            then the unwritten bytes will contain stale data once the transfer
            has completed.
      
        (2) If the buffer has a virtual alias in userspace, then stale data
            may be visible via this alias during the period between performing
            the cache invalidation and the DMA writes landing in memory.
      
      Address both of these issues by cleaning (aka writing-back) the dirty
      lines in arch_sync_dma_for_device(DMA_FROM_DEVICE) instead of discarding
      them using invalidation.
      
      Cc: Ard Biesheuvel <ardb@kernel.org>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: Robin Murphy <robin.murphy@arm.com>
      Cc: Russell King <linux@armlinux.org.uk>
      Cc: <stable@vger.kernel.org>
      Link: https://lore.kernel.org/r/20220606152150.GA31568@willie-the-truckSigned-off-by: default avatarWill Deacon <will@kernel.org>
      Reviewed-by: default avatarArd Biesheuvel <ardb@kernel.org>
      Link: https://lore.kernel.org/r/20220610151228.4562-2-will@kernel.orgSigned-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
      c50f11c6
    • Linus Torvalds's avatar
      Merge tag 'fs_for_v5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs · 5c0cd3d4
      Linus Torvalds authored
      Pull writeback and ext2 fixes from Jan Kara:
       "A fix for writeback bug which prevented machines with kdevtmpfs from
        booting and also one small ext2 bugfix in IO error handling"
      
      * tag 'fs_for_v5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs:
        init: Initialize noop_backing_dev_info early
        ext2: fix fs corruption when trying to remove a non-empty directory with IO error
      5c0cd3d4
    • Linus Torvalds's avatar
      Merge tag 'for-5.19/dm-fixes-3' of... · 274295c6
      Linus Torvalds authored
      Merge tag 'for-5.19/dm-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm
      
      Pull device mapper fixes from Mike Snitzer:
      
       - Fix a race in DM core's dm_start_io_acct that could result in double
         accounting for abnormal IO (e.g. discards, write zeroes, etc).
      
       - Fix a use-after-free in DM core's dm_put_live_table_bio.
      
       - Fix a race for REQ_NOWAIT bios being issued despite no support from
         underlying DM targets (due to DM table reload at an "unlucky" time)
      
       - Fix access beyond allocated bitmap in DM mirror's log.
      
      * tag 'for-5.19/dm-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
        dm mirror log: round up region bitmap size to BITS_PER_LONG
        dm: fix narrow race for REQ_NOWAIT bios being issued despite no support
        dm: fix use-after-free in dm_put_live_table_bio
        dm: fix race in dm_start_io_acct
      274295c6
    • Linus Torvalds's avatar
      Merge tag 'hwmon-for-v5.19-rc3' of... · a96e902b
      Linus Torvalds authored
      Merge tag 'hwmon-for-v5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
      
      Pull hwmon fixes from Guenter Roeck:
      
       - Add missing lock protection in occ driver
      
       - Add missing comma in board name list in asus-ec-sensors driver
      
       - Fix devicetree bindings for ti,tmp401
      
      * tag 'hwmon-for-v5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging:
        hwmon: (asus-ec-sensors) add missing comma in board name list.
        hwmon: (occ) Lock mutex in shutdown to prevent race with occ_active
        dt-bindings: hwmon: ti,tmp401: Drop 'items' from 'ti,n-factor' property
      a96e902b
    • Linus Torvalds's avatar
      Merge tag 'linux-watchdog-5.19-rc3' of git://www.linux-watchdog.org/linux-watchdog · 7c2d03f1
      Linus Torvalds authored
      Pull watchdog fix from Wim Van Sebroeck:
       "Add missing MODULE_LICENSE in gxp driver"
      
      * tag 'linux-watchdog-5.19-rc3' of git://www.linux-watchdog.org/linux-watchdog:
        watchdog: gxp: Add missing MODULE_LICENSE
      7c2d03f1
    • Linus Torvalds's avatar
      Merge tag 'v5.19-p2' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · 79fe0f86
      Linus Torvalds authored
      Pull crypto fix from Herbert Xu:
       "This fixes a potential build failure when CRYPTO=m"
      
      * tag 'v5.19-p2' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
        crypto: memneq - move into lib/
      79fe0f86
    • Linus Torvalds's avatar
      Merge tag 'char-misc-5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc · f0ec9c65
      Linus Torvalds authored
      Pull char/misc driver fixes from Greg KH:
       "Here are some small char/misc driver fixes for 5.19-rc3 that resolve
        some reported issues.
      
        They include:
      
         - mei driver fixes
      
         - comedi driver fix
      
         - rtsx build warning fix
      
         - fsl-mc-bus driver fix
      
        All of these have been in linux-next for a while with no reported
        issues"
      
      * tag 'char-misc-5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc:
        eeprom: at25: Split reads into chunks and cap write size
        misc: atmel-ssc: Fix IRQ check in ssc_probe
        char: lp: remove redundant initialization of err
      f0ec9c65
    • Linus Torvalds's avatar
      Merge tag 'staging-5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging · 9afc441c
      Linus Torvalds authored
      Pull staging driver fixes from Greg KH:
       "Here are some small staging driver fixes for 5.19-rc3 that resolve
        reported issues:
      
         - remove visorbus.h which was forgotten in the -rc1 merge where the
           code that used it was removed
      
         - olpc_dcon: mark as broken to allow the DRM developers to evolve the
           fbdev api properly without having to deal with this obsolete
           driver. It will be removed soon if no one steps up to adopt it and
           fix the issues with it.
      
         - rtl8723bs driver fix
      
         - r8188eu driver fix to resolve many reports of the driver being
           broken with -rc1.
      
        All of these have been in linux-next for a while with no reported
        issues"
      
      * tag 'staging-5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
        staging: Also remove the Unisys visorbus.h
        staging: rtl8723bs: Allocate full pwep structure
        staging: olpc_dcon: mark driver as broken
        staging: r8188eu: Fix warning of array overflow in ioctl_linux.c
        staging: r8188eu: fix rtw_alloc_hwxmits error detection for now
      9afc441c
    • Linus Torvalds's avatar
      Merge tag 'tty-5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty · 62dcd5e1
      Linus Torvalds authored
      Pull tty/serial driver fixes from Greg KH:
       "Here are some small tty and serial driver fixes for 5.19-rc3 to
        resolve some reported problems:
      
         - 8250 lsr read bugfix
      
         - n_gsm line discipline allocation fix
      
         - qcom serial driver fix for reported lockups that happened in -rc1
      
         - goldfish tty driver fix
      
        All have been in linux-next for a while now with no reported issues"
      
      * tag 'tty-5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
        serial: 8250: Store to lsr_save_flags after lsr read
        tty: goldfish: Fix free_irq() on remove
        tty: serial: qcom-geni-serial: Implement start_rx callback
        serial: core: Introduce callback for start_rx and do stop_rx in suspend only if this callback implementation is present.
        tty: n_gsm: Debug output allocation must use GFP_ATOMIC
      62dcd5e1
    • Linus Torvalds's avatar
      Merge tag 'usb-5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb · 9057a646
      Linus Torvalds authored
      Pull USB driver fixes from Greg KH:
       "Here are some small USB driver fixes and new device ids for 5.19-rc3
      
        They include:
      
         - new usb-serial driver device ids
      
         - usb gadget driver fixes for reported problems
      
         - cdnsp driver fix
      
         - dwc3 driver fixes for reported problems
      
         - dwc3 driver fix for merge problem that I caused in 5.18
      
         - xhci driver fixes
      
         - dwc2 memory leak fix
      
        All of these have been in linux-next for a while with no reported
        issues"
      
      * tag 'usb-5.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb:
        usb: gadget: f_fs: change ep->ep safe in ffs_epfile_io()
        usb: gadget: f_fs: change ep->status safe in ffs_epfile_io()
        xhci: Fix null pointer dereference in resume if xhci has only one roothub
        USB: fixup for merge issue with "usb: dwc3: Don't switch OTG -> peripheral if extcon is present"
        usb: cdnsp: Fixed setting last_trb incorrectly
        usb: gadget: u_ether: fix regression in setting fixed MAC address
        usb: gadget: lpc32xx_udc: Fix refcount leak in lpc32xx_udc_probe
        usb: dwc2: Fix memory leak in dwc2_hcd_init
        usb: dwc3: pci: Restore line lost in merge conflict resolution
        usb: dwc3: gadget: Fix IN endpoint max packet size allocation
        USB: serial: option: add support for Cinterion MV31 with new baseline
        USB: serial: io_ti: add Agilent E5805A support
      9057a646
    • Petr Mladek's avatar
      38335cc5
    • Yanteng Si's avatar
      docs/zh_CN/LoongArch: Fix notes rendering by using reST directives · 03dfb4a3
      Yanteng Si authored
      Notes are better expressed with reST admonitions.
      
      Fixes: f23b2259 ("Documentation/zh_CN: Add basic LoongArch documentations")
      Reviewed-by: default avatarWANG Xuerui <git@xen0n.name>
      Signed-off-by: default avatarYanteng Si <siyanteng@loongson.cn>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      03dfb4a3
    • Yanteng Si's avatar
      docs/LoongArch: Fix notes rendering by using reST directives · a667e4d3
      Yanteng Si authored
      Notes are better expressed with reST admonitions.
      
      Fixes: 0ea8ce61 ("Documentation: LoongArch: Add basic documentations")
      Reviewed-by: default avatarWANG Xuerui <git@xen0n.name>
      Signed-off-by: default avatarYanteng Si <siyanteng@loongson.cn>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      a667e4d3
    • Youling Tang's avatar
      LoongArch: vmlinux.lds.S: Add missing ELF_DETAILS · b672332e
      Youling Tang authored
      Commit c604abc3 ("vmlinux.lds.h: Split ELF_DETAILS from STABS_DEBUG")
      splits ELF_DETAILS from STABS_DEBUG, resulting in missing ELF_DETAILS
      information in LoongArch architecture, so add it.
      
      Fixes: c604abc3 ("vmlinux.lds.h: Split ELF_DETAILS from STABS_DEBUG")
      Signed-off-by: default avatarYouling Tang <tangyouling@loongson.cn>
      Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
      b672332e
    • Jens Axboe's avatar
      io_uring: recycle provided buffer if we punt to io-wq · 6436c770
      Jens Axboe authored
      io_arm_poll_handler() will recycle the buffer appropriately if we end
      up arming poll (or if we're ready to retry), but not for the io-wq case
      if we have attempted poll first.
      
      Explicitly recycle the buffer to avoid both hanging on to it too long,
      but also to avoid multiple reads grabbing the same one. This can happen
      for ring mapped buffers, since it hasn't necessarily been committed.
      
      Fixes: c7fb1942 ("io_uring: add support for ring mapped supplied buffers")
      Link: https://github.com/axboe/liburing/issues/605Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      6436c770
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2022-06-17' of git://anongit.freedesktop.org/drm/drm · 47700948
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Regular drm fixes for rc3. Nothing too serious, i915, amdgpu and
        exynos all have a few small driver fixes, and two ttm fixes, and one
        compiler warning.
      
        atomic:
         - fix spurious compiler warning
      
        ttm:
         - add NULL ptr check in swapout code
         - fix bulk move handling
      
        i915:
         - Fix page fault on error state read
         - Fix memory leaks in per-gt sysfs
         - Fix multiple fence handling
         - Remove accidental static from a local variable
      
        amdgpu:
         - Fix regression in GTT size reporting
         - OLED backlight fix
      
        exynos:
         - Check a null pointer instead of IS_ERR()
         - Rework initialization code of Exynos MIC driver"
      
      * tag 'drm-fixes-2022-06-17' of git://anongit.freedesktop.org/drm/drm:
        drm/amd/display: Cap OLED brightness per max frame-average luminance
        drm/amdgpu: Fix GTT size reporting in amdgpu_ioctl
        drm/exynos: mic: Rework initialization
        drm/exynos: fix IS_ERR() vs NULL check in probe
        drm/ttm: fix bulk move handling v2
        drm/i915/uc: remove accidental static from a local variable
        drm/i915: Individualize fences before adding to dma_resv obj
        drm/i915/gt: Fix memory leaks in per-gt sysfs
        drm/i915/reset: Fix error_state_read ptr + offset use
        drm/ttm: fix missing NULL check in ttm_device_swapout
        drm/atomic: fix warning of unused variable
      47700948