From: "Wouter M. Koolen" <W.M.Koolen-Wijkstra@cwi.nl>
To: Catalin Marinas <catalin.marinas@arm.com>
Cc: "Wouter M. Koolen" <W.M.Koolen-Wijkstra@cwi.nl>,
tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
x86@kernel.org
Subject: Re: kmemleak: unreferenced object in copy_thread
Date: Wed, 30 Nov 2011 20:02:07 +0000 [thread overview]
Message-ID: <4ED68BBF.8010608@cwi.nl> (raw)
In-Reply-To: <CAHkRjk69fwTy0+w4LyXeai5ekCirC1D5V7-Gkja6MbKqJ_-KFw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1619 bytes --]
On 11/30/2011 11:54 AM, Catalin Marinas wrote:
> I can't yet tell whether it's a false positive or not. Did the X
> server die? Is the process with pid 1415 still around? The leaked
> object looks like the thread stack (8K) and it should have been
> removed when the corresponding process was killed.
Hi Catalin,
Just got lucky and hit it again. This time it occurred without killing.
Here's the splat:
unreferenced object 0xffff880003eda000 (size 8192):
comm "Xorg", pid 1117, jiffies 4295143832 (age 34745.832s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 0f 00 00 00 0f 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<ffffffff813feeb1>] kmemleak_alloc+0x21/0x50
[<ffffffff8111086b>] kmem_cache_alloc_trace+0xdb/0x1d0
[<ffffffff81001fbe>] copy_thread+0x1be/0x260
[<ffffffff81044953>] copy_process+0xee3/0x1520
[<ffffffff810450d6>] do_fork+0x116/0x350
[<ffffffff8100a7d3>] sys_clone+0x23/0x30
[<ffffffff8141c173>] stub_clone+0x13/0x20
[<ffffffffffffffff>] 0xffffffffffffffff
The process 1117 is still alive. It is
root 1117 2.1 1.3 147484 28152 tty7 Ss+ 09:55 13:02
/usr/bin/X :0 vt7 -br -nolisten tcp -auth /var/run/xauth/A:0-Tdu4bb
Actually, there now are several splats of a second kind, relating to
i915 gem buffers (attached). This type of splat has been reported before in
https://lkml.org/lkml/2011/10/4/15
although that thread seems to be a dead end. Maybe these warnings have a
common source?
What would be a good next step?
With kind regards,
Wouter Koolen
[-- Attachment #2: kmemleak --]
[-- Type: text/plain, Size: 10045 bytes --]
unreferenced object 0xffff880078ce5290 (size 544):
comm "Xorg", pid 1117, jiffies 4294897828 (age 36161.832s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<ffffffff813feeb1>] kmemleak_alloc+0x21/0x50
[<ffffffff8111043a>] kmem_cache_alloc+0xda/0x1f0
[<ffffffff811ca238>] idr_pre_get+0x68/0x90
[<ffffffff8127c97d>] drm_gem_handle_create+0x3d/0xf0
[<ffffffff812b4976>] i915_gem_create+0x56/0x140
[<ffffffff812b4a79>] i915_gem_create_ioctl+0x19/0x20
[<ffffffff8127ad34>] drm_ioctl+0x404/0x4f0
[<ffffffff8112e327>] do_vfs_ioctl+0x97/0x5f0
[<ffffffff8112e8ca>] sys_ioctl+0x4a/0x80
[<ffffffff8141bebb>] system_call_fastpath+0x16/0x1b
[<ffffffffffffffff>] 0xffffffffffffffff
unreferenced object 0xffff880075179b70 (size 544):
comm "Xorg", pid 1117, jiffies 4294897828 (age 36161.832s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 90 52 ce 78 00 88 ff ff .........R.x....
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<ffffffff813feeb1>] kmemleak_alloc+0x21/0x50
[<ffffffff8111043a>] kmem_cache_alloc+0xda/0x1f0
[<ffffffff811ca238>] idr_pre_get+0x68/0x90
[<ffffffff8127c97d>] drm_gem_handle_create+0x3d/0xf0
[<ffffffff812b4976>] i915_gem_create+0x56/0x140
[<ffffffff812b4a79>] i915_gem_create_ioctl+0x19/0x20
[<ffffffff8127ad34>] drm_ioctl+0x404/0x4f0
[<ffffffff8112e327>] do_vfs_ioctl+0x97/0x5f0
[<ffffffff8112e8ca>] sys_ioctl+0x4a/0x80
[<ffffffff8141bebb>] system_call_fastpath+0x16/0x1b
[<ffffffffffffffff>] 0xffffffffffffffff
unreferenced object 0xffff880075179938 (size 544):
comm "Xorg", pid 1117, jiffies 4294897828 (age 36161.832s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 70 9b 17 75 00 88 ff ff ........p..u....
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<ffffffff813feeb1>] kmemleak_alloc+0x21/0x50
[<ffffffff8111043a>] kmem_cache_alloc+0xda/0x1f0
[<ffffffff811ca238>] idr_pre_get+0x68/0x90
[<ffffffff8127c97d>] drm_gem_handle_create+0x3d/0xf0
[<ffffffff812b4976>] i915_gem_create+0x56/0x140
[<ffffffff812b4a79>] i915_gem_create_ioctl+0x19/0x20
[<ffffffff8127ad34>] drm_ioctl+0x404/0x4f0
[<ffffffff8112e327>] do_vfs_ioctl+0x97/0x5f0
[<ffffffff8112e8ca>] sys_ioctl+0x4a/0x80
[<ffffffff8141bebb>] system_call_fastpath+0x16/0x1b
[<ffffffffffffffff>] 0xffffffffffffffff
unreferenced object 0xffff880075179700 (size 544):
comm "Xorg", pid 1117, jiffies 4294897828 (age 36161.832s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 38 99 17 75 00 88 ff ff ........8..u....
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<ffffffff813feeb1>] kmemleak_alloc+0x21/0x50
[<ffffffff8111043a>] kmem_cache_alloc+0xda/0x1f0
[<ffffffff811ca238>] idr_pre_get+0x68/0x90
[<ffffffff8127c97d>] drm_gem_handle_create+0x3d/0xf0
[<ffffffff812b4976>] i915_gem_create+0x56/0x140
[<ffffffff812b4a79>] i915_gem_create_ioctl+0x19/0x20
[<ffffffff8127ad34>] drm_ioctl+0x404/0x4f0
[<ffffffff8112e327>] do_vfs_ioctl+0x97/0x5f0
[<ffffffff8112e8ca>] sys_ioctl+0x4a/0x80
[<ffffffff8141bebb>] system_call_fastpath+0x16/0x1b
[<ffffffffffffffff>] 0xffffffffffffffff
unreferenced object 0xffff8800751794c8 (size 544):
comm "Xorg", pid 1117, jiffies 4294897828 (age 36161.836s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 00 97 17 75 00 88 ff ff ...........u....
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<ffffffff813feeb1>] kmemleak_alloc+0x21/0x50
[<ffffffff8111043a>] kmem_cache_alloc+0xda/0x1f0
[<ffffffff811ca238>] idr_pre_get+0x68/0x90
[<ffffffff8127c97d>] drm_gem_handle_create+0x3d/0xf0
[<ffffffff812b4976>] i915_gem_create+0x56/0x140
[<ffffffff812b4a79>] i915_gem_create_ioctl+0x19/0x20
[<ffffffff8127ad34>] drm_ioctl+0x404/0x4f0
[<ffffffff8112e327>] do_vfs_ioctl+0x97/0x5f0
[<ffffffff8112e8ca>] sys_ioctl+0x4a/0x80
[<ffffffff8141bebb>] system_call_fastpath+0x16/0x1b
[<ffffffffffffffff>] 0xffffffffffffffff
unreferenced object 0xffff880075179290 (size 544):
comm "Xorg", pid 1117, jiffies 4294897828 (age 36161.836s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 c8 94 17 75 00 88 ff ff ...........u....
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<ffffffff813feeb1>] kmemleak_alloc+0x21/0x50
[<ffffffff8111043a>] kmem_cache_alloc+0xda/0x1f0
[<ffffffff811ca238>] idr_pre_get+0x68/0x90
[<ffffffff8127c97d>] drm_gem_handle_create+0x3d/0xf0
[<ffffffff812b4976>] i915_gem_create+0x56/0x140
[<ffffffff812b4a79>] i915_gem_create_ioctl+0x19/0x20
[<ffffffff8127ad34>] drm_ioctl+0x404/0x4f0
[<ffffffff8112e327>] do_vfs_ioctl+0x97/0x5f0
[<ffffffff8112e8ca>] sys_ioctl+0x4a/0x80
[<ffffffff8141bebb>] system_call_fastpath+0x16/0x1b
[<ffffffffffffffff>] 0xffffffffffffffff
unreferenced object 0xffff880075179058 (size 544):
comm "Xorg", pid 1117, jiffies 4294897828 (age 36161.836s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 90 92 17 75 00 88 ff ff ...........u....
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<ffffffff813feeb1>] kmemleak_alloc+0x21/0x50
[<ffffffff8111043a>] kmem_cache_alloc+0xda/0x1f0
[<ffffffff811ca238>] idr_pre_get+0x68/0x90
[<ffffffff8127c97d>] drm_gem_handle_create+0x3d/0xf0
[<ffffffff812b4976>] i915_gem_create+0x56/0x140
[<ffffffff812b4a79>] i915_gem_create_ioctl+0x19/0x20
[<ffffffff8127ad34>] drm_ioctl+0x404/0x4f0
[<ffffffff8112e327>] do_vfs_ioctl+0x97/0x5f0
[<ffffffff8112e8ca>] sys_ioctl+0x4a/0x80
[<ffffffff8141bebb>] system_call_fastpath+0x16/0x1b
[<ffffffffffffffff>] 0xffffffffffffffff
unreferenced object 0xffff880079d2cda8 (size 544):
comm "Xorg", pid 1117, jiffies 4294897828 (age 36161.836s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 58 90 17 75 00 88 ff ff ........X..u....
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<ffffffff813feeb1>] kmemleak_alloc+0x21/0x50
[<ffffffff8111043a>] kmem_cache_alloc+0xda/0x1f0
[<ffffffff811ca238>] idr_pre_get+0x68/0x90
[<ffffffff8127c97d>] drm_gem_handle_create+0x3d/0xf0
[<ffffffff812b4976>] i915_gem_create+0x56/0x140
[<ffffffff812b4a79>] i915_gem_create_ioctl+0x19/0x20
[<ffffffff8127ad34>] drm_ioctl+0x404/0x4f0
[<ffffffff8112e327>] do_vfs_ioctl+0x97/0x5f0
[<ffffffff8112e8ca>] sys_ioctl+0x4a/0x80
[<ffffffff8141bebb>] system_call_fastpath+0x16/0x1b
[<ffffffffffffffff>] 0xffffffffffffffff
unreferenced object 0xffff880079d2cb70 (size 544):
comm "Xorg", pid 1117, jiffies 4294897828 (age 36161.840s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 a8 cd d2 79 00 88 ff ff ...........y....
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<ffffffff813feeb1>] kmemleak_alloc+0x21/0x50
[<ffffffff8111043a>] kmem_cache_alloc+0xda/0x1f0
[<ffffffff811ca238>] idr_pre_get+0x68/0x90
[<ffffffff8127c97d>] drm_gem_handle_create+0x3d/0xf0
[<ffffffff812b4976>] i915_gem_create+0x56/0x140
[<ffffffff812b4a79>] i915_gem_create_ioctl+0x19/0x20
[<ffffffff8127ad34>] drm_ioctl+0x404/0x4f0
[<ffffffff8112e327>] do_vfs_ioctl+0x97/0x5f0
[<ffffffff8112e8ca>] sys_ioctl+0x4a/0x80
[<ffffffff8141bebb>] system_call_fastpath+0x16/0x1b
[<ffffffffffffffff>] 0xffffffffffffffff
unreferenced object 0xffff880003eda000 (size 8192):
comm "Xorg", pid 1117, jiffies 4295143832 (age 35177.892s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 0f 00 00 00 0f 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<ffffffff813feeb1>] kmemleak_alloc+0x21/0x50
[<ffffffff8111086b>] kmem_cache_alloc_trace+0xdb/0x1d0
[<ffffffff81001fbe>] copy_thread+0x1be/0x260
[<ffffffff81044953>] copy_process+0xee3/0x1520
[<ffffffff810450d6>] do_fork+0x116/0x350
[<ffffffff8100a7d3>] sys_clone+0x23/0x30
[<ffffffff8141c173>] stub_clone+0x13/0x20
[<ffffffffffffffff>] 0xffffffffffffffff
unreferenced object 0xffff88007d0bfb70 (size 544):
comm "Xorg", pid 1117, jiffies 4295215414 (age 34891.572s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 70 cb d2 79 00 88 ff ff ........p..y....
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<ffffffff813feeb1>] kmemleak_alloc+0x21/0x50
[<ffffffff8111043a>] kmem_cache_alloc+0xda/0x1f0
[<ffffffff811ca238>] idr_pre_get+0x68/0x90
[<ffffffff8127c97d>] drm_gem_handle_create+0x3d/0xf0
[<ffffffff812b4976>] i915_gem_create+0x56/0x140
[<ffffffff812b4a79>] i915_gem_create_ioctl+0x19/0x20
[<ffffffff8127ad34>] drm_ioctl+0x404/0x4f0
[<ffffffff8112e327>] do_vfs_ioctl+0x97/0x5f0
[<ffffffff8112e8ca>] sys_ioctl+0x4a/0x80
[<ffffffff8141bebb>] system_call_fastpath+0x16/0x1b
[<ffffffffffffffff>] 0xffffffffffffffff
unreferenced object 0xffff88000a771700 (size 544):
comm "Xorg", pid 1117, jiffies 4298477934 (age 21841.552s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 70 fb 0b 7d 00 88 ff ff ........p..}....
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
backtrace:
[<ffffffff813feeb1>] kmemleak_alloc+0x21/0x50
[<ffffffff8111043a>] kmem_cache_alloc+0xda/0x1f0
[<ffffffff811ca238>] idr_pre_get+0x68/0x90
[<ffffffff8127c97d>] drm_gem_handle_create+0x3d/0xf0
[<ffffffff812b4976>] i915_gem_create+0x56/0x140
[<ffffffff812b4a79>] i915_gem_create_ioctl+0x19/0x20
[<ffffffff8127ad34>] drm_ioctl+0x404/0x4f0
[<ffffffff8112e327>] do_vfs_ioctl+0x97/0x5f0
[<ffffffff8112e8ca>] sys_ioctl+0x4a/0x80
[<ffffffff8141bebb>] system_call_fastpath+0x16/0x1b
[<ffffffffffffffff>] 0xffffffffffffffff
next prev parent reply other threads:[~2011-11-30 20:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-28 18:09 kmemleak: unreferenced object in copy_thread Wouter M. Koolen
2011-11-30 11:54 ` Catalin Marinas
2011-11-30 14:02 ` Wouter M. Koolen
2011-11-30 20:02 ` Wouter M. Koolen [this message]
2011-11-30 20:06 ` Wouter M. Koolen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ED68BBF.8010608@cwi.nl \
--to=w.m.koolen-wijkstra@cwi.nl \
--cc=catalin.marinas@arm.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox