diff options
author | Kees Cook <keescook@chromium.org> | 2021-09-30 00:02:15 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2021-10-15 11:25:13 +0200 |
commit | 4e046156792c26bef8a4e30be711777fc8578257 (patch) | |
tree | 2b1c78b7f3069885e3ec36cf04e4724e8de21691 /arch/x86/kernel/sys_ia32.c | |
parent | leaking_addresses: Always print a trailing newline (diff) | |
download | linux-4e046156792c26bef8a4e30be711777fc8578257.tar.xz linux-4e046156792c26bef8a4e30be711777fc8578257.zip |
proc: Use task_is_running() for wchan in /proc/$pid/stat
The implementations of get_wchan() can be expensive. The only information
imparted here is whether or not a process is currently blocked in the
scheduler (and even this doesn't need to be exact). Avoid doing the
heavy lifting of stack walking and just report that information by using
task_is_running().
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20211008111626.211281780@infradead.org
Diffstat (limited to 'arch/x86/kernel/sys_ia32.c')
0 files changed, 0 insertions, 0 deletions