Page MenuHomeFreeBSD

netgraph/ng_base: Renaming a node to the same name is a noop
ClosedPublic

Authored by donner on May 4 2021, 7:27 PM.
Tags
None
Referenced Files
F145908260: D30110.id88616.diff
Thu, Feb 26, 1:16 AM
F145902493: D30110.id.diff
Wed, Feb 25, 11:11 PM
F145896642: D30110.diff
Wed, Feb 25, 9:12 PM
F145880803: D30110.id88616.diff
Wed, Feb 25, 3:12 PM
Unknown Object (File)
Mon, Feb 16, 4:29 AM
Unknown Object (File)
Thu, Feb 12, 5:16 PM
Unknown Object (File)
Sat, Feb 7, 9:44 PM
Unknown Object (File)
Sat, Feb 7, 7:14 PM

Details

Summary

Detailed analysis in https://github.com/genneko/freebsd-vimage-jails/issues/2
brought the problem down to a double call of ng_node_name() before and
after a vnet move. Because the name of the node is already known
(occupied by itself), the second call fails.

PR: 241954
Reported by: Paul Armstrong
MFC: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

donner requested review of this revision.May 4 2021, 7:27 PM
This revision was not accepted when it landed; it landed in state Needs Review.Jun 4 2021, 9:22 AM
This revision was automatically updated to reflect the committed changes.