lkml.org 
[lkml]   [2013]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2] debugobject: add support for kref
    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@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2013-11-04 18:21    [W:3.241 / U:0.164 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site