Home
last modified time | relevance | path

Searched refs:REFCOUNT_WARN (Results 1 – 2 of 2) sorted by relevance

/linux-5.19.10/lib/
Drefcount.c11 #define REFCOUNT_WARN(str) WARN_ONCE(1, "refcount_t: " str ".\n") macro
19 REFCOUNT_WARN("saturated; leaking memory"); in refcount_warn_saturate()
22 REFCOUNT_WARN("saturated; leaking memory"); in refcount_warn_saturate()
25 REFCOUNT_WARN("addition on 0; use-after-free"); in refcount_warn_saturate()
28 REFCOUNT_WARN("underflow; use-after-free"); in refcount_warn_saturate()
31 REFCOUNT_WARN("decrement hit 0; leaking memory"); in refcount_warn_saturate()
34 REFCOUNT_WARN("unknown saturation event!?"); in refcount_warn_saturate()
/linux-5.19.10/tools/include/linux/
Drefcount.h45 #define REFCOUNT_WARN(cond, str) (void)(cond) macro
48 #define REFCOUNT_WARN(cond, str) BUG_ON(cond) macro
96 REFCOUNT_WARN(new == UINT_MAX, "refcount_t: saturated; leaking memory.\n"); in refcount_inc_not_zero()
109 REFCOUNT_WARN(!refcount_inc_not_zero(r), "refcount_t: increment on 0; use-after-free.\n"); in refcount_inc()
131 REFCOUNT_WARN(new > val, "refcount_t: underflow; use-after-free.\n"); in refcount_sub_and_test()