1
linux/net/ax25
Herbert Xu d55d87fdff net: Move rx skb_orphan call to where needed
In order to get the tun driver to account packets, we need to be
able to receive packets with destructors set.  To be on the safe
side, I added an skb_orphan call for all protocols by default since
some of them (IP in particular) cannot handle receiving packets
destructors properly.

Now it seems that at least one protocol (CAN) expects to be able
to pass skb->sk through the rx path without getting clobbered.

So this patch attempts to fix this properly by moving the skb_orphan
call to where it's actually needed.  In particular, I've added it
to skb_set_owner_[rw] which is what most users of skb->destructor
call.

This is actually an improvement for tun too since it means that
we only give back the amount charged to the socket when the skb
is passed to another socket that will also be charged accordingly.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Tested-by: Oliver Hartkopp <olver@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-06-23 16:36:25 -07:00
..
af_ax25.c net: correct off-by-one write allocations reports 2009-06-18 00:29:12 -07:00
ax25_addr.c
ax25_dev.c
ax25_ds_in.c
ax25_ds_subr.c
ax25_ds_timer.c
ax25_iface.c ax25: more common return path joining 2009-02-06 23:47:14 -08:00
ax25_in.c net: Move rx skb_orphan call to where needed 2009-06-23 16:36:25 -07:00
ax25_ip.c
ax25_out.c
ax25_route.c CRED: Wrap task credential accesses in the AX25 protocol 2008-11-14 10:39:06 +11:00
ax25_std_in.c
ax25_std_subr.c
ax25_std_timer.c Revert "ax25: Fix std timer socket destroy handling." 2008-10-06 12:48:29 -07:00
ax25_subr.c ax25: Fix NULL pointer dereference and lockup. 2008-06-03 14:53:46 -07:00
ax25_timer.c
ax25_uid.c ax25: proc uid file misses header 2009-04-20 02:14:59 -07:00
Kconfig
Makefile
sysctl_net_ax25.c ax25: fix warning in net/ax25/sysctl_net_ax25.c 2008-11-25 16:58:19 -08:00
TODO