Kernel commit 8f69cba096b5 ("x86: Rename __{start,end}_init_task to __{start,end}_init_stack") leads to failure: crash: invalid count request: 0 Assume both __{start,end}_init_task and __{start,end}_init_stack symbols could exist for backward compatibility. Signed-off-by: Alexander Gordeev <agordeev@xxxxxxxxxxxxx> --- task.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/task.c b/task.c index ebdb5be..88e1d50 100644 --- a/task.c +++ b/task.c @@ -496,10 +496,17 @@ task_init(void) ((len = SIZE(thread_union)) != STACKSIZE())) { machdep->stacksize = len; } else if (!VALID_SIZE(thread_union) && !VALID_SIZE(task_union)) { + len = 0; if (kernel_symbol_exists("__start_init_task") && kernel_symbol_exists("__end_init_task")) { len = symbol_value("__end_init_task"); len -= symbol_value("__start_init_task"); + } else if (kernel_symbol_exists("__start_init_stack") && + kernel_symbol_exists("__end_init_stack")) { + len = symbol_value("__end_init_stack"); + len -= symbol_value("__start_init_stack"); + } + if (len) { ASSIGN_SIZE(thread_union) = len; machdep->stacksize = len; } -- 2.40.1 -- Crash-utility mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxxxxxx https://${domain_name}/admin/lists/devel.lists.crash-utility.osci.io/ Contribution Guidelines: https://github.com/crash-utility/crash/wiki