diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 1739dfb1c224..aedde6a3c4fa 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -1334,6 +1334,9 @@ static void insert_work(struct pool_workqueue *pwq, struct work_struct *work, { struct worker_pool *pool = pwq->pool; + /* record the work call stack in order to print it in KASAN reports */ + kasan_record_aux_stack(work); + /* we own @work, set data and link */ set_work_pwq(work, pwq, extra_flags); list_add_tail(&work->entry, head);