Repository navigation
Commit 9474933
igb: close/suspend race in netif_device_detach
Similar to ixgbe, when an interface is part of a namespace it is
possible that igb_close() may be called while __igb_shutdown() is
running which ends up in a double free WARN and/or a BUG in
free_msi_irqs().
Extend the rtnl_lock() to protect the call to netif_device_detach() and
igb_clear_interrupt_scheme() in __igb_shutdown() and check for
netif_device_present() to avoid calling igb_clear_interrupt_scheme() a
second time in igb_close().
Also extend the rtnl lock in igb_resume() to netif_device_attach().
Signed-off-by: Todd Fujinaka <todd.fujinaka@intel.com>
Acked-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>1 parent 69b97cf commit 9474933
1 file changed
Lines changed: 12 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3275 | 3275 | | |
3276 | 3276 | | |
3277 | 3277 | | |
3278 | | - | |
| 3278 | + | |
| 3279 | + | |
| 3280 | + | |
3279 | 3281 | | |
3280 | 3282 | | |
3281 | 3283 | | |
| |||
7564 | 7566 | | |
7565 | 7567 | | |
7566 | 7568 | | |
| 7569 | + | |
7567 | 7570 | | |
7568 | 7571 | | |
7569 | 7572 | | |
| |||
7572 | 7575 | | |
7573 | 7576 | | |
7574 | 7577 | | |
| 7578 | + | |
7575 | 7579 | | |
7576 | 7580 | | |
7577 | 7581 | | |
| |||
7690 | 7694 | | |
7691 | 7695 | | |
7692 | 7696 | | |
7693 | | - | |
7694 | | - | |
| 7697 | + | |
| 7698 | + | |
7695 | 7699 | | |
7696 | | - | |
7697 | | - | |
7698 | | - | |
7699 | | - | |
7700 | 7700 | | |
7701 | | - | |
7702 | | - | |
| 7701 | + | |
| 7702 | + | |
| 7703 | + | |
| 7704 | + | |
| 7705 | + | |
7703 | 7706 | | |
7704 | 7707 | | |
7705 | 7708 | | |
| |||
0 commit comments