]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
stacktrace: move filter_irq_stacks() to kernel/stacktrace.c
authorMarco Elver <elver@google.com>
Fri, 5 Nov 2021 20:45:25 +0000 (13:45 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 27 Apr 2022 09:59:57 +0000 (11:59 +0200)
commita6d78d891488d92bf9d1c6a65676fbbb98e8b195
tree0bca057d0fed9de374f6f2bfdba1418aeee0223e
parent4072d27f4621a82471c0624097be21107383acf4
stacktrace: move filter_irq_stacks() to kernel/stacktrace.c

BugLink: https://bugs.launchpad.net/bugs/1969107
commit f39f21b3ddc7fc0f87eb6dc75ddc81b5bbfb7672 upstream.

filter_irq_stacks() has little to do with the stackdepot implementation,
except that it is usually used by users (such as KASAN) of stackdepot to
reduce the stack trace.

However, filter_irq_stacks() itself is not useful without a stack trace
as obtained by stack_trace_save() and friends.

Therefore, move filter_irq_stacks() to kernel/stacktrace.c, so that new
users of filter_irq_stacks() do not have to start depending on
STACKDEPOT only for filter_irq_stacks().

Link: https://lkml.kernel.org/r/20210923104803.2620285-1-elver@google.com
Signed-off-by: Marco Elver <elver@google.com>
Acked-by: Dmitry Vyukov <dvyukov@google.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Jann Horn <jannh@google.com>
Cc: Aleksandr Nogikh <nogikh@google.com>
Cc: Taras Madan <tarasmadan@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit c9ea4fb1f3f356d7a04ebe15ac867ba3192c6d4f)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
include/linux/stackdepot.h
include/linux/stacktrace.h
kernel/stacktrace.c
lib/stackdepot.c