On 06/28, Andy Lutomirski wrote: > > On Tue, Jun 28, 2016 at 1:12 PM, Oleg Nesterov <o...@redhat.com> wrote: > > > > So please forget unless you see another reason for this change. > > > > But I might need to that anyway for procfs to read the the stack, > right? Do you see another way to handle that case?
Well, we could use probe_kernel_text() and recheck tsk->stack != NULL after this. But, > I'm thinking of adding: > > void *try_get_task_stack(struct task_struct *tsk); > void put_task_stack(struct task_struct *tsk); Yes, agreed, this looks better. Oleg.