diff options
author | Barret Rhoden <brho@google.com> | 2020-04-14 18:29:20 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-06-22 09:05:08 +0200 |
commit | 28292eb6dda1ecfe1549a7e444f1c5d8c8489d92 (patch) | |
tree | 54ffc3f2f79426ce9b05c662ed946068eecea2b2 /drivers/char | |
parent | 958286418617c31ab7d5ee9528a2ad97f2bc5c3c (diff) | |
download | linux-stable-28292eb6dda1ecfe1549a7e444f1c5d8c8489d92.tar.gz linux-stable-28292eb6dda1ecfe1549a7e444f1c5d8c8489d92.tar.bz2 linux-stable-28292eb6dda1ecfe1549a7e444f1c5d8c8489d92.zip |
perf: Add cond_resched() to task_function_call()
commit 2ed6edd33a214bca02bd2b45e3fc3038a059436b upstream.
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: syzbot+bb4935a5c09b5ff79940@syzkaller.appspotmail.com
Signed-off-by: Barret Rhoden <brho@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20200414222920.121401-1-brho@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char')
0 files changed, 0 insertions, 0 deletions