[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Race condition in network driver
Hi Satyendra Bhaisare,
On Tuesday 03 February 2004 20:01, Satyendra Bhaisare wrote:
> Hi all,
> I am stress testing a network driver on IXP12xx platform. In normal ping,
> the driver works fine.
> However, on some occassion during flood ping testing, It crashes. The dump
> when analyzed shows the following sequence of calls made.
>
> start_kernel -> rest_init -> cpu_idle -> do_IRQ .....
Here your ISR registered for the driver comes into picture.
Then u allocate the socket buffer(sk_buff) and
using the netif_rx u might be registering to
the newly created sk_buff to the higher layer
(Actually in netif_rx the
do_softirq is called... to my knowledge)
From there its upto the kernel... So I think the
problem must be somewhere u allocating the
skbuffer or setting any fields of skbuff...
These are only assumptions... Hope this may help
you...
>.......-> do_softirq ->
> net_rx_action -> ip_rcv -> ip_local_deliver -> tcp_v4_rcv -> __kfree_skb ->
> skb_release_data -> kfree -> __div0
>
Regards,
Shine Mohamed
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/