[SOLVED] Re: Page fault in rt_newaddrmsg on gif0 destruction

Andreas Kohn andreas.kohn at gmx.net
Mon Apr 19 09:24:48 PDT 2004

On Mon, 2004-04-19 at 10:36, Luigi Rizzo wrote: 
> Ok i understand what is going on (thanks for the very detailed
> report, btw) -- basically the code was trying to use
> ifadd_byindex() after the information had been destroyed.
> I think the attached patch (basically mving a block of code down
> in if_detach) should fix the problem.
> Actually I believe this particular chunk of code should be moved
> even further down, possibly right before the final IF_AFDATA_UNLOCK(),
> because you cannot tell, a-priori, what information on the device
> the lower level routines expect to use, so zeroing the ifindex_table[]
> or calling destroy_dev() too early is probably a bug.
> If you can try it (in the proposed form, or moving it at the end
> of if_detach) and let me khow how it works for you, i can commit
> the fix.
> 	cheers
> 	luigi


thank you, that one works perfectly. 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040419/8d311ccf/attachment.bin

More information about the freebsd-current mailing list