]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:54:27 +0000 (13:54 +0100)
commit7e8cf283d25f3acf247d6e2d5f72f0a07db81ada
tree58a0cfa492a4dc9bd467fe37bc7aa084a177ee12
parent17c6ca854ba3c99c17075934925779b4d9c391c0
um: Always dump trace for specified task in show_stack

[ Upstream commit 0f659ff362eac69777c4c191b7e5ccb19d76c67d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/um/kernel/sysrq.c