From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 109389] memory leak in `amdgpu_bo_create()` Date: Fri, 18 Jan 2019 21:11:33 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1391265812==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 15DDA6E559 for ; Fri, 18 Jan 2019 21:11:34 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1391265812== Content-Type: multipart/alternative; boundary="15478458940.478B5CcD.26597" Content-Transfer-Encoding: 7bit --15478458940.478B5CcD.26597 Date: Fri, 18 Jan 2019 21:11:34 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D109389 Bug ID: 109389 Summary: memory leak in `amdgpu_bo_create()` Product: DRI Version: XOrg git Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: DRM/AMDgpu Assignee: dri-devel@lists.freedesktop.org Reporter: pmenzel+bugs.freedesktop.org@molgen.mpg.de Created attachment 143156 --> https://bugs.freedesktop.org/attachment.cgi?id=3D143156&action=3Dedit Output of kmemleak With Linux 5.0-rc2+ the memory leaks below are reported by kmemleak. ``` unreferenced object 0xffff9f83850c5000 (size 2048): comm "gnome-shell", pid 569, jiffies 4294682217 (age 9133.583s) hex dump (first 32 bytes): 02 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 ................ 02 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<000000001aec1dd8>] amdgpu_bo_create+0x40/0x220 [amdgpu] [<000000007da39c30>] amdgpu_gem_object_create+0x9e/0x120 [amdgpu] [<00000000099484e9>] amdgpu_gem_create_ioctl+0x1d3/0x290 [amdgpu] [<000000009d8251d3>] drm_ioctl_kernel+0xa9/0xf0 [<0000000050b61811>] drm_ioctl+0x201/0x3a0 [<000000007c88aae3>] amdgpu_drm_ioctl+0x49/0x80 [amdgpu] [<0000000083291747>] do_vfs_ioctl+0xa4/0x630 [<00000000722b6176>] ksys_ioctl+0x60/0x90 [<000000001bfa30dc>] __x64_sys_ioctl+0x16/0x20 [<000000007862c966>] do_syscall_64+0x55/0x170 [<00000000a8eeee88>] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [<000000001242345f>] 0xffffffffffffffff unreferenced object 0xffff9f837cdd36c0 (size 64): comm "gnome-shell", pid 569, jiffies 4294682217 (age 9133.583s) hex dump (first 32 bytes): d4 23 b4 d5 ab e2 45 94 d0 53 43 86 83 9f ff ff .#....E..SC..... 01 00 00 00 04 00 00 00 60 ab cc 5c 83 9f ff ff ........`..\.... backtrace: [<000000000768e015>] ttm_bo_mem_space+0x41/0x4a0 [<00000000f11076b2>] ttm_bo_validate+0xc7/0x130 [<00000000c820992e>] ttm_bo_init_reserved+0x32f/0x390 [<00000000fcfd5ce2>] amdgpu_bo_do_create+0x1ed/0x420 [amdgpu] [<000000001aec1dd8>] amdgpu_bo_create+0x40/0x220 [amdgpu] [<000000007da39c30>] amdgpu_gem_object_create+0x9e/0x120 [amdgpu] [<00000000099484e9>] amdgpu_gem_create_ioctl+0x1d3/0x290 [amdgpu] [<000000009d8251d3>] drm_ioctl_kernel+0xa9/0xf0 [<0000000050b61811>] drm_ioctl+0x201/0x3a0 [<000000007c88aae3>] amdgpu_drm_ioctl+0x49/0x80 [amdgpu] [<0000000083291747>] do_vfs_ioctl+0xa4/0x630 [<00000000722b6176>] ksys_ioctl+0x60/0x90 [<000000001bfa30dc>] __x64_sys_ioctl+0x16/0x20 [<000000007862c966>] do_syscall_64+0x55/0x170 [<00000000a8eeee88>] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [<000000001242345f>] 0xffffffffffffffff ``` --=20 You are receiving this mail because: You are the assignee for the bug.= --15478458940.478B5CcD.26597 Date: Fri, 18 Jan 2019 21:11:34 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated
Bug ID 109389
Summary memory leak in `amdgpu_bo_create()`
Product DRI
Version XOrg git
Hardware Other
OS All
Status NEW
Severity normal
Priority medium
Component DRM/AMDgpu
Assignee dri-devel@lists.freedesktop.org
Reporter pmenzel+bugs.freedesktop.org@molgen.mpg.de

