Panic in ipfw
Bruce M. Simpson
bms at FreeBSD.org
Tue Jul 3 14:54:00 UTC 2007
Robert Watson wrote:
>
> My hope is that these will be addressed in FreeBSD 8.x, especially
> with the upcoming read-mostly locks, which will have almost zero cost
> to acquire for read protection, exactly what we'd like to see for
> these code paths. Some of these changes may be mergeable to the 7.x
> branch, but will need lots of time to "burn in", as the risks of such
> changes are non-trivial. I did some initial work to properly lock down
> the ifaddr address lists for netinet, and found they required moderate
> rearrangement of the address management ioctl paths, which are pretty
> complex without being rerranged :-).
How do you feel about taking protocol domain addresses out of struct
ifnet altogether?
Logically they belong with other protocol domain state, and this would
likely eliminate another swathe of locking and general ordering issues,
although it would come at the cost of ABI compatibility and a change in
userland tools.
Right now there is no way of purging protocol domain state e.g. for IPv6
without taking an interface out of the system completely. This is not
possible for onboard hardware unless the underlying driver is built as a
module.
Regards,
BMS
More information about the freebsd-current
mailing list