Date: Thu, 6 Nov 2003 17:47:53 -0800 (PST) From: Sam Leffler <sam@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/netinet ip_input.c Message-ID: <200311070147.hA71lrPS086421@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311070147.hA71lrPS086421>