1. 24 Dec, 2020 12 commits
    • Linus Torvalds's avatar
      Merge tag 'efi_updates_for_v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 4a1106af
      Linus Torvalds authored
      Pull EFI updates from Borislav Petkov:
       "These got delayed due to a last minute ia64 build issue which got
        fixed in the meantime.
      
        EFI updates collected by Ard Biesheuvel:
      
         - Don't move BSS section around pointlessly in the x86 decompressor
      
         - Refactor helper for discovering the EFI secure boot mode
      
         - Wire up EFI secure boot to IMA for arm64
      
         - Some fixes for the capsule loader
      
         - Expose the RT_PROP table via the EFI test module
      
         - Relax DT and kernel placement restrictions on ARM
      
        with a few followup fixes:
      
         - fix the build breakage on IA64 caused by recent capsule loader
           changes
      
         - suppress a type mismatch build warning in the expansion of
           EFI_PHYS_ALIGN on ARM"
      
      * tag 'efi_updates_for_v5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        efi: arm: force use of unsigned type for EFI_PHYS_ALIGN
        efi: ia64: disable the capsule loader
        efi: stub: get rid of efi_get_max_fdt_addr()
        efi/efi_test: read RuntimeServicesSupported
        efi: arm: reduce minimum alignment of uncompressed kernel
        efi: capsule: clean scatter-gather entries from the D-cache
        efi: capsule: use atomic kmap for transient sglist mappings
        efi: x86/xen: switch to efi_get_secureboot_mode helper
        arm64/ima: add ima_arch support
        ima: generalize x86/EFI arch glue for other EFI architectures
        efi: generalize efi_get_secureboot
        efi/libstub: EFI_GENERIC_STUB_INITRD_CMDLINE_LOADER should not default to yes
        efi/x86: Only copy the compressed kernel image in efi_relocate_kernel()
        efi/libstub/x86: simplify efi_is_native()
      4a1106af
    • Linus Torvalds's avatar
      Merge tag 'io_uring-5.11-2020-12-23' of git://git.kernel.dk/linux-block · 60e8edd2
      Linus Torvalds authored
      Pull io_uring fixes from Jens Axboe:
       "All straight fixes, or a prep patch for a fix, either bound for stable
        or fixing issues from this merge window. In particular:
      
         - Fix new shutdown op not breaking links on failure
      
         - Hold mm->mmap_sem for mm->locked_vm manipulation
      
         - Various cancelation fixes (me, Pavel)
      
         - Fix error path potential double ctx free (Pavel)
      
         - IOPOLL fixes (Xiaoguang)"
      
      * tag 'io_uring-5.11-2020-12-23' of git://git.kernel.dk/linux-block:
        io_uring: hold uring_lock while completing failed polled io in io_wq_submit_work()
        io_uring: fix double io_uring free
        io_uring: fix ignoring xa_store errors
        io_uring: end waiting before task cancel attempts
        io_uring: always progress task_work on task cancel
        io-wq: kill now unused io_wq_cancel_all()
        io_uring: make ctx cancel on exit targeted to actual ctx
        io_uring: fix 0-iov read buffer select
        io_uring: close a small race gap for files cancel
        io_uring: fix io_wqe->work_list corruption
        io_uring: limit {io|sq}poll submit locking scope
        io_uring: inline io_cqring_mark_overflow()
        io_uring: consolidate CQ nr events calculation
        io_uring: remove racy overflow list fast checks
        io_uring: cancel reqs shouldn't kill overflow list
        io_uring: hold mmap_sem for mm->locked_vm manipulation
        io_uring: break links on shutdown failure
      60e8edd2
    • Linus Torvalds's avatar
      Merge tag 'block-5.11-2020-12-23' of git://git.kernel.dk/linux-block · 771e7e41
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
       "A few stragglers in here, but mostly just straight fixes. In
        particular:
      
         - Set of rnbd fixes for issues around changes for the merge window
           (Gioh, Jack, Md Haris Iqbal)
      
         - iocost tracepoint addition (Baolin)
      
         - Copyright/maintainers update (Christoph)
      
         - Remove old blk-mq fast path CPU warning (Daniel)
      
         - loop max_part fix (Josh)
      
         - Remote IPI threaded IRQ fix (Sebastian)
      
         - dasd stable fixes (Stefan)
      
         - bcache merge window fixup and style fixup (Yi, Zheng)"
      
      * tag 'block-5.11-2020-12-23' of git://git.kernel.dk/linux-block:
        md/bcache: convert comma to semicolon
        bcache:remove a superfluous check in register_bcache
        block: update some copyrights
        block: remove a pointless self-reference in block_dev.c
        MAINTAINERS: add fs/block_dev.c to the block section
        blk-mq: Don't complete on a remote CPU in force threaded mode
        s390/dasd: fix list corruption of lcu list
        s390/dasd: fix list corruption of pavgroup group list
        s390/dasd: prevent inconsistent LCU device data
        s390/dasd: fix hanging device offline processing
        blk-iocost: Add iocg idle state tracepoint
        nbd: Respect max_part for all partition scans
        block/rnbd-clt: Does not request pdu to rtrs-clt
        block/rnbd-clt: Dynamically allocate sglist for rnbd_iu
        block/rnbd: Set write-back cache and fua same to the target device
        block/rnbd: Fix typos
        block/rnbd-srv: Protect dev session sysfs removal
        block/rnbd-clt: Fix possible memleak
        block/rnbd-clt: Get rid of warning regarding size argument in strlcpy
        blk-mq: Remove 'running from the wrong CPU' warning
      771e7e41
    • Linus Torvalds's avatar
      Merge tag 'libnvdimm-for-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm · 1f13d2f7
      Linus Torvalds authored
      Pull libnvdimm updates from Dan Williams:
       "Twas the day before Christmas and the only thing stirring in libnvdimm
        / device-dax land is a pile of miscellaneous fixups and cleanups.
      
        The bulk of it has appeared in -next save the last two patches to
        device-dax that have passed my build and unit tests.
      
         - Fix a long standing block-window-namespace issue surfaced by the
           ndctl change to attempt to preserve the kernel device name over
           a 'reconfigure'
      
         - Fix a few error path memory leaks in nfit and device-dax
      
         - Silence a smatch warning in the ioctl path
      
         - Miscellaneous cleanups"
      
      * tag 'libnvdimm-for-5.11' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm:
        device-dax: Avoid an unnecessary check in alloc_dev_dax_range()
        device-dax: Fix range release
        device-dax: delete a redundancy check in dev_dax_validate_align()
        libnvdimm/label: Return -ENXIO for no slot in __blk_label_update
        device-dax/core: Fix memory leak when rmmod dax.ko
        device-dax/pmem: Convert comma to semicolon
        libnvdimm: Cleanup include of badblocks.h
        ACPI: NFIT: Fix input validation of bus-family
        libnvdimm/namespace: Fix reaping of invalidated block-window-namespace labels
        ACPI/nfit: avoid accessing uninitialized memory in acpi_nfit_ctl()
      1f13d2f7
    • Linus Torvalds's avatar
      Merge tag 'drm-next-2020-12-24' of git://anongit.freedesktop.org/drm/drm · ef2c8b81
      Linus Torvalds authored
      Pull drm fixes from Dave Airlie:
       "Xmas eve pull request present.
      
        Just some fixes that trickled in this past week: Mostly amdgpu fixes,
        with a dma-buf/mips build fix and some misc komeda fixes.
      
        dma-buf:
         - fix build on mips
      
        komeda:
         - fix commit tail operation order
         - NULL pointer fix
         - out of bounds access fix
      
        ttm:
         - remove an unused function
      
        amdgpu:
         - Vangogh SMU fixes
         - Arcturus gfx9 fixes
         - Misc display fixes
         - Sienna Cichlid SMU update
         - Fix S3 display memory leak
         - Fix regression caused by DP sub-connector support
      
        amdkfd:
         - Properly require pcie atomics for gfx10"
      
      * tag 'drm-next-2020-12-24' of git://anongit.freedesktop.org/drm/drm: (31 commits)
        drm/amd/display: Fix memory leaks in S3 resume
        drm/amdgpu: Fix a copy-pasta comment
        drm/amdgpu: only set DP subconnector type on DP and eDP connectors
        drm/amd/pm: bump Sienna Cichlid smu_driver_if version to match latest pmfw
        drm/amd/display: add getter routine to retrieve mpcc mux
        drm/amd/display: always program DPPDTO unless not safe to lower
        drm/amd/display: [FW Promotion] Release 0.0.47
        drm/amd/display: updated wm table for Renoir
        drm/amd/display: Acquire DSC during split stream for ODM only if top_pipe
        drm/amd/display: Multi-display underflow observed
        drm/amd/display: Remove unnecessary NULL check
        drm/amd/display: Update RN/VGH active display count workaround
        drm/amd/display: change SMU repsonse timeout to 2s.
        drm/amd/display: gradually ramp ABM intensity
        drm/amd/display: To modify the condition in indicating branch device
        drm/amd/display: Modify the hdcp device count check condition
        drm/amd/display: Interfaces for hubp blank and soft reset
        drm/amd/display: handler not correctly checked at remove_irq_handler
        drm/amdgpu: check gfx pipe availability before toggling its interrupts
        drm/amdgpu: remove unnecessary asic type check
        ...
      ef2c8b81
    • Linus Torvalds's avatar
      Merge tag 'devicetree-fixes-for-5.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux · 14571d5f
      Linus Torvalds authored
      Pull devicetree fixes from Rob Herring:
      
       - Correct the JSON pointer syntax in binding schemas
      
       - Drop unnecessary *-supply schema constraints
      
       - Drop redundant maxItems/items on array schemas
      
       - Fix various yamllint warnings
      
       - Fix various missing 'additionalProperties' properties
      
      * tag 'devicetree-fixes-for-5.11-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
        dt-bindings: Drop redundant maxItems/items
        dt-bindings: net: qcom,ipa: Drop unnecessary type ref on 'memory-region'
        dt-bindings: Drop unnecessary *-supply schemas properties
        dt-bindings/display: abt,y030xx067a: Fix binding
        dt-bindings: clock: imx8qxp-lpcg: eliminate yamllint warnings
        dt-bindings: display: eliminate yamllint warnings
        dt-bindings: media: nokia,smia: eliminate yamllint warnings
        dt-bindings: devapc: add the required property 'additionalProperties'
        dt-bindings: soc: add the required property 'additionalProperties'
        dt-bindings: serial: add the required property 'additionalProperties'
        dt-bindings: xlnx,vcu-settings: fix dt_binding_check warnings
        media: dt-bindings: coda: Add missing 'additionalProperties'
        dt-bindings: Fix JSON pointers
      14571d5f
    • Linus Torvalds's avatar
      Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost · 64145482
      Linus Torvalds authored
      Pull virtio updates from Michael Tsirkin:
      
       - vdpa sim refactoring
      
       - virtio mem: Big Block Mode support
      
       - misc cleanus, fixes
      
      * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost: (61 commits)
        vdpa: Use simpler version of ida allocation
        vdpa: Add missing comment for virtqueue count
        uapi: virtio_ids: add missing device type IDs from OASIS spec
        uapi: virtio_ids.h: consistent indentions
        vhost scsi: fix error return code in vhost_scsi_set_endpoint()
        virtio_ring: Fix two use after free bugs
        virtio_net: Fix error code in probe()
        virtio_ring: Cut and paste bugs in vring_create_virtqueue_packed()
        tools/virtio: add barrier for aarch64
        tools/virtio: add krealloc_array
        tools/virtio: include asm/bug.h
        vdpa/mlx5: Use write memory barrier after updating CQ index
        vdpa: split vdpasim to core and net modules
        vdpa_sim: split vdpasim_virtqueue's iov field in out_iov and in_iov
        vdpa_sim: make vdpasim->buffer size configurable
        vdpa_sim: use kvmalloc to allocate vdpasim->buffer
        vdpa_sim: set vringh notify callback
        vdpa_sim: add set_config callback in vdpasim_dev_attr
        vdpa_sim: add get_config callback in vdpasim_dev_attr
        vdpa_sim: make 'config' generic and usable for any device type
        ...
      64145482
    • Dan Williams's avatar
      Merge branch 'for-5.11/dax' into for-5.11/libnvdimm · 127c3d2e
      Dan Williams authored
      Pull in miscellaneous device-dax fixups and cleanups for v5.11.
      127c3d2e
    • Zhen Lei's avatar
      device-dax: Avoid an unnecessary check in alloc_dev_dax_range() · ff8da37d
      Zhen Lei authored
      Swap the calling sequence of krealloc() and __request_region(), call the
      latter first. In this way, the value of dev_dax->nr_range does not need to
      be considered when __request_region() failed.
      Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
      Link: https://lore.kernel.org/r/20201219081840.1149-2-thunder.leizhen@huawei.comSigned-off-by: default avatarDan Williams <dan.j.williams@intel.com>
      ff8da37d
    • Dan Williams's avatar
      device-dax: Fix range release · 6268d7da
      Dan Williams authored
      There are multiple locations that open-code the release of the last
      range in a device-dax instance. Consolidate this into a new
      dev_dax_trim_range() helper.
      
      This also addresses a kmemleak report:
      
      # cat /sys/kernel/debug/kmemleak
      [..]
      unreferenced object 0xffff976bd46f6240 (size 64):
         comm "ndctl", pid 23556, jiffies 4299514316 (age 5406.733s)
         hex dump (first 32 bytes):
           00 00 00 00 00 00 00 00 00 00 20 c3 37 00 00 00  .......... .7...
           ff ff ff 7f 38 00 00 00 00 00 00 00 00 00 00 00  ....8...........
         backtrace:
           [<00000000064003cf>] __kmalloc_track_caller+0x136/0x379
           [<00000000d85e3c52>] krealloc+0x67/0x92
           [<00000000d7d3ba8a>] __alloc_dev_dax_range+0x73/0x25c
           [<0000000027d58626>] devm_create_dev_dax+0x27d/0x416
           [<00000000434abd43>] __dax_pmem_probe+0x1c9/0x1000 [dax_pmem_core]
           [<0000000083726c1c>] dax_pmem_probe+0x10/0x1f [dax_pmem]
           [<00000000b5f2319c>] nvdimm_bus_probe+0x9d/0x340 [libnvdimm]
           [<00000000c055e544>] really_probe+0x230/0x48d
           [<000000006cabd38e>] driver_probe_device+0x122/0x13b
           [<0000000029c7b95a>] device_driver_attach+0x5b/0x60
           [<0000000053e5659b>] bind_store+0xb7/0xc3
           [<00000000d3bdaadc>] drv_attr_store+0x27/0x31
           [<00000000949069c5>] sysfs_kf_write+0x4a/0x57
           [<000000004a8b5adf>] kernfs_fop_write+0x150/0x1e5
           [<00000000bded60f0>] __vfs_write+0x1b/0x34
           [<00000000b92900f0>] vfs_write+0xd8/0x1d1
      Reported-by: default avatarJane Chu <jane.chu@oracle.com>
      Cc: Zhen Lei <thunder.leizhen@huawei.com>
      Link: https://lore.kernel.org/r/160834570161.1791850.14911670304441510419.stgit@dwillia2-desk3.amr.corp.intel.comSigned-off-by: default avatarDan Williams <dan.j.williams@intel.com>
      6268d7da
    • Dave Airlie's avatar
      Merge tag 'amd-drm-fixes-5.11-2020-12-23' of... · 5b2fc08c
      Dave Airlie authored
      Merge tag 'amd-drm-fixes-5.11-2020-12-23' of git://people.freedesktop.org/~agd5f/linux into drm-next
      
      amd-drm-fixes-5.11-2020-12-23:
      
      amdgpu:
      - Vangogh SMU fixes
      - Arcturus gfx9 fixes
      - Misc display fixes
      - Sienna Cichlid SMU update
      - Fix S3 display memory leak
      - Fix regression caused by DP sub-connector support
      
      amdkfd:
      - Properly require pcie atomics for gfx10
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      From: Alex Deucher <alexdeucher@gmail.com>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201223204752.4019-1-alexander.deucher@amd.com
      5b2fc08c
    • Dave Airlie's avatar
      Merge tag 'drm-misc-next-fixes-2020-12-22' of... · 399895b3
      Dave Airlie authored
      Merge tag 'drm-misc-next-fixes-2020-12-22' of git://anongit.freedesktop.org/drm/drm-misc into drm-next
      
      Short summary of fixes pull:
      
       * dma-buf: Include <linux/vmalloc.h> for building on MIPS
       * komeda: Fix order of operation in commit tail; Fix NULL-pointer and
                 out-of-bounds access; Cleanups
       * ttm: Fix an unused-function warning
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      
      From: Thomas Zimmermann <tzimmermann@suse.de>
      Link: https://patchwork.freedesktop.org/patch/msgid/X+JFYlW1SEZa6ShA@linux-uq9g
      399895b3
  2. 23 Dec, 2020 28 commits