Bug 109390 - memory leak in `amdgpu_bo_create()`
Summary: memory leak in `amdgpu_bo_create()`
Status: RESOLVED DUPLICATE of bug 109389
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/AMDgpu (show other bugs)
Version: XOrg git
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-18 21:13 UTC by Paul Menzel
Modified: 2019-01-18 21:13 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Paul Menzel 2019-01-18 21:13:11 UTC
With Linux 5.0-rc2+ thousands of memory leaks like 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
```
Comment 1 Paul Menzel 2019-01-18 21:13:53 UTC

*** This bug has been marked as a duplicate of bug 109389 ***


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.