Commit 338c15e
e1000: fix occasional panic on unload
Net drivers in general have an issue where timers fired
by mod_timer or work threads with schedule_work are running
outside of the rtnl_lock.
With no other lock protection these routines are vulnerable
to races with driver unload or reset paths.
The longer term solution to this might be a redesign with
safer locks being taken in the driver to guarantee no
reentrance, but for now a safe and effective fix is
to take the rtnl_lock in these routines.
Signed-off-by: Jesse Brandeburg <[email protected]>
Tested-by: Jeff Pieper <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Signed-off-by: David S. Miller <[email protected]>1 parent 5cf42fc commit 338c15e
1 file changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
524 | 535 | | |
525 | 536 | | |
| 537 | + | |
| 538 | + | |
526 | 539 | | |
527 | 540 | | |
528 | 541 | | |
| |||
2247 | 2260 | | |
2248 | 2261 | | |
2249 | 2262 | | |
| 2263 | + | |
| 2264 | + | |
2250 | 2265 | | |
| 2266 | + | |
2251 | 2267 | | |
2252 | 2268 | | |
2253 | 2269 | | |
| |||
2273 | 2289 | | |
2274 | 2290 | | |
2275 | 2291 | | |
| 2292 | + | |
2276 | 2293 | | |
2277 | 2294 | | |
2278 | 2295 | | |
| |||
2293 | 2310 | | |
2294 | 2311 | | |
2295 | 2312 | | |
| 2313 | + | |
2296 | 2314 | | |
2297 | 2315 | | |
2298 | 2316 | | |
| |||
3160 | 3178 | | |
3161 | 3179 | | |
3162 | 3180 | | |
3163 | | - | |
| 3181 | + | |
3164 | 3182 | | |
3165 | 3183 | | |
3166 | 3184 | | |
| |||
0 commit comments