| To: | pbadari@xxxxxxxxxx (Badari Pulavarty) |
|---|---|
| Subject: | Re: Panic in sk_stream_wait_memory() while doing iSCSI testing |
| From: | Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> |
| Date: | Fri, 29 Apr 2005 17:05:03 +1000 |
| Cc: | netdev@xxxxxxxxxxx |
| In-reply-to: | <1114726972.26913.711.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> |
| Organization: | Core |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | tin/1.7.4-20040225 ("Benbecula") (UNIX) (Linux/2.4.27-hx-1-686-smp (i686)) |
Badari Pulavarty <pbadari@xxxxxxxxxx> wrote: > > I ran into panic in sk_stream_wait_memory() while doing iSCSI > testing on 2.6.12-rc2. The problem seems to be while doing > > set_bit(SOCK_ASYNC_NOSPACE, &sk->sk_socket->flags); > > sk->sk_socket seems to be NULL. Can this happen ? Do we need If sk->sk_socket is NULL, then either the socket hasn't been initialised yet or it has already been freed. Either way you've got socket life-cycle management issues in your code. Basically, while you're in sk_stream_wait_memory, you must arrange it so that the socket does not go away under you. Normally this is done by holding a reference on the socket, either directly or indirectly through a file descriptor. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [resend][PATCH net-drivers-2.4 16/16] e1000: Driver version, white space, comments, deviceid, Malli Chilakala |
|---|---|
| Next by Date: | [RFC/PATCH] Fixes for ULi5261 (tulip driver), Jiri Benc |
| Previous by Thread: | Panic in sk_stream_wait_memory() while doing iSCSI testing, Badari Pulavarty |
| Next by Thread: | [PATCH] ppp: remove redundant NULL pointer checks before kfree & vfree, Jesper Juhl |
| Indexes: | [Date] [Thread] [Top] [All Lists] |