a problem tcp_v4_err()

From: Alexey Kuznetsov
Date: Fri Nov 12 2010 - 12:58:42 EST


Hello!

I looked at tcp_v4_err() and found something strange. Quite non-trivial operations
are performed on unlocked sockets. It looks like at least this BUG_ON():

skb = tcp_write_queue_head(sk);
BUG_ON(!skb);

can be easily triggered.

Do I miss something?

Alexey
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/