Commit da35048
kallsyms: Fix scheduling with interrupts disabled in self-test
kallsyms_on_each* may schedule so must not be called with interrupts
disabled. The iteration function could disable interrupts, but this
also changes lookup_symbol() to match the change to the other timing
code.
Reported-by: Erhard F. <[email protected]>
Link: https://lore.kernel.org/all/[email protected]%2F/
Reported-by: kernel test robot <[email protected]>
Link: https://lore.kernel.org/oe-lkp/[email protected]
Fixes: 30f3bb0 ("kallsyms: Add self-test facility")
Tested-by: "Erhard F." <[email protected]>
Signed-off-by: Nicholas Piggin <[email protected]>
Signed-off-by: Luis Chamberlain <[email protected]>1 parent 88603b6 commit da35048
1 file changed
+6
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
161 | 160 | | |
162 | 161 | | |
163 | | - | |
164 | | - | |
| 162 | + | |
165 | 163 | | |
166 | | - | |
167 | | - | |
| 164 | + | |
168 | 165 | | |
169 | 166 | | |
170 | 167 | | |
| |||
234 | 231 | | |
235 | 232 | | |
236 | 233 | | |
237 | | - | |
238 | 234 | | |
239 | 235 | | |
240 | 236 | | |
241 | 237 | | |
242 | 238 | | |
243 | 239 | | |
244 | | - | |
245 | | - | |
| 240 | + | |
246 | 241 | | |
247 | | - | |
248 | | - | |
| 242 | + | |
249 | 243 | | |
250 | 244 | | |
251 | 245 | | |
| |||
270 | 264 | | |
271 | 265 | | |
272 | 266 | | |
273 | | - | |
274 | 267 | | |
275 | 268 | | |
276 | 269 | | |
277 | 270 | | |
278 | 271 | | |
279 | | - | |
280 | | - | |
| 272 | + | |
281 | 273 | | |
282 | | - | |
283 | | - | |
| 274 | + | |
284 | 275 | | |
285 | 276 | | |
286 | 277 | | |
| |||
0 commit comments