On Thu, 2009-10-29 at 09:02 +1030, Rusty Russell wrote:
Hmm, is it really only about changing the parameters via sysfs? We see
the following kmemleak complaints in 2.6.32 (I think it will be the same
in the latest kernel, but I did not check):
kmemleak: unreferenced object 0xdeff3c80 (size 64):
kmemleak: comm "modprobe", pid 788, jiffies 4294933427
kmemleak: backtrace:
kmemleak: [<c00e59b8>] __save_stack_trace+0x34/0x40
kmemleak: [<c00e5ad0>] create_object+0x10c/0x208
kmemleak: [<c03ae0ec>] kmemleak_alloc+0x40/0x84
kmemleak: [<c00dca74>] __kmalloc_track_caller+0x140/0x154
kmemleak: [<c00c47ac>] kstrdup+0x38/0x54
kmemleak: [<c0081854>] param_set_charp+0x68/0x94
kmemleak: [<c0081108>] parse_args+0x18c/0x280
kmemleak: [<c009fc74>] load_module+0x11e8/0x1644
kmemleak: [<c00a0130>] sys_init_module+0x60/0x1f4
kmemleak: [<c003c040>] ret_fast_syscall+0x0/0x38
So we are leaking on every insmod/rmmod, AFAICS, not just in the sysfs
case.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
--