kernel-aes67/net/xfrm
Evgeniy Polyakov d48102007d [XFRM]: skb_cow_data() does not set proper owner for new skbs.
It looks like skb_cow_data() does not set 
proper owner for newly created skb.

If we have several fragments for skb and some of them
are shared(?) or cloned (like in async IPsec) there 
might be a situation when we require recreating skb and 
thus using skb_copy() for it.
Newly created skb has neither a destructor nor a socket
assotiated with it, which must be copied from the old skb.
As far as I can see, current code sets destructor and socket
for the first one skb only and uses truesize of the first skb
only to increment sk_wmem_alloc value.

If above "analysis" is correct then attached patch fixes that.

Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2005-05-18 22:51:45 -07:00
..
Kconfig Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfrm_algo.c [XFRM]: skb_cow_data() does not set proper owner for new skbs. 2005-05-18 22:51:45 -07:00
xfrm_input.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfrm_policy.c [IPSEC]: Store idev entries 2005-05-03 16:27:10 -07:00
xfrm_state.c [XFRM]: Fix existence lookup in xfrm_state_find 2005-04-21 20:12:32 -07:00
xfrm_user.c [XFRM/RTNETLINK]: Decrement qlen properly in {xfrm_,rt}netlink_rcv(). 2005-05-03 16:15:59 -07:00