Re: [PATCH v2 1/3] scripts/gdb/tasks: Fix lx-ps command error

From: Oleg Nesterov
Date: Wed Nov 29 2023 - 03:11:34 EST


On 11/29, Kuan-Ying Lee wrote:
>
> Since commit 8e1f385104ac ("kill task_struct->thread_group") remove
> the thread_group, we will encounter below issue.
>
> (gdb) lx-ps
> TASK PID COMM
> 0xffff800086503340 0 swapper/0
> Python Exception <class 'gdb.error'>: There is no member named thread_group.
> Error occurred in Python: There is no member named thread_group.
>
> We use signal->thread_head to iterate all threads instead.

Thanks again,

Acked-by: Oleg Nesterov <oleg@xxxxxxxxxx>


> Fixes: 8e1f385104ac ("kill task_struct->thread_group")
> Cc: stable@xxxxxxxxxxxxxxx

Is it possible to merge this simple change before v6.7 ?
Then "cc: stable" can be removed.

Oleg.