1. 18 7月, 2022 1 次提交
  2. 15 7月, 2022 1 次提交
  3. 14 7月, 2022 6 次提交
  4. 10 7月, 2022 1 次提交
    • T
      drm/aperture: Run fbdev removal before internal helpers · 84499c5d
      Thomas Zimmermann 提交于
      Always run fbdev removal first to remove simpledrm via sysfb_disable().
      This clears the internal state.
      
      The later call to drm_aperture_detach_drivers() then does nothing.
      Otherwise, with drm_aperture_detach_drivers() running first, the call to
      sysfb_disable() uses inconsistent state.
      
      Example backtrace show below:
      
        BUG: KASAN: use-after-free in device_del+0x79/0x5f0
        Read of size 8 at addr ffff888108185050 by task systemd-udevd/311
        CPU: 0 PID: 311 Comm: systemd-udevd Tainted: G            E     5.19.0-rc2-1-default+ #1689
        Hardware name: HP ProLiant DL120 G7, BIOS J01 04/21/2011
        Call Trace:
          device_del+0x79/0x5f0
          platform_device_del.part.0+0x19/0xe0
          platform_device_unregister+0x1c/0x30
          sysfb_disable+0x2d/0x70
          remove_conflicting_framebuffers+0x1c/0xf0
          remove_conflicting_pci_framebuffers+0x130/0x1a0
          drm_aperture_remove_conflicting_pci_framebuffers+0x86/0xb0
          mgag200_pci_probe+0x2d/0x140 [mgag200]
      Signed-off-by: NThomas Zimmermann <tzimmermann@suse.de>
      Fixes: 873eb3b1 ("fbdev: Disable sysfb device registration when removing conflicting FBs")
      Cc: Javier Martinez Canillas <javierm@redhat.com>
      Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
      Cc: Daniel Vetter <daniel@ffwll.ch>
      Cc: Sam Ravnborg <sam@ravnborg.org>
      Cc: Helge Deller <deller@gmx.de>
      Cc: Thomas Zimmermann <tzimmermann@suse.de>
      Cc: Alex Deucher <alexander.deucher@amd.com>
      Cc: Zhen Lei <thunder.leizhen@huawei.com>
      Cc: Changcheng Deng <deng.changcheng@zte.com.cn>
      Reviewed-by: NZack Rusin <zackr@vmware.com>
      Reviewed-by: NJavier Martinez Canillas <javierm@redhat.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      84499c5d
  5. 08 7月, 2022 2 次提交
  6. 07 7月, 2022 18 次提交
  7. 06 7月, 2022 9 次提交
  8. 05 7月, 2022 2 次提交
    • L
      gpio: vf610: fix compilation error · 8af3a0b2
      Leon Romanovsky 提交于
      Fix compilation error by explicitly adding the missing include.
      
      drivers/gpio/gpio-vf610.c: In function ‘vf610_gpio_direction_input’:
      drivers/gpio/gpio-vf610.c:120:9: error: implicit declaration of function ‘pinctrl_gpio_direction_input’; did you mean ‘vf610_gpio_direction_input’? [-Werror=implicit-function-declaration]
        120 |  return pinctrl_gpio_direction_input(chip->base + gpio);
            |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
            |         vf610_gpio_direction_input
      
      Fixes: 30a35c07 ("gpio: vf610: drop the SOC_VF610 dependency for GPIO_VF610")
      Signed-off-by: NLeon Romanovsky <leonro@nvidia.com>
      Signed-off-by: NTariq Toukan <tariqt@nvidia.com>
      Reviewed-by: NAndy Shevchenko <andy.shevchenko@gmail.com>
      Reviewed-by: NPeng Fan <peng.fan@nxp.com>
      Signed-off-by: NBartosz Golaszewski <brgl@bgdev.pl>
      8af3a0b2
    • J
      dmaengine: idxd: Only call idxd_enable_system_pasid() if succeeded in enabling SVA feature · 8ffccd11
      Jerry Snitselaar 提交于
      On a Sapphire Rapids system if boot without intel_iommu=on, the IDXD
      driver will crash during probe in iommu_sva_bind_device().
      
      [   21.423729] BUG: kernel NULL pointer dereference, address: 0000000000000038
      [   21.445108] #PF: supervisor read access in kernel mode
      [   21.450912] #PF: error_code(0x0000) - not-present page
      [   21.456706] PGD 0
      [   21.459047] Oops: 0000 [#1] PREEMPT SMP NOPTI
      [   21.464004] CPU: 0 PID: 1420 Comm: kworker/0:3 Not tainted 5.19.0-0.rc3.27.eln120.x86_64 #1
      [   21.464011] Hardware name: Intel Corporation EAGLESTREAM/EAGLESTREAM, BIOS EGSDCRB1.SYS.0067.D12.2110190954 10/19/2021
      [   21.464015] Workqueue: events work_for_cpu_fn
      [   21.464030] RIP: 0010:iommu_sva_bind_device+0x1d/0xe0
      [   21.464046] Code: c3 cc 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 41 57 41 56 49 89 d6 41 55 41 54 55 53 48 83 ec 08 48 8b 87 d8 02 00 00 <48> 8b 40 38 48 8b 50 10 48 83 7a 70 00 48 89 14 24 0f 84 91 00 00
      [   21.464050] RSP: 0018:ff7245d9096b7db8 EFLAGS: 00010296
      [   21.464054] RAX: 0000000000000000 RBX: ff1eadeec8a51000 RCX: 0000000000000000
      [   21.464058] RDX: ff7245d9096b7e24 RSI: 0000000000000000 RDI: ff1eadeec8a510d0
      [   21.464060] RBP: ff1eadeec8a51000 R08: ffffffffb1a12300 R09: ff1eadffbfce25b4
      [   21.464062] R10: ffffffffffffffff R11: 0000000000000038 R12: ffffffffc09f8000
      [   21.464065] R13: ff1eadeec8a510d0 R14: ff7245d9096b7e24 R15: ff1eaddf54429000
      [   21.464067] FS:  0000000000000000(0000) GS:ff1eadee7f600000(0000) knlGS:0000000000000000
      [   21.464070] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
      [   21.464072] CR2: 0000000000000038 CR3: 00000008c0e10006 CR4: 0000000000771ef0
      [   21.464074] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
      [   21.464076] DR3: 0000000000000000 DR6: 00000000fffe07f0 DR7: 0000000000000400
      [   21.464078] PKRU: 55555554
      [   21.464079] Call Trace:
      [   21.464083]  <TASK>
      [   21.464092]  idxd_pci_probe+0x259/0x1070 [idxd]
      [   21.464121]  local_pci_probe+0x3e/0x80
      [   21.464132]  work_for_cpu_fn+0x13/0x20
      [   21.464136]  process_one_work+0x1c4/0x380
      [   21.464143]  worker_thread+0x1ab/0x380
      [   21.464147]  ? _raw_spin_lock_irqsave+0x23/0x50
      [   21.464158]  ? process_one_work+0x380/0x380
      [   21.464161]  kthread+0xe6/0x110
      [   21.464168]  ? kthread_complete_and_exit+0x20/0x20
      [   21.464172]  ret_from_fork+0x1f/0x30
      
      iommu_sva_bind_device() requires SVA has been enabled successfully on
      the IDXD device before it's called. Otherwise, iommu_sva_bind_device()
      will access a NULL pointer. If Intel IOMMU is disabled, SVA cannot be
      enabled and thus idxd_enable_system_pasid() and iommu_sva_bind_device()
      should not be called.
      
      Fixes: 42a1b738 ("dmaengine: idxd: Separate user and kernel pasid enabling")
      Cc: Vinod Koul <vkoul@kernel.org>
      Cc: linux-kernel@vger.kernel.org
      Cc: Dave Jiang <dave.jiang@intel.com>
      Cc: Fenghua Yu <fenghua.yu@intel.com>
      Link: https://lore.kernel.org/dmaengine/20220623170232.6whonfjuh3m5vcoy@cantor/Signed-off-by: NJerry Snitselaar <jsnitsel@redhat.com>
      Acked-by: NFenghua Yu <fenghua.yu@intel.com>
      Link: https://lore.kernel.org/r/20220626051648.14249-1-jsnitsel@redhat.comSigned-off-by: NVinod Koul <vkoul@kernel.org>
      8ffccd11