Skip to content
  1. Nov 19, 2020
  2. Nov 18, 2020
  3. Nov 13, 2020
  4. Nov 11, 2020
  5. Nov 09, 2020
    • Thomas Zimmermann's avatar
      drm/gma500: Fix out-of-bounds access to struct drm_device.vblank[] · 06ad8d33
      Thomas Zimmermann authored
      
      
      The gma500 driver expects 3 pipelines in several it's IRQ functions.
      Accessing struct drm_device.vblank[], this fails with devices that only
      have 2 pipelines. An example KASAN report is shown below.
      
        [   62.267688] ==================================================================
        [   62.268856] BUG: KASAN: slab-out-of-bounds in psb_irq_postinstall+0x250/0x3c0 [gma500_gfx]
        [   62.269450] Read of size 1 at addr ffff8880012bc6d0 by task systemd-udevd/285
        [   62.269949]
        [   62.270192] CPU: 0 PID: 285 Comm: systemd-udevd Tainted: G            E     5.10.0-rc1-1-default+ #572
        [   62.270807] Hardware name:  /DN2800MT, BIOS MTCDT10N.86A.0164.2012.1213.1024 12/13/2012
        [   62.271366] Call Trace:
        [   62.271705]  dump_stack+0xae/0xe5
        [   62.272180]  print_address_description.constprop.0+0x17/0xf0
        [   62.272987]  ? psb_irq_postinstall+0x250/0x3c0 [gma500_gfx]
        [   62.273474]  __kasan_report.cold+0x20/0x38
        [   62.273989]  ? psb_irq_postinstall+0x250/0x3c0 [gma500_gfx]
        [   62.274460]  kasan_report+0x3a/0x50
        [   62.274891]  psb_irq_postinstall+0x250/0x3c0 [gma500_gfx]
        [   62.275380]  drm_irq_install+0x131/0x1f0
        <...>
        [   62.300751] Allocated by task 285:
        [   62.301223]  kasan_save_stack+0x1b/0x40
        [   62.301731]  __kasan_kmalloc.constprop.0+0xbf/0xd0
        [   62.302293]  drmm_kmalloc+0x55/0x100
        [   62.302773]  drm_vblank_init+0x77/0x210
      
      Resolve the issue by only handling vblank entries up to the number of
      CRTCs.
      
      I'm adding a Fixes tag for reference, although the bug has been present
      since the driver's initial commit.
      
      Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
      Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Fixes: 5c49fd3a ("gma500: Add the core DRM files and headers")
      Cc: Alan Cox <alan@linux.intel.com>
      Cc: Dave Airlie <airlied@redhat.com>
      Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
      Cc: dri-devel@lists.freedesktop.org
      Cc: stable@vger.kernel.org#v3.3+
      Link: https://patchwork.freedesktop.org/patch/msgid/20201105190256.3893-1-tzimmermann@suse.de
      06ad8d33
    • Olaf Hering's avatar
      video: hyperv_fb: include vmalloc.h · 34a28083
      Olaf Hering authored
      hvfb_getmem uses vzalloc, therefore vmalloc.h should be included.
      
      Fixes commit d21987d7
      
       ("video: hyperv:
      hyperv_fb: Support deferred IO for Hyper-V frame buffer driver")
      
      Signed-off-by: default avatarOlaf Hering <olaf@aepfle.de>
      Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
      Link: https://patchwork.freedesktop.org/patch/msgid/20201106183941.9751-1-olaf@aepfle.de
      34a28083
  6. Nov 08, 2020
  7. Nov 03, 2020
  8. Nov 02, 2020
  9. Nov 01, 2020
    • Linus Torvalds's avatar
      Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost · c2dc4c07
      Linus Torvalds authored
      Pull vhost fixes from Michael Tsirkin:
       "Fixes all over the place.
      
        A new UAPI is borderline: can also be considered a new feature but
        also seems to be the only way we could come up with to fix addressing
        for userspace - and it seems important to switch to it now before
        userspace making assumptions about addressing ability of devices is
        set in stone"
      
      * tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost:
        vdpasim: allow to assign a MAC address
        vdpasim: fix MAC address configuration
        vdpa: handle irq bypass register failure case
        vdpa_sim: Fix DMA mask
        Revert "vhost-vdpa: fix page pinning leakage in error path"
        vdpa/mlx5: Fix error return in map_direct_mr()
        vhost_vdpa: Return -EFAULT if copy_from_user() fails
        vdpa_sim: implement get_iova_range()
        vhost: vdpa: report iova range
        vdpa: introduce config op to get valid iova range
      c2dc4c07
    • Linus Torvalds's avatar
      Merge tag 'flexible-array-conversions-5.10-rc2' of... · 53760f9b
      Linus Torvalds authored
      Merge tag 'flexible-array-conversions-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux
      
      Pull more flexible-array member conversions from Gustavo A. R. Silva:
       "Replace zero-length arrays with flexible-array members"
      
      * tag 'flexible-array-conversions-5.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux:
        printk: ringbuffer: Replace zero-length array with flexible-array member
        net/smc: Replace zero-length array with flexible-array member
        net/mlx5: Replace zero-length array with flexible-array member
        mei: hw: Replace zero-length array with flexible-array member
        gve: Replace zero-length array with flexible-array member
        Bluetooth: btintel: Replace zero-length array with flexible-array member
        scsi: target: tcmu: Replace zero-length array with flexible-array member
        ima: Replace zero-length array with flexible-array member
        enetc: Replace zero-length array with flexible-array member
        fs: Replace zero-length array with flexible-array member
        Bluet...
      53760f9b
    • Linus Torvalds's avatar
      Merge tag 'dma-mapping-5.10-2' of git://git.infradead.org/users/hch/dma-mapping · bb3540be
      Linus Torvalds authored
      Pull dma-mapping fix from Christoph Hellwig:
       "Fix an integer overflow on 32-bit platforms in the new DMA range code
        (Geert Uytterhoeven)"
      
      * tag 'dma-mapping-5.10-2' of git://git.infradead.org/users/hch/dma-mapping:
        dma-mapping: fix 32-bit overflow with CONFIG_ARM_LPAE=n
      bb3540be
    • Linus Torvalds's avatar
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 67ff377b
      Linus Torvalds authored
      Pull SCSI fixes from James Bottomley:
       "Four driver fixes and one core fix.
      
        The core fix closes a race window where we could kick off a second
        asynchronous scan because the test and set of the variable preventing
        it isn't atomic"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        scsi: hisi_sas: Stop using queue #0 always for v2 hw
        scsi: ibmvscsi: Fix potential race after loss of transport
        scsi: mptfusion: Fix null pointer dereferences in mptscsih_remove()
        scsi: qla2xxx: Return EBUSY on fcport deletion
        scsi: core: Don't start concurrent async scan on same host
      67ff377b
  10. Oct 31, 2020
    • Paolo Bonzini's avatar
      KVM: vmx: remove unused variable · 9478dec3
      Paolo Bonzini authored
      
      
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      9478dec3
    • Andrew Jones's avatar
      KVM: selftests: Don't require THP to run tests · 0f55b67e
      Andrew Jones authored
      
      
      Unless we want to test with THP, then we shouldn't require it to be
      configured by the host kernel. Unfortunately, even advising with
      MADV_NOHUGEPAGE does require it, so check for THP first in order
      to avoid madvise failing with EINVAL.
      
      Signed-off-by: default avatarAndrew Jones <drjones@redhat.com>
      Message-Id: <20201029201703.102716-2-drjones@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      0f55b67e
    • Vitaly Kuznetsov's avatar
      KVM: VMX: eVMCS: make evmcs_sanitize_exec_ctrls() work again · 064eedf2
      Vitaly Kuznetsov authored
      
      
      It was noticed that evmcs_sanitize_exec_ctrls() is not being executed
      nowadays despite the code checking 'enable_evmcs' static key looking
      correct. Turns out, static key magic doesn't work in '__init' section
      (and it is unclear when things changed) but setup_vmcs_config() is called
      only once per CPU so we don't really need it to. Switch to checking
      'enlightened_vmcs' instead, it is supposed to be in sync with
      'enable_evmcs'.
      
      Opportunistically make evmcs_sanitize_exec_ctrls '__init' and drop unneeded
      extra newline from it.
      
      Reported-by: default avatarYang Weijiang <weijiang.yang@intel.com>
      Signed-off-by: default avatarVitaly Kuznetsov <vkuznets@redhat.com>
      Message-Id: <20201014143346.2430936-1-vkuznets@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      064eedf2
    • Jim Mattson's avatar
      KVM: selftests: test behavior of unmapped L2 APIC-access address · 97a71a54
      Jim Mattson authored
      Add a regression test for commit 671ddc70
      
       ("KVM: nVMX: Don't leak
      L1 MMIO regions to L2").
      
      First, check to see that an L2 guest can be launched with a valid
      APIC-access address that is backed by a page of L1 physical memory.
      
      Next, set the APIC-access address to a (valid) L1 physical address
      that is not backed by memory. KVM can't handle this situation, so
      resuming L2 should result in a KVM exit for internal error
      (emulation).
      
      Signed-off-by: default avatarJim Mattson <jmattson@google.com>
      Reviewed-by: default avatarRicardo Koller <ricarkol@google.com>
      Reviewed-by: default avatarPeter Shier <pshier@google.com>
      Message-Id: <20201026180922.3120555-1-jmattson@google.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      97a71a54
    • Linus Torvalds's avatar
      Merge tag 'block-5.10-2020-10-30' of git://git.kernel.dk/linux-block · 5fc6b075
      Linus Torvalds authored
      Pull block fixes from Jens Axboe:
      
       - null_blk zone fixes (Damien, Kanchan)
      
       - NVMe pull request from Christoph:
             - improve zone revalidation (Keith Busch)
             - gracefully handle zero length messages in nvme-rdma (zhenwei pi)
             - nvme-fc error handling fixes (James Smart)
             - nvmet tracing NULL pointer dereference fix (Chaitanya Kulkarni)"
      
       - xsysace platform fixes (Andy)
      
       - scatterlist type cleanup (David)
      
       - blk-cgroup memory fixes (Gabriel)
      
       - nbd block size update fix (Ming)
      
       - Flush completion state fix (Ming)
      
       - bio_add_hw_page() iteration fix (Naohiro)
      
      * tag 'block-5.10-2020-10-30' of git://git.kernel.dk/linux-block:
        blk-mq: mark flush request as IDLE in flush_end_io()
        lib/scatterlist: use consistent sg_copy_buffer() return type
        xsysace: use platform_get_resource() and platform_get_irq_optional()
        null_blk: Fix locking in zoned mode
        null_blk: Fix zone reset all tracing
        nbd: don't update block size after device is started
        block: advance iov_iter on bio_add_hw_page failure
        null_blk: synchronization fix for zoned device
        nvmet: fix a NULL pointer dereference when tracing the flush command
        nvme-fc: remove nvme_fc_terminate_io()
        nvme-fc: eliminate terminate_io use by nvme_fc_error_recovery
        nvme-fc: remove err_work work item
        nvme-fc: track error_recovery while connecting
        nvme-rdma: handle unexpected nvme completion data length
        nvme: ignore zone validate errors on subsequent scans
        blk-cgroup: Pre-allocate tree node on blkg_conf_prep
        blk-cgroup: Fix memleak on error path
      5fc6b075