1 msgFwd: [networking-discuss] uperf - A network ben...
27 msgProblems with netgraph
1 msgRe: kern/123429: [nfe] [hang] 'ifconfig nfe up'...

timewait state memory leak
\ Huang, Yusheng (5 May 2008)

1 msgRe: Is it possible to change BSD licence to GPL...
4 msgChange from BSDL to GPL
1 msgIs it possible to change BSD licence to GPL for...
5 msgCan I port 4.4BSD-Lite's TCP/IP protocol stack ...
3 msgTrying to find source of collisions
1 msgRe: kern/119516: [ip6] [panic] _mtx_lock_sleep:...
1 msgRe: kern/122858: [nsswitch] nsswitch in 7.0 is ...
1 msgRe: kern/91594: [em] FreeBSD > 5.4 w/ACPI fa...
1 msgRe: kern/105925: Regression in ifconfig(8) + vl...
1 msgRe: bin/108895: pppd(8): PPPoE dead connections...
1 msgRe: kern/109308: [pppd] [panic] Multiple panics...
1 msgRe: kern/109733: [bge] bge link state issues [r...
2 msgNetwork Patches from -RELEASE to -STABLE 7.0
24 msgTroubles with em on FreeBSD 7
13 msgIPPROTO_DIVERT and PF_INET6
11 msgMFC of em/igb drivers
Subject:timewait state memory leak
Group:Freebsd-net
From:Huang, Yusheng
Date:5 May 2008


 
Hi,



I am looking at the tcp_tw_2msl_scan() code and it looks like there is a
bug in there.



struct tcptw *
tcp_tw_2msl_scan(int reuse)
{
struct tcptw *tw;

INP_INFO_WLOCK_ASSERT(&tcbinfo);
for (;;) {
tw = TAILQ_FIRST(&twq_2msl);
if (tw == NULL || (!reuse && tw->tw_time > ticks))
^^^^^^^^^^^^^^^^^^
break;
INP_WLOCK(tw->tw_inpcb);
tcp_twclose(tw, reuse);
if (reuse)
return (tw);
}
return (NULL);
}

Shouldn't the comparison be TSTMP_GT(tw->tw_time, ticks)?



-yusheng



_______________________________________________
freebsd-net mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe"


© 2004-2008 readlist.com