Re: [PATCH v4 01/15] stacktrace/x86: add function for detecting reliable stack traces

2017-01-27 Thread Josh Poimboeuf
On Fri, Jan 27, 2017 at 09:47:08AM +0100, Miroslav Benes wrote: > > > diff --git a/include/linux/stacktrace.h b/include/linux/stacktrace.h > > index 0a34489..8e8b67b 100644 > > --- a/include/linux/stacktrace.h > > +++ b/include/linux/stacktrace.h > > @@ -18,6 +18,8 @@ extern void save_stack_trace_

Re: [PATCH v4 01/15] stacktrace/x86: add function for detecting reliable stack traces

2017-01-27 Thread Miroslav Benes
> diff --git a/include/linux/stacktrace.h b/include/linux/stacktrace.h > index 0a34489..8e8b67b 100644 > --- a/include/linux/stacktrace.h > +++ b/include/linux/stacktrace.h > @@ -18,6 +18,8 @@ extern void save_stack_trace_regs(struct pt_regs *regs, > struct stack_tr

Re: [PATCH v4 01/15] stacktrace/x86: add function for detecting reliable stack traces

2017-01-26 Thread Josh Poimboeuf
On Thu, Jan 26, 2017 at 02:56:03PM +0100, Petr Mladek wrote: > On Thu 2017-01-19 09:46:09, Josh Poimboeuf wrote: > > For live patching and possibly other use cases, a stack trace is only > > useful if it can be assured that it's completely reliable. Add a new > > save_stack_trace_tsk_reliable() fu

Re: [PATCH v4 01/15] stacktrace/x86: add function for detecting reliable stack traces

2017-01-26 Thread Petr Mladek
On Thu 2017-01-19 09:46:09, Josh Poimboeuf wrote: > For live patching and possibly other use cases, a stack trace is only > useful if it can be assured that it's completely reliable. Add a new > save_stack_trace_tsk_reliable() function to achieve that. > diff --git a/arch/x86/kernel/stacktrace.c

[PATCH v4 01/15] stacktrace/x86: add function for detecting reliable stack traces

2017-01-19 Thread Josh Poimboeuf
For live patching and possibly other use cases, a stack trace is only useful if it can be assured that it's completely reliable. Add a new save_stack_trace_tsk_reliable() function to achieve that. Note that if the target task isn't the current task, and the target task is allowed to run, then it