cvs commit: src/sys/netinet ip_input.c
Sam Leffler
sam at FreeBSD.org
Thu Nov 6 17:47:53 PST 2003
sam 2003/11/06 17:47:53 PST
FreeBSD src repository
Modified files:
sys/netinet ip_input.c
Log:
Fix locking of the ip forwarding cache. We were holding a reference
to a routing table entry w/o bumping the reference count or locking
against the entry being free'd. This caused major havoc (for some
reason it appeared most frequently for folks running natd). Fix
is to bump the reference count whenever we copy the route cache
contents into a private copy so the entry cannot be reclaimed out
from under us. This is a short term fix as the forthcoming routing
table changes will eliminate this cache entirely.
Supported by: FreeBSD Foundation
Revision Changes Path
1.250 +21 -11 src/sys/netinet/ip_input.c
More information about the cvs-src
mailing list