]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - lib/debugobjects.c
debugobjects: Make stack check warning more informative
[mirror_ubuntu-bionic-kernel.git] / lib / debugobjects.c
index 2f5349c6e81ae01b0cca972570f3b7920aca246e..99308479b1c80276ee814217fa4f7136b1b86906 100644 (file)
@@ -322,9 +322,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);
 }