]> rtime.felk.cvut.cz Git - socketcan-devel.git/commit
skb->sk is used in dev_pick_tx() which is called from dev_queue_xmit(). If
authorhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Mon, 6 Dec 2010 16:44:00 +0000 (16:44 +0000)
committerhartkopp <hartkopp@030b6a49-0b11-0410-94ab-b0dab22257f2>
Mon, 6 Dec 2010 16:44:00 +0000 (16:44 +0000)
commit8d4025aa0f2ef43eb06ed5f753fc9a385a650a25
tree5100b573fefe1427f9444d8b64f11d788d7c6fe7
parent054c7a7dcc540654f0e0a5716893957becefce7c
skb->sk is used in dev_pick_tx() which is called from dev_queue_xmit(). If
sk points to an arbitrary magic value, dev_pick_tx() returns a wrong value,
which can lead to various memory corruption bugs.

In commit a4ee3ce3293dc931fab19beb472a8bde1295aebe dev_pick_tx() was
changed  to look the new field in socket called sk_tx_queue_mapping.

Original patch provided by Michal Sojka <sojkam1@fel.cvut.cz>

git-svn-id: svn://svn.berlios.de//socketcan/trunk@1223 030b6a49-0b11-0410-94ab-b0dab22257f2
kernel/2.6/net/can/gw.c