Re: [PATCH v3] kprobes: unpoison stack in jprobe_return() for KASAN

2016-10-14 Thread Dmitry Vyukov
On Fri, Oct 14, 2016 at 1:25 PM, Will Deacon wrote: > On Fri, Oct 14, 2016 at 12:53:56PM +0200, Dmitry Vyukov wrote: >> KASAN stack instrumentation poisons stack redzones on function entry >> and unpoisons them on function exit. If a function exits abnormally >> (e.g. with a

Re: [PATCH v3] kprobes: unpoison stack in jprobe_return() for KASAN

2016-10-14 Thread Dmitry Vyukov
On Fri, Oct 14, 2016 at 1:25 PM, Will Deacon wrote: > On Fri, Oct 14, 2016 at 12:53:56PM +0200, Dmitry Vyukov wrote: >> KASAN stack instrumentation poisons stack redzones on function entry >> and unpoisons them on function exit. If a function exits abnormally >> (e.g. with a longjmp like

Re: [PATCH v3] kprobes: unpoison stack in jprobe_return() for KASAN

2016-10-14 Thread Will Deacon
On Fri, Oct 14, 2016 at 12:53:56PM +0200, Dmitry Vyukov wrote: > KASAN stack instrumentation poisons stack redzones on function entry > and unpoisons them on function exit. If a function exits abnormally > (e.g. with a longjmp like jprobe_return()), stack redzones are left > poisoned. Later this

Re: [PATCH v3] kprobes: unpoison stack in jprobe_return() for KASAN

2016-10-14 Thread Will Deacon
On Fri, Oct 14, 2016 at 12:53:56PM +0200, Dmitry Vyukov wrote: > KASAN stack instrumentation poisons stack redzones on function entry > and unpoisons them on function exit. If a function exits abnormally > (e.g. with a longjmp like jprobe_return()), stack redzones are left > poisoned. Later this

Re: [PATCH v3] kprobes: unpoison stack in jprobe_return() for KASAN

2016-10-14 Thread Mark Rutland
On Fri, Oct 14, 2016 at 12:53:56PM +0200, Dmitry Vyukov wrote: > KASAN stack instrumentation poisons stack redzones on function entry > and unpoisons them on function exit. If a function exits abnormally > (e.g. with a longjmp like jprobe_return()), stack redzones are left > poisoned. Later this

Re: [PATCH v3] kprobes: unpoison stack in jprobe_return() for KASAN

2016-10-14 Thread Mark Rutland
On Fri, Oct 14, 2016 at 12:53:56PM +0200, Dmitry Vyukov wrote: > KASAN stack instrumentation poisons stack redzones on function entry > and unpoisons them on function exit. If a function exits abnormally > (e.g. with a longjmp like jprobe_return()), stack redzones are left > poisoned. Later this