]> git.hungrycats.org Git - linux/commit
um: Always dump trace for specified task in show_stack
authorTiwei Bie <tiwei.btw@antgroup.com>
Wed, 6 Nov 2024 10:39:33 +0000 (18:39 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 7 Nov 2024 17:05:22 +0000 (18:05 +0100)
commit0f659ff362eac69777c4c191b7e5ccb19d76c67d
treea12087b377b8fac22559ddd2324cf56f7845d96e
parent51b39d741970742a5c41136241a9c48ac607cf82
um: Always dump trace for specified task in show_stack

Currently, show_stack() always dumps the trace of the current task.
However, it should dump the trace of the specified task if one is
provided. Otherwise, things like running "echo t > sysrq-trigger"
won't work as expected.

Fixes: 970e51feaddb ("um: Add support for CONFIG_STACKTRACE")
Signed-off-by: Tiwei Bie <tiwei.btw@antgroup.com>
Link: https://patch.msgid.link/20241106103933.1132365-1-tiwei.btw@antgroup.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
arch/um/kernel/sysrq.c