linux/net/ipv4
Herbert Xu 2fdba6b085 [IPV4/IPV6] Ensure all frag_list members have NULL sk
Having frag_list members which holds wmem of an sk leads to nightmares
with partially cloned frag skb's.  The reason is that once you unleash
a skb with a frag_list that has individual sk ownerships into the stack
you can never undo those ownerships safely as they may have been cloned
by things like netfilter.  Since we have to undo them in order to make
skb_linearize happy this approach leads to a dead-end.

So let's go the other way and make this an invariant:

	For any skb on a frag_list, skb->sk must be NULL.

That is, the socket ownership always belongs to the head skb.
It turns out that the implementation is actually pretty simple.

The above invariant is actually violated in the following patch
for a short duration inside ip_fragment.  This is OK because the
offending frag_list member is either destroyed at the end of the
slow path without being sent anywhere, or it is detached from
the frag_list before being sent.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2005-05-18 22:52:33 -07:00
..
ipvs Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
netfilter [NETLINK]: Synchronous message processing. 2005-05-03 14:55:09 -07:00
af_inet.c [PATCH] update Ross Biro bouncing email address 2005-05-05 16:36:49 -07:00
ah4.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
arp.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
datagram.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
devinet.c [PATCH] update Ross Biro bouncing email address 2005-05-05 16:36:49 -07:00
esp4.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
fib_frontend.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
fib_hash.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
fib_lookup.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
fib_rules.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
fib_semantics.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
icmp.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
igmp.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
inetpeer.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_forward.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_fragment.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_gre.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_input.c [PATCH] update Ross Biro bouncing email address 2005-05-05 16:36:49 -07:00
ip_options.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ip_output.c [IPV4/IPV6] Ensure all frag_list members have NULL sk 2005-05-18 22:52:33 -07:00
ip_sockglue.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipcomp.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipconfig.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipip.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ipmr.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -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
multipath.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
multipath_drr.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
multipath_random.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
multipath_rr.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
multipath_wrandom.c [IPV4]: multipath_wrandom.c GPF fixes 2005-05-05 14:30:15 -07:00
proc.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
protocol.c [PATCH] update Ross Biro bouncing email address 2005-05-05 16:36:49 -07:00
raw.c [PATCH] update Ross Biro bouncing email address 2005-05-05 16:36:49 -07:00
route.c [PATCH] update Ross Biro bouncing email address 2005-05-05 16:36:49 -07:00
syncookies.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sysctl_net_ipv4.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tcp.c [PATCH] update Ross Biro bouncing email address 2005-05-05 16:36:49 -07:00
tcp_diag.c [NETLINK]: Synchronous message processing. 2005-05-03 14:55:09 -07:00
tcp_input.c [PATCH] update Ross Biro bouncing email address 2005-05-05 16:36:49 -07:00
tcp_ipv4.c [TCP]: Optimize check in port-allocation code. 2005-05-03 14:36:08 -07:00
tcp_minisocks.c [PATCH] update Ross Biro bouncing email address 2005-05-05 16:36:49 -07:00
tcp_output.c [PATCH] update Ross Biro bouncing email address 2005-05-05 16:36:49 -07:00
tcp_timer.c [PATCH] update Ross Biro bouncing email address 2005-05-05 16:36:49 -07:00
udp.c [PATCH] update Ross Biro bouncing email address 2005-05-05 16:36:49 -07:00
utils.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfrm4_input.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfrm4_output.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfrm4_policy.c [IPSEC]: Store idev entries 2005-05-03 16:27:10 -07:00
xfrm4_state.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
xfrm4_tunnel.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00