wchan: Fix ORC support and leaky fallback
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest6 patches 8 repliesIn review
- v13 patches 1 replySuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | Revert "proc/wchan: use printk format instead of lookup_symbol_name()"fs/ | +11 | 0 replies | |
| 2/6 | sched: Add wrapper for get_wchan() to keep task blockedinclude/ kernel/ | +17 | 3 replies | |
| 3/6 | proc: Use task_is_running() for wchan in /proc/$pid/statfs/ | +2 | 0 replies | |
| 4/6 | proc: Only report /proc/$pid/wchan when process is blockedfs/ | +2 | 0 replies | |
| 5/6 | x86: Fix get_wchan() to support the ORC unwinderarch/ | +3 | 0 replies | |
| 6/6 | leaking_addresses: Always print a trailing newlinescripts/ | +2 | 1 reply |
Reviews trailers per patch
1 of 6 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Josh Poimboeuf | Tycho Andersen |
|---|---|---|
| Series | A-b | |
| 1/6 | ||
| 2/6 | ||
| 3/6 | ||
| 4/6 | ||
| 5/6 | ||
| 6/6 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/6] wchan: Fix ORC support and leaky fallback
Hi,
This attempts to solve the issues from the discussion here[1]. Specifically:
1) wchan leaking raw addresses since 152c432b128c (v5.12).
patch 1 fixes this with a revert.
2) wchan has been broken under ORC, seen as a failure to stack walk resulting in _usually_ a 0 value, since ee9f8fce9964 (v4.14).
patches 2-5 fixes this with Qi Zheng's new get_wchan() and changes to the /proc code to use the new helper suggested by Peter to do the stack walk only if the process can be kept blocked:
https://lore.kernel.org/lkml/[email protected]/
Peter, can you take this via -tip?
Thanks!
-Kees
[1] https://lore.kernel.org/lkml/[email protected]/
v1: https://lore.kernel.org/lkml/[email protected]/
Kees Cook (5):
Revert "proc/wchan: use printk format instead of lookup_symbol_name()"
sched: Add wrapper for get_wchan() to keep task blocked
proc: Use task_is_running() for wchan in /proc/$pid/stat
proc: Only report /proc/$pid/wchan when process is blocked
leaking_addresses: Always print a trailing newline
Qi Zheng (1):
x86: Fix get_wchan() to support the ORC unwinder
arch/x86/kernel/process.c | 51 +++--------------------------------- fs/proc/array.c | 7 ++--- fs/proc/base.c | 20 ++++++++------ include/linux/sched.h | 1 + kernel/sched/core.c | 16 +++++++++++ scripts/leaking_addresses.pl | 3 ++- 6 files changed, 36 insertions(+), 62 deletions(-)
Signature · 1 line
2.30.2