* 2.6.37-rc1 kmemleak warnings when saving a file over cifs.
@ 2010-11-09 0:13 Andrew Hendry
[not found] ` <AANLkTikCnK7YN9F3JOv0rVZt65iQ=v=YJ_ONOuwj_=9D-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Hendry @ 2010-11-09 0:13 UTC (permalink / raw)
To: linux-kernel, linux-cifs-u79uwXL29TY76Z2rM5mHXA
Have just noticed these in the past few days, now running 2.6.37-rc1+
Seems to be 1 logged per file save when using a text file with gedit over cifs.
unreferenced object 0xffff88022ee08b40 (size 32):
comm "gedit", pid 2524, jiffies 4300160388 (age 2633.655s)
hex dump (first 32 bytes):
5c 2e 67 6f 75 74 70 75 74 73 74 72 65 61 6d 2d \.goutputstream-
35 42 41 53 4c 56 00 de 09 00 00 00 2c 26 78 ee 5BASLV......,&x.
backtrace:
[<ffffffff81504a4d>] kmemleak_alloc+0x2d/0x60
[<ffffffff81136e13>] __kmalloc+0xe3/0x1d0
[<ffffffffa0313db0>] build_path_from_dentry+0xf0/0x230 [cifs]
[<ffffffffa031ae1e>] cifs_setattr+0x9e/0x770 [cifs]
[<ffffffff8115fe90>] notify_change+0x170/0x2e0
[<ffffffff81145ceb>] sys_fchmod+0x10b/0x140
[<ffffffff8100c172>] system_call_fastpath+0x16/0x1b
[<ffffffffffffffff>] 0xffffffffffffffff
unreferenced object 0xffff88022b469ca0 (size 32):
comm "gedit", pid 2543, jiffies 4300529624 (age 2264.419s)
hex dump (first 32 bytes):
5c 2e 67 6f 75 74 70 75 74 73 74 72 65 61 6d 2d \.goutputstream-
30 38 53 59 4c 56 00 de 01 00 00 00 00 00 00 00 08SYLV..........
backtrace:
[<ffffffff81504a4d>] kmemleak_alloc+0x2d/0x60
[<ffffffff81136e13>] __kmalloc+0xe3/0x1d0
[<ffffffffa0313db0>] build_path_from_dentry+0xf0/0x230 [cifs]
[<ffffffffa031ae1e>] cifs_setattr+0x9e/0x770 [cifs]
[<ffffffff8115fe90>] notify_change+0x170/0x2e0
[<ffffffff811457cf>] chown_common+0x9f/0xc0
[<ffffffff8114588e>] sys_fchown+0x9e/0xc0
[<ffffffff8100c172>] system_call_fastpath+0x16/0x1b
[<ffffffffffffffff>] 0xffffffffffffffff
unreferenced object 0xffff88022b5f8d20 (size 32):
comm "gedit", pid 1885, jiffies 4294979706 (age 1221.634s)
hex dump (first 32 bytes):
5c 2e 67 6f 75 74 70 75 74 73 74 72 65 61 6d 2d \.goutputstream-
34 38 38 59 4c 56 00 de 02 00 00 00 00 00 00 00 488YLV..........
backtrace:
[<ffffffff81505bad>] kmemleak_alloc+0x2d/0x60
[<ffffffff81136e23>] __kmalloc+0xe3/0x1d0
[<ffffffffa0329b90>] build_path_from_dentry+0xf0/0x230 [cifs]
[<ffffffffa0330abe>] cifs_setattr+0x9e/0x770 [cifs]
[<ffffffff8115fea0>] notify_change+0x170/0x2e0
[<ffffffff81145cfb>] sys_fchmod+0x10b/0x140
[<ffffffff8100c172>] system_call_fastpath+0x16/0x1b
[<ffffffffffffffff>] 0xffffffffffffffff
^ permalink raw reply [flat|nested] 5+ messages in thread[parent not found: <AANLkTikCnK7YN9F3JOv0rVZt65iQ=v=YJ_ONOuwj_=9D-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: 2.6.37-rc1 kmemleak warnings when saving a file over cifs. [not found] ` <AANLkTikCnK7YN9F3JOv0rVZt65iQ=v=YJ_ONOuwj_=9D-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2010-11-09 4:12 ` Steve French [not found] ` <AANLkTindSKRu2SJoCwqwhdRmBaV-+oRDQ9fp9Cikh2_G-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Steve French @ 2010-11-09 4:12 UTC (permalink / raw) To: Andrew Hendry; +Cc: linux-kernel, linux-cifs-u79uwXL29TY76Z2rM5mHXA On Mon, Nov 8, 2010 at 6:13 PM, Andrew Hendry <andrew.hendry-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Have just noticed these in the past few days, now running 2.6.37-rc1+ > Seems to be 1 logged per file save when using a text file with gedit over cifs. Can you tell the called function in cifs_setattr_unix vs. cifs_setattr_nounix (the former will usually be called when the server is Samba, the latter when the server is Windows or NetApp). What is the server type? > unreferenced object 0xffff88022ee08b40 (size 32): > comm "gedit", pid 2524, jiffies 4300160388 (age 2633.655s) > hex dump (first 32 bytes): > 5c 2e 67 6f 75 74 70 75 74 73 74 72 65 61 6d 2d \.goutputstream- > 35 42 41 53 4c 56 00 de 09 00 00 00 2c 26 78 ee 5BASLV......,&x. > backtrace: > [<ffffffff81504a4d>] kmemleak_alloc+0x2d/0x60 > [<ffffffff81136e13>] __kmalloc+0xe3/0x1d0 > [<ffffffffa0313db0>] build_path_from_dentry+0xf0/0x230 [cifs] > [<ffffffffa031ae1e>] cifs_setattr+0x9e/0x770 [cifs] > [<ffffffff8115fe90>] notify_change+0x170/0x2e0 > [<ffffffff81145ceb>] sys_fchmod+0x10b/0x140 > [<ffffffff8100c172>] system_call_fastpath+0x16/0x1b > [<ffffffffffffffff>] 0xffffffffffffffff Didn't see anything obvious in cifs_setattr_unix on the kmalloc/kfree of full_path, but it will help when we know which path we are in. We did make some recent changes in 2.6.37 in file allocation. -- Thanks, Steve ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <AANLkTindSKRu2SJoCwqwhdRmBaV-+oRDQ9fp9Cikh2_G-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: 2.6.37-rc1 kmemleak warnings when saving a file over cifs. [not found] ` <AANLkTindSKRu2SJoCwqwhdRmBaV-+oRDQ9fp9Cikh2_G-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2010-11-09 6:01 ` Andrew Hendry [not found] ` <AANLkTi=nDY25GNpV=XVum0Cbg1tjX14v-fcA2K6NrhgW-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Andrew Hendry @ 2010-11-09 6:01 UTC (permalink / raw) To: Steve French; +Cc: linux-kernel, linux-cifs-u79uwXL29TY76Z2rM5mHXA The server is a qnap NAS, running linux 2.6.24 On Tue, Nov 9, 2010 at 3:12 PM, Steve French <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > On Mon, Nov 8, 2010 at 6:13 PM, Andrew Hendry <andrew.hendry-Re5JQEeQqe8@public.gmane.orgm> wrote: >> Have just noticed these in the past few days, now running 2.6.37-rc1+ >> Seems to be 1 logged per file save when using a text file with gedit over cifs. > > Can you tell the called function in cifs_setattr_unix vs. cifs_setattr_nounix > (the former will usually be called when the server is Samba, the latter > when the server is Windows or NetApp). What is the server type? > >> unreferenced object 0xffff88022ee08b40 (size 32): >> comm "gedit", pid 2524, jiffies 4300160388 (age 2633.655s) >> hex dump (first 32 bytes): >> 5c 2e 67 6f 75 74 70 75 74 73 74 72 65 61 6d 2d \.goutputstream- >> 35 42 41 53 4c 56 00 de 09 00 00 00 2c 26 78 ee 5BASLV......,&x. >> backtrace: >> [<ffffffff81504a4d>] kmemleak_alloc+0x2d/0x60 >> [<ffffffff81136e13>] __kmalloc+0xe3/0x1d0 >> [<ffffffffa0313db0>] build_path_from_dentry+0xf0/0x230 [cifs] >> [<ffffffffa031ae1e>] cifs_setattr+0x9e/0x770 [cifs] >> [<ffffffff8115fe90>] notify_change+0x170/0x2e0 >> [<ffffffff81145ceb>] sys_fchmod+0x10b/0x140 >> [<ffffffff8100c172>] system_call_fastpath+0x16/0x1b >> [<ffffffffffffffff>] 0xffffffffffffffff > > Didn't see anything obvious in cifs_setattr_unix on the kmalloc/kfree > of full_path, > but it will help when we know which path we are in. We did make some recent > changes in 2.6.37 in file allocation. > > -- > Thanks, > > Steve > ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <AANLkTi=nDY25GNpV=XVum0Cbg1tjX14v-fcA2K6NrhgW-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: 2.6.37-rc1 kmemleak warnings when saving a file over cifs. [not found] ` <AANLkTi=nDY25GNpV=XVum0Cbg1tjX14v-fcA2K6NrhgW-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2010-11-09 7:05 ` Suresh Jayaraman [not found] ` <4CD8F2A9.6080907-l3A5Bk7waGM@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Suresh Jayaraman @ 2010-11-09 7:05 UTC (permalink / raw) To: Andrew Hendry Cc: Steve French, linux-kernel, linux-cifs-u79uwXL29TY76Z2rM5mHXA On 11/09/2010 11:31 AM, Andrew Hendry wrote: > The server is a qnap NAS, running linux 2.6.24 > On Tue, Nov 9, 2010 at 3:12 PM, Steve French <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> On Mon, Nov 8, 2010 at 6:13 PM, Andrew Hendry <andrew.hendry@gmail.com> wrote: >>> Have just noticed these in the past few days, now running 2.6.37-rc1+ >>> Seems to be 1 logged per file save when using a text file with gedit over cifs. >> >> Can you tell the called function in cifs_setattr_unix vs. cifs_setattr_nounix >> (the former will usually be called when the server is Samba, the latter >> when the server is Windows or NetApp). �What is the server type? >> >>> unreferenced object 0xffff88022ee08b40 (size 32): >>> �comm "gedit", pid 2524, jiffies 4300160388 (age 2633.655s) >>> �hex dump (first 32 bytes): >>> � �5c 2e 67 6f 75 74 70 75 74 73 74 72 65 61 6d 2d �\.goutputstream- >>> � �35 42 41 53 4c 56 00 de 09 00 00 00 2c 26 78 ee �5BASLV......,&x. >>> �backtrace: >>> � �[<ffffffff81504a4d>] kmemleak_alloc+0x2d/0x60 >>> � �[<ffffffff81136e13>] __kmalloc+0xe3/0x1d0 >>> � �[<ffffffffa0313db0>] build_path_from_dentry+0xf0/0x230 [cifs] >>> � �[<ffffffffa031ae1e>] cifs_setattr+0x9e/0x770 [cifs] >>> � �[<ffffffff8115fe90>] notify_change+0x170/0x2e0 >>> � �[<ffffffff81145ceb>] sys_fchmod+0x10b/0x140 >>> � �[<ffffffff8100c172>] system_call_fastpath+0x16/0x1b >>> � �[<ffffffffffffffff>] 0xffffffffffffffff >> Are you using the mount option 'nounix'? I spotted a memleak in the nounix code path introduced by a recent patch and proposed a fix here: http://thread.gmane.org/gmane.linux.kernel.cifs/1549 Does this fix the leak for you? -- Suresh Jayaraman ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <4CD8F2A9.6080907-l3A5Bk7waGM@public.gmane.org>]
* Re: 2.6.37-rc1 kmemleak warnings when saving a file over cifs. [not found] ` <4CD8F2A9.6080907-l3A5Bk7waGM@public.gmane.org> @ 2010-11-09 11:17 ` Andrew Hendry 0 siblings, 0 replies; 5+ messages in thread From: Andrew Hendry @ 2010-11-09 11:17 UTC (permalink / raw) To: Suresh Jayaraman Cc: Steve French, linux-kernel, linux-cifs-u79uwXL29TY76Z2rM5mHXA Yes that fixes the leak, appears fine now thanks. On Tue, Nov 9, 2010 at 6:05 PM, Suresh Jayaraman <sjayaraman-l3A5Bk7waGM@public.gmane.org> wrote: > On 11/09/2010 11:31 AM, Andrew Hendry wrote: >> The server is a qnap NAS, running linux 2.6.24 > >> On Tue, Nov 9, 2010 at 3:12 PM, Steve French <smfrench-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>> On Mon, Nov 8, 2010 at 6:13 PM, Andrew Hendry <andrew.hendry@gmail.com> wrote: >>>> Have just noticed these in the past few days, now running 2.6.37-rc1+ >>>> Seems to be 1 logged per file save when using a text file with gedit over cifs. >>> >>> Can you tell the called function in cifs_setattr_unix vs. cifs_setattr_nounix >>> (the former will usually be called when the server is Samba, the latter >>> when the server is Windows or NetApp). �What is the server type? >>> >>>> unreferenced object 0xffff88022ee08b40 (size 32): >>>> �comm "gedit", pid 2524, jiffies 4300160388 (age 2633.655s) >>>> �hex dump (first 32 bytes): >>>> � �5c 2e 67 6f 75 74 70 75 74 73 74 72 65 61 6d 2d �\.goutputstream- >>>> � �35 42 41 53 4c 56 00 de 09 00 00 00 2c 26 78 ee �5BASLV......,&x. >>>> �backtrace: >>>> � �[<ffffffff81504a4d>] kmemleak_alloc+0x2d/0x60 >>>> � �[<ffffffff81136e13>] __kmalloc+0xe3/0x1d0 >>>> � �[<ffffffffa0313db0>] build_path_from_dentry+0xf0/0x230 [cifs] >>>> � �[<ffffffffa031ae1e>] cifs_setattr+0x9e/0x770 [cifs] >>>> � �[<ffffffff8115fe90>] notify_change+0x170/0x2e0 >>>> � �[<ffffffff81145ceb>] sys_fchmod+0x10b/0x140 >>>> � �[<ffffffff8100c172>] system_call_fastpath+0x16/0x1b >>>> � �[<ffffffffffffffff>] 0xffffffffffffffff >>> > > Are you using the mount option 'nounix'? I spotted a memleak in the > nounix code path introduced by a recent patch and proposed a fix here: > > http://thread.gmane.org/gmane.linux.kernel.cifs/1549 > > Does this fix the leak for you? > > > > -- > Suresh Jayaraman > ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-11-09 11:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-09 0:13 2.6.37-rc1 kmemleak warnings when saving a file over cifs Andrew Hendry
[not found] ` <AANLkTikCnK7YN9F3JOv0rVZt65iQ=v=YJ_ONOuwj_=9D-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-11-09 4:12 ` Steve French
[not found] ` <AANLkTindSKRu2SJoCwqwhdRmBaV-+oRDQ9fp9Cikh2_G-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-11-09 6:01 ` Andrew Hendry
[not found] ` <AANLkTi=nDY25GNpV=XVum0Cbg1tjX14v-fcA2K6NrhgW-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-11-09 7:05 ` Suresh Jayaraman
[not found] ` <4CD8F2A9.6080907-l3A5Bk7waGM@public.gmane.org>
2010-11-09 11:17 ` Andrew Hendry
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox