Skip to content
  1. Aug 01, 2022
    • Linus Torvalds's avatar
      Linux 5.19 · 3d7cb6b0
      Linus Torvalds authored
      v5.19
      3d7cb6b0
    • Linus Torvalds's avatar
      Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux · 334c0ef6
      Linus Torvalds authored
      Pull clk fix from Stephen Boyd:
       "One-liner fix of a NULL pointer deref in the Allwinner clk driver"
      
      * tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux:
        clk: sunxi-ng: Fix H6 RTC clock definition
      334c0ef6
    • Linus Torvalds's avatar
      Merge tag 'x86_urgent_for_v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 89caf575
      Linus Torvalds authored
      Pull x86 fixes from Borislav Petkov:
      
       - Update the 'mitigations=' kernel param documentation
      
       - Check the IBPB feature flag before enabling IBPB in firmware calls
         because cloud vendors' fantasy when it comes to creating guest
         configurations is unlimited
      
       - Unexport sev_es_ghcb_hv_call() before 5.19 releases now that HyperV
         doesn't need it anymore
      
       - Remove dead CONFIG_* items
      
      * tag 'x86_urgent_for_v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        docs/kernel-parameters: Update descriptions for "mitigations=" param with retbleed
        x86/bugs: Do not enable IBPB at firmware entry when IBPB is not available
        Revert "x86/sev: Expose sev_es_ghcb_hv_call() for use by HyperV"
        x86/configs: Update configs in x86_debug.config
      89caf575
    • Linus Torvalds's avatar
      Merge tag 'locking_urgent_for_v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 5e4823e6
      Linus Torvalds authored
      Pull locking fix from Borislav Petkov:
      
       - Avoid rwsem lockups in certain situations when handling the handoff
         bit
      
      * tag 'locking_urgent_for_v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        locking/rwsem: Allow slowpath writer to ignore handoff bit if not set by first waiter
      5e4823e6
    • Linus Torvalds's avatar
      Merge tag 'edac_urgent_for_v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras · cd2715b7
      Linus Torvalds authored
      Pull EDAC fixes from Borislav Petkov:
      
       - Relax the condition under which the DIMM label in ghes_edac is set in
         order to accomodate an HPE BIOS which sets only the device but not
         the bank
      
       - Two forgotten fixes to synopsys_edac when handling error interrupts
      
      * tag 'edac_urgent_for_v5.19' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras:
        EDAC/ghes: Set the DIMM label unconditionally
        EDAC/synopsys: Re-enable the error interrupts on v3 hw
        EDAC/synopsys: Use the correct register to disable the error interrupt on v3 hw
      cd2715b7
  2. Jul 31, 2022
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm · 6a010258
      Linus Torvalds authored
      Pull ARM fixes from Russell King:
       "Last set of ARM fixes for 5.19:
      
         - fix for MAX_DMA_ADDRESS overflow
      
         - fix for find_*_bit performing an out of bounds memory access"
      
      * tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm:
        ARM: findbit: fix overflowing offset
        ARM: 9216/1: Fix MAX_DMA_ADDRESS overflow
      6a010258
  3. Jul 30, 2022
    • Waiman Long's avatar
      locking/rwsem: Allow slowpath writer to ignore handoff bit if not set by first waiter · 6eebd5fb
      Waiman Long authored
      With commit d257cc8c ("locking/rwsem: Make handoff bit handling more
      consistent"), the writer that sets the handoff bit can be interrupted
      out without clearing the bit if the wait queue isn't empty. This disables
      reader and writer optimistic lock spinning and stealing.
      
      Now if a non-first writer in the queue is somehow woken up or a new
      waiter enters the slowpath, it can't acquire the lock.  This is not the
      case before commit d257cc8c as the writer that set the handoff bit
      will clear it when exiting out via the out_nolock path. This is less
      efficient as the busy rwsem stays in an unlock state for a longer time.
      
      In some cases, this new behavior may cause lockups as shown in [1] and
      [2].
      
      This patch allows a non-first writer to ignore the handoff bit if it
      is not originally set or initiated by the first waiter. This patch is
      shown to be effective in fixing the lockup problem reported in [1].
      
      [1] https://lore.kernel.org/lkml/20220617134325.GC30825@techsingularity.net/
      [2] https://lore.kernel.org/lkml/3f02975c-1a9d-be20-32cf-f1d8e3dfafcc@oracle.com/
      
      Fixes: d257cc8c
      
       ("locking/rwsem: Make handoff bit handling more consistent")
      Signed-off-by: default avatarWaiman Long <longman@redhat.com>
      Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
      Acked-by: default avatarJohn Donnelly <john.p.donnelly@oracle.com>
      Tested-by: default avatarMel Gorman <mgorman@techsingularity.net>
      Link: https://lore.kernel.org/r/20220622200419.778799-1-longman@redhat.com
      6eebd5fb
    • Linus Torvalds's avatar
      Merge tag 'mm-hotfixes-stable-2022-07-29' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm · 62072526
      Linus Torvalds authored
      Pull misc fixes from Andrew Morton:
       "Two hotfixes, both cc:stable"
      
      * tag 'mm-hotfixes-stable-2022-07-29' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm:
        mm/hmm: fault non-owner device private entries
        page_alloc: fix invalid watermark check on a negative value
      62072526
    • Linus Torvalds's avatar
      Merge tag 'block-5.19-2022-07-29' of git://git.kernel.dk/linux-block · 8a91f86f
      Linus Torvalds authored
      Pull block fix from Jens Axboe:
       "Just a single fix for NVMe, yet another quirk addition"
      
      * tag 'block-5.19-2022-07-29' of git://git.kernel.dk/linux-block:
        nvme-pci: Crucial P2 has bogus namespace ids
      8a91f86f
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2022-07-30' of git://anongit.freedesktop.org/drm/drm · e65c6a46
      Linus Torvalds authored
      Pull more drm fixes from Dave Airlie:
       "Maxime had the dog^Wmailing list server eat his homework^Wmisc pull
        request.
      
        Two more small fixes, one in nouveau svm code and the other in
        simpledrm.
      
        nouveau:
         - page migration fix
      
        simpledrm:
         - fix mode_valid return value"
      
      * tag 'drm-fixes-2022-07-30' of git://anongit.freedesktop.org/drm/drm:
        nouveau/svm: Fix to migrate all requested pages
        drm/simpledrm: Fix return type of simpledrm_simple_display_pipe_mode_valid()
      e65c6a46
    • Dave Airlie's avatar
      Merge tag 'drm-misc-fixes-2022-07-29' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes · ce156c8a
      Dave Airlie authored
      
      
      One fix to fix simpledrm mode_valid return value, and one for page
      migration in nouveau
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Maxime Ripard <maxime@cerno.tech>
      Link: https://patchwork.freedesktop.org/patch/msgid/20220729094514.sfzhc3gqjgwgal62@penduick
      ce156c8a
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 1c8ac1c4
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "Four fixes, three in drivers.
      
        The two biggest fixes are ufs and the remaining driver and core fix
        are small and obvious (and the core fix is low risk)"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: ufs: core: Fix a race condition related to device management
        scsi: core: Fix warning in scsi_alloc_sgtables()
        scsi: ufs: host: Hold reference returned by of_parse_phandle()
        scsi: mpt3sas: Stop fw fault watchdog work item during system shutdown
      1c8ac1c4
    • Eiichi Tsukata's avatar
      docs/kernel-parameters: Update descriptions for "mitigations=" param with retbleed · ea304a8b
      Eiichi Tsukata authored
      
      
      Updates descriptions for "mitigations=off" and "mitigations=auto,nosmt"
      with the respective retbleed= settings.
      
      Signed-off-by: default avatarEiichi Tsukata <eiichi.tsukata@nutanix.com>
      Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
      Cc: corbet@lwn.net
      Link: https://lore.kernel.org/r/20220728043907.165688-1-eiichi.tsukata@nutanix.com
      ea304a8b
    • Ralph Campbell's avatar
      mm/hmm: fault non-owner device private entries · 8a295dbb
      Ralph Campbell authored
      If hmm_range_fault() is called with the HMM_PFN_REQ_FAULT flag and a
      device private PTE is found, the hmm_range::dev_private_owner page is used
      to determine if the device private page should not be faulted in. 
      However, if the device private page is not owned by the caller,
      hmm_range_fault() returns an error instead of calling migrate_to_ram() to
      fault in the page.
      
      For example, if a page is migrated to GPU private memory and a RDMA fault
      capable NIC tries to read the migrated page, without this patch it will
      get an error.  With this patch, the page will be migrated back to system
      memory and the NIC will be able to read the data.
      
      Link: https://lkml.kernel.org/r/20220727000837.4128709-2-rcampbell@nvidia.com
      Link: https://lkml.kernel.org/r/20220725183615.4118795-2-rcampbell@nvidia.com
      Fixes: 08ddddda
      
       ("mm/hmm: check the device private page owner in hmm_range_fault()")
      Signed-off-by: default avatarRalph Campbell <rcampbell@nvidia.com>
      Reported-by: default avatarFelix Kuehling <felix.kuehling@amd.com>
      Reviewed-by: default avatarAlistair Popple <apopple@nvidia.com>
      Cc: Philip Yang <Philip.Yang@amd.com>
      Cc: Jason Gunthorpe <jgg@nvidia.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      8a295dbb
    • Jaewon Kim's avatar
      page_alloc: fix invalid watermark check on a negative value · 9282012f
      Jaewon Kim authored
      There was a report that a task is waiting at the
      throttle_direct_reclaim. The pgscan_direct_throttle in vmstat was
      increasing.
      
      This is a bug where zone_watermark_fast returns true even when the free
      is very low. The commit f27ce0e1 ("page_alloc: consider highatomic
      reserve in watermark fast") changed the watermark fast to consider
      highatomic reserve. But it did not handle a negative value case which
      can be happened when reserved_highatomic pageblock is bigger than the
      actual free.
      
      If watermark is considered as ok for the negative value, allocating
      contexts for order-0 will consume all free pages without direct reclaim,
      and finally free page may become depleted except highatomic free.
      
      Then allocating contexts may fall into throttle_direct_reclaim. This
      symptom may easily happen in a system where wmark min is low and other
      reclaimers like kswapd does not make free pages quickly.
      
      Handle the negative case by using MIN.
      
      Link: https://lkml.kernel.org/r/20220725095212.25388-1-jaewon31.kim@samsung.com
      Fixes: f27ce0e1
      
       ("page_alloc: consider highatomic reserve in watermark fast")
      Signed-off-by: default avatarJaewon Kim <jaewon31.kim@samsung.com>
      Reported-by: default avatarGyeongHwan Hong <gh21.hong@samsung.com>
      Acked-by: default avatarMel Gorman <mgorman@techsingularity.net>
      Cc: Minchan Kim <minchan@kernel.org>
      Cc: Baoquan He <bhe@redhat.com>
      Cc: Vlastimil Babka <vbabka@suse.cz>
      Cc: Johannes Weiner <hannes@cmpxchg.org>
      Cc: Michal Hocko <mhocko@kernel.org>
      Cc: Yong-Taek Lee <ytk.lee@samsung.com>
      Cc: <stable@vger.kerenl.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      9282012f
    • Linus Torvalds's avatar
      Merge tag 'perf-tools-fixes-for-v5.19-2022-07-29' of... · bb83c99d
      Linus Torvalds authored
      Merge tag 'perf-tools-fixes-for-v5.19-2022-07-29' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux
      
      Pull perf tools fixes from Arnaldo Carvalho de Melo:
      
       - Fix addresses for bss symbols, describing variables used in resolving
         data access in tools such as 'perf c2c' and 'perf mem'.
      
       - Skip symbols if SHF_ALLOC flag is not set, a technique used for
         listing deprecated symbols, its addresses are zeros, so not useful.
      
       - Remove undefined behavior from bpf_perf_object__next() when dealing
         with an empty bpf_objects_list list.
      
       - Make a ARM CoreSight disasm script work with both python2 and
         python3.
      
       - Sync x86's cpufeatures header with with the kernel sources.
      
      * tag 'perf-tools-fixes-for-v5.19-2022-07-29' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux:
        perf bpf: Remove undefined behavior from bpf_perf_object__next()
        perf symbol: Skip symbols if SHF_ALLOC flag is not set
        perf symbol: Correct address for bss symbols
        perf scripts python: Let script to be python2 compliant
        tools headers cpufeatures: Sync with the kernel sources
      bb83c99d
    • Linus Torvalds's avatar
      Merge tag 'wq-for-5.19-rc8-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq · 4b20426d
      Linus Torvalds authored
      Pull workqueue fix from Tejun Heo:
       "Just one commit to suppress a spurious warning added during the 5.19
        cycle"
      
      * tag 'wq-for-5.19-rc8-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq:
        workqueue: Avoid a false warning in unbind_workers()
      4b20426d
    • Linus Torvalds's avatar
      Merge tag 'pm-5.19-rc9' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm · 506e6dfb
      Linus Torvalds authored
      Pull power management fix from Rafael Wysocki:
       "Make some false positive RCU splats resulting from a recent intel_idle
        driver change go away (Waiman Long)"
      
      * tag 'pm-5.19-rc9' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
        intel_idle: Fix false positive RCU splats due to incorrect hardirqs state
      506e6dfb
    • Lai Jiangshan's avatar
      workqueue: Avoid a false warning in unbind_workers() · 46a4d679
      Lai Jiangshan authored
      Doing set_cpus_allowed_ptr() with wq_unbound_cpumask can be possible
      fails and trigger the false warning.
      
      Use cpu_possible_mask instead when wq_unbound_cpumask has no active CPUs.
      
      It is very easy to trigger the warning:
        Set wq_unbound_cpumask to a small set of CPUs.
        Offline all the CPUs of wq_unbound_cpumask.
        Offline an extra CPU and trigger the warning.
      
      Fixes: 10a5a651
      
       ("workqueue: Restrict kworker in the offline CPU pool running on housekeeping CPUs")
      Signed-off-by: default avatarLai Jiangshan <jiangshan.ljs@antgroup.com>
      Signed-off-by: default avatarTejun Heo <tj@kernel.org>
      46a4d679
    • Linus Torvalds's avatar
      Merge tag 'riscv-for-linus-5.19-rc9' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux · e4d8b09d
      Linus Torvalds authored
      Pull RISC-V fix from Palmer Dabbelt:
       "A build fix for 'make vdso_install' that avoids an issue trying to
        install the compat VDSO"
      
      * tag 'riscv-for-linus-5.19-rc9' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
        riscv: compat: vdso: Fix vdso_install target
      e4d8b09d
    • Linus Torvalds's avatar
      Merge tag 'loongarch-fixes-5.19-5' of... · a95eb1d0
      Linus Torvalds authored
      Merge tag 'loongarch-fixes-5.19-5' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
      
      Pull LoongArch fixes from Huacai Chen:
      
       - Fix cache size calculation, stack protection attributes, ptrace's
         fpr_set and "ROM Size" in boardinfo
      
       - Some cleanups and improvements of assembly
      
       - Some cleanups of unused code and useless code
      
      * tag 'loongarch-fixes-5.19-5' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson:
        LoongArch: Fix wrong "ROM Size" of boardinfo
        LoongArch: Fix missing fcsr in ptrace's fpr_set
        LoongArch: Fix shared cache size calculation
        LoongArch: Disable executable stack by default
        LoongArch: Remove unused variables
        LoongArch: Remove clock setting during cpu hotplug stage
        LoongArch: Remove useless header compiler.h
        LoongArch: Remove several syntactic sugar macros for branches
        LoongArch: Re-tab the assembly files
        LoongArch: Simplify "BGT foo, zero" with BGTZ
        LoongArch: Simplify "BLT foo, zero" with BLTZ
        LoongArch: Simplify "BEQ/BNE foo, zero" with BEQZ/BNEZ
        LoongArch: Use the "move" pseudo-instruction where applicable
        LoongArch: Use the "jr" pseudo-instruction where applicable
        LoongArch: Use ABI names of registers where appropriate
      a95eb1d0
    • Linus Torvalds's avatar
      Merge tag 'powerpc-5.19-6' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 9d928d9b
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
      
       - Re-enable the new amdgpu display engine for powerpc, as long as the
         compiler is correctly configured.
      
       - Disable stack variable initialisation in prom_init to fix GCC 12
         allmodconfig.
      
      Thanks to Dan Horák and Sudip Mukherjee.
      
      * tag 'powerpc-5.19-6' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        drm/amdgpu: Re-enable DCN for 64-bit powerpc
        powerpc/64s: Disable stack variable initialisation for prom_init
      9d928d9b
  4. Jul 29, 2022