Created attachment 143156=
 [details]
Output of kmemleak

With Linux 5.0-rc2+ the memory leaks below are reported by kmemleak.

```
unreferenced object 0xffff9f83850c5000 (size 2048):
  comm "gnome-shell", pid 569, jiffies 4294682217 (age 9133.583s)
  hex dump (first 32 bytes):
    02 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00  ................
    02 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<000000001aec1dd8>] amdgpu_bo_create+0x40/0x220 [amdgpu]
    [<000000007da39c30>] amdgpu_gem_object_create+0x9e/0x120 [amdgpu]
    [<00000000099484e9>] amdgpu_gem_create_ioctl+0x1d3/0x290 [amdgpu]
    [<000000009d8251d3>] drm_ioctl_kernel+0xa9/0xf0
    [<0000000050b61811>] drm_ioctl+0x201/0x3a0
    [<000000007c88aae3>] amdgpu_drm_ioctl+0x49/0x80 [amdgpu]
    [<0000000083291747>] do_vfs_ioctl+0xa4/0x630
    [<00000000722b6176>] ksys_ioctl+0x60/0x90
    [<000000001bfa30dc>] __x64_sys_ioctl+0x16/0x20
    [<000000007862c966>] do_syscall_64+0x55/0x170
    [<00000000a8eeee88>] entry_SYSCALL_64_after_hwframe+0x44/0xa9
    [<000000001242345f>] 0xffffffffffffffff
unreferenced object 0xffff9f837cdd36c0 (size 64):
  comm "gnome-shell", pid 569, jiffies 4294682217 (age 9133.583s)
  hex dump (first 32 bytes):
    d4 23 b4 d5 ab e2 45 94 d0 53 43 86 83 9f ff ff  .#....E..SC.....
    01 00 00 00 04 00 00 00 60 ab cc 5c 83 9f ff ff  ........`..\....
  backtrace:
    [<000000000768e015>] ttm_bo_mem_space+0x41/0x4a0
    [<00000000f11076b2>] ttm_bo_validate+0xc7/0x130
    [<00000000c820992e>] ttm_bo_init_reserved+0x32f/0x390
    [<00000000fcfd5ce2>] amdgpu_bo_do_create+0x1ed/0x420 [amdgpu]
    [<000000001aec1dd8>] amdgpu_bo_create+0x40/0x220 [amdgpu]
    [<000000007da39c30>] amdgpu_gem_object_create+0x9e/0x120 [amdgpu]
    [<00000000099484e9>] amdgpu_gem_create_ioctl+0x1d3/0x290 [amdgpu]
    [<000000009d8251d3>] drm_ioctl_kernel+0xa9/0xf0
    [<0000000050b61811>] drm_ioctl+0x201/0x3a0
    [<000000007c88aae3>] amdgpu_drm_ioctl+0x49/0x80 [amdgpu]
    [<0000000083291747>] do_vfs_ioctl+0xa4/0x630
    [<00000000722b6176>] ksys_ioctl+0x60/0x90
    [<000000001bfa30dc>] __x64_sys_ioctl+0x16/0x20
    [<000000007862c966>] do_syscall_64+0x55/0x170
    [<00000000a8eeee88>] entry_SYSCALL_64_after_hwframe+0x44/0xa9
    [<000000001242345f>] 0xffffffffffffffff
```


You are receiving this mail because:
  • You are the assignee for the bug.
= --15478458940.478B5CcD.26597-- --===============1391265812== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1391265812==--