Thread (29 messages) 29 messages, 8 authors, 2018-03-09

Re: [PATCH 2/2] ppc64le save_stack_trace_tsk_reliable (Was: HAVE_RELIABLE_STACKTRACE)

From: Torsten Duwe <hidden>
Date: 2018-03-09 15:54:22
Also in: lkml

On Fri, 9 Mar 2018 08:43:33 +1100
Balbir Singh [off-list ref] wrote:
On Tue, 27 Feb 2018 17:09:24 +0100
Torsten Duwe [off-list ref] wrote:
quoted
+save_stack_trace_tsk_reliable(struct task_struct *tsk,
+                              struct stack_trace *trace)  
Just double checking this is called under the task_rq_lock, so its
safe to call task_stack_page() as opposed to try_get_task_stack()
Yes. IIRC a comment at the call site mentioned it.

[...]
quoted
+	if (sp < stack_page + sizeof(struct thread_struct)
+	    || sp > stack_page + THREAD_SIZE -
STACK_FRAME_OVERHEAD)
+		return 1;  
Some of this is already present in validate_sp(), it also validates
irq stacks, should we just reuse that?
This goes a bit along one of Josh's points; I'll answer there, OK?

[...]
Looks good to me otherwise.

Acked-by: Balbir Singh <bsingharora@gmail.com>
Thanks.

	Torsten
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help