Re: [PATCH v2] debugobject: add support for kref

From: Sebastian Andrzej Siewior
Date: Mon Nov 04 2013 - 11:16:01 EST


On 03.11.13, Sebastian Andrzej Siewior wrote:
> v1âv2:
> - not an RFC anymore
> - addressed tglx review:
> - use debug_obj_descr with state active
> - use debug_object_active_state() to check for active object instead the
> other hack I had.
> - added debug_object_free() in a way that does not interfere with the
> NSA sniffer API so it does not get removed from the patch by accident.

now I just run into output like
|ODEBUG: free active (active state 0) object type: kref hint: gserial_alloc_line+0x90/0x194 [u_serial]

and yes I added a hint for that which points to where the kref got it
kref_init() call from. Now I am not sure if this a false positive
(we did kref_init() never used it so the whole struct was removed) or if
it really found something.
And while I hit this, I noticed that I really need a fixup function or
else debugobject will loop forever in __debug_check_no_obj_freed().

Sebastian
--
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/