public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] e1000 driver RX race condition fixed
@ 2012-10-14 17:19 Dmitry Fleytman
  2012-10-14 17:19 ` [PATCH] RX initialization sequence fixed - enable RX after corresponding ring initialization only Dmitry Fleytman
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Dmitry Fleytman @ 2012-10-14 17:19 UTC (permalink / raw)
  To: linux-kernel; +Cc: e1000-devel, Chris Webb, Richard Davies, Dmitry Fleytman

There is a race condition in e1000 driver.
It enables HW receive before RX rings initalization.
In case of specific timing this may lead to host memory corruption
due to DMA write to arbitrary memory location.
Following patch fixes this issue by reordering initialization steps.

Other Intel network drivers does not seem to have this issue.

Dmitry Fleytman (1):
  RX initialization sequence fixed - enable RX after corresponding ring
    initialization only

 drivers/net/ethernet/intel/e1000/e1000_ethtool.c |    9 +++++----
 drivers/net/ethernet/intel/e1000/e1000_main.c    |   18 ++++++++++++++++--
 2 files changed, 21 insertions(+), 6 deletions(-)

-- 
1.7.9.5


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

end of thread, other threads:[~2012-10-23  5:33 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-14 17:19 [PATCH] e1000 driver RX race condition fixed Dmitry Fleytman
2012-10-14 17:19 ` [PATCH] RX initialization sequence fixed - enable RX after corresponding ring initialization only Dmitry Fleytman
2012-10-15  5:52   ` [E1000-devel] " Jeff Kirsher
2012-10-15 17:41     ` Dmitry Fleytman
2012-10-19 19:19     ` Richard Davies
2012-10-19 19:34       ` Dmitry Fleytman
2012-10-23  5:23       ` Jeff Kirsher
2012-10-15 18:53 ` [PATCH] e1000 driver RX race condition fixed Alexander Duyck
2012-10-15 19:44   ` Dmitry Fleytman
2012-10-15 20:03     ` Alexander Duyck
2012-10-15 20:20       ` Dmitry Fleytman
2012-10-15 21:17         ` Alexander Duyck
2012-10-17 17:46 ` Jan Ceuleers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox