[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <48FCBB7C.9070504@chelsio.com>
Date: Mon, 20 Oct 2008 10:10:20 -0700
From: Divy Le Ray <divy@...lsio.com>
To: David Miller <davem@...emloft.net>
CC: rdreier@...co.com, jeff@...zik.org, netdev@...r.kernel.org
Subject: Re: cxgb3: Fix kernel crash caused by uninitialized l2t_entry.arpq
David Miller wrote:
> From: Roland Dreier <rdreier@...co.com>
> Date: Fri, 17 Oct 2008 14:18:26 -0700
>
>
>> Commit 147e70e6 ("cxgb3: Use SKB list interfaces instead of home-grown
>> implementation.") causes a crash in t3_l2t_send_slow() when an iWARP
>> connection request is received. This is because the new l2t_entry.arpq
>> skb queue is never initialized, and therefore trying to add an skb to
>> it causes a NULL dereference. With the old code there was no need to
>> initialize the queues because the l2t_entry structures were zeroed,
>> and the code used NULL to mean empty.
>>
>> Fix this by adding __skb_queue_head_init() when all the l2t_entry
>> structures get allocated.
>>
>> Signed-off-by: Roland Dreier <rolandd@...co.com>
>>
>
> Acked-by: David S. Miller <davem@...emloft.net>
>
Acked-by: Divy Le ray <divy@...lsio.com>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists