1. 22 Feb, 2021 18 commits
    • Josef Bacik's avatar
      nbd: handle device refs for DESTROY_ON_DISCONNECT properly · c9a2f90f
      Josef Bacik authored
      There exists a race where we can be attempting to create a new nbd
      configuration while a previous configuration is going down, both
      configured with DESTROY_ON_DISCONNECT.  Normally devices all have a
      reference of 1, as they won't be cleaned up until the module is torn
      down.  However with DESTROY_ON_DISCONNECT we'll make sure that there is
      only 1 reference (generally) on the device for the config itself, and
      then once the config is dropped, the device is torn down.
      
      The race that exists looks like this
      
      TASK1					TASK2
      nbd_genl_connect()
        idr_find()
          refcount_inc_not_zero(nbd)
            * count is 2 here ^^
      					nbd_config_put()
      					  nbd_put(nbd) (count is 1)
          setup new config
            check DESTROY_ON_DISCONNECT
      	put_dev = true
          if (put_dev) nbd_put(nbd)
      	* free'd here ^^
      
      In nbd_genl_connect() we assume that the nbd ref count will be 2,
      however clearly that won't be true if the nbd device had been setup as
      DESTROY_ON_DISCONNECT with its prior configuration.  Fix this by getting
      rid of the runtime flag to check if we need to mess with the nbd device
      refcount, and use the device NBD_DESTROY_ON_DISCONNECT flag to check if
      we need to adjust the ref counts.  This was reported by syzkaller with
      the following kasan dump
      
      BUG: KASAN: use-after-free in instrument_atomic_read include/linux/instrumented.h:71 [inline]
      BUG: KASAN: use-after-free in atomic_read include/asm-generic/atomic-instrumented.h:27 [inline]
      BUG: KASAN: use-after-free in refcount_dec_not_one+0x71/0x1e0 lib/refcount.c:76
      Read of size 4 at addr ffff888143bf71a0 by task systemd-udevd/8451
      
      CPU: 0 PID: 8451 Comm: systemd-udevd Not tainted 5.11.0-rc7-syzkaller #0
      Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
      Call Trace:
       __dump_stack lib/dump_stack.c:79 [inline]
       dump_stack+0x107/0x163 lib/dump_stack.c:120
       print_address_description.constprop.0.cold+0x5b/0x2f8 mm/kasan/report.c:230
       __kasan_report mm/kasan/report.c:396 [inline]
       kasan_report.cold+0x79/0xd5 mm/kasan/report.c:413
       check_memory_region_inline mm/kasan/generic.c:179 [inline]
       check_memory_region+0x13d/0x180 mm/kasan/generic.c:185
       instrument_atomic_read include/linux/instrumented.h:71 [inline]
       atomic_read include/asm-generic/atomic-instrumented.h:27 [inline]
       refcount_dec_not_one+0x71/0x1e0 lib/refcount.c:76
       refcount_dec_and_mutex_lock+0x19/0x140 lib/refcount.c:115
       nbd_put drivers/block/nbd.c:248 [inline]
       nbd_release+0x116/0x190 drivers/block/nbd.c:1508
       __blkdev_put+0x548/0x800 fs/block_dev.c:1579
       blkdev_put+0x92/0x570 fs/block_dev.c:1632
       blkdev_close+0x8c/0xb0 fs/block_dev.c:1640
       __fput+0x283/0x920 fs/file_table.c:280
       task_work_run+0xdd/0x190 kernel/task_work.c:140
       tracehook_notify_resume include/linux/tracehook.h:189 [inline]
       exit_to_user_mode_loop kernel/entry/common.c:174 [inline]
       exit_to_user_mode_prepare+0x249/0x250 kernel/entry/common.c:201
       __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
       syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:294
       entry_SYSCALL_64_after_hwframe+0x44/0xa9
      RIP: 0033:0x7fc1e92b5270
      Code: 73 01 c3 48 8b 0d 38 7d 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d 59 c1 20 00 00 75 10 b8 03 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 ee fb ff ff 48 89 04 24
      RSP: 002b:00007ffe8beb2d18 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
      RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007fc1e92b5270
      RDX: 000000000aba9500 RSI: 0000000000000000 RDI: 0000000000000007
      RBP: 00007fc1ea16f710 R08: 000000000000004a R09: 0000000000000008
      R10: 0000562f8cb0b2a8 R11: 0000000000000246 R12: 0000000000000000
      R13: 0000562f8cb0afd0 R14: 0000000000000003 R15: 000000000000000e
      
      Allocated by task 1:
       kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38
       kasan_set_track mm/kasan/common.c:46 [inline]
       set_alloc_info mm/kasan/common.c:401 [inline]
       ____kasan_kmalloc.constprop.0+0x82/0xa0 mm/kasan/common.c:429
       kmalloc include/linux/slab.h:552 [inline]
       kzalloc include/linux/slab.h:682 [inline]
       nbd_dev_add+0x44/0x8e0 drivers/block/nbd.c:1673
       nbd_init+0x250/0x271 drivers/block/nbd.c:2394
       do_one_initcall+0x103/0x650 init/main.c:1223
       do_initcall_level init/main.c:1296 [inline]
       do_initcalls init/main.c:1312 [inline]
       do_basic_setup init/main.c:1332 [inline]
       kernel_init_freeable+0x605/0x689 init/main.c:1533
       kernel_init+0xd/0x1b8 init/main.c:1421
       ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296
      
      Freed by task 8451:
       kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38
       kasan_set_track+0x1c/0x30 mm/kasan/common.c:46
       kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:356
       ____kasan_slab_free+0xe1/0x110 mm/kasan/common.c:362
       kasan_slab_free include/linux/kasan.h:192 [inline]
       slab_free_hook mm/slub.c:1547 [inline]
       slab_free_freelist_hook+0x5d/0x150 mm/slub.c:1580
       slab_free mm/slub.c:3143 [inline]
       kfree+0xdb/0x3b0 mm/slub.c:4139
       nbd_dev_remove drivers/block/nbd.c:243 [inline]
       nbd_put.part.0+0x180/0x1d0 drivers/block/nbd.c:251
       nbd_put drivers/block/nbd.c:295 [inline]
       nbd_config_put+0x6dd/0x8c0 drivers/block/nbd.c:1242
       nbd_release+0x103/0x190 drivers/block/nbd.c:1507
       __blkdev_put+0x548/0x800 fs/block_dev.c:1579
       blkdev_put+0x92/0x570 fs/block_dev.c:1632
       blkdev_close+0x8c/0xb0 fs/block_dev.c:1640
       __fput+0x283/0x920 fs/file_table.c:280
       task_work_run+0xdd/0x190 kernel/task_work.c:140
       tracehook_notify_resume include/linux/tracehook.h:189 [inline]
       exit_to_user_mode_loop kernel/entry/common.c:174 [inline]
       exit_to_user_mode_prepare+0x249/0x250 kernel/entry/common.c:201
       __syscall_exit_to_user_mode_work kernel/entry/common.c:283 [inline]
       syscall_exit_to_user_mode+0x19/0x50 kernel/entry/common.c:294
       entry_SYSCALL_64_after_hwframe+0x44/0xa9
      
      The buggy address belongs to the object at ffff888143bf7000
       which belongs to the cache kmalloc-1k of size 1024
      The buggy address is located 416 bytes inside of
       1024-byte region [ffff888143bf7000, ffff888143bf7400)
      The buggy address belongs to the page:
      page:000000005238f4ce refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x143bf0
      head:000000005238f4ce order:3 compound_mapcount:0 compound_pincount:0
      flags: 0x57ff00000010200(slab|head)
      raw: 057ff00000010200 ffffea00004b1400 0000000300000003 ffff888010c41140
      raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000
      page dumped because: kasan: bad access detected
      
      Memory state around the buggy address:
       ffff888143bf7080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
       ffff888143bf7100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
      >ffff888143bf7180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                     ^
       ffff888143bf7200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
      
      Reported-and-tested-by: syzbot+429d3f82d757c211bff3@syzkaller.appspotmail.com
      Signed-off-by: default avatarJosef Bacik <josef@toxicpanda.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      c9a2f90f
    • Yang Yang's avatar
      kyber: introduce kyber_depth_updated() · ffa772cf
      Yang Yang authored
      Hang occurs when user changes the scheduler queue depth, by writing to
      the 'nr_requests' sysfs file of that device.
      
      The details of the environment that we found the problem are as follows:
        an eMMC block device
        total driver tags: 16
        default queue_depth: 32
        kqd->async_depth initialized in kyber_init_sched() with queue_depth=32
      
      Then we change queue_depth to 256, by writing to the 'nr_requests' sysfs
      file. But kqd->async_depth don't be updated after queue_depth changes.
      Now the value of async depth is too small for queue_depth=256, this may
      cause hang.
      
      This patch introduces kyber_depth_updated(), so that kyber can update
      async depth when queue depth changes.
      Signed-off-by: default avatarYang Yang <yang.yang@vivo.com>
      Reviewed-by: default avatarOmar Sandoval <osandov@fb.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      ffa772cf
    • Mauricio Faria de Oliveira's avatar
      loop: fix I/O error on fsync() in detached loop devices · 4ceddce5
      Mauricio Faria de Oliveira authored
      There's an I/O error on fsync() in a detached loop device
      if it has been previously attached.
      
      The issue is write cache is enabled in the attach path in
      loop_configure() but it isn't disabled in the detach path;
      thus it remains enabled in the block device regardless of
      whether it is attached or not.
      
      Now fsync() can get an I/O request that will just be failed
      later in loop_queue_rq() as device's state is not 'Lo_bound'.
      
      So, disable write cache in the detach path.
      
      Do so based on the queue flag, not the loop device flag for
      read-only (used to enable) as the queue flag can be changed
      via sysfs even on read-only loop devices (e.g., losetup -r.)
      
      Test-case:
      
          # DEV=/dev/loop7
      
          # IMG=/tmp/image
          # truncate --size 1M $IMG
      
          # losetup $DEV $IMG
          # losetup -d $DEV
      
      Before:
      
          # strace -e fsync parted -s $DEV print 2>&1 | grep fsync
          fsync(3)                                = -1 EIO (Input/output error)
          Warning: Error fsyncing/closing /dev/loop7: Input/output error
          [  982.529929] blk_update_request: I/O error, dev loop7, sector 0 op 0x1:(WRITE) flags 0x800 phys_seg 0 prio class 0
      
      After:
      
          # strace -e fsync parted -s $DEV print 2>&1 | grep fsync
          fsync(3)                                = 0
      Co-developed-by: default avatarEric Desrochers <eric.desrochers@canonical.com>
      Signed-off-by: default avatarEric Desrochers <eric.desrochers@canonical.com>
      Signed-off-by: default avatarMauricio Faria de Oliveira <mfo@canonical.com>
      Tested-by: default avatarGabriel Krisman Bertazi <krisman@collabora.com>
      Reviewed-by: default avatarMing Lei <ming.lei@redhat.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      4ceddce5
    • Jeffle Xu's avatar
      block: fix potential IO hang when turning off io_poll · 6b09b4d3
      Jeffle Xu authored
      QUEUE_FLAG_POLL flag will be cleared when turning off 'io_poll', while
      at that moment there may be IOs stuck in hw queue uncompleted. The
      following polling routine won't help reap these IOs, since blk_poll()
      will return immediately because of cleared QUEUE_FLAG_POLL flag. Thus
      these IOs will hang until they finnaly time out. The hang out can be
      observed by 'fio --engine=io_uring iodepth=1', while turning off
      'io_poll' at the same time.
      
      To fix this, freeze and flush the request queue first when turning off
      'io_poll'.
      Signed-off-by: default avatarJeffle Xu <jefflexu@linux.alibaba.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      6b09b4d3
    • Chaitanya Kulkarni's avatar
      block: get rid of the trace rq insert wrapper · b357e4a6
      Chaitanya Kulkarni authored
      Get rid of the wrapper for trace_block_rq_insert() and call the function
      directly.
      Signed-off-by: default avatarChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
      Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
      Reviewed-by: default avatarDamien Le Moal <damien.lemoal@wdc.com>
      Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      b357e4a6
    • Chaitanya Kulkarni's avatar
      blktrace: fix blk_rq_merge documentation · b0719245
      Chaitanya Kulkarni authored
      The commit f3bdc62f ("blktrace: Provide event for request merging")
      added the comment for blk_rq_merge() tracepoint. Remove the duplicate
      word from the tracepoint documentation.
      
      Fixes: f3bdc62f ("blktrace: Provide event for request merging")
      Signed-off-by: default avatarChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
      Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
      Reviewed-by: default avatarDamien Le Moal <damien.lemoal@wdc.com>
      Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      b0719245
    • Chaitanya Kulkarni's avatar
      blktrace: fix blk_rq_issue documentation · c7ff6519
      Chaitanya Kulkarni authored
      The commit 881245dc ("Add DocBook documentation for the block tracepoints.")
      added the comment for blk_rq_issue() tracepoint. Remove the duplicate
      word from the tracepoint documentation.
      
      Fixes: 881245dc ("Add DocBook documentation for the block tracepoints.")
      Signed-off-by: default avatarChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
      Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
      Reviewed-by: default avatarDamien Le Moal <damien.lemoal@wdc.com>
      Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      c7ff6519
    • Chaitanya Kulkarni's avatar
      blktrace: add blk_fill_rwbs documentation comment · 1f83bb4b
      Chaitanya Kulkarni authored
      blk_fill_rwbs() is an expoted function, add kernel style documentation
      comment.
      Signed-off-by: default avatarChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
      Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
      Reviewed-by: default avatarDamien Le Moal <damien.lemoal@wdc.com>
      Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      1f83bb4b
    • Chaitanya Kulkarni's avatar
      block: remove superfluous param in blk_fill_rwbs() · 179d1600
      Chaitanya Kulkarni authored
      The last parameter for the function blk_fill_rwbs() was added in
      5782138e47 ("tracing/events: convert block trace points to
      TRACE_EVENT()") in order to signal read request and use of that parameter
      was replaced with using switch case REQ_OP_READ with
      1b9a9ab7 ("blktrace: use op accessors"), but the parameter was never
      removed.
      
      Remove the unused parameter and adjust the respective call sites.
      
      Fixes: 1b9a9ab7 ("blktrace: use op accessors")
      Signed-off-by: default avatarChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
      Reviewed-by: default avatarJohannes Thumshirn <johannes.thumshirn@wdc.com>
      Reviewed-by: default avatarDamien Le Moal <damien.lemoal@wdc.com>
      Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      179d1600
    • Bart Van Assche's avatar
      block: Remove unused blk_pm_*() function definitions · 9fb40717
      Bart Van Assche authored
      Commit a1ce35fa ("block: remove dead elevator code") removed the last
      callers of blk_pm_requeue_request(), blk_pm_add_request() and
      blk_pm_put_request(). Hence remove the definitions of these functions.
      Removing these functions removes all users of the struct request nr_pending
      member. Hence also remove 'nr_pending'. Note: 'nr_pending' is no longer
      used since commit 7cedffec ("block: Make blk_get_request() block for
      non-PM requests while suspended").
      
      Cc: Alan Stern <stern@rowland.harvard.edu>
      Cc: Christoph Hellwig <hch@lst.de>
      Signed-off-by: default avatarBart Van Assche <bvanassche@acm.org>
      Reviewed-by: default avatarChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
      Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
      9fb40717
    • Linus Torvalds's avatar
      Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · 31caf8b2
      Linus Torvalds authored
      Pull crypto update from Herbert Xu:
       "API:
         - Restrict crypto_cipher to internal API users only.
      
        Algorithms:
         - Add x86 aesni acceleration for cts.
         - Improve x86 aesni acceleration for xts.
         - Remove x86 acceleration of some uncommon algorithms.
         - Remove RIPE-MD, Tiger and Salsa20.
         - Remove tnepres.
         - Add ARM acceleration for BLAKE2s and BLAKE2b.
      
        Drivers:
         - Add Keem Bay OCS HCU driver.
         - Add Marvell OcteonTX2 CPT PF driver.
         - Remove PicoXcell driver.
         - Remove mediatek driver"
      
      * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: (154 commits)
        hwrng: timeriomem - Use device-managed registration API
        crypto: hisilicon/qm - fix printing format issue
        crypto: hisilicon/qm - do not reset hardware when CE happens
        crypto: hisilicon/qm - update irqflag
        crypto: hisilicon/qm - fix the value of 'QM_SQC_VFT_BASE_MASK_V2'
        crypto: hisilicon/qm - fix request missing error
        crypto: hisilicon/qm - removing driver after reset
        crypto: octeontx2 - fix -Wpointer-bool-conversion warning
        crypto: hisilicon/hpre - enable Elliptic curve cryptography
        crypto: hisilicon - PASID fixed on Kunpeng 930
        crypto: hisilicon/qm - fix use of 'dma_map_single'
        crypto: hisilicon/hpre - tiny fix
        crypto: hisilicon/hpre - adapt the number of clusters
        crypto: cpt - remove casting dma_alloc_coherent
        crypto: keembay-ocs-aes - Fix 'q' assignment during CCM B0 generation
        crypto: xor - Fix typo of optimization
        hwrng: optee - Use device-managed registration API
        crypto: arm64/crc-t10dif - move NEON yield to C code
        crypto: arm64/aes-ce-mac - simplify NEON yield
        crypto: arm64/aes-neonbs - remove NEON yield calls
        ...
      31caf8b2
    • Linus Torvalds's avatar
      Merge tag 'tpmdd-next-v5.12-rc1-v2' of... · a2b095e0
      Linus Torvalds authored
      Merge tag 'tpmdd-next-v5.12-rc1-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd
      
      Pull tpm updates from Jarkko Sakkinen:
       "New features:
      
         - Cr50 I2C TPM driver
      
         - sysfs exports of PCR registers in TPM 2.0 chips
      
        Bug fixes:
      
         - bug fixes for tpm_tis driver, which had a racy wait for hardware
           state change to be ready to send a command to the TPM chip. The bug
           has existed already since 2006, but has only made itself known in
           recent past. This is the same as the "last time" :-)
      
         - Otherwise there's bunch of fixes for not as alarming regressions. I
           think the list is about the same as last time, except I added fixes
           for some disjoint bugs in trusted keys that I found some time ago"
      
      * tag 'tpmdd-next-v5.12-rc1-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd:
        KEYS: trusted: Reserve TPM for seal and unseal operations
        KEYS: trusted: Fix migratable=1 failing
        KEYS: trusted: Fix incorrect handling of tpm_get_random()
        tpm/ppi: Constify static struct attribute_group
        ABI: add sysfs description for tpm exports of PCR registers
        tpm: add sysfs exports for all banks of PCR registers
        keys: Update comment for restrict_link_by_key_or_keyring_chain
        tpm: Remove tpm_dev_wq_lock
        char: tpm: add i2c driver for cr50
        tpm: Fix fall-through warnings for Clang
        tpm_tis: Clean up locality release
        tpm_tis: Fix check_locality for correct locality acquisition
      a2b095e0
    • Linus Torvalds's avatar
      Merge tag 'seccomp-v5.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux · 177626c6
      Linus Torvalds authored
      Pull seccomp updates from Kees Cook:
       "Two small seccomp updates.
      
        This contains a fix for a build failure that went unnoticed for many
        years, and a memory barrier correction:
      
         - Fix a non-FILTER build failure for some architectures (Paul
           Cercueil)
      
         - Improve performance with correct memory barrier (wanghongzhe)"
      
      * tag 'seccomp-v5.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
        seccomp: Improve performace by optimizing rmb()
        seccomp: Add missing return in non-void function
      177626c6
    • Linus Torvalds's avatar
      Merge tag 'Smack-for-v5.12' of git://github.com/cschaufler/smack-next · 92ae63c0
      Linus Torvalds authored
      Pull smack updates from Casey Schaufler:
       "Bounds checking for writes to smackfs interfaces"
      
      * tag 'Smack-for-v5.12' of git://github.com/cschaufler/smack-next:
        smackfs: restrict bytes count in smackfs write functions
      92ae63c0
    • Linus Torvalds's avatar
      Merge tag 'integrity-v5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity · d643a990
      Linus Torvalds authored
      Pull IMA updates from Mimi Zohar:
       "New is IMA support for measuring kernel critical data, as per usual
        based on policy. The first example measures the in memory SELinux
        policy. The second example measures the kernel version.
      
        In addition are four bug fixes to address memory leaks and a missing
        'static' function declaration"
      
      * tag 'integrity-v5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity:
        integrity: Make function integrity_add_key() static
        ima: Free IMA measurement buffer after kexec syscall
        ima: Free IMA measurement buffer on error
        IMA: Measure kernel version in early boot
        selinux: include a consumer of the new IMA critical data hook
        IMA: define a builtin critical data measurement policy
        IMA: extend critical data hook to limit the measurement based on a label
        IMA: limit critical data measurement based on a label
        IMA: add policy rule to measure critical data
        IMA: define a hook to measure kernel integrity critical data
        IMA: add support to measure buffer data hash
        IMA: generalize keyring specific measurement constructs
        evm: Fix memleak in init_desc
      d643a990
    • Linus Torvalds's avatar
      Merge tag 'audit-pr-20210215' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit · 23b6ba45
      Linus Torvalds authored
      Pull audit updates from Paul Moore:
       "Three very trivial patches for audit this time"
      
      * tag 'audit-pr-20210215' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit:
        audit: Make audit_filter_syscall() return void
        audit: Remove leftover reference to the audit_tasklet
        kernel/audit: convert comma to semicolon
      23b6ba45
    • Linus Torvalds's avatar
      Merge tag 'selinux-pr-20210215' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux · d1fec221
      Linus Torvalds authored
      Pull selinux updates from Paul Moore:
       "We've got a good handful of patches for SELinux this time around; with
        everything passing the selinux-testsuite and applying cleanly to your
        tree as of a few minutes ago. The highlights are:
      
         - Add support for labeling anonymous inodes, and extend this new
           support to userfaultfd.
      
         - Fallback to SELinux genfs file labeling if the filesystem does not
           have xattr support. This is useful for virtiofs which can vary in
           its xattr support depending on the backing filesystem.
      
         - Classify and handle MPTCP the same as TCP in SELinux.
      
         - Ensure consistent behavior between inode_getxattr and
           inode_listsecurity when the SELinux policy is not loaded. This
           fixes a known problem with overlayfs.
      
         - A couple of patches to prune some unused variables from the SELinux
           code, mark private variables as static, and mark other variables as
           __ro_after_init or __read_mostly"
      
      * tag 'selinux-pr-20210215' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux:
        fs: anon_inodes: rephrase to appropriate kernel-doc
        userfaultfd: use secure anon inodes for userfaultfd
        selinux: teach SELinux about anonymous inodes
        fs: add LSM-supporting anon-inode interface
        security: add inode_init_security_anon() LSM hook
        selinux: fall back to SECURITY_FS_USE_GENFS if no xattr support
        selinux: mark selinux_xfrm_refcount as __read_mostly
        selinux: mark some global variables __ro_after_init
        selinux: make selinuxfs_mount static
        selinux: drop the unnecessary aurule_callback variable
        selinux: remove unused global variables
        selinux: fix inconsistency between inode_getxattr and inode_listsecurity
        selinux: handle MPTCP consistently with TCP
      d1fec221
    • Linus Torvalds's avatar
      Merge tag 'tomoyo-pr-20210215' of git://git.osdn.net/gitroot/tomoyo/tomoyo-test1 · e210761f
      Linus Torvalds authored
      Pull tomoyo updates from Tetsuo Handa:
       "Detect kernel thread correctly, and ignore harmless data race"
      
      * tag 'tomoyo-pr-20210215' of git://git.osdn.net/gitroot/tomoyo/tomoyo-test1:
        tomoyo: recognize kernel threads correctly
        tomoyo: ignore data race while checking quota
      e210761f
  2. 21 Feb, 2021 22 commits
    • Linus Torvalds's avatar
      Merge tag 'drm-next-2021-02-19' of git://anongit.freedesktop.org/drm/drm · d99676af
      Linus Torvalds authored
      Pull drm updates from Dave Airlie:
       "A pretty normal tree, lots of refactoring across the board, ttm, i915,
        nouveau, and bunch of features in various drivers.
      
        docs:
         - lots of updated docs
      
        core:
         - require crtc to have unique primary plane
         - fourcc macro fix
         - PCI bar quirk for bar resizing
         - don't sent hotplug on error
         - move vm code to legacy
         - nuke hose only used on old oboslete alpha
      
        dma-buf:
         - kernel doc updates
         - improved lock tracking
      
        dp/hdmi:
         - DP-HDMI2.1 protocol converter support
      
        ttm:
         - bo size handling cleanup
         - release a pinned bo warning
         - cleanup lru handler
         - avoid using pages with drm_prime_sg_to_page_addr_arrays
      
        cma-helper:
         - prime/mmap fixes
      
        bridge:
         - add DP support
      
        gma500:
         - remove gma3600 support
      
        i915:
         - try eDP fast/narrow link again with fallback
         - Intel eDP backlight control
         - replace display register read/write macros
         - refactor intel_display.c
         - display power improvements
         - HPD code cleanup
         - Rocketlake display fixes
         - Power/backlight/RPM fixes
         - DG1 display fix
         - IVB/BYT clear residuals security fix again
         - make i915 mitigations options via parameter
         - HSW GT1 GPU hangs fixes
         - DG1 workaround hang fixes
         - TGL DMAR hang avoidance
         - Lots of GT fixes
         - follow on fixes for residuals clear
         - gen7 per-engine-reset support
         - HDCP2.2 + HDCP1.4 GEN12 DP MST support
         - TGL clear color support
         - backlight refactoring
         - VRR/Adaptive sync enabling on DP/EDP for TGL+
         - async flips for all ilk+
      
        amdgpu:
         - rework IH ring handling (Vega/Navi)
         - rework HDP handling (Vega/Navi)
         - swSMU updates for renoir/vangogh
         - Sienna Cichild overdrive support
         - FP16 on DCE8-11 support
         - GPU reset on navy flounder/vangogh
         - SMU profile fixes for APU
         - SR-IOV fixes
         - Vangogh SMU fixes
         - fan speed control fixes
      
        amdkfd:
         - config handling fix
         - buffer free fix
         - recursive lock warnings fix
      
        nouveau:
         - Turing MMU fault recovery fixes
         - mDP connectors reporting fix
         - audio locking fixes
         - rework engines/instances code to support new scheme
      
        tegra:
         - VIC newer firmware support
         - display/gr2d fixes for older tegra
         - pm reference leak fix
      
        mediatek:
         - SOC MT8183 support
         - decouple sub driver + share mtk mutex driver
      
        radeon:
         - PCI resource fix for some platforms
      
        ingenic:
         - pm support
         - 8-bit delta RGB panels
      
        vmwgfx:
         - managed driver helpers
      
        vc4:
         - BCM2711 DSI1 support
         - converted to atomic helpers
         - enable 10/12 bpc outputs
         - gem prime mmap helpers
         - CEC fix
      
        omap:
         - use degamma table
         - CTM support
         - rework DSI support
      
        imx:
         - stack usage fixes
         - drm managed support
         - imx-tve clock provider leak fix
      -
      
        rcar-du:
         - default mode fixes
         - conversion to managed API
      
        hisilicon:
         - use simple encoder
      
        vkms:
         - writeback connector support
      
        d3:
         - BT2020 support"
      
      * tag 'drm-next-2021-02-19' of git://anongit.freedesktop.org/drm/drm: (1459 commits)
        drm/amdgpu: Set reference clock to 100Mhz on Renoir (v2)
        drm/radeon: OLAND boards don't have VCE
        drm/amdkfd: Fix recursive lock warnings
        drm/amd/display: Add FPU wrappers to dcn21_validate_bandwidth()
        drm/amd/display: Fix potential integer overflow
        drm/amdgpu/display: remove hdcp_srm sysfs on device removal
        drm/amdgpu: fix CGTS_TCC_DISABLE register offset on gfx10.3
        drm/i915/gt: Correct surface base address for renderclear
        drm/i915: Disallow plane x+w>stride on ilk+ with X-tiling
        drm/nouveau/top/ga100: initial support
        drm/nouveau/top: add ioctrl/nvjpg
        drm/nouveau/privring: rename from ibus
        drm/nouveau/nvkm: remove nvkm_subdev.index
        drm/nouveau/nvkm: determine subdev id/order from layout
        drm/nouveau/vic: switch to instanced constructor
        drm/nouveau/sw: switch to instanced constructor
        drm/nouveau/sec2: switch to instanced constructor
        drm/nouveau/sec: switch to instanced constructor
        drm/nouveau/pm: switch to instanced constructor
        drm/nouveau/nvenc: switch to instanced constructor
        ...
      d99676af
    • Linus Torvalds's avatar
      Merge tag 'sound-5.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound · 10e2ec8e
      Linus Torvalds authored
      Pull sound updates from Takashi Iwai:
       "A relatively calm release at this time, and no massive code changes
        are found in the stats, while a wide range of code refactoring and
        cleanup have been done.
      
        Note that this update includes the tree-wide trivial changes for
        dropping the return value from ISA remove callbacks, too.
      
        Below lists up some highlight:
      
        ALSA Core:
         - Support for the software jack injection via debugfs
         - Fixes for sync_stop PCM operations
      
        HD-audio and USB-audio:
         - A few usual HD-audio device quirks
         - Updates for Tegra HD-audio
         - More quirks for Pioneer and other USB-audio devices
         - Stricter state checks at USB-audio disconnection
      
        ASoC:
         - Continued code refactoring, cleanup and fixes in ASoC core API
         - A KUnit testsuite for the topology code
         - Lots of ASoC Intel driver Realtek codec updates, quirk additions
           and fixes
         - Support for Ingenic JZ4760(B), Intel AlderLake-P, DT configured
           nVidia cards, Qualcomm lpass-rx-macro and lpass-tx-macro
         - Removal of obsolete SIRF prima/atlas, Txx9 and ZTE zx drivers
      
        Others:
         - Drop return value from ISA driver remove callback
         - Cleanup with DIV_ROUND_UP() macro
         - FireWire updates, HDSP output loopback support"
      
      * tag 'sound-5.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: (322 commits)
        ALSA: hda: intel-dsp-config: add Alder Lake support
        ASoC: soc-pcm: fix hw param limits calculation for multi-DAI
        ASoC: Intel: bytcr_rt5640: Add quirk for the Acer One S1002 tablet
        ASoC: Intel: bytcr_rt5651: Add quirk for the Jumper EZpad 7 tablet
        ASoC: Intel: bytcr_rt5640: Add quirk for the Voyo Winpad A15 tablet
        ASoC: Intel: bytcr_rt5640: Add quirk for the Estar Beauty HD MID 7316R tablet
        ASoC: soc-pcm: fix hwparams min/max init for dpcm
        ALSA: hda/realtek: Quirk for HP Spectre x360 14 amp setup
        ALSA: usb-audio: Add implicit fb quirk for BOSS GP-10
        ALSA: hda: Add another CometLake-H PCI ID
        ASoC: soc-pcm: add soc_pcm_hw_update_format()
        ASoC: soc-pcm: add soc_pcm_hw_update_chan()
        ASoC: soc-pcm: add soc_pcm_hw_update_rate()
        ASoC: wm_adsp: Remove unused control callback structure
        ASoC: SOF: relax ABI checks and avoid unnecessary warnings
        ASoC: codecs: lpass-tx-macro: add dapm widgets and route
        ASoC: codecs: lpass-tx-macro: add support for lpass tx macro
        ASoC: qcom: dt-bindings: add bindings for lpass tx macro codec
        ASoC: codecs: lpass-rx-macro: add iir widgets
        ASoC: codecs: lpass-rx-macro: add dapm widgets and route
        ...
      10e2ec8e
    • Linus Torvalds's avatar
      Merge tag 'media/v5.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media · de161757
      Linus Torvalds authored
      Pull media updates from Mauro Carvalho Chehab:
      
       - some core fixes in VB2 mem2mem support
      
       - some improvements and cleanups in V4L2 async kAPI
      
       - newer controls in V4L2 API for H-264 and HEVC codecs
      
       - allegro-dvt driver was promoted from staging
      
       - new i2c sendor drivers: imx334, ov5648, ov8865
      
       - new automobile camera module: rdacm21
      
       - ipu3 cio2 driver started gained support for some ACPI BIOSes
      
       - new ATSC frontend: MaxLinear mxl692 VSB tuner/demod
      
       - the SMIA/CCS driver gained more support for CSS standard
      
       - several driver fixes, updates and improvements
      
      * tag 'media/v5.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (362 commits)
        media: v4l: async: Fix kerneldoc documentation for async functions
        media: i2c: max9271: Add MODULE_* macros
        media: i2c: Kconfig: Make MAX9271 a module
        media: imx334: 'ret' is uninitialized, should have been PTR_ERR()
        media: i2c: Add imx334 camera sensor driver
        media: dt-bindings: media: Add bindings for imx334
        media: ov8856: Configure sensor for GRBG Bayer for all modes
        media: i2c: imx219: Implement V4L2_CID_LINK_FREQ control
        media: ov5675: fix vflip/hflip control
        media: ipu3-cio2: Build bridge only if ACPI is enabled
        media: Remove the legacy v4l2-clk API
        media: ov6650: Use the generic clock framework
        media: mt9m111: Use the generic clock framework
        media: ov9640: Use the generic clock framework
        media: pxa_camera: Drop the v4l2-clk clock register
        media: mach-pxa: Register the camera sensor fixed-rate clock
        media: i2c: imx258: get clock from device properties and enable it via runtime PM
        media: i2c: imx258: simplify getting state container
        media: i2c: imx258: add support for binding via device tree
        media: dt-bindings: media: imx258: add bindings for IMX258 sensor
        ...
      de161757
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs · 66f73fb3
      Linus Torvalds authored
      Pull JFFS2/UBIFS and UBI updates from Richard Weinberger:
       "JFFS2:
         - Fix for use-after-free in jffs2_sum_write_data()
         - Fix for out-of-bounds access in jffs2_zlib_compress()
      
        UBI:
         - Remove dead/useless code
      
        UBIFS:
         - Fix for a memory leak in ubifs_init_authentication()
         - Fix for high stack usage
         - Fix for a off-by-one error in xattrs code"
      
      * tag 'for-linus-5.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs:
        ubifs: Fix error return code in alloc_wbufs()
        jffs2: check the validity of dstlen in jffs2_zlib_compress()
        ubifs: Fix off-by-one error
        ubifs: replay: Fix high stack usage, again
        ubifs: Fix memleak in ubifs_init_authentication
        jffs2: fix use after free in jffs2_sum_write_data()
        ubi: eba: Delete useless kfree code
        ubi: remove dead code in validate_vid_hdr()
      66f73fb3
    • Linus Torvalds's avatar
      Merge tag 'mtd/for-5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux · 69e9b12a
      Linus Torvalds authored
      Pull MTD updates from Richard Weinberger:
       "MTD core changes:
         - Initial support for BCM4908 partitions
      
        Raw NAND controller drivers:
         - Intel: Fix an error handling path in 'ebu_dma_start()'
         - Tango: Remove the driver
         - Marvell: Convert comma to semicolon
         - MXC: Convert comma to semicolon
         - Qcom: Add support for Qcom SMEM parser
      
        Related MTD changes:
         - parsers: Add Qcom SMEM parser
      
        SPI NOR core changes:
         - Add non-uniform erase fixes.
         - Add Global Block Unlock command. It is defined by few flash
           vendors, and it is used for now just by sst.
      
        SPI NOR controller drivers changes:
         - intel-spi: Add support for Intel Alder Lake-P SPI serial flash.
         - hisi-sfc: Put child node np on error path"
      
      * tag 'mtd/for-5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux: (23 commits)
        dt-bindings: mtd: add binding for BCM4908 partitions
        dt-bindings: mtd: move partition binding to its own file
        mtd: spi-nor: sst: Add support for Global Unlock on sst26vf
        mtd: spi-nor: Add Global Block Unlock command
        mtd: spi-nor: core: Add erase size check for erase command initialization
        mtd: spi-nor: core: Fix erase type discovery for overlaid region
        mtd: spi-nor: sfdp: Fix last erase region marking
        mtd: spi-nor: sfdp: Fix wrong erase type bitmask for overlaid region
        mtd: rawnand: intel: Fix an error handling path in 'ebu_dma_start()'
        mtd: rawnand: tango: Remove the driver
        mtd: rawnand: marvell: convert comma to semicolon
        mtd: st_spi_fsm: convert comma to semicolon
        mtd: convert comma to semicolon
        mtd: parsers: afs: Fix freeing the part name memory in failure
        mtd: parser: imagetag: fix error codes in bcm963xx_parse_imagetag_partitions()
        mtd: phram: use div_u64_rem to stop overwrite len in phram_setup
        mtd: remove redundant assignment to pointer eb
        mtd: spi-nor: hisi-sfc: Put child node np on error path
        mtd: spi-nor: intel-spi: Add support for Intel Alder Lake-P SPI serial flash
        mtd: rawnand: qcom: Add support for Qcom SMEM parser
        ...
      69e9b12a
    • Linus Torvalds's avatar
      Merge tag 'for-linux-5.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml · 04471d3f
      Linus Torvalds authored
      Pull UML updates from Richard Weinberger:
      
       - Many cleanups and fixes for our virtio code
      
       - Add support for a pseudo RTC
      
       - Fix for a possible jailbreak
      
       - Minor fixes (spelling, header files)
      
      * tag 'for-linux-5.12-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml:
        um: irq.h: include <asm-generic/irq.h>
        um: io.h: include <linux/types.h>
        um: add a pseudo RTC
        um: remove process stub VMA
        um: rework userspace stubs to not hard-code stub location
        um: separate child and parent errors in clone stub
        um: defer killing userspace on page table update failures
        um: mm: check more comprehensively for stub changes
        um: print register names in wait_for_stub
        um: hostfs: use a kmem cache for inodes
        mm: Remove arch_remap() and mm-arch-hooks.h
        um: fix spelling mistake in Kconfig "privleges" -> "privileges"
        um: virtio: allow devices to be configured for wakeup
        um: time-travel: rework interrupt handling in ext mode
        um: virtio: disable VQs during suspend
        um: virtio: fix handling of messages without payload
        um: virtio: clean up a comment
      04471d3f
    • Linus Torvalds's avatar
      Merge tag 's390-5.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux · df24212a
      Linus Torvalds authored
      Pull s390 updates from Vasily Gorbik:
      
       - Convert to using the generic entry infrastructure.
      
       - Add vdso time namespace support.
      
       - Switch s390 and alpha to 64-bit ino_t. As discussed at
      
           https://lore.kernel.org/linux-mm/YCV7QiyoweJwvN+m@osiris/
      
       - Get rid of expensive stck (store clock) usages where possible.
         Utilize cpu alternatives to patch stckf when supported.
      
       - Make tod_clock usage less error prone by converting it to a union and
         rework code which is using it.
      
       - Machine check handler fixes and cleanups.
      
       - Drop couple of minor inline asm optimizations to fix clang build.
      
       - Default configs changes notably to make libvirt happy.
      
       - Various changes to rework and improve qdio code.
      
       - Other small various fixes and improvements all over the code.
      
      * tag 's390-5.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: (68 commits)
        s390/qdio: remove 'merge_pending' mechanism
        s390/qdio: improve handling of PENDING buffers for QEBSM devices
        s390/qdio: rework q->qdio_error indication
        s390/qdio: inline qdio_kick_handler()
        s390/time: remove get_tod_clock_ext()
        s390/crypto: use store_tod_clock_ext()
        s390/hypfs: use store_tod_clock_ext()
        s390/debug: use union tod_clock
        s390/kvm: use union tod_clock
        s390/vdso: use union tod_clock
        s390/time: convert tod_clock_base to union
        s390/time: introduce new store_tod_clock_ext()
        s390/time: rename store_tod_clock_ext() and use union tod_clock
        s390/time: introduce union tod_clock
        s390,alpha: switch to 64-bit ino_t
        s390: split cleanup_sie
        s390: use r13 in cleanup_sie as temp register
        s390: fix kernel asce loading when sie is interrupted
        s390: add stack for machine check handler
        s390: use WRITE_ONCE when re-allocating async stack
        ...
      df24212a
    • Linus Torvalds's avatar
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 3e105853
      Linus Torvalds authored
      Pull KVM updates from Paolo Bonzini:
       "x86:
      
         - Support for userspace to emulate Xen hypercalls
      
         - Raise the maximum number of user memslots
      
         - Scalability improvements for the new MMU.
      
           Instead of the complex "fast page fault" logic that is used in
           mmu.c, tdp_mmu.c uses an rwlock so that page faults are concurrent,
           but the code that can run against page faults is limited. Right now
           only page faults take the lock for reading; in the future this will
           be extended to some cases of page table destruction. I hope to
           switch the default MMU around 5.12-rc3 (some testing was delayed
           due to Chinese New Year).
      
         - Cleanups for MAXPHYADDR checks
      
         - Use static calls for vendor-specific callbacks
      
         - On AMD, use VMLOAD/VMSAVE to save and restore host state
      
         - Stop using deprecated jump label APIs
      
         - Workaround for AMD erratum that made nested virtualization
           unreliable
      
         - Support for LBR emulation in the guest
      
         - Support for communicating bus lock vmexits to userspace
      
         - Add support for SEV attestation command
      
         - Miscellaneous cleanups
      
        PPC:
      
         - Support for second data watchpoint on POWER10
      
         - Remove some complex workarounds for buggy early versions of POWER9
      
         - Guest entry/exit fixes
      
        ARM64:
      
         - Make the nVHE EL2 object relocatable
      
         - Cleanups for concurrent translation faults hitting the same page
      
         - Support for the standard TRNG hypervisor call
      
         - A bunch of small PMU/Debug fixes
      
         - Simplification of the early init hypercall handling
      
        Non-KVM changes (with acks):
      
         - Detection of contended rwlocks (implemented only for qrwlocks,
           because KVM only needs it for x86)
      
         - Allow __DISABLE_EXPORTS from assembly code
      
         - Provide a saner follow_pfn replacements for modules"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (192 commits)
        KVM: x86/xen: Explicitly pad struct compat_vcpu_info to 64 bytes
        KVM: selftests: Don't bother mapping GVA for Xen shinfo test
        KVM: selftests: Fix hex vs. decimal snafu in Xen test
        KVM: selftests: Fix size of memslots created by Xen tests
        KVM: selftests: Ignore recently added Xen tests' build output
        KVM: selftests: Add missing header file needed by xAPIC IPI tests
        KVM: selftests: Add operand to vmsave/vmload/vmrun in svm.c
        KVM: SVM: Make symbol 'svm_gp_erratum_intercept' static
        locking/arch: Move qrwlock.h include after qspinlock.h
        KVM: PPC: Book3S HV: Fix host radix SLB optimisation with hash guests
        KVM: PPC: Book3S HV: Ensure radix guest has no SLB entries
        KVM: PPC: Don't always report hash MMU capability for P9 < DD2.2
        KVM: PPC: Book3S HV: Save and restore FSCR in the P9 path
        KVM: PPC: remove unneeded semicolon
        KVM: PPC: Book3S HV: Use POWER9 SLBIA IH=6 variant to clear SLB
        KVM: PPC: Book3S HV: No need to clear radix host SLB before loading HPT guest
        KVM: PPC: Book3S HV: Fix radix guest SLB side channel
        KVM: PPC: Book3S HV: Remove support for running HPT guest on RPT host without mixed mode support
        KVM: PPC: Book3S HV: Introduce new capability for 2nd DAWR
        KVM: PPC: Book3S HV: Add infrastructure to support 2nd DAWR
        ...
      3e105853
    • Linus Torvalds's avatar
      Merge tag 'hyperv-next-signed-20210216' of... · 9c5b80b7
      Linus Torvalds authored
      Merge tag 'hyperv-next-signed-20210216' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux
      
      Pull Hyper-V updates from Wei Liu:
      
       - VMBus hardening patches from Andrea Parri and Andres Beltran.
      
       - Patches to make Linux boot as the root partition on Microsoft
         Hypervisor from Wei Liu.
      
       - One patch to add a new sysfs interface to support hibernation on
         Hyper-V from Dexuan Cui.
      
       - Two miscellaneous clean-up patches from Colin and Gustavo.
      
      * tag 'hyperv-next-signed-20210216' of git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux: (31 commits)
        Revert "Drivers: hv: vmbus: Copy packets sent by Hyper-V out of the ring buffer"
        iommu/hyperv: setup an IO-APIC IRQ remapping domain for root partition
        x86/hyperv: implement an MSI domain for root partition
        asm-generic/hyperv: import data structures for mapping device interrupts
        asm-generic/hyperv: introduce hv_device_id and auxiliary structures
        asm-generic/hyperv: update hv_interrupt_entry
        asm-generic/hyperv: update hv_msi_entry
        x86/hyperv: implement and use hv_smp_prepare_cpus
        x86/hyperv: provide a bunch of helper functions
        ACPI / NUMA: add a stub function for node_to_pxm()
        x86/hyperv: handling hypercall page setup for root
        x86/hyperv: extract partition ID from Microsoft Hypervisor if necessary
        x86/hyperv: allocate output arg pages if required
        clocksource/hyperv: use MSR-based access if running as root
        Drivers: hv: vmbus: skip VMBus initialization if Linux is root
        x86/hyperv: detect if Linux is the root partition
        asm-generic/hyperv: change HV_CPU_POWER_MANAGEMENT to HV_CPU_MANAGEMENT
        hv: hyperv.h: Replace one-element array with flexible-array in struct icmsg_negotiate
        hv_netvsc: Restrict configurations on isolated guests
        Drivers: hv: vmbus: Enforce 'VMBus version >= 5.2' on isolated guests
        ...
      9c5b80b7
    • Linus Torvalds's avatar
      Merge branch 'parisc-5.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux · 08179b47
      Linus Torvalds authored
      Pull parisc updates from Helge Deller:
      
       - Optimize parisc page table locks by using the existing
         page_table_lock
      
       - Export argv0-preserve flag in binfmt_misc for usage in qemu-user
      
       - Fix interrupt table (IVT) checksum so firmware will call crash
         handler (HPMC)
      
       - Increase IRQ stack to 64kb on 64-bit kernel
      
       - Switch to common devmem_is_allowed() implementation
      
       - Minor fix to get_whan()
      
      * 'parisc-5.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux:
        binfmt_misc: pass binfmt_misc flags to the interpreter
        parisc: Optimize per-pagetable spinlocks
        parisc: Replace test_ti_thread_flag() with test_tsk_thread_flag()
        parisc: Bump 64-bit IRQ stack size to 64 KB
        parisc: Fix IVT checksum calculation wrt HPMC
        parisc: Use the generic devmem_is_allowed()
        parisc: Drop out of get_whan() if task is running again
      08179b47
    • Linus Torvalds's avatar
      Merge tag 'mips_5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux · 2671fe5e
      Linus Torvalds authored
      Pull MIPS updates from Thomas Bogendoerfer:
      
       - added support for Nintendo N64
      
       - added support for Realtek RTL83XX SoCs
      
       - kaslr support for Loongson64
      
       - first steps to get rid of set_fs()
      
       - DMA runtime coherent/non-coherent selection cleanup
      
       - cleanups and fixes
      
      * tag 'mips_5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux: (98 commits)
        Revert "MIPS: Add basic support for ptrace single step"
        vmlinux.lds.h: catch more UBSAN symbols into .data
        MIPS: kernel: Drop kgdb_call_nmi_hook
        MAINTAINERS: Add git tree for KVM/mips
        MIPS: Use common way to parse elfcorehdr
        MIPS: Simplify EVA cache handling
        Revert "MIPS: kernel: {ftrace,kgdb}: Set correct address limit for cache flushes"
        MIPS: remove CONFIG_DMA_PERDEV_COHERENT
        MIPS: remove CONFIG_DMA_MAYBE_COHERENT
        driver core: lift dma_default_coherent into common code
        MIPS: refactor the runtime coherent vs noncoherent DMA indicators
        MIPS/alchemy: factor out the DMA coherent setup
        MIPS/malta: simplify plat_setup_iocoherency
        MIPS: Add basic support for ptrace single step
        MAINTAINERS: replace non-matching patterns for loongson{2,3}
        MIPS: Make check condition for SDBBP consistent with EJTAG spec
        mips: Replace lkml.org links with lore
        Revert "MIPS: microMIPS: Fix the judgment of mm_jr16_op and mm_jalr_op"
        MIPS: crash_dump.c: Simplify copy_oldmem_page()
        Revert "mips: Manually call fdt_init_reserved_mem() method"
        ...
      2671fe5e
    • Linus Torvalds's avatar
      Merge tag 'm68k-for-v5.12-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k · b811b410
      Linus Torvalds authored
      Pull m68k updates from Geert Uytterhoeven:
      
       - fix ADB autopoll regression
      
       - defconfig updates
      
      * tag 'm68k-for-v5.12-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k:
        macintosh/adb-iop: Use big-endian autopoll mask
        m68k: defconfig: Update defconfigs for v5.11-rc1
      b811b410
    • Linus Torvalds's avatar
      Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux · 99ca0edb
      Linus Torvalds authored
      Pull arm64 updates from Will Deacon:
      
       - vDSO build improvements including support for building with BSD.
      
       - Cleanup to the AMU support code and initialisation rework to support
         cpufreq drivers built as modules.
      
       - Removal of synthetic frame record from exception stack when entering
         the kernel from EL0.
      
       - Add support for the TRNG firmware call introduced by Arm spec
         DEN0098.
      
       - Cleanup and refactoring across the board.
      
       - Avoid calling arch_get_random_seed_long() from
         add_interrupt_randomness()
      
       - Perf and PMU updates including support for Cortex-A78 and the v8.3
         SPE extensions.
      
       - Significant steps along the road to leaving the MMU enabled during
         kexec relocation.
      
       - Faultaround changes to initialise prefaulted PTEs as 'old' when
         hardware access-flag updates are supported, which drastically
         improves vmscan performance.
      
       - CPU errata updates for Cortex-A76 (#1463225) and Cortex-A55
         (#1024718)
      
       - Preparatory work for yielding the vector unit at a finer granularity
         in the crypto code, which in turn will one day allow us to defer
         softirq processing when it is in use.
      
       - Support for overriding CPU ID register fields on the command-line.
      
      * tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux: (85 commits)
        drivers/perf: Replace spin_lock_irqsave to spin_lock
        mm: filemap: Fix microblaze build failure with 'mmu_defconfig'
        arm64: Make CPU_BIG_ENDIAN depend on ld.bfd or ld.lld 13.0.0+
        arm64: cpufeatures: Allow disabling of Pointer Auth from the command-line
        arm64: Defer enabling pointer authentication on boot core
        arm64: cpufeatures: Allow disabling of BTI from the command-line
        arm64: Move "nokaslr" over to the early cpufeature infrastructure
        KVM: arm64: Document HVC_VHE_RESTART stub hypercall
        arm64: Make kvm-arm.mode={nvhe, protected} an alias of id_aa64mmfr1.vh=0
        arm64: Add an aliasing facility for the idreg override
        arm64: Honor VHE being disabled from the command-line
        arm64: Allow ID_AA64MMFR1_EL1.VH to be overridden from the command line
        arm64: cpufeature: Add an early command-line cpufeature override facility
        arm64: Extract early FDT mapping from kaslr_early_init()
        arm64: cpufeature: Use IDreg override in __read_sysreg_by_encoding()
        arm64: cpufeature: Add global feature override facility
        arm64: Move SCTLR_EL1 initialisation to EL-agnostic code
        arm64: Simplify init_el2_state to be non-VHE only
        arm64: Move VHE-specific SPE setup to mutate_to_vhe()
        arm64: Drop early setting of MDSCR_EL2.TPMS
        ...
      99ca0edb
    • Linus Torvalds's avatar
      Merge tag 'for-linus-5.12-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip · 4a037ad5
      Linus Torvalds authored
      Pull xen updates from Juergen Gross:
       "A series of Xen related security fixes, all related to limited error
        handling in Xen backend drivers"
      
      * tag 'for-linus-5.12-rc1-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip:
        xen-blkback: fix error handling in xen_blkbk_map()
        xen-scsiback: don't "handle" error by BUG()
        xen-netback: don't "handle" error by BUG()
        xen-blkback: don't "handle" error by BUG()
        xen/arm: don't ignore return errors from set_phys_to_machine
        Xen/gntdev: correct error checking in gntdev_map_grant_pages()
        Xen/gntdev: correct dev_bus_addr handling in gntdev_map_grant_pages()
        Xen/x86: also check kernel mapping in set_foreign_p2m_mapping()
        Xen/x86: don't bail early from clear_foreign_p2m_mapping()
      4a037ad5
    • Linus Torvalds's avatar
      Merge tag 'perf-core-2021-02-17' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · d310ec03
      Linus Torvalds authored
      Pull performance event updates from Ingo Molnar:
      
       - Add CPU-PMU support for Intel Sapphire Rapids CPUs
      
       - Extend the perf ABI with PERF_SAMPLE_WEIGHT_STRUCT, to offer
         two-parameter sampling event feedback. Not used yet, but is intended
         for Golden Cove CPU-PMU, which can provide both the instruction
         latency and the cache latency information for memory profiling
         events.
      
       - Remove experimental, default-disabled perfmon-v4 counter_freezing
         support that could only be enabled via a boot option. The hardware is
         hopelessly broken, we'd like to make sure nobody starts relying on
         this, as it would only end in tears.
      
       - Fix energy/power events on Intel SPR platforms
      
       - Simplify the uprobes resume_execution() logic
      
       - Misc smaller fixes.
      
      * tag 'perf-core-2021-02-17' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        perf/x86/rapl: Fix psys-energy event on Intel SPR platform
        perf/x86/rapl: Only check lower 32bits for RAPL energy counters
        perf/x86/rapl: Add msr mask support
        perf/x86/kvm: Add Cascade Lake Xeon steppings to isolation_ucodes[]
        perf/x86/intel: Support CPUID 10.ECX to disable fixed counters
        perf/x86/intel: Add perf core PMU support for Sapphire Rapids
        perf/x86/intel: Filter unsupported Topdown metrics event
        perf/x86/intel: Factor out intel_update_topdown_event()
        perf/core: Add PERF_SAMPLE_WEIGHT_STRUCT
        perf/intel: Remove Perfmon-v4 counter_freezing support
        x86/perf: Use static_call for x86_pmu.guest_get_msrs
        perf/x86/intel/uncore: With > 8 nodes, get pci bus die id from NUMA info
        perf/x86/intel/uncore: Store the logical die id instead of the physical die id.
        x86/kprobes: Do not decode opcode in resume_execution()
      d310ec03
    • Linus Torvalds's avatar
      Merge tag 'sched-core-2021-02-17' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 657bd90c
      Linus Torvalds authored
      Pull scheduler updates from Ingo Molnar:
       "Core scheduler updates:
      
         - Add CONFIG_PREEMPT_DYNAMIC: this in its current form adds the
           preempt=none/voluntary/full boot options (default: full), to allow
           distros to build a PREEMPT kernel but fall back to close to
           PREEMPT_VOLUNTARY (or PREEMPT_NONE) runtime scheduling behavior via
           a boot time selection.
      
           There's also the /debug/sched_debug switch to do this runtime.
      
           This feature is implemented via runtime patching (a new variant of
           static calls).
      
           The scope of the runtime patching can be best reviewed by looking
           at the sched_dynamic_update() function in kernel/sched/core.c.
      
           ( Note that the dynamic none/voluntary mode isn't 100% identical,
             for example preempt-RCU is available in all cases, plus the
             preempt count is maintained in all models, which has runtime
             overhead even with the code patching. )
      
           The PREEMPT_VOLUNTARY/PREEMPT_NONE models, used by the vast
           majority of distributions, are supposed to be unaffected.
      
         - Fix ignored rescheduling after rcu_eqs_enter(). This is a bug that
           was found via rcutorture triggering a hang. The bug is that
           rcu_idle_enter() may wake up a NOCB kthread, but this happens after
           the last generic need_resched() check. Some cpuidle drivers fix it
           by chance but many others don't.
      
           In true 2020 fashion the original bug fix has grown into a 5-patch
           scheduler/RCU fix series plus another 16 RCU patches to address the
           underlying issue of missed preemption events. These are the initial
           fixes that should fix current incarnations of the bug.
      
         - Clean up rbtree usage in the scheduler, by providing & using the
           following consistent set of rbtree APIs:
      
             partial-order; less() based:
               - rb_add(): add a new entry to the rbtree
               - rb_add_cached(): like rb_add(), but for a rb_root_cached
      
             total-order; cmp() based:
               - rb_find(): find an entry in an rbtree
               - rb_find_add(): find an entry, and add if not found
      
               - rb_find_first(): find the first (leftmost) matching entry
               - rb_next_match(): continue from rb_find_first()
               - rb_for_each(): iterate a sub-tree using the previous two
      
         - Improve the SMP/NUMA load-balancer: scan for an idle sibling in a
           single pass. This is a 4-commit series where each commit improves
           one aspect of the idle sibling scan logic.
      
         - Improve the cpufreq cooling driver by getting the effective CPU
           utilization metrics from the scheduler
      
         - Improve the fair scheduler's active load-balancing logic by
           reducing the number of active LB attempts & lengthen the
           load-balancing interval. This improves stress-ng mmapfork
           performance.
      
         - Fix CFS's estimated utilization (util_est) calculation bug that can
           result in too high utilization values
      
        Misc updates & fixes:
      
         - Fix the HRTICK reprogramming & optimization feature
      
         - Fix SCHED_SOFTIRQ raising race & warning in the CPU offlining code
      
         - Reduce dl_add_task_root_domain() overhead
      
         - Fix uprobes refcount bug
      
         - Process pending softirqs in flush_smp_call_function_from_idle()
      
         - Clean up task priority related defines, remove *USER_*PRIO and
           USER_PRIO()
      
         - Simplify the sched_init_numa() deduplication sort
      
         - Documentation updates
      
         - Fix EAS bug in update_misfit_status(), which degraded the quality
           of energy-balancing
      
         - Smaller cleanups"
      
      * tag 'sched-core-2021-02-17' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (51 commits)
        sched,x86: Allow !PREEMPT_DYNAMIC
        entry/kvm: Explicitly flush pending rcuog wakeup before last rescheduling point
        entry: Explicitly flush pending rcuog wakeup before last rescheduling point
        rcu/nocb: Trigger self-IPI on late deferred wake up before user resume
        rcu/nocb: Perform deferred wake up before last idle's need_resched() check
        rcu: Pull deferred rcuog wake up to rcu_eqs_enter() callers
        sched/features: Distinguish between NORMAL and DEADLINE hrtick
        sched/features: Fix hrtick reprogramming
        sched/deadline: Reduce rq lock contention in dl_add_task_root_domain()
        uprobes: (Re)add missing get_uprobe() in __find_uprobe()
        smp: Process pending softirqs in flush_smp_call_function_from_idle()
        sched: Harden PREEMPT_DYNAMIC
        static_call: Allow module use without exposing static_call_key
        sched: Add /debug/sched_preempt
        preempt/dynamic: Support dynamic preempt with preempt= boot option
        preempt/dynamic: Provide irqentry_exit_cond_resched() static call
        preempt/dynamic: Provide preempt_schedule[_notrace]() static calls
        preempt/dynamic: Provide cond_resched() and might_resched() static calls
        preempt: Introduce CONFIG_PREEMPT_DYNAMIC
        static_call: Provide DEFINE_STATIC_CALL_RET0()
        ...
      657bd90c
    • Linus Torvalds's avatar
      Merge tag 'core-mm-2021-02-17' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 7b15c27e
      Linus Torvalds authored
      Pull tlb gather updates from Ingo Molnar:
       "Theses fix MM (soft-)dirty bit management in the procfs code & clean
        up the TLB gather API"
      
      * tag 'core-mm-2021-02-17' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86/ldt: Use tlb_gather_mmu_fullmm() when freeing LDT page-tables
        tlb: arch: Remove empty __tlb_remove_tlb_entry() stubs
        tlb: mmu_gather: Remove start/end arguments from tlb_gather_mmu()
        tlb: mmu_gather: Introduce tlb_gather_mmu_fullmm()
        tlb: mmu_gather: Remove unused start/end arguments from tlb_finish_mmu()
        mm: proc: Invalidate TLB after clearing soft-dirty page state
      7b15c27e
    • Linus Torvalds's avatar
      Merge tag 'locking-core-2021-02-17' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 9eef0233
      Linus Torvalds authored
      Pull locking updates from Ingo Molnar:
       "Core locking primitives updates:
          - Remove mutex_trylock_recursive() from the API - no users left
          - Simplify + constify the futex code a bit
      
        Lockdep updates:
          - Teach lockdep about local_lock_t
          - Add CONFIG_DEBUG_IRQFLAGS=y debug config option to check for
            potentially unsafe IRQ mask restoration patterns. (I.e.
            calling raw_local_irq_restore() with IRQs enabled.)
          - Add wait context self-tests
          - Fix graph lock corner case corrupting internal data structures
          - Fix noinstr annotations
      
        LKMM updates:
          - Simplify the litmus tests
          - Documentation fixes
      
        KCSAN updates:
          - Re-enable KCSAN instrumentation in lib/random32.c
      
        Misc fixes:
          - Don't branch-trace static label APIs
          - DocBook fix
          - Remove stale leftover empty file"
      
      * tag 'locking-core-2021-02-17' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (24 commits)
        checkpatch: Don't check for mutex_trylock_recursive()
        locking/mutex: Kill mutex_trylock_recursive()
        s390: Use arch_local_irq_{save,restore}() in early boot code
        lockdep: Noinstr annotate warn_bogus_irq_restore()
        locking/lockdep: Avoid unmatched unlock
        locking/rwsem: Remove empty rwsem.h
        locking/rtmutex: Add missing kernel-doc markup
        futex: Remove unneeded gotos
        futex: Change utime parameter to be 'const ... *'
        lockdep: report broken irq restoration
        jump_label: Do not profile branch annotations
        locking: Add Reviewers
        locking/selftests: Add local_lock inversion tests
        locking/lockdep: Exclude local_lock_t from IRQ inversions
        locking/lockdep: Clean up check_redundant() a bit
        locking/lockdep: Add a skip() function to __bfs()
        locking/lockdep: Mark local_lock_t
        locking/selftests: More granular debug_locks_verbose
        lockdep/selftest: Add wait context selftests
        tools/memory-model: Fix typo in klitmus7 compatibility table
        ...
      9eef0233
    • Linus Torvalds's avatar
      Merge tag 'core-rcu-2021-02-17' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · d089f48f
      Linus Torvalds authored
      Pull RCU updates from Ingo Molnar:
       "These are the latest RCU updates for v5.12:
      
         - Documentation updates.
      
         - Miscellaneous fixes.
      
         - kfree_rcu() updates: Addition of mem_dump_obj() to provide
           allocator return addresses to more easily locate bugs. This has a
           couple of RCU-related commits, but is mostly MM. Was pulled in with
           akpm's agreement.
      
         - Per-callback-batch tracking of numbers of callbacks, which enables
           better debugging information and smarter reactions to large numbers
           of callbacks.
      
         - The first round of changes to allow CPUs to be runtime switched
           from and to callback-offloaded state.
      
         - CONFIG_PREEMPT_RT-related changes.
      
         - RCU CPU stall warning updates.
      
         - Addition of polling grace-period APIs for SRCU.
      
         - Torture-test and torture-test scripting updates, including a
           "torture everything" script that runs rcutorture, locktorture,
           scftorture, rcuscale, and refscale. Plus does an allmodconfig
           build.
      
         - nolibc fixes for the torture tests"
      
      * tag 'core-rcu-2021-02-17' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (130 commits)
        percpu_ref: Dump mem_dump_obj() info upon reference-count underflow
        rcu: Make call_rcu() print mem_dump_obj() info for double-freed callback
        mm: Make mem_obj_dump() vmalloc() dumps include start and length
        mm: Make mem_dump_obj() handle vmalloc() memory
        mm: Make mem_dump_obj() handle NULL and zero-sized pointers
        mm: Add mem_dump_obj() to print source of memory block
        tools/rcutorture: Fix position of -lgcc in mkinitrd.sh
        tools/nolibc: Fix position of -lgcc in the documented example
        tools/nolibc: Emit detailed error for missing alternate syscall number definitions
        tools/nolibc: Remove incorrect definitions of __ARCH_WANT_*
        tools/nolibc: Get timeval, timespec and timezone from linux/time.h
        tools/nolibc: Implement poll() based on ppoll()
        tools/nolibc: Implement fork() based on clone()
        tools/nolibc: Make getpgrp() fall back to getpgid(0)
        tools/nolibc: Make dup2() rely on dup3() when available
        tools/nolibc: Add the definition for dup()
        rcutorture: Add rcutree.use_softirq=0 to RUDE01 and TASKS01
        torture: Maintain torture-specific set of CPUs-online books
        torture: Clean up after torture-test CPU hotplugging
        rcutorture: Make object_debug also double call_rcu() heap object
        ...
      d089f48f
    • Linus Torvalds's avatar
      Merge tag 'timers-core-2021-02-15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 3f6ec19f
      Linus Torvalds authored
      Pull timer updates from Thomas Gleixner:
       "Time and timer updates:
      
         - Instead of new drivers remove tango, sirf, u300 and atlas drivers
      
         - Add suspend/resume support for microchip pit64b
      
         - The usual fixes, improvements and cleanups here and there"
      
      * tag 'timers-core-2021-02-15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        timens: Delete no-op time_ns_init()
        alarmtimer: Update kerneldoc
        clocksource/drivers/timer-microchip-pit64b: Add clocksource suspend/resume
        clocksource/drivers/prima: Remove sirf prima driver
        clocksource/drivers/atlas: Remove sirf atlas driver
        clocksource/drivers/tango: Remove tango driver
        clocksource/drivers/u300: Remove the u300 driver
        dt-bindings: timer: nuvoton: Clarify that interrupt of timer 0 should be specified
        clocksource/drivers/davinci: Move pr_fmt() before the includes
        clocksource/drivers/efm32: Drop unused timer code
      3f6ec19f
    • Linus Torvalds's avatar
      Merge tag 'irq-core-2021-02-15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · b5183bc9
      Linus Torvalds authored
      Pull irq updates from Thomas Gleixner:
       "Updates for the irq subsystem:
      
         - The usual new irq chip driver (Realtek RTL83xx)
      
         - Removal of sirfsoc and tango irq chip drivers
      
         - Conversion of the sun6i chip support to hierarchical irq domains
      
         - The usual fixes, improvements and cleanups all over the place"
      
      * tag 'irq-core-2021-02-15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        irqchip/imx: IMX_INTMUX should not default to y, unconditionally
        irqchip/loongson-pch-msi: Use bitmap_zalloc() to allocate bitmap
        irqchip/csky-mpintc: Prevent selection on unsupported platforms
        irqchip: Add support for Realtek RTL838x/RTL839x interrupt controller
        dt-bindings: interrupt-controller: Add Realtek RTL838x/RTL839x support
        irqchip/ls-extirq: add IRQCHIP_SKIP_SET_WAKE to the irqchip flags
        genirq: Use new tasklet API for resend_tasklet
        dt-bindings: qcom,pdc: Add compatible for SM8350
        dt-bindings: qcom,pdc: Add compatible for SM8250
        irqchip/sun6i-r: Add wakeup support
        irqchip/sun6i-r: Use a stacked irqchip driver
        dt-bindings: irq: sun6i-r: Add a compatible for the H3
        dt-bindings: irq: sun6i-r: Split the binding from sun7i-nmi
        irqchip/gic-v3: Fix typos in PMR/RPR SCR_EL3.FIQ handling explanation
        irqchip: Remove sirfsoc driver
        irqchip: Remove sigma tango driver
      b5183bc9
    • Linus Torvalds's avatar
      Merge tag 'for-5.12/io_uring-2021-02-17' of git://git.kernel.dk/linux-block · 5bbb336b
      Linus Torvalds authored
      Pull io_uring updates from Jens Axboe:
       "Highlights from this cycles are things like request recycling and
        task_work optimizations, which net us anywhere from 10-20% of speedups
        on workloads that mostly are inline.
      
        This work was originally done to put io_uring under memcg, which adds
        considerable overhead. But it's a really nice win as well. Also worth
        highlighting is the LOOKUP_CACHED work in the VFS, and using it in
        io_uring. Greatly speeds up the fast path for file opens.
      
        Summary:
      
         - Put io_uring under memcg protection. We accounted just the rings
           themselves under rlimit memlock before, now we account everything.
      
         - Request cache recycling, persistent across invocations (Pavel, me)
      
         - First part of a cleanup/improvement to buffer registration (Bijan)
      
         - SQPOLL fixes (Hao)
      
         - File registration NULL pointer fixup (Dan)
      
         - LOOKUP_CACHED support for io_uring
      
         - Disable /proc/thread-self/ for io_uring, like we do for /proc/self
      
         - Add Pavel to the io_uring MAINTAINERS entry
      
         - Tons of code cleanups and optimizations (Pavel)
      
         - Support for skip entries in file registration (Noah)"
      
      * tag 'for-5.12/io_uring-2021-02-17' of git://git.kernel.dk/linux-block: (103 commits)
        io_uring: tctx->task_lock should be IRQ safe
        proc: don't allow async path resolution of /proc/thread-self components
        io_uring: kill cached requests from exiting task closing the ring
        io_uring: add helper to free all request caches
        io_uring: allow task match to be passed to io_req_cache_free()
        io-wq: clear out worker ->fs and ->files
        io_uring: optimise io_init_req() flags setting
        io_uring: clean io_req_find_next() fast check
        io_uring: don't check PF_EXITING from syscall
        io_uring: don't split out consume out of SQE get
        io_uring: save ctx put/get for task_work submit
        io_uring: don't duplicate io_req_task_queue()
        io_uring: optimise SQPOLL mm/files grabbing
        io_uring: optimise out unlikely link queue
        io_uring: take compl state from submit state
        io_uring: inline io_complete_rw_common()
        io_uring: move res check out of io_rw_reissue()
        io_uring: simplify iopoll reissuing
        io_uring: clean up io_req_free_batch_finish()
        io_uring: move submit side state closer in the ring
        ...
      5bbb336b