Revision 2fdba6b085eb7068e9594cfa55ffe40466184b4d authored by Herbert Xu on 19 May 2005, 05:52:33 UTC, committed by David S. Miller on 19 May 2005, 05:52:33 UTC
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>
1 parent d481020
File | Mode | Size |
---|---|---|
bnep | ||
cmtp | ||
hidp | ||
rfcomm | ||
Kconfig | -rw-r--r-- | 2.1 KB |
Makefile | -rw-r--r-- | 372 bytes |
af_bluetooth.c | -rw-r--r-- | 7.7 KB |
hci_conn.c | -rw-r--r-- | 10.6 KB |
hci_core.c | -rw-r--r-- | 31.0 KB |
hci_event.c | -rw-r--r-- | 24.6 KB |
hci_sock.c | -rw-r--r-- | 14.7 KB |
hci_sysfs.c | -rw-r--r-- | 3.5 KB |
l2cap.c | -rw-r--r-- | 49.8 KB |
lib.c | -rw-r--r-- | 3.2 KB |
sco.c | -rw-r--r-- | 20.8 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...