All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] Bugs in xfrm
@ 2004-01-10 18:33 Krishna Kumar
  2004-01-10 20:11 ` David S. Miller
  0 siblings, 1 reply; 14+ messages in thread
From: Krishna Kumar @ 2004-01-10 18:33 UTC (permalink / raw)
  To: David S. Miller; +Cc: krkumar, netdev

[-- Attachment #1: Type: text/plain, Size: 840 bytes --]





> Explain to me how that won't loop forever if given a non-NULL dst?

Oops, forgot the dst = next in the loop :-)

> Next, this dst_bundle_free() thing is totally not needed as far as I can
> tell.  When dst_free() is made, the top-level of the bundle's dst gets
added
> to the garbage collection list, the garbage collection properly walks the
> children to process the whole bundle.

The garbage collector (called via __dst_free) takes dst_garbage_list and
goes through the dst->next pointer. But dst_destroy() seems to destroy
stuff
on the dst->child list (I missed the part that the first dst has a refcnt
of
zero and all others on child have refcnt of 1). So this is not needed.

> Please redo this patch and please test it this time :)

Are the other "bugs" correct :-) Or should I send separate patches this
time ?

thanks,

- KK

[-- Attachment #2: Type: text/html, Size: 1338 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2004-03-09 23:24 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-10 18:33 [PATCH] Bugs in xfrm Krishna Kumar
2004-01-10 20:11 ` David S. Miller
2004-01-13 21:21   ` [PATCH 1/5] ipcomp_tunnel_create doesn't set tunnel state Krishna Kumar
2004-01-13 21:22     ` [PATCH 2/5] Bad dereference of xfrm_state in pf_key Krishna Kumar
2004-01-14  7:21       ` David S. Miller
2004-01-13 21:23     ` [PATCH 3/5] xfrm_lookup bugs Krishna Kumar
2004-01-14  7:23       ` David S. Miller
2004-01-13 21:24     ` [PATCH 4/5] xfrm_state_construct doesn't set tunnel state Krishna Kumar
2004-01-14  7:25       ` David S. Miller
2004-01-13 21:26     ` [PATCH 5/5] schedule() bug in xfrm_lookup() Krishna Kumar
2004-01-14  7:27       ` David S. Miller
2004-01-14  7:20     ` [PATCH 1/5] ipcomp_tunnel_create doesn't set tunnel state David S. Miller
2004-03-09 21:36       ` [PATCH] Trivial kmalloc failure checks Krishna Kumar
2004-03-09 23:24         ` David S. Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.