lkml.org 
[lkml]   [2016]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectA potential data race in drivers/net/ethernet/smsc/smc91c92_cs.ko
Date
Hi!

There is a potential data race in drivers/net/ethernet/smsc/smc91c92_cs.ko.
Regard two threads:

Thread 1 Thread 2
...
... ->smc_open
->smc_tx_timeout ->mod_timer
-> smc_reset ->media_check - timer function
-> smc_set_xcvr ->smc_set_xcvr

In this case the struct 'smc' is modified from two threads
simultaneously. Likely, the first thread should acquire the same
spinlock smc->lock as the second thread in media_check.

--
Pavel Andrianov
Linux Verification Center, ISPRAS
web: http://linuxtesting.org
e-mail: andrianov@ispras.ru

\
 
 \ /
  Last update: 2016-09-17 09:56    [W:0.175 / U:4.720 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site