-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FromDevice: avoid kernel panic on device status change.
When device status changes (e.g. link bounce), if dev->br_port is not null linux bridge's br_device_event will refer to dev->br_port. But dev->br_port is a invalid pointer to linux bridge as it's fake_bridge which was allocated by FromDevice. To make linux bridge happy, set br_port to null with early notification handler and set it again with late notification handler again. Note: this fix is under *not* ideal assumption as it assumes br_device_notifier's prioriy is higher than INT_MIN and less than INT_MAX. Signed-off-by: Joonwoo Park <[email protected]>
- Loading branch information
Showing
3 changed files
with
47 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters