[patch 0/2] kref debugging (retry)



This patch series enable to detect kref_put() with unreferenced object,
and split all kref debugging checks into new config debug option.

I can find many places where I can replace refcounter with kref by doing
"grep -r atomic_dec_and_test linux/".

If we have this detection of kref_put() with unreferenced object,
The work of kref convertions would be more than code cleanup and
consolidation.
--
-
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/



Relevant Pages

  • [patch 4/4] change slab poison pattern
    ... kref debugging cannot detect kref_putwith unreferenced object, ... and slab debugging config is enabled. ... Because use-after-free poisoning make kref counter signed value. ...
    (Linux-Kernel)
  • Re: [patch 4/4] change slab poison pattern
    ... This slab poisoning pattern change is not very important. ... kref object will be detected as slab corruption. ... The main reason I want to propose this kref debugging is because ... So patch 4/4 is not very important, I want to drop patch 4/4. ...
    (Linux-Kernel)
  • Re: [patch 4/4] change slab poison pattern
    ... This slab poisoning pattern change is not very important. ... kref object will be detected as slab corruption. ... The main reason I want to propose this kref debugging is because ... So patch 4/4 is not very important, I want to drop patch 4/4. ...
    (Linux-Kernel)