NFS kmemleak reports.

From: Nick Bowler
Date: Fri Dec 09 2011 - 12:59:32 EST


Hi folks,

Lately, I've been seeing dozens of kmemleak reports pointing at NFS.
They all appear to be referring to the same "name" value which gets
stored in dentry->d_fsdata by nfs_get_root. But at a first glance
the code seems to be taking some care to free these properly (although
it's quite tricky for me to follow), so I'm not sure what's up. These
are NFSv3 client mounts.

This is with Linus' master as of a couple days ago, but I've also seen
this on some older kernels (on different networks). The machine in
question is using autofs (which may explain the fairly large number of
kmemleak reports, due to semi-frequent mounting/unmounting).

They all look essentially the same: one is quoted below.

unreferenced object 0xf18fb820 (size 32):
comm "mount.nfs", pid 5688, jiffies 15473748 (age 73861.344s)
hex dump (first 32 bytes):
65 6c 70 66 73 31 3a 2f 65 78 70 6f 72 74 2f 74 elpfs1:/export/t
6f 6f 6c 73 2f 65 6c 70 73 6f 66 74 00 00 00 00 ools/elpsoft....
backtrace:
[<c125d7f6>] kmemleak_alloc+0x21/0x3f
[<c10a95c2>] __kmalloc_track_caller+0x128/0x14a
[<c1093db6>] kstrdup+0x29/0x39
[<f85a7543>] nfs_get_root+0x29/0x11e [nfs]
[<f85ac6ee>] nfs_fs_mount+0x6d6/0x75b [nfs]
[<c10ae861>] mount_fs+0xe/0x95
[<c10bf2cd>] vfs_kern_mount+0x4a/0x78
[<c10bff7c>] do_kern_mount+0x2f/0xad
[<c10c129e>] do_mount+0x581/0x5cf
[<c10c1521>] sys_mount+0x61/0x94
[<c12718d0>] sysenter_do_call+0x12/0x36
[<ffffffff>] 0xffffffff

Let me know if you need any more info,
--
Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/