[PATCH 1/1] arm: get task_stack reference before dump_backtrace

Maninder Singh maninder1.s at samsung.com
Sun Mar 8 22:55:57 PDT 2026


> So It has to be same way for all archs, as mentioned in Help of THREAD_INFO_IN_TASK
> 
> config THREAD_INFO_IN_TASK
>         bool
>         help
>           Select this to move thread_info off the stack into task_struct.  To
>           make this work, an arch will need to remove all thread_info fields
>           except flags and fix any runtime bugs.
> 
>           One subtle change that will be needed is to use try_get_task_stack()
>           and put_task_stack() in save_thread_stack_tsk() and save_thread_stack_tsk().
> 
> alongwith save_thread_stack_tsk and save_thread_stack_tsk, same thing shall be done for show_stack also.

Typo error:

config THREAD_INFO_IN_TASK
        bool
        help
          Select this to move thread_info off the stack into task_struct.  To
          make this work, an arch will need to remove all thread_info fields
          except flags and fix any runtime bugs.

          One subtle change that will be needed is to use try_get_task_stack()
          and put_task_stack() in save_thread_stack_tsk() and get_wchan().

alongwith save_thread_stack_tsk() and get_wchan(), same thing shall be done for show_stack() also.



More information about the linux-arm-kernel mailing list