Re: NULL pointer dereference panic in stable (2.6.33.2), amd64

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric Dumazet
Date: Sunday, April 11, 2010 - 11:01 pm

Le lundi 12 avril 2010 à 09:08 +0530, Krishna Kumar2 a écrit :

Problem is when you reset sk->sk_tx_queue_mapping at the very moment
route (or destination) changes, we might have old packets queued in tx
queues, of the old ethernet device (eth0 : multi queue compatable)

2) Application does a sendmsg() or connect() call and sk->sk_dst_cache
is rebuild, it points to a dst_entry referring a new device (eth1 : non
multiqueue)

3) When one old packet finally is transmitted, we do :

	queue_index = 1; // any value > 0

	if (sk && sk->sk_dst_cache)
		sk_tx_queue_set(sk, queue_index); // remember a >0 value

4) application does a sendmsg(), enqueues a new skb on eth1

5) We re-enter dev_pick_tx(), and consider cached value in 3) is valid.
   we pick a non existent txq for eth1 device.

6) We crash.



Sure, but I thought I was clear enough to prove this commit was wrong,
and we have to find a fix.



--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
NULL pointer dereference panic in stable (2.6.33.2), amd64, Denys Fedorysychenko, (Sun Apr 11, 1:38 pm)
Re: NULL pointer dereference panic in stable (2.6.33.2), amd64, Denys Fedorysychenko, (Sun Apr 11, 4:04 pm)
Re: NULL pointer dereference panic in stable (2.6.33.2), amd64, Denys Fedorysychenko, (Sun Apr 11, 4:36 pm)
Re: NULL pointer dereference panic in stable (2.6.33.2), amd64, Eric Dumazet, (Sun Apr 11, 11:01 pm)
Re: NULL pointer dereference panic in stable (2.6.33.2), amd64, Denys Fedorysychenko, (Mon Apr 12, 9:11 am)
Re: NULL pointer dereference panic in stable (2.6.33.2), amd64, Denys Fedorysychenko, (Thu Apr 15, 2:11 am)
[PATCH net-next-2.6] net: Introduce skb_orphan_try(), Eric Dumazet, (Fri Apr 16, 3:18 pm)
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try(), Eric Dumazet, (Tue Apr 20, 11:08 pm)
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try(), David Miller, (Wed Apr 21, 10:56 pm)
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try(), Eric Dumazet, (Thu Apr 22, 12:10 am)
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try(), David Miller, (Thu Apr 22, 12:16 am)
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try(), Eric Dumazet, (Thu Apr 22, 12:24 am)
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try(), David Miller, (Thu Apr 22, 12:26 am)
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try(), Eric Dumazet, (Thu Apr 22, 12:33 am)
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try(), David Miller, (Thu Apr 22, 12:41 am)
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try(), Eric Dumazet, (Thu Apr 22, 12:47 am)
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try(), David Miller, (Thu Apr 22, 12:54 am)
Re: [PATCH net-next-2.6] net: Introduce skb_orphan_try(), Eric Dumazet, (Thu Apr 22, 12:59 am)
Re: NULL pointer dereference panic in stable (2.6.33.2), amd64, Denys Fedorysychenko, (Thu Apr 29, 3:50 am)