Skip to content
  1. May 26, 2021
  2. May 24, 2021
    • Linus Torvalds's avatar
      Linux 5.13-rc3 · c4681547
      Linus Torvalds authored
      c4681547
    • Linus Torvalds's avatar
      Merge tag 'perf-urgent-2021-05-23' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 6ebb6814
      Linus Torvalds authored
      Pull perf fixes from Thomas Gleixner:
       "Two perf fixes:
      
         - Do not check the LBR_TOS MSR when setting up unrelated LBR MSRs as
           this can cause malfunction when TOS is not supported
      
         - Allocate the LBR XSAVE buffers along with the DS buffers upfront
           because allocating them when adding an event can deadlock"
      
      * tag 'perf-urgent-2021-05-23' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/x86/lbr: Remove cpuc->lbr_xsave allocation from atomic context
        perf/x86: Avoid touching LBR_TOS MSR for Arch LBR
      6ebb6814
    • Linus Torvalds's avatar
      Merge tag 'locking-urgent-2021-05-23' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 0898678c
      Linus Torvalds authored
      Pull locking fixes from Thomas Gleixner:
       "Two locking fixes:
      
         - Invoke the lockdep tracepoints in the correct place so the ordering
           is correct again
      
         - Don't leave the mutex WAITER bit stale when the last waiter is
           dropping out early due to a signal as that forces all subsequent
           lock operations needlessly into the slowpath until it's cleaned up
           again"
      
      * tag 'locking-urgent-2021-05-23' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        locking/mutex: clear MUTEX_FLAGS if wait_list is empty due to signal
        locking/lockdep: Correct calling tracepoints
      0898678c
    • Linus Torvalds's avatar
      Merge tag 'irq-urgent-2021-05-23' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · f73d2a42
      Linus Torvalds authored
      Pull irq fixes from Thomas Gleixner:
       "A few fixes for irqchip drivers:
      
         - Allocate interrupt descriptors correctly on Mainstone PXA when
           SPARSE_IRQ is enabled; otherwise the interrupt association fails
      
         - Make the APPLE AIC chip driver depend on APPLE
      
         - Remove redundant error output on devm_ioremap_resource() failure"
      
      * tag 'irq-urgent-2021-05-23' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        irqchip: Remove redundant error printing
        irqchip/apple-aic: APPLE_AIC should depend on ARCH_APPLE
        ARM: PXA: Fix cplds irqdesc allocation when using legacy mode
      f73d2a42
    • Linus Torvalds's avatar
      Merge tag 'x86_urgent_for_v5.13_rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 7de7ac8d
      Linus Torvalds authored
      Pull x86 fixes from Borislav Petkov:
      
       - Fix how SEV handles MMIO accesses by forwarding potential page faults
         instead of killing the machine and by using the accessors with the
         exact functionality needed when accessing memory.
      
       - Fix a confusion with Clang LTO compiler switches passed to the it
      
       - Handle the case gracefully when VMGEXIT has been executed in
         userspace
      
      * tag 'x86_urgent_for_v5.13_rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/sev-es: Use __put_user()/__get_user() for data accesses
        x86/sev-es: Forward page-faults which happen during emulation
        x86/sev-es: Don't return NULL from sev_es_get_ghcb()
        x86/build: Fix location of '-plugin-opt=' flags
        x86/sev-es: Invalidate the GHCB after completing VMGEXIT
        x86/sev-es: Move sev_es_put_ghcb() in prep for follow on patch
      7de7ac8d
    • Linus Torvalds's avatar
      Merge tag 'powerpc-5.13-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux · 28ceac69
      Linus Torvalds authored
      Pull powerpc fixes from Michael Ellerman:
      
       - Fix breakage of strace (and other ptracers etc.) when using the new
         scv ABI (Power9 or later with glibc >= 2.33).
      
       - Fix early_ioremap() on 64-bit, which broke booting on some machines.
      
      Thanks to Dmitry V. Levin, Nicholas Piggin, Alexey Kardashevskiy, and
      Christophe Leroy.
      
      * tag 'powerpc-5.13-4' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
        powerpc/64s/syscall: Fix ptrace syscall info with scv syscalls
        powerpc/64s/syscall: Use pt_regs.trap to distinguish syscall ABI difference between sc and scv syscalls
        powerpc: Fix early setup to make early_ioremap() work
      28ceac69
  3. May 23, 2021
    • Linus Torvalds's avatar
      Merge tag 'kbuild-fixes-v5.13' of... · 4d762034
      Linus Torvalds authored
      Merge tag 'kbuild-fixes-v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
      
      Pull Kbuild fixes from Masahiro Yamada:
      
       - Fix short log indentation for tools builds
      
       - Fix dummy-tools to adjust to the latest stackprotector check
      
      * tag 'kbuild-fixes-v5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
        kbuild: dummy-tools: adjust to stricter stackprotector check
        scripts/jobserver-exec: Fix a typo ("envirnoment")
        tools build: Fix quiet cmd indentation
      4d762034
    • Linus Torvalds's avatar
      Merge branch 'akpm' (patches from Andrew) · 34c5c898
      Linus Torvalds authored
      Merge misc fixes from Andrew Morton:
       "10 patches.
      
        Subsystems affected by this patch series: mm (pagealloc, gup, kasan,
        and userfaultfd), ipc, selftests, watchdog, bitmap, procfs, and lib"
      
      * emailed patches from Andrew Morton <akpm@linux-foundation.org>:
        userfaultfd: hugetlbfs: fix new flag usage in error path
        lib: kunit: suppress a compilation warning of frame size
        proc: remove Alexey from MAINTAINERS
        linux/bits.h: fix compilation error with GENMASK
        watchdog: reliable handling of timestamps
        kasan: slab: always reset the tag in get_freepointer_safe()
        tools/testing/selftests/exec: fix link error
        ipc/mqueue, msg, sem: avoid relying on a stack reference past its expiry
        Revert "mm/gup: check page posion status for coredump."
        mm/shuffle: fix section mismatch warning
      34c5c898
    • Mike Kravetz's avatar
      userfaultfd: hugetlbfs: fix new flag usage in error path · e32905e5
      Mike Kravetz authored
      In commit d6995da3 ("hugetlb: use page.private for hugetlb specific
      page flags") the use of PagePrivate to indicate a reservation count
      should be restored at free time was changed to the hugetlb specific flag
      HPageRestoreReserve.  Changes to a userfaultfd error path as well as a
      VM_BUG_ON() in remove_inode_hugepages() were overlooked.
      
      Users could see incorrect hugetlb reserve counts if they experience an
      error with a UFFDIO_COPY operation.  Specifically, this would be the
      result of an unlikely copy_huge_page_from_user error.  There is not an
      increased chance of hitting the VM_BUG_ON.
      
      Link: https://lkml.kernel.org/r/20210521233952.236434-1-mike.kravetz@oracle.com
      Fixes: d6995da3
      
       ("hugetlb: use page.private for hugetlb specific page flags")
      Signed-off-by: default avatarMike Kravetz <mike.kravetz@oracle.com>
      Reviewed-by: default avatarMina Almasry <almasry.mina@google.com>
      Cc: Oscar Salvador <osalvador@suse.de>
      Cc: Michal Hocko <mhocko@suse.com>
      Cc: Muchun Song <songmuc...
      e32905e5
    • Zhen Lei's avatar
      lib: kunit: suppress a compilation warning of frame size · 1b6d6393
      Zhen Lei authored
      
      
      lib/bitfield_kunit.c: In function `test_bitfields_constants':
      lib/bitfield_kunit.c:93:1: warning: the frame size of 7456 bytes is larger than 2048 bytes [-Wframe-larger-than=]
       }
       ^
      
      As the description of BITFIELD_KUNIT in lib/Kconfig.debug, it "Only useful
      for kernel devs running the KUnit test harness, and not intended for
      inclusion into a production build".  Therefore, it is not worth modifying
      variable 'test_bitfields_constants' to clear this warning.  Just suppress
      it.
      
      Link: https://lkml.kernel.org/r/20210518094533.7652-1-thunder.leizhen@huawei.com
      Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
      Cc: Shuah Khan <skhan@linuxfoundation.org>
      Cc: Vitor Massaru Iha <vitor@massaru.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      1b6d6393
    • Alexey Dobriyan's avatar
      proc: remove Alexey from MAINTAINERS · 43b2ec97
      Alexey Dobriyan authored
      
      
      People Cc me and I don't have time.
      
      Link: https://lkml.kernel.org/r/YKarMxHJBIhMHQIh@localhost.localdomain
      Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      43b2ec97
    • Rikard Falkeborn's avatar
      linux/bits.h: fix compilation error with GENMASK · f747e666
      Rikard Falkeborn authored
      
      
      GENMASK() has an input check which uses __builtin_choose_expr() to
      enable a compile time sanity check of its inputs if they are known at
      compile time.
      
      However, it turns out that __builtin_constant_p() does not always return
      a compile time constant [0].  It was thought this problem was fixed with
      gcc 4.9 [1], but apparently this is not the case [2].
      
      Switch to use __is_constexpr() instead which always returns a compile time
      constant, regardless of its inputs.
      
      Link: https://lore.kernel.org/lkml/42b4342b-aefc-a16a-0d43-9f9c0d63ba7a@rasmusvillemoes.dk [0]
      Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19449 [1]
      Link: https://lore.kernel.org/lkml/1ac7bbc2-45d9-26ed-0b33-bf382b8d858b@I-love.SAKURA.ne.jp [2]
      Link: https://lkml.kernel.org/r/20210511203716.117010-1-rikard.falkeborn@gmail.com
      Signed-off-by: default avatarRikard Falkeborn <rikard.falkeborn@gmail.com>
      Reported-by: default avatarTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
      Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
      Reviewe...
      f747e666
    • Petr Mladek's avatar
      watchdog: reliable handling of timestamps · 0f90b88d
      Petr Mladek authored
      Commit 9bf3bc94 ("watchdog: cleanup handling of false positives")
      tried to handle a virtual host stopped by the host a more
      straightforward and cleaner way.
      
      But it introduced a risk of false softlockup reports.  The virtual host
      might be stopped at any time, for example between
      kvm_check_and_clear_guest_paused() and is_softlockup().  As a result,
      is_softlockup() might read the updated jiffies and detects a softlockup.
      
      A solution might be to put back kvm_check_and_clear_guest_paused() after
      is_softlockup() and detect it.  But it would put back the cycle that
      complicates the logic.
      
      In fact, the handling of all the timestamps is not reliable.  The code
      does not guarantee when and how many times the timestamps are read.  For
      example, "period_ts" might be touched anytime also from NMI and re-read in
      is_softlockup().  It works just by chance.
      
      Fix all the problems by making the code even more explicit.
      
      1. Make sure that "now" and "period_ts" timestamps are read ...
      0f90b88d
    • Alexander Potapenko's avatar
      kasan: slab: always reset the tag in get_freepointer_safe() · f70b0049
      Alexander Potapenko authored
      
      
      With CONFIG_DEBUG_PAGEALLOC enabled, the kernel should also untag the
      object pointer, as done in get_freepointer().
      
      Failing to do so reportedly leads to SLUB freelist corruptions that
      manifest as boot-time crashes.
      
      Link: https://lkml.kernel.org/r/20210514072228.534418-1-glider@google.com
      Signed-off-by: default avatarAlexander Potapenko <glider@google.com>
      Cc: Marco Elver <elver@google.com>
      Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
      Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>
      Cc: Andrey Konovalov <andreyknvl@gmail.com>
      Cc: Elliot Berman <eberman@codeaurora.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f70b0049
    • Yang Yingliang's avatar
      tools/testing/selftests/exec: fix link error · 4d1cd3b2
      Yang Yingliang authored
      Fix the link error by adding '-static':
      
        gcc -Wall  -Wl,-z,max-page-size=0x1000 -pie load_address.c -o /home/yang/linux/tools/testing/selftests/exec/load_address_4096
        /usr/bin/ld: /tmp/ccopEGun.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `stderr@@GLIBC_2.17' which may bind externally can not be used when making a shared object; recompile with -fPIC
        /usr/bin/ld: /tmp/ccopEGun.o(.text+0x158): unresolvable R_AARCH64_ADR_PREL_PG_HI21 relocation against symbol `stderr@@GLIBC_2.17'
        /usr/bin/ld: final link failed: bad value
        collect2: error: ld returned 1 exit status
        make: *** [Makefile:25: tools/testing/selftests/exec/load_address_4096] Error 1
      
      Link: https://lkml.kernel.org/r/20210514092422.2367367-1-yangyingliang@huawei.com
      Fixes: 206e22f0
      
       ("tools/testing/selftests: add self-test for verifying load alignment")
      Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
      Cc: Chris Kennelly <ckennelly@google.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      4d1cd3b2
    • Varad Gautam's avatar
      ipc/mqueue, msg, sem: avoid relying on a stack reference past its expiry · a11ddb37
      Varad Gautam authored
      do_mq_timedreceive calls wq_sleep with a stack local address.  The
      sender (do_mq_timedsend) uses this address to later call pipelined_send.
      
      This leads to a very hard to trigger race where a do_mq_timedreceive
      call might return and leave do_mq_timedsend to rely on an invalid
      address, causing the following crash:
      
        RIP: 0010:wake_q_add_safe+0x13/0x60
        Call Trace:
         __x64_sys_mq_timedsend+0x2a9/0x490
         do_syscall_64+0x80/0x680
         entry_SYSCALL_64_after_hwframe+0x44/0xa9
        RIP: 0033:0x7f5928e40343
      
      The race occurs as:
      
      1. do_mq_timedreceive calls wq_sleep with the address of `struct
         ext_wait_queue` on function stack (aliased as `ewq_addr` here) - it
         holds a valid `struct ext_wait_queue *` as long as the stack has not
         been overwritten.
      
      2. `ewq_addr` gets added to info->e_wait_q[RECV].list in wq_add, and
         do_mq_timedsend receives it via wq_get_first_waiter(info, RECV) to call
         __pipelined_op.
      
      3. Sender calls __pipelined...
      a11ddb37
    • Michal Hocko's avatar
      Revert "mm/gup: check page posion status for coredump." · f10628d2
      Michal Hocko authored
      While reviewing [1] I came across commit d3378e86 ("mm/gup: check
      page posion status for coredump.") and noticed that this patch is broken
      in two ways.  First it doesn't really prevent hwpoison pages from being
      dumped because hwpoison pages can be marked asynchornously at any time
      after the check.  Secondly, and more importantly, the patch introduces a
      ref count leak because get_dump_page takes a reference on the page which
      is not released.
      
      It also seems that the patch was merged incorrectly because there were
      follow up changes not included as well as discussions on how to address
      the underlying problem [2]
      
      Therefore revert the original patch.
      
      Link: http://lkml.kernel.org/r/20210429122519.15183-4-david@redhat.com [1]
      Link: http://lkml.kernel.org/r/57ac524c-b49a-99ec-c1e4-ef5027bfb61b@redhat.com [2]
      Link: https://lkml.kernel.org/r/20210505135407.31590-1-mhocko@kernel.org
      Fixes: d3378e86
      
       ("mm/gup: check page posion status for coredump.")
      Signed-off-by: default avatarMichal Hocko <mhocko@suse.com>
      Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
      Cc: Aili Yao <yaoaili@kingsoft.com>
      Cc: <stable@vger.kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f10628d2
    • Arnd Bergmann's avatar
      mm/shuffle: fix section mismatch warning · f9f74dc2
      Arnd Bergmann authored
      
      
      clang sometimes decides not to inline shuffle_zone(), but it calls a
      __meminit function.  Without the extra __meminit annotation we get this
      warning:
      
        WARNING: modpost: vmlinux.o(.text+0x2a86d4): Section mismatch in reference from the function shuffle_zone() to the function .meminit.text:__shuffle_zone()
        The function shuffle_zone() references
        the function __meminit __shuffle_zone().
        This is often because shuffle_zone lacks a __meminit
        annotation or the annotation of __shuffle_zone is wrong.
      
      shuffle_free_memory() did not show the same problem in my tests, but it
      could happen in theory as well, so mark both as __meminit.
      
      Link: https://lkml.kernel.org/r/20210514135952.2928094-1-arnd@kernel.org
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Reviewed-by: default avatarDavid Hildenbrand <david@redhat.com>
      Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
      Cc: Nick Desaulniers <ndesaulniers@google.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Wei Yang <richard.weiyang@linux.alibaba.com>
      Cc: Dan Williams <dan.j.williams@intel.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      f9f74dc2
    • Linus Torvalds's avatar
      Merge tag 'block-5.13-2021-05-22' of git://git.kernel.dk/linux-block · 4ff2473b
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - Fix BLKRRPART and deletion race (Gulam, Christoph)
      
       - NVMe pull request (Christoph):
            - nvme-tcp corruption and timeout fixes (Sagi Grimberg, Keith
              Busch)
            - nvme-fc teardown fix (James Smart)
            - nvmet/nvme-loop memory leak fixes (Wu Bo)"
      
      * tag 'block-5.13-2021-05-22' of git://git.kernel.dk/linux-block:
        block: fix a race between del_gendisk and BLKRRPART
        block: prevent block device lookups at the beginning of del_gendisk
        nvme-fc: clear q_live at beginning of association teardown
        nvme-tcp: rerun io_work if req_list is not empty
        nvme-tcp: fix possible use-after-completion
        nvme-loop: fix memory leak in nvme_loop_create_ctrl()
        nvmet: fix memory leak in nvmet_alloc_ctrl()
      4ff2473b
    • Linus Torvalds's avatar
      Merge tag 'io_uring-5.13-2021-05-22' of git://git.kernel.dk/linux-block · b9231dfb
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
       "One fix for a regression with poll in this merge window, and another
        just hardens the io-wq exit path a bit"
      
      * tag 'io_uring-5.13-2021-05-22' of git://git.kernel.dk/linux-block:
        io_uring: fortify tctx/io_wq cleanup
        io_uring: don't modify req->poll for rw
      b9231dfb
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.13b-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · 23d72926
      Linus Torvalds authored
      Pull xen fixes from Juergen Gross:
      
       - a fix for a boot regression when running as PV guest on hardware
         without NX support
      
       - a small series fixing a bug in the Xen pciback driver when
         configuring a PCI card with multiple virtual functions
      
      * tag 'for-linus-5.13b-rc3-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen-pciback: reconfigure also from backend watch handler
        xen-pciback: redo VF placement in the virtual topology
        x86/Xen: swap NX determination and GDT setup on BSP
      23d72926
  4. May 22, 2021
    • Linus Torvalds's avatar
      Merge tag 'xfs-5.13-fixes-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux · a3969ef4
      Linus Torvalds authored
      Pull xfs fixes from Darrick Wong:
      
       - Fix some math errors in the realtime allocator when extent size hints
         are applied.
      
       - Fix unnecessary short writes to realtime files when free space is
         fragmented.
      
       - Fix a crash when using scrub tracepoints.
      
       - Restore ioctl uapi definitions that were accidentally removed in
         5.13-rc1.
      
      * tag 'xfs-5.13-fixes-1' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
        xfs: restore old ioctl definitions
        xfs: fix deadlock retry tracepoint arguments
        xfs: retry allocations when locality-based search fails
        xfs: adjust rt allocation minlen when extszhint > rtextsize
      a3969ef4
    • Linus Torvalds's avatar
      Merge tag 'for-5.13-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux · 45af60e7
      Linus Torvalds authored
      Pull btrfs fixes from David Sterba:
       "A few more fixes:
      
         - fix unaligned compressed writes in zoned mode
      
         - fix false positive lockdep warning when cloning inline extent
      
         - remove wrong BUG_ON in tree-log error handling"
      
      * tag 'for-5.13-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
        btrfs: zoned: fix parallel compressed writes
        btrfs: zoned: pass start block to btrfs_use_zone_append
        btrfs: do not BUG_ON in link_to_fixup_dir
        btrfs: release path before starting transaction when cloning inline extent
      45af60e7
    • Linus Torvalds's avatar
      Merge tag '5.13-rc3-smb3' of git://git.samba.org/sfrench/cifs-2.6 · 8bb14ca1
      Linus Torvalds authored
      Pull cifs fixes from Steve French:
       "Seven smb3 fixes: one for stable, three others fix problems found in
        testing handle leases, and a compounded request fix"
      
      * tag '5.13-rc3-smb3' of git://git.samba.org/sfrench/cifs-2.6:
        Fix KASAN identified use-after-free issue.
        Defer close only when lease is enabled.
        Fix kernel oops when CONFIG_DEBUG_ATOMIC_SLEEP is enabled.
        cifs: Fix inconsistent indenting
        cifs: fix memory leak in smb2_copychunk_range
        SMB3: incorrect file id in requests compounded with open
        cifs: remove deadstore in cifs_close_all_deferred_files()
      8bb14ca1
    • Linus Torvalds's avatar
      Merge tag 'gpio-fixes-for-v5.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux · e8085a07
      Linus Torvalds authored
      Pull gpio fixes from Bartosz Golaszewski:
      
       - add missing MODULE_DEVICE_TABLE in gpio-cadence
      
       - fix a kernel doc validator error in gpio-xilinx
      
       - don't set parent IRQ affinity in gpio-tegra186
      
      * tag 'gpio-fixes-for-v5.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
        gpio: tegra186: Don't set parent IRQ affinity
        gpio: xilinx: Correct kernel doc for xgpio_probe()
        gpio: cadence: Add missing MODULE_DEVICE_TABLE
      e8085a07
    • Linus Torvalds's avatar
      Merge tag 'mmc-v5.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc · 011ff616
      Linus Torvalds authored
      Pull MMC host fixes from Ulf Hansson:
      
       - Fix SD-card detection on Intel NUC10i3FNK4 (GL9755)
      
       - Replace WARN_ONCE with dev_warn_once for scatterlist offsets
      
       - Extend check of scatterlist size alignment with SD_IO_RW_EXTENDED
      
      * tag 'mmc-v5.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
        mmc: sdhci-pci-gli: increase 1.8V regulator wait
        mmc: meson-gx: also check SD_IO_RW_EXTENDED for scatterlist size alignment
        mmc: meson-gx: make replace WARN_ONCE with dev_warn_once about scatterlist offset alignment
      011ff616
    • Linus Torvalds's avatar
      Merge tag 'devicetree-fixes-for-5.13-2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux · 5328bf8b
      Linus Torvalds authored
      Pull devicetree fixes from Rob Herring:
      
       - Another batch of removing unneeded type references in schemas
      
       - Fix some out of date filename references
      
       - Convert renesas,drif schema to use DT graph schema
      
      * tag 'devicetree-fixes-for-5.13-2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
        dt-bindings: More removals of type references on common properties
        dt-bindings: media: renesas,drif: Use graph schema
        leds: Fix reference file name of documentation
        dt-bindings: phy: cadence-torrent: update reference file of docs
      5328bf8b
    • Linus Torvalds's avatar
      Merge branch 'for-v5.13-rc3' of... · a0e31f3a
      Linus Torvalds authored
      Merge branch 'for-v5.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace
      
      Pull siginfo fix from Eric Biederman:
       "During the merge window an issue with si_perf and the siginfo ABI came
        up. The alpha and sparc siginfo structure layout had changed with the
        addition of SIGTRAP TRAP_PERF and the new field si_perf.
      
        The reason only alpha and sparc were affected is that they are the
        only architectures that use si_trapno.
      
        Looking deeper it was discovered that si_trapno is used for only a few
        select signals on alpha and sparc, and that none of the other
        _sigfault fields past si_addr are used at all. Which means technically
        no regression on alpha and sparc.
      
        While the alignment concerns might be dismissed the abuse of si_errno
        by SIGTRAP TRAP_PERF does have the potential to cause regressions in
        existing userspace.
      
        While we still have time before userspace starts using and depending
        on the new definition siginfo for SIGTRAP TRAP_PERF this set of
        changes cleans up siginfo_t.
      
         - The si_trapno field is demoted from magic alpha and sparc status
           and made an ordinary union member of the _sigfault member of
           siginfo_t. Without moving it of course.
      
         - si_perf is replaced with si_perf_data and si_perf_type ending the
           abuse of si_errno.
      
         - Unnecessary additions to signalfd_siginfo are removed"
      
      * 'for-v5.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace:
        signalfd: Remove SIL_PERF_EVENT fields from signalfd_siginfo
        signal: Deliver all of the siginfo perf data in _perf
        signal: Factor force_sig_perf out of perf_sigtrap
        signal: Implement SIL_FAULT_TRAPNO
        siginfo: Move si_trapno inside the union inside _si_fault
      a0e31f3a
    • Linus Torvalds's avatar
      Merge tag 'modules-for-v5.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux · c1f47ebc
      Linus Torvalds authored
      Pull module fix from Jessica Yu:
       "When CONFIG_MODULE_UNLOAD=n, module exit sections get sorted into the
        init region of the module in order to satisfy the requirements of
        jump_labels and static_calls.
      
        Previously, the exit section check was done in module_init_section(),
        but the solution there is not completely arch-indepedent as ARM is a
        special case and supplies its own module_init_section() function.
      
        Instead of pushing this logic further to the arch-specific code,
        switch to an arch-independent solution to check for module exit
        sections in the core module loader code in layout_sections() instead"
      
      * tag 'modules-for-v5.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux:
        module: check for exit sections in layout_sections() instead of module_init_section()
      c1f47ebc
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://github.com/openrisc/linux · 93bb533a
      Linus Torvalds authored
      Pull OpenRISC fixes from Stafford Horne:
       "A few fixes that came in around the time of the merge window"
      
      * tag 'for-linus' of git://github.com/openrisc/linux:
        openrisc: Define memory barrier mb
        openrisc: mm/init.c: remove unused variable 'end' in paging_init()
        openrisc: mm/init.c: remove unused memblock_region variable in map_ram()
        openrisc: Fix a memory leak
      93bb533a
  5. May 21, 2021
    • Jan Beulich's avatar
      xen-pciback: reconfigure also from backend watch handler · c81d3d24
      Jan Beulich authored
      
      
      When multiple PCI devices get assigned to a guest right at boot, libxl
      incrementally populates the backend tree. The writes for the first of
      the devices trigger the backend watch. In turn xen_pcibk_setup_backend()
      will set the XenBus state to Initialised, at which point no further
      reconfigures would happen unless a device got hotplugged. Arrange for
      reconfigure to also get triggered from the backend watch handler.
      
      Signed-off-by: default avatarJan Beulich <jbeulich@suse.com>
      Cc: stable@vger.kernel.org
      Reviewed-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
      Link: https://lore.kernel.org/r/2337cbd6-94b9-4187-9862-c03ea12e0c61@suse.com
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      c81d3d24
    • Jan Beulich's avatar
      xen-pciback: redo VF placement in the virtual topology · 4ba50e7c
      Jan Beulich authored
      The commit referenced below was incomplete: It merely affected what
      would get written to the vdev-<N> xenstore node. The guest would still
      find the function at the original function number as long as
      __xen_pcibk_get_pci_dev() wouldn't be in sync. The same goes for AER wrt
      __xen_pcibk_get_pcifront_dev().
      
      Undo overriding the function to zero and instead make sure that VFs at
      function zero remain alone in their slot. This has the added benefit of
      improving overall capacity, considering that there's only a total of 32
      slots available right now (PCI segment and bus can both only ever be
      zero at present).
      
      Fixes: 8a5248fe
      
       ("xen PV passthru: assign SR-IOV virtual functions to separate virtual slots")
      Signed-off-by: default avatarJan Beulich <jbeulich@suse.com>
      Cc: stable@vger.kernel.org
      Reviewed-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
      Link: https://lore.kernel.org/r/8def783b-404c-3452-196d-3f3fd4d72c9e@suse.com
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      4ba50e7c
    • Jan Beulich's avatar
      x86/Xen: swap NX determination and GDT setup on BSP · ae897fda
      Jan Beulich authored
      xen_setup_gdt(), via xen_load_gdt_boot(), wants to adjust page tables.
      For this to work when NX is not available, x86_configure_nx() needs to
      be called first.
      
      [jgross] Note that this is a revert of 36104cb9 ("x86/xen:
      Delay get_cpu_cap until stack canary is established"), which is possible
      now that we no longer support running as PV guest in 32-bit mode.
      
      Cc: <stable.vger.kernel.org> # 5.9
      Fixes: 36104cb9
      
       ("x86/xen: Delay get_cpu_cap until stack canary is established")
      Reported-by: default avatarOlaf Hering <olaf@aepfle.de>
      Signed-off-by: default avatarJan Beulich <jbeulich@suse.com>
      Reviewed-by: default avatarJuergen Gross <jgross@suse.com>
      
      Link: https://lore.kernel.org/r/12a866b0-9e89-59f7-ebeb-a2a6cec0987a@suse.com
      Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
      ae897fda
    • Linus Torvalds's avatar
      Merge tag 'drm-fixes-2021-05-21-1' of git://anongit.freedesktop.org/drm/drm · 79a106fc
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Usual collection, mostly amdgpu and some i915 regression fixes. I
        nearly managed to hose my build/sign machine this week, but I
        recovered it just in time, and I even got clang12 built.
      
        dma-buf:
         - WARN fix
      
        amdgpu:
         - Fix downscaling ratio on DCN3.x
         - Fix for non-4K pages
         - PCO/RV compute hang fix
         - Dongle fix
         - Aldebaran codec query support
         - Refcount leak fix
         - Use after free fix
         - Navi12 golden settings updates
         - GPU reset fixes
      
        radeon:
         - Fix for imported BO handling
      
        i915:
         - Pin the L-shape quirked object as unshrinkable to fix crashes
         - Disable HiZ Raw Stall Optimization on broken gen7 to fix glitches,
           gfx corruption
         - GVT: Move mdev attribute groups into kvmgt module to fix kconfig
           deps issue
      
        exynos:
         - Correct kerneldoc of fimd_shadow_protect_win function
         - Drop redundant error messages"
      
      * tag 'drm-fixes-2021-05-21-1'...
      79a106fc
    • Dave Airlie's avatar
      Merge tag 'amd-drm-fixes-5.13-2021-05-19' of... · dd6ad051
      Dave Airlie authored
      
      Merge tag 'amd-drm-fixes-5.13-2021-05-19' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes
      
      amd-drm-fixes-5.13-2021-05-19:
      
      amdgpu:
      - Fix downscaling ratio on DCN3.x
      - Fix for non-4K pages
      - PCO/RV compute hang fix
      - Dongle fix
      - Aldebaran codec query support
      - Refcount leak fix
      - Use after free fix
      - Navi12 golden settings updates
      - GPU reset fixes
      
      radeon:
      - Fix for imported BO handling
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Alex Deucher <alexander.deucher@amd.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210520022500.4023-1-alexander.deucher@amd.com
      dd6ad051
    • Dave Airlie's avatar
      Merge tag 'drm-intel-fixes-2021-05-20' of... · 4996c342
      Dave Airlie authored
      
      Merge tag 'drm-intel-fixes-2021-05-20' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes
      
      drm/i915 fixes for v5.13-rc3:
      - Pin the L-shape quirked object as unshrinkable to fix crashes
      - Disable HiZ Raw Stall Optimization on broken gen7 to fix glitches, gfx corruption
      - GVT: Move mdev attribute groups into kvmgt module to fix kconfig deps issue
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Jani Nikula <jani.nikula@intel.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/87a6opehx6.fsf@intel.com
      4996c342
    • Dave Airlie's avatar
      Merge tag 'drm-misc-fixes-2021-05-20' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes · af8d80bf
      Dave Airlie authored
      
      
      Just a single fix for a dma-buf related WARN
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Maxime Ripard <maxime@cerno.tech>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210520140808.ds6bk6i3oarmiea6@gilmour
      af8d80bf
    • Dave Airlie's avatar
      Merge tag 'exynos-drm-fixes-for-v5.13-rc3' of... · 7544f3ee
      Dave Airlie authored
      
      Merge tag 'exynos-drm-fixes-for-v5.13-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos into drm-fixes
      
      Fixup
      - Correct kerneldoc of fimd_shadow_protect_win function.
      
      Cleanup
      - Drop redundant error messages.
      
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Inki Dae <inki.dae@samsung.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20210520034747.257687-1-inki.dae@samsung.com
      7544f3ee
    • Linus Torvalds's avatar
      Merge tag 'arm-soc-fixes-5.13-1' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc · ba816d3c
      Linus Torvalds authored
      Pull ARM SoC fixes from Arnd Bergmann:
       "Only a small number of fixes so far, including some that I had applied
        during the merge window, so this is based on the original merge of the
        other branches.
      
         - The largest change is a fix for a reference counting bug in the AMD
           TEE driver.
      
         - Neil Armstrong now co-maintains Amlogic SoC support
      
         - Two build warning fixes for renesas device tree files
      
         - A sign expansion bug for optee
      
         - A DT binding fix for a mismerge"
      
      * tag 'arm-soc-fixes-5.13-1' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc:
        ARM: npcm: wpcm450: select interrupt controller driver
        MAINTAINERS: ARM/Amlogic SoCs: add Neil as primary maintainer
        tee: amdtee: unload TA only when its refcount becomes 0
        dt-bindings: nvmem: mediatek: remove duplicate mt8192 line
        firmware: arm_scmi: Remove duplicate declaration of struct scmi_protocol_handle
        firmware: arm_scpi: Prevent th...
      ba816d3c