netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] Handling device free after a packet is passed to the network stack
@ 2015-03-27 19:57 subashab
  2015-03-28  2:49 ` Eric Dumazet
  0 siblings, 1 reply; 4+ messages in thread
From: subashab @ 2015-03-27 19:57 UTC (permalink / raw)
  To: netdev; +Cc: eric.dumazet

We have been coming across a couple of scenarios where the device is freed
and the corresponding packets which were already queued up the stack
encounter crashes when they find that contents of skb->dev are no longer
valid.

Specifically, we have observed an instance where a cpu hotplug occurs
along with the network driver module unloading. When the packets are being
queued up the stack using netif_rx_ni from dev_cpu_callback, get_rps_cpus
crashes as it encounters invalid data at skb->dev since it would have been
freed.

We would like to know if the kernel provides some mechanisms to safeguard
against such scenarios.

--
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux
Foundation Collaborative Project

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

end of thread, other threads:[~2015-03-30 22:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-27 19:57 [RFC] Handling device free after a packet is passed to the network stack subashab
2015-03-28  2:49 ` Eric Dumazet
2015-03-30 14:19   ` Harout Hedeshian
2015-03-30 22:41     ` Eric Dumazet

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).