netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RACE] net: in process_backlog
@ 2009-11-12  8:50 Changli Gao
  2009-11-12 16:57 ` Stephen Hemminger
  0 siblings, 1 reply; 5+ messages in thread
From: Changli Gao @ 2009-11-12  8:50 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: David S. Miller, Patrick McHardy, netdev

Dear Stephen:

I don't think this change
http://git.kernel.org/?p=linux/kernel/git/next/linux-next.git;a=commitdiff;h=6e583ce5242f32e925dcb198f7123256d0798370
is correct.

                        local_irq_enable();
                        break;
                }
-
                local_irq_enable();

-               dev = skb->dev;
-
on MP system, flush_backlog() will be called here, and after that
skb->dev will be invalid, if we access it, sth. unexpected may
happens.

                netif_receive_skb(skb);
-
-               dev_put(dev);
        } while (++work < quota && jiffies == start_time);

        return work;

-- 
Regards,
Changli Gao(xiaosuo@gmail.com)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-11-13  1:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-12  8:50 [RACE] net: in process_backlog Changli Gao
2009-11-12 16:57 ` Stephen Hemminger
2009-11-12 23:54   ` Changli Gao
2009-11-13  0:11     ` Stephen Hemminger
2009-11-13  1:17       ` Changli Gao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).