diff options
| author | razorloves <razorloves@gmail.com> | 2019-05-10 12:04:39 -0500 |
|---|---|---|
| committer | razorloves <razorloves@gmail.com> | 2019-05-10 12:04:39 -0500 |
| commit | 39b672a3e1e0afbd96c2bdbcad3460f6448c80e2 (patch) | |
| tree | 87314fe6e5226c5eea8ff6a335df5ce825fedfeb /lib/debugobjects.c | |
| parent | ca6f34dce6c0c6364d0c12993c59239f0b60c34a (diff) | |
| parent | 021e5400cb88fe15bc0c007e5847a0ec78c1831e (diff) | |
Merge aosp tag 'android-9.0.0_r0.74' into lineage-16.0
May 2019 PQ3A.190505.001
* tag 'android-9.0.0_r0.74': (723 commits)
Diffstat (limited to 'lib/debugobjects.c')
| -rw-r--r-- | lib/debugobjects.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/debugobjects.c b/lib/debugobjects.c index 9ddee8c271a..7caa6ce8e2e 100644 --- a/lib/debugobjects.c +++ b/lib/debugobjects.c @@ -297,9 +297,12 @@ static void debug_object_is_on_stack(void *addr, int onstack) limit++; if (is_on_stack) - pr_warn("object is on stack, but not annotated\n"); + pr_warn("object %p is on stack %p, but NOT annotated.\n", addr, + task_stack_page(current)); else - pr_warn("object is not on stack, but annotated\n"); + pr_warn("object %p is NOT on stack %p, but annotated.\n", addr, + task_stack_page(current)); + WARN_ON(1); } @@ -1087,7 +1090,8 @@ void __init debug_objects_mem_init(void) obj_cache = kmem_cache_create("debug_objects_cache", sizeof (struct debug_obj), 0, - SLAB_DEBUG_OBJECTS, NULL); + SLAB_DEBUG_OBJECTS | SLAB_NOLEAKTRACE, + NULL); if (!obj_cache || debug_objects_replace_static_objects()) { debug_objects_enabled = 0; |
