Re: panic in ipfw with recent current

From: Dmitry Marakasov <amdmi3_at_amdmi3.ru>
Date: Fri, 14 Aug 2009 04:53:24 +0400
* Julian Elischer (julian_at_elischer.org) wrote:

> found the fix I think..
> 
> in line 2061 of ip_fw2.c in the crhold()
> the argument should be pcb->inp_cred, not inp->cred
> 
> 2059        if (pcb != NULL) {
> 2060              *uc = crhold(inp->inp_cred); <--s/inp/pcb/
> 2061              *ugid_lookupp = 1;
> 2062        }

Confirmed, this fixes the problem. Filtering by gid works and no
panics. Thanks a lot!

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amdmi3_at_amdmi3.ru  ..:  jabber: amdmi3_at_jabber.ru    http://www.amdmi3.ru
Received on Thu Aug 13 2009 - 22:53:37 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:53 UTC