Re: [PATCH] task_work: kasan: record task_work_add() call stack

2021-03-15 Thread Walter Wu
On Mon, 2021-03-15 at 11:03 +0100, 'Dmitry Vyukov' via kasan-dev wrote: > On Mon, Mar 15, 2021 at 10:38 AM Walter Wu wrote: > > > > On Mon, 2021-03-15 at 07:58 +0100, 'Dmitry Vyukov' via kasan-dev wrote: > > > On Mon, Mar 15, 2021 at 3:00 AM Walter Wu > > > wrote: > > > > > > > > Why record task

Re: [PATCH] task_work: kasan: record task_work_add() call stack

2021-03-15 Thread Dmitry Vyukov
On Mon, Mar 15, 2021 at 10:38 AM Walter Wu wrote: > > On Mon, 2021-03-15 at 07:58 +0100, 'Dmitry Vyukov' via kasan-dev wrote: > > On Mon, Mar 15, 2021 at 3:00 AM Walter Wu wrote: > > > > > > Why record task_work_add() call stack? > > > Syzbot reports many use-after-free issues for task_work, see

Re: [PATCH] task_work: kasan: record task_work_add() call stack

2021-03-15 Thread Walter Wu
On Mon, 2021-03-15 at 07:58 +0100, 'Dmitry Vyukov' via kasan-dev wrote: > On Mon, Mar 15, 2021 at 3:00 AM Walter Wu wrote: > > > > Why record task_work_add() call stack? > > Syzbot reports many use-after-free issues for task_work, see [1]. > > After see the free stack and the current auxiliary sta

Re: [PATCH] task_work: kasan: record task_work_add() call stack

2021-03-14 Thread Dmitry Vyukov
On Mon, Mar 15, 2021 at 3:00 AM Walter Wu wrote: > > Why record task_work_add() call stack? > Syzbot reports many use-after-free issues for task_work, see [1]. > After see the free stack and the current auxiliary stack, we think > they are useless, we don't know where register the work, this work

[PATCH] task_work: kasan: record task_work_add() call stack

2021-03-14 Thread Walter Wu
Why record task_work_add() call stack? Syzbot reports many use-after-free issues for task_work, see [1]. After see the free stack and the current auxiliary stack, we think they are useless, we don't know where register the work, this work may be the free call stack, so that we miss the root cause a