On Thu, Mar 20, 2008 at 11:58:35PM +0100, Bernard Pidoux wrote: ...... ... Hi, Bernard, could you try this debugging patch? Thanks, Jarek P. --- diff -Nurp 2.6.24.3-/net/core/sock.c 2.6.24.3+/net/core/sock.c --- 2.6.24.3-/net/core/sock.c 2008-01-24 23:58:37.000000000 +0100 +++ 2.6.24.3+/net/core/sock.c 2008-03-22 12:10:10.000000000 +0100 @@ -1517,14 +1517,21 @@ static void sock_def_write_space(struct * progress. --DaveM */ if ((atomic_read(&sk->sk_wmem_alloc) << 1) <= sk->sk_sndbuf) { - if (sk->sk_sleep && waitqueue_active(sk->sk_sleep)) + if (sk->sk_sleep && waitqueue_active(sk->sk_sleep)) { + if (!sk->sk_socket || sk->sk_socket->sk != sk) { + WARN_ON_ONCE(1); + sk->sk_socket = NULL; + sk->sk_sleep = NULL; + goto out; + } wake_up_interruptible(sk->sk_sleep); + } /* Should agree with poll, otherwise some programs break */ if (sock_writeable(sk)) sk_wake_async(sk, 2, POLL_OUT); } - +out: read_unlock(&sk->sk_callback_lock); } -- 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
| Hiten Pandya | Re: up? (emacs docbook xml ide) |
| Greg Kroah-Hartman | [PATCH 004/196] Chinese: add translation of SubmittingPatches |
| debian developer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Jan Engelhardt | intel iommu (Re: -mm merge plans for 2.6.23) |
git: | |
| Gerrit Renker | [PATCH 03/37] dccp: List management for new feature negotiation |
| Ingo Molnar | iwlwifi: fix build bug in "iwlwifi: fix LED stall" |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
