Skip to content

Instantly share code, notes, and snippets.

@ajeddeloh
Last active August 9, 2017 23:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajeddeloh/ed67bf8e2bdf27ee1edfe6b301b2017d to your computer and use it in GitHub Desktop.
Save ajeddeloh/ed67bf8e2bdf27ee1edfe6b301b2017d to your computer and use it in GitHub Desktop.
mtu crash
possible timeline:
- gets dhcp lease, calls dhcp_lease_acquired
- sets mtu to 9000 (asynchronously, does not fail when the iface is up, may either claim to succeed or fail with the link down)
- calls dhcp4_update_address which then calls address_configure with dhcp4_address_handler
- address_configure builds a rtnl message to configure the link with the dhcp4_address_handler as the callback
- sends that message async
- link goes down, event generated
- link lease cleaned up
- link comes back up
- rtnl sends reply, triggers dhcp4_address_handler which calls link_set_dhcp_routes
- link->lease is bad, causes crash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment