[PATCH v2] task_work: kasan: record task_work_add() call stack
Oleg Nesterov
oleg at redhat.com
Tue Mar 16 17:54:56 GMT 2021
On 03/16, Walter Wu wrote:
>
> --- a/kernel/task_work.c
> +++ b/kernel/task_work.c
> @@ -34,6 +34,9 @@ int task_work_add(struct task_struct *task, struct callback_head *work,
> {
> struct callback_head *head;
>
> + /* record the work call stack in order to print it in KASAN reports */
> + kasan_record_aux_stack(work);
> +
> do {
> head = READ_ONCE(task->task_works);
> if (unlikely(head == &work_exited))
Acked-by: Oleg Nesterov <oleg at redhat.com>
More information about the linux-arm-kernel
mailing list