forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commit2ed6edd
Barret Rhoden
Peter Zijlstra
perf: Add cond_resched() to task_function_call()
Under rare circumstances, task_function_call() can repeatedly fail andcause a soft lockup.There is a slight race where the process is no longer running on the cpuwe targeted by the time remote_function() runs. The code will simplytry again. If we are very unlucky, this will continue to fail, until awatchdog fires. This can happen in a heavily loaded, multi-core virtualmachine.Reported-by: syzbot+bb4935a5c09b5ff79940@syzkaller.appspotmail.comSigned-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.com1 parent3a4ac12 commit2ed6edd
1 file changed
+14
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
99 | 101 | | |
100 | | - | |
101 | | - | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
120 | 125 | | |
121 | 126 | | |
122 | 127 | | |
| |||
0 commit comments
Comments
(0)