path: root/lib
diff options
authorWalter Wu <>2021-04-29 23:00:45 -0700
committerLinus Torvalds <>2021-04-30 11:20:42 -0700
commit23f61f0fe106da8c9f6a883965439ecc2838f116 (patch)
tree0ef2148e8b44b900cc533872a7fff6a9ea691755 /lib
parentfc23c074ef5ab47c2fb0975f70329da93850c6d0 (diff)
kasan: record task_work_add() call stack
Why record task_work_add() call stack? Syzbot reports many use-after-free issues for task_work, see [1]. After seeing the free stack and the current auxiliary stack, we think they are useless, we don't know where the work was registered. This work may be the free call stack, so we miss the root cause and don't solve the use-after-free. Add the task_work_add() call stack into the KASAN auxiliary stack in order to improve KASAN reports. It helps programmers solve use-after-free issues. [1]: Link: Signed-off-by: Walter Wu <> Suggested-by: Dmitry Vyukov <> Reviewed-by: Dmitry Vyukov <> Reviewed-by: Jens Axboe <> Acked-by: Oleg Nesterov <> Acked-by: Andrey Konovalov <> Cc: Andrey Ryabinin <> Cc: Alexander Potapenko <> Cc: Andrew Morton <> Cc: Matthias Brugger <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions