← Back to team overview

kernel-packages team mailing list archive

[Bug 1579610] Re: drm.ko < kernel version 4.5 has a dead lock bug


This bug was fixed in the package linux - 4.2.0-38.45

linux (4.2.0-38.45) wily; urgency=low

  [ Kamal Mostafa ]

  * CVE-2016-1583 (LP: #1588871)
    - ecryptfs: fix handling of directory opening
    - SAUCE: proc: prevent stacking filesystems on top
    - SAUCE: ecryptfs: forbid opening files without mmap handler
    - SAUCE: sched: panic on corrupted stack end

 -- Andy Whitcroft <apw@xxxxxxxxxxxxx>  Wed, 08 Jun 2016 22:10:39 +0100

** Changed in: linux (Ubuntu Xenial)
       Status: Fix Committed => Fix Released

You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.

  drm.ko < kernel version 4.5 has a dead lock bug

Status in linux package in Ubuntu:
  Fix Released
Status in linux source package in Trusty:
  Fix Released
Status in linux source package in Vivid:
  Fix Released
Status in linux source package in Wily:
  Fix Released
Status in linux source package in Xenial:
  Fix Released
Status in linux source package in Yakkety:
  Fix Released

Bug description:
  This bug go the code path

  | mutex_lock(&file_priv->prime.lock);
  | drm_gem_handle_create_tail()
  | | dev->driver->gem_open_object() (for amdgpu.ko driver, this is amdgpu_gem_object_open)
  | | drm_gem_handle_delete()
  | | | drm_gem_remove_prime_handles()
  | | | | mutex_lock(&filp->prime.lock);

  This causes the dead lock if gem_open_object() return with error.

  Patch fixing this is already in Linux 4.5:

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: linux-image-generic
  ProcVersionSignature: Ubuntu 4.4.0-22.39-generic 4.4.8
  Uname: Linux 4.4.0-22-generic x86_64
  ApportVersion: 2.20.1-0ubuntu1
  Architecture: amd64
   /dev/snd/controlC0:  yuq        1566 F.... pulseaudio
   /dev/snd/controlC1:  yuq        1566 F.... pulseaudio
  CurrentDesktop: Unity
  Date: Mon May  9 11:20:26 2016
  HibernationDevice: RESUME=UUID=2e71a82b-c613-4a96-88e3-0672a366c396
  InstallationDate: Installed on 2016-03-01 (69 days ago)
  InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160228)
   enp7s0    no wireless extensions.
   lo        no wireless extensions.
  MachineType: Gigabyte Technology Co., Ltd. X58A-UD3R
  ProcFB: 0 amdgpudrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.4.0-22-generic root=UUID=c137e0c1-ad99-47f4-acf5-e7f4792afa9e ro quiet splash vt.handoff=7
   linux-restricted-modules-4.4.0-22-generic N/A
   linux-backports-modules-4.4.0-22-generic  N/A
   linux-firmware                            1.157
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 12/23/2010
  dmi.bios.vendor: Award Software International, Inc.
  dmi.bios.version: FE
  dmi.board.name: X58A-UD3R
  dmi.board.vendor: Gigabyte Technology Co., Ltd.
  dmi.board.version: x.x
  dmi.chassis.type: 3
  dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
  dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrFE:bd12/23/2010:svnGigabyteTechnologyCo.,Ltd.:pnX58A-UD3R:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnX58A-UD3R:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
  dmi.product.name: X58A-UD3R
  dmi.sys.vendor: Gigabyte Technology Co., Ltd.

To manage notifications about this bug go to: