Skip to content
Commit 2ed6edd3 authored by Barret Rhoden's avatar Barret Rhoden Committed by Peter Zijlstra
Browse files

perf: Add cond_resched() to task_function_call()



Under rare circumstances, task_function_call() can repeatedly fail and
cause a soft lockup.

There is a slight race where the process is no longer running on the cpu
we targeted by the time remote_function() runs.  The code will simply
try again.  If we are very unlucky, this will continue to fail, until a
watchdog fires.  This can happen in a heavily loaded, multi-core virtual
machine.

Reported-by: default avatar <syzbot+bb4935a5c09b5ff79940@syzkaller.appspotmail.com>
Signed-off-by: default avatarBarret Rhoden <brho@google.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200414222920.121401-1-brho@google.com
parent 3a4ac121
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment