Skip to content
Permalink
guoren-kernel-…
Switch branches/tags

Commits on Apr 15, 2021

  1. riscv: atomic: Using ARCH_ATOMIC in asm/atomic.h

    The linux/atomic-arch-fallback.h has been there for a while, but
    only x86 & arm64 support it. Let's make riscv follow the
    linux/arch/* development trendy and make the codes more readable
    and maintainable.
    
    This patch also cleanup some codes:
     - Add atomic_andnot_* operation
     - Using amoswap.w.rl & amoswap.w.aq instructions in xchg
     - Remove cmpxchg_acquire/release unnecessary optimization
    
    Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
    Link: https://lore.kernel.org/linux-riscv/CAK8P3a0FG3cpqBNUP7kXj3713cMUqV1WcEh-vcRnGKM00WXqxw@mail.gmail.com/
    Cc: Arnd Bergmann <arnd@arndb.de>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Anup Patel <anup@brainfault.org>
    Cc: Palmer Dabbelt <palmerdabbelt@google.com>
    guoren83 authored and intel-lab-lkp committed Apr 15, 2021

Commits on Apr 14, 2021

  1. Merge tag 'for-5.12/dm-fixes-3' of git://git.kernel.org/pub/scm/linux…

    …/kernel/git/device-mapper/linux-dm
    
    Pull device mapper fix from Mike Snitzer:
     "Fix DM verity target FEC support's RS roots IO to always be aligned.
    
      This fixes a previous stable@ fix that overcorrected for a different
      configuration that also resulted in misaligned roots IO"
    
    * tag 'for-5.12/dm-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm:
      dm verity fec: fix misaligned RS roots IO
    torvalds committed Apr 14, 2021
  2. dm verity fec: fix misaligned RS roots IO

    commit df7b59b ("dm verity: fix FEC for RS roots unaligned to
    block size") introduced the possibility for misaligned roots IO
    relative to the underlying device's logical block size. E.g. Android's
    default RS roots=2 results in dm_bufio->block_size=1024, which causes
    the following EIO if the logical block size of the device is 4096,
    given v->data_dev_block_bits=12:
    
    E sd 0    : 0:0:0: [sda] tag#30 request not aligned to the logical block size
    E blk_update_request: I/O error, dev sda, sector 10368424 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
    E device-mapper: verity-fec: 254:8: FEC 9244672: parity read failed (block 18056): -5
    
    Fix this by onlu using f->roots for dm_bufio blocksize IFF it is
    aligned to v->data_dev_block_bits.
    
    Fixes: df7b59b ("dm verity: fix FEC for RS roots unaligned to block size")
    Cc: stable@vger.kernel.org
    Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
    Signed-off-by: Mike Snitzer <snitzer@redhat.com>
    Jaegeuk Kim authored and snitm committed Apr 14, 2021
  3. Merge tag 's390-5.12-7' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/s390/linux
    
    Pull s390 fixes from Heiko Carstens:
    
     - setup stack backchain properly in external and i/o interrupt handler
       to fix stack unwinding. This broke when converting to generic entry
    
      - save caller address of psw_idle to get a sane stacktrace
    
    * tag 's390-5.12-7' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
      s390/entry: save the caller of psw_idle
      s390/entry: avoid setting up backchain in ext|io handlers
    torvalds committed Apr 14, 2021
  4. Merge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/…

    …git/arm64/linux
    
    Pull arm64 fixes from Will Deacon:
    
     - Fix incorrect asm constraint for load_unaligned_zeropad() fixup
    
     - Fix thread flag update when setting TIF_MTE_ASYNC_FAULT
    
     - Fix restored irq state when handling fault on kprobe
    
    * tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux:
      arm64: kprobes: Restore local irqflag if kprobes is cancelled
      arm64: mte: Ensure TIF_MTE_ASYNC_FAULT is set atomically
      arm64: fix inline asm in load_unaligned_zeropad()
    torvalds committed Apr 14, 2021
  5. Merge tag 'dmaengine-fix-5.12' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/vkoul/dmaengine
    
    Pull dmaengine fixes from Vinod Koul:
     "A couple of dmaengine driver fixes for:
    
       - race and descriptor issue for xilinx driver
    
       - fix interrupt handling, wq state & cleanup, field sizes for
         completion, msix permissions for idxd driver
    
       - runtime pm fix for tegra driver
    
       - double free fix in dma_async_device_register"
    
    * tag 'dmaengine-fix-5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine:
      dmaengine: idxd: fix wq cleanup of WQCFG registers
      dmaengine: idxd: clear MSIX permission entry on shutdown
      dmaengine: plx_dma: add a missing put_device() on error path
      dmaengine: tegra20: Fix runtime PM imbalance on error
      dmaengine: Fix a double free in dma_async_device_register
      dmaengine: dw: Make it dependent to HAS_IOMEM
      dmaengine: idxd: fix wq size store permission state
      dmaengine: idxd: fix opcap sysfs attribute output
      dmaengine: idxd: fix delta_rec and crc size field for completion record
      dmaengine: idxd: Fix clobbering of SWERR overflow bit on writeback
      dmaengine: xilinx: dpdma: Fix race condition in done IRQ
      dmaengine: xilinx: dpdma: Fix descriptor issuing on video group
    torvalds committed Apr 14, 2021
  6. Merge tag 'vfio-v5.12-rc8' of git://github.com/awilliam/linux-vfio

    Pull VFIO fix from Alex Williamson:
     "Verify mmap region within range (Christian A. Ehrhardt)"
    
    * tag 'vfio-v5.12-rc8' of git://github.com/awilliam/linux-vfio:
      vfio/pci: Add missing range check in vfio_pci_mmap
    torvalds committed Apr 14, 2021
  7. Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm

    Pull kvm fix from Paolo Bonzini:
     "Fix for a possible out-of-bounds access"
    
    * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm:
      KVM: VMX: Don't use vcpu->run->internal.ndata as an array index
    torvalds committed Apr 14, 2021
  8. Merge tag 'trace-v5.12-rc7' of git://git.kernel.org/pub/scm/linux/ker…

    …nel/git/rostedt/linux-trace
    
    Pull tracing fix from Steven Rostedt:
     "Fix a memory link in dyn_event_release().
    
      An error path exited the function before freeing the allocated 'argv'
      variable"
    
    * tag 'trace-v5.12-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
      tracing/dynevent: Fix a memory leak in an error handling path
    torvalds committed Apr 14, 2021

Commits on Apr 13, 2021

  1. KVM: VMX: Don't use vcpu->run->internal.ndata as an array index

    __vmx_handle_exit() uses vcpu->run->internal.ndata as an index for
    an array access.  Since vcpu->run is (can be) mapped to a user address
    space with a writer permission, the 'ndata' could be updated by the
    user process at anytime (the user process can set it to outside the
    bounds of the array).
    So, it is not safe that __vmx_handle_exit() uses the 'ndata' that way.
    
    Fixes: 1aa561b ("kvm: x86: Add "last CPU" to some KVM_EXIT information")
    Signed-off-by: Reiji Watanabe <reijiw@google.com>
    Reviewed-by: Jim Mattson <jmattson@google.com>
    Message-Id: <20210413154739.490299-1-reijiw@google.com>
    Cc: stable@vger.kernel.org
    Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
    reijiw-kvm authored and bonzini committed Apr 13, 2021
  2. Merge tag 'fixes-for-5.12-rc7' of git://git.kernel.org/pub/scm/linux/…

    …kernel/git/mtd/linux
    
    Pull MTD fix from Richard Weinberger:
     "Fix WAITRDY break condition and timeout in mtk nand driver"
    
    * tag 'fixes-for-5.12-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux:
      mtd: rawnand: mtk: Fix WAITRDY break condition and timeout
    torvalds committed Apr 13, 2021
  3. tracing/dynevent: Fix a memory leak in an error handling path

    We must free 'argv' before returning, as already done in all the other
    paths of this function.
    
    Link: https://lkml.kernel.org/r/21e3594ccd7fc88c5c162c98450409190f304327.1618136448.git.christophe.jaillet@wanadoo.fr
    
    Fixes: d262271 ("tracing/dynevent: Delegate parsing to create function")
    Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
    Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
    Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
    tititiou36 authored and rostedt committed Apr 13, 2021
  4. vfio/pci: Add missing range check in vfio_pci_mmap

    When mmaping an extra device region verify that the region index
    derived from the mmap offset is valid.
    
    Fixes: a15b188 ("vfio_pci: Allow mapping extra regions")
    Cc: stable@vger.kernel.org
    Signed-off-by: Christian A. Ehrhardt <lk@c--e.de>
    Message-Id: <20210412214124.GA241759@lisa.in-ulm.de>
    Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
    Reviewed-by: Cornelia Huck <cohuck@redhat.com>
    Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
    Christian A. Ehrhardt authored and awilliam committed Apr 13, 2021
  5. arm64: kprobes: Restore local irqflag if kprobes is cancelled

    If instruction being single stepped caused a page fault, the kprobes
    is cancelled to let the page fault handler continue as a normal page
    fault. But the local irqflags are disabled so cpu will restore pstate
    with DAIF masked. After pagefault is serviced, the kprobes is
    triggerred again, we overwrite the saved_irqflag by calling
    kprobes_save_local_irqflag(). NOTE, DAIF is masked in this new saved
    irqflag. After kprobes is serviced, the cpu pstate is retored with
    DAIF masked.
    
    This patch is inspired by one patch for riscv from Liao Chang.
    
    Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
    Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
    Link: https://lore.kernel.org/r/20210412174101.6bfb0594@xhacker.debian
    Signed-off-by: Will Deacon <will@kernel.org>
    Jisheng Zhang authored and willdeacon committed Apr 13, 2021

Commits on Apr 12, 2021

  1. dmaengine: idxd: fix wq cleanup of WQCFG registers

    A pre-release silicon erratum workaround where wq reset does not clear
    WQCFG registers was leaked into upstream code. Use wq reset command
    instead of blasting the MMIO region. This also address an issue where
    we clobber registers in future devices.
    
    Fixes: da32b28 ("dmaengine: idxd: cleanup workqueue config after disabling")
    Reported-by: Shreenivaas Devarajan <shreenivaas.devarajan@intel.com>
    Signed-off-by: Dave Jiang <dave.jiang@intel.com>
    Link: https://lore.kernel.org/r/161824330020.881560.16375921906426627033.stgit@djiang5-desk3.ch.intel.com
    Signed-off-by: Vinod Koul <vkoul@kernel.org>
    davejiang authored and vinodkoul committed Apr 12, 2021
  2. dmaengine: idxd: clear MSIX permission entry on shutdown

    Add disabling/clearing of MSIX permission entries on device shutdown to
    mirror the enabling of the MSIX entries on probe. Current code left the
    MSIX enabled and the pasid entries still programmed at device shutdown.
    
    Fixes: 8e50d39 ("dmaengine: idxd: Add shared workqueue support")
    Signed-off-by: Dave Jiang <dave.jiang@intel.com>
    Link: https://lore.kernel.org/r/161824457969.882533.6020239898682672311.stgit@djiang5-desk3.ch.intel.com
    Signed-off-by: Vinod Koul <vkoul@kernel.org>
    davejiang authored and vinodkoul committed Apr 12, 2021
  3. Merge tag 'm68knommu-for-v5.12-rc7' of git://git.kernel.org/pub/scm/l…

    …inux/kernel/git/gerg/m68knommu
    
    Pull m68knommu fix from Greg Ungerer:
     "Some m68k platforms with a non-zero memory base fail to boot with the
      recent flatmem changes.
    
      This is a single regression fix to the pfn offset for that case"
    
    * tag 'm68knommu-for-v5.12-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu:
      m68k: fix flatmem memory model setup
    torvalds committed Apr 12, 2021
  4. arm64: mte: Ensure TIF_MTE_ASYNC_FAULT is set atomically

    The entry from EL0 code checks the TFSRE0_EL1 register for any
    asynchronous tag check faults in user space and sets the
    TIF_MTE_ASYNC_FAULT flag. This is not done atomically, potentially
    racing with another CPU calling set_tsk_thread_flag().
    
    Replace the non-atomic ORR+STR with an STSET instruction. While STSET
    requires ARMv8.1 and an assembler that understands LSE atomics, the MTE
    feature is part of ARMv8.5 and already requires an updated assembler.
    
    Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
    Fixes: 637ec83 ("arm64: mte: Handle synchronous and asynchronous tag check faults")
    Cc: <stable@vger.kernel.org> # 5.10.x
    Reported-by: Will Deacon <will@kernel.org>
    Cc: Will Deacon <will@kernel.org>
    Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Link: https://lore.kernel.org/r/20210409173710.18582-1-catalin.marinas@arm.com
    Signed-off-by: Will Deacon <will@kernel.org>
    ctmarinas authored and willdeacon committed Apr 12, 2021
  5. s390/entry: save the caller of psw_idle

    Currently psw_idle does not allocate a stack frame and does not
    save its r14 and r15 into the save area. Even though this is valid from
    call ABI point of view, because psw_idle does not make any calls
    explicitly, in reality psw_idle is an entry point for controlled
    transition into serving interrupts. So, in practice, psw_idle stack
    frame is analyzed during stack unwinding. Depending on build options
    that r14 slot in the save area of psw_idle might either contain a value
    saved by previous sibling call or complete garbage.
    
      [task    0000038000003c28] do_ext_irq+0xd6/0x160
      [task    0000038000003c78] ext_int_handler+0xba/0xe8
      [task   *0000038000003dd8] psw_idle_exit+0x0/0x8 <-- pt_regs
     ([task    0000038000003dd8] 0x0)
      [task    0000038000003e10] default_idle_call+0x42/0x148
      [task    0000038000003e30] do_idle+0xce/0x160
      [task    0000038000003e70] cpu_startup_entry+0x36/0x40
      [task    0000038000003ea0] arch_call_rest_init+0x76/0x80
    
    So, to make a stacktrace nicer and actually point for the real caller of
    psw_idle in this frequently occurring case, make psw_idle save its r14.
    
      [task    0000038000003c28] do_ext_irq+0xd6/0x160
      [task    0000038000003c78] ext_int_handler+0xba/0xe8
      [task   *0000038000003dd8] psw_idle_exit+0x0/0x6 <-- pt_regs
     ([task    0000038000003dd8] arch_cpu_idle+0x3c/0xd0)
      [task    0000038000003e10] default_idle_call+0x42/0x148
      [task    0000038000003e30] do_idle+0xce/0x160
      [task    0000038000003e70] cpu_startup_entry+0x36/0x40
      [task    0000038000003ea0] arch_call_rest_init+0x76/0x80
    
    Reviewed-by: Sven Schnelle <svens@linux.ibm.com>
    Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
    Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
    Vasily Gorbik authored and hcahca committed Apr 12, 2021
  6. s390/entry: avoid setting up backchain in ext|io handlers

    Currently when interrupt arrives to cpu while in kernel context
    INT_HANDLER macro (used for ext_int_handler and io_int_handler)
    allocates new stack frame and pt_regs on the kernel stack and
    sets up the backchain to jump over the pt_regs to the frame which has
    been interrupted. This is not ideal to two reasons:
    
    1. This hides the fact that kernel stack contains interrupt frame in it
       and hence breaks arch_stack_walk_reliable(), which needs to know that to
       guarantee "reliability" and checks that there are no pt_regs on the way.
    
    2. It breaks the backchain unwinder logic, which assumes that the next
       stack frame after an interrupt frame is reliable, while it is not.
       In some cases (when r14 contains garbage) this leads to early unwinding
       termination with an error, instead of marking frame as unreliable
       and continuing.
    
    To address that, only set backchain to 0.
    
    Fixes: 56e62a7 ("s390: convert to generic entry")
    Reviewed-by: Sven Schnelle <svens@linux.ibm.com>
    Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
    Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
    Vasily Gorbik authored and hcahca committed Apr 12, 2021
  7. dmaengine: plx_dma: add a missing put_device() on error path

    Add a missing put_device(&pdev->dev) if the call to
    dma_async_device_register(dma); fails.
    
    Fixes: 905ca51 ("dmaengine: plx-dma: Introduce PLX DMA engine PCI driver skeleton")
    Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
    Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
    Link: https://lore.kernel.org/r/YFnq/0IQzixtAbC1@mwanda
    Signed-off-by: Vinod Koul <vkoul@kernel.org>
    error27 authored and vinodkoul committed Apr 12, 2021
  8. dmaengine: tegra20: Fix runtime PM imbalance on error

    pm_runtime_get_sync() will increase the runtime PM counter
    even it returns an error. Thus a pairing decrement is needed
    to prevent refcount leak. Fix this by replacing this API with
    pm_runtime_resume_and_get(), which will not change the runtime
    PM counter on error.
    
    Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
    Acked-by: Thierry Reding <treding@nvidia.com>
    Link: https://lore.kernel.org/r/20210409082805.23643-1-dinghao.liu@zju.edu.cn
    Signed-off-by: Vinod Koul <vkoul@kernel.org>
    dinghaoliu authored and vinodkoul committed Apr 12, 2021
  9. dmaengine: Fix a double free in dma_async_device_register

    In the first list_for_each_entry() macro of dma_async_device_register,
    it gets the chan from list and calls __dma_async_device_channel_register
    (..,chan). We can see that chan->local is allocated by alloc_percpu() and
    it is freed chan->local by free_percpu(chan->local) when
    __dma_async_device_channel_register() failed.
    
    But after __dma_async_device_channel_register() failed, the caller will
    goto err_out and freed the chan->local in the second time by free_percpu().
    
    The cause of this problem is forget to set chan->local to NULL when
    chan->local was freed in __dma_async_device_channel_register(). My
    patch sets chan->local to NULL when the callee failed to avoid double free.
    
    Fixes: d2fb0a0 ("dmaengine: break out channel registration")
    Signed-off-by: Lv Yunlong <lyl2019@mail.ustc.edu.cn>
    Reviewed-by: Dave Jiang <dave.jiang@intel.com>
    Link: https://lore.kernel.org/r/20210331014458.3944-1-lyl2019@mail.ustc.edu.cn
    Signed-off-by: Vinod Koul <vkoul@kernel.org>
    Yunlongs authored and vinodkoul committed Apr 12, 2021
  10. dmaengine: dw: Make it dependent to HAS_IOMEM

    Some architectures do not provide devm_*() APIs. Hence make the driver
    dependent on HAVE_IOMEM.
    
    Fixes: dbde5c2 ("dw_dmac: use devm_* functions to simplify code")
    Reported-by: kernel test robot <lkp@intel.com>
    Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
    Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
    Link: https://lore.kernel.org/r/20210324141757.24710-1-andriy.shevchenko@linux.intel.com
    Signed-off-by: Vinod Koul <vkoul@kernel.org>
    andy-shev authored and vinodkoul committed Apr 12, 2021
  11. dmaengine: idxd: fix wq size store permission state

    WQ size can only be changed when the device is disabled. Current code
    allows change when device is enabled but wq is disabled. Change the check
    to detect device state.
    
    Fixes: c52ca47 ("dmaengine: idxd: add configuration component of driver")
    Signed-off-by: Dave Jiang <dave.jiang@intel.com>
    Link: https://lore.kernel.org/r/161782558755.107710.18138252584838406025.stgit@djiang5-desk3.ch.intel.com
    Signed-off-by: Vinod Koul <vkoul@kernel.org>
    davejiang authored and vinodkoul committed Apr 12, 2021
  12. dmaengine: idxd: fix opcap sysfs attribute output

    The operation capability register is 256bits. The current output only
    prints out the first 64bits. Fix to output the entire 256bits. The current
    code omits operation caps from IAX devices.
    
    Fixes: c52ca47 ("dmaengine: idxd: add configuration component of driver")
    Reported-by: Lucas Van <lucas.van@intel.com>
    Signed-off-by: Dave Jiang <dave.jiang@intel.com>
    Link: https://lore.kernel.org/r/161645624963.2003736.829798666998490151.stgit@djiang5-desk3.ch.intel.com
    Signed-off-by: Vinod Koul <vkoul@kernel.org>
    davejiang authored and vinodkoul committed Apr 12, 2021
  13. dmaengine: idxd: fix delta_rec and crc size field for completion record

    The delta_rec_size and crc_val in the completion record should
    be 32bits and not 16bits.
    
    Fixes: bfe1d56 ("dmaengine: idxd: Init and probe for Intel data accelerators")
    Reported-by: Nikhil Rao <nikhil.rao@intel.com>
    Signed-off-by: Dave Jiang <dave.jiang@intel.com>
    Link: https://lore.kernel.org/r/161645618572.2003490.14466173451736323035.stgit@djiang5-desk3.ch.intel.com
    Signed-off-by: Vinod Koul <vkoul@kernel.org>
    davejiang authored and vinodkoul committed Apr 12, 2021
  14. dmaengine: idxd: Fix clobbering of SWERR overflow bit on writeback

    Current code blindly writes over the SWERR and the OVERFLOW bits. Write
    back the bits actually read instead so the driver avoids clobbering the
    OVERFLOW bit that comes after the register is read.
    
    Fixes: bfe1d56 ("dmaengine: idxd: Init and probe for Intel data accelerators")
    Reported-by: Sanjay Kumar <sanjay.k.kumar@intel.com>
    Signed-off-by: Dave Jiang <dave.jiang@intel.com>
    Link: https://lore.kernel.org/r/161352082229.3511254.1002151220537623503.stgit@djiang5-desk3.ch.intel.com
    Signed-off-by: Vinod Koul <vkoul@kernel.org>
    davejiang authored and vinodkoul committed Apr 12, 2021

Commits on Apr 11, 2021

  1. m68k: fix flatmem memory model setup

    Detected a broken boot on mcf54415, likely introduced from
    
    commit 4bfc848
    ("m68k/mm: enable use of generic memory_model.h for !DISCONTIGMEM")
    
    Fix ARCH_PFN_OFFSET to be a pfn.
    
    Signed-off-by: Angelo Dureghello <angelo@kernel-space.org>
    Acked-by: Mike Rapoport <rppt@linux.ibm.com>
    Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
    spectrum70 authored and Greg Ungerer committed Apr 11, 2021
  2. Linux 5.12-rc7

    torvalds committed Apr 11, 2021
  3. Merge tag 'for-5.12-rc6-tag' of git://git.kernel.org/pub/scm/linux/ke…

    …rnel/git/kdave/linux
    
    Pull btrfs fix from David Sterba:
     "One more patch that we'd like to get to 5.12 before release.
    
      It's changing where and how the superblock is stored in the zoned
      mode. It is an on-disk format change but so far there are no
      implications for users as the proper mkfs support hasn't been merged
      and is waiting for the kernel side to settle.
    
      Until now, the superblocks were derived from the zone index, but zone
      size can differ per device. This is changed to be based on fixed
      offset values, to make it independent of the device zone size.
    
      The work on that got a bit delayed, we discussed the exact locations
      to support potential device sizes and usecases. (Partially delayed
      also due to my vacation.) Having that in the same release where the
      zoned mode is declared usable is highly desired, there are userspace
      projects that need to be updated to recognize the feature. Pushing
      that to the next release would make things harder to test"
    
    * tag 'for-5.12-rc6-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
      btrfs: zoned: move superblock logging zone location
    torvalds committed Apr 11, 2021
  4. Merge tag 'locking-urgent-2021-04-11' of git://git.kernel.org/pub/scm…

    …/linux/kernel/git/tip/tip
    
    Pull locking fixlets from Ingo Molnar:
     "Two minor fixes: one for a Clang warning, the other improves an
      ambiguous/confusing kernel log message"
    
    * tag 'locking-urgent-2021-04-11' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      lockdep: Address clang -Wformat warning printing for %hd
      lockdep: Add a missing initialization hint to the "INFO: Trying to register non-static key" message
    torvalds committed Apr 11, 2021
  5. Merge tag 'x86_urgent_for_v5.12-rc7' of git://git.kernel.org/pub/scm/…

    …linux/kernel/git/tip/tip
    
    Pull x86 fixes from Borislav Petkov:
    
     - Fix the vDSO exception handling return path to disable interrupts
       again.
    
     - A fix for the CE collector to return the proper return values to its
       callers which are used to convey what the collector has done with the
       error address.
    
    * tag 'x86_urgent_for_v5.12-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
      x86/traps: Correct exc_general_protection() and math_error() return paths
      RAS/CEC: Correct ce_add_elem()'s returned values
    torvalds committed Apr 11, 2021

Commits on Apr 10, 2021

  1. Merge branch 'for-5.12-fixes' of git://git.kernel.org/pub/scm/linux/k…

    …ernel/git/dennis/percpu
    
    Pull percpu fix from Dennis Zhou:
     "This contains a fix for sporadically failing atomic percpu
      allocations.
    
      I only caught it recently while I was reviewing a new series [1] and
      simultaneously saw reports by btrfs in xfstests [2] and [3].
    
      In v5.9, memcg accounting was extended to percpu done by adding a
      second type of chunk. I missed an interaction with the free page float
      count used to ensure we can support atomic allocations. If one type of
      chunk has no free pages, but the other has enough to satisfy the free
      page float requirement, we will not repopulate the free pages for the
      former type of chunk. This led to the sporadically failing atomic
      allocations"
    
    Link: https://lore.kernel.org/linux-mm/20210324190626.564297-1-guro@fb.com/ [1]
    Link: https://lore.kernel.org/linux-mm/20210401185158.3275.409509F4@e16-tech.com/ [2]
    Link: https://lore.kernel.org/linux-mm/CAL3q7H5RNBjCi708GH7jnczAOe0BLnacT9C+OBgA-Dx9jhB6SQ@mail.gmail.com/ [3]
    
    * 'for-5.12-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/dennis/percpu:
      percpu: make pcpu_nr_empty_pop_pages per chunk type
    torvalds committed Apr 10, 2021
  2. Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/g…

    …it/jejb/scsi
    
    Pull SCSI fixes from James Bottomley:
     "Seven fixes, all in drivers.
    
      The hpsa three are the most extensive and the most problematic: it's a
      packed structure misalignment that oopses on ia64 but looks like it
      would also oops on quite a few non-x86 architectures.
    
      The pm80xx is a regression and the rest are bug fixes for patches in
      the misc tree"
    
    * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
      scsi: scsi_transport_srp: Don't block target in SRP_PORT_LOST state
      scsi: target: iscsi: Fix zero tag inside a trace event
      scsi: pm80xx: Fix chip initialization failure
      scsi: ufs: core: Fix wrong Task Tag used in task management request UPIUs
      scsi: ufs: core: Fix task management request completion timeout
      scsi: hpsa: Add an assert to prevent __packed reintroduction
      scsi: hpsa: Fix boot on ia64 (atomic_t alignment)
      scsi: hpsa: Use __packed on individual structs, not header-wide
    torvalds committed Apr 10, 2021
Older