forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork1
Commit76bb5db
netvsc: fix use after free on module removal
The NAPI data structure is embedded in the netvsc_device structureand is freed when device is closed. There is still a reference(in NAPI list) to this which causes a crash in netif_napi_delwhen device is removed. Fix by managing NAPI instances correctly.Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>Signed-off-by: David S. Miller <davem@davemloft.net>1 parentdfb0555 commit76bb5db
2 files changed
+11
-7
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
584 | 584 |
| |
585 | 585 |
| |
586 | 586 |
| |
| 587 | + | |
587 | 588 |
| |
588 |
| - | |
| 589 | + | |
589 | 590 |
| |
590 | 591 |
| |
591 | 592 |
| |
| |||
1320 | 1321 |
| |
1321 | 1322 |
| |
1322 | 1323 |
| |
1323 |
| - | |
1324 |
| - | |
1325 | 1324 |
| |
1326 | 1325 |
| |
1327 | 1326 |
| |
| |||
1339 | 1338 |
| |
1340 | 1339 |
| |
1341 | 1340 |
| |
| 1341 | + | |
| 1342 | + | |
1342 | 1343 |
| |
1343 | 1344 |
| |
1344 | 1345 |
| |
| |||
1357 | 1358 |
| |
1358 | 1359 |
| |
1359 | 1360 |
| |
1360 |
| - | |
| 1361 | + | |
1361 | 1362 |
| |
1362 | 1363 |
| |
1363 | 1364 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1009 | 1009 |
| |
1010 | 1010 |
| |
1011 | 1011 |
| |
| 1012 | + | |
| 1013 | + | |
1012 | 1014 |
| |
1013 | 1015 |
| |
1014 | 1016 |
| |
1015 | 1017 |
| |
1016 |
| - | |
1017 |
| - | |
1018 |
| - | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
1019 | 1022 |
| |
1020 | 1023 |
| |
1021 | 1024 |
| |
|
0 commit comments
Comments
(0)