Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

network: make Link and NetDev always have the valid poiter to Manager #11412

Merged
merged 1 commit into from Jan 15, 2019

Conversation

yuwata
Copy link
Member

@yuwata yuwata commented Jan 13, 2019

c4397d9 introduceslink_detach_from_manager() and netdev_detach_from_manager(), and they set Link::manager or NetDev::manager NULL.
But, at the time e.g. link is removed, hence link_drop() is called, there may be still some asynchronous netlink call is waiting, and their callbacks hit assertion.

This make {link,netdev}_detach_from_manager() just drop all references from manager, but keep the pointer to manager.

Fixes #11411.

c4397d9 introduces
link_detach_from_manager() and netdev_detach_from_manager(), and they
set Link::manager or NetDev::manager NULL.
But, at the time e.g. link is removed, hence link_drop() is called,
there may be still some asynchronous netlink call is waiting, and
their callbacks hit assertion.

This make {link,netdev}_detach_from_manager() just drop all references
from manager, but keep the pointer to manager.

Fixes systemd#11411.
@yuwata
Copy link
Member Author

yuwata commented Jan 13, 2019

(The reporter of the issue confirmed that this fixes the issue.)

@keszybz keszybz merged commit 9e2bbf9 into systemd:master Jan 15, 2019
@yuwata yuwata deleted the fix-11411 branch January 15, 2019 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants