← Back to team overview

kernel-packages team mailing list archive

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

 

OK. Thanks. We're testing on this. But our driver only support 14.04.4 &
16.04, so we can only verify on 4.2 & 4.4 kernel, is that OK?

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1579610

Title:
  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 Committed
Status in linux source package in Vivid:
  Fix Committed
Status in linux source package in Wily:
  Fix Committed
Status in linux source package in Xenial:
  Fix Committed
Status in linux source package in Yakkety:
  Fix Released

Bug description:
  This bug go the code path
  drvers/gpu/drm/{drm_prime.c,drm_gem.c}

  drm_gem_prime_fd_to_handle()
  | 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:
  https://github.com/torvalds/linux/commit/6984128d01cf935820a0563f3a00c6623ba58109

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: linux-image-generic 4.4.0.22.23
  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
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /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)
  IwConfig:
   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
  RelatedPackageVersions:
   linux-restricted-modules-4.4.0-22-generic N/A
   linux-backports-modules-4.4.0-22-generic  N/A
   linux-firmware                            1.157
  RfKill:
   
  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:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1579610/+subscriptions


References