Re: [PATCH v16 05/21] powerpc: prep stack walkers for THREAD_INFO_IN_TASK

2019-02-23 Thread Michael Ellerman
Michael Ellerman writes: > diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c > index ce393df243aa..4ffbb677c9f5 100644 > --- a/arch/powerpc/kernel/process.c > +++ b/arch/powerpc/kernel/process.c > @@ -2067,6 +2081,9 @@ void show_stack(struct task_struct *tsk, unsigned long

Re: [PATCH v16 05/21] powerpc: prep stack walkers for THREAD_INFO_IN_TASK

2019-02-06 Thread Nicholas Piggin
Michael Ellerman's on February 5, 2019 9:32 pm: > From: Christophe Leroy > > [text copied from commit 9bbd4c56b0b6 > ("arm64: prep stack walkers for THREAD_INFO_IN_TASK")] > > When CONFIG_THREAD_INFO_IN_TASK is selected, task stacks may be freed > before a task is destroyed. To account for this,

[PATCH v16 05/21] powerpc: prep stack walkers for THREAD_INFO_IN_TASK

2019-02-05 Thread Michael Ellerman
From: Christophe Leroy [text copied from commit 9bbd4c56b0b6 ("arm64: prep stack walkers for THREAD_INFO_IN_TASK")] When CONFIG_THREAD_INFO_IN_TASK is selected, task stacks may be freed before a task is destroyed. To account for this, the stacks are refcounted, and when manipulating the stack of