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/scsi/mvumi.ko
Date
Hi!

There is a potential data race in drivers/scsi/mvumi.ko.
Regard such case:

Thread 1 Thread 2
...
-> mvumi_reset_host_9500 -
is called without any locking
-> mvumi_wait_for_outstanding
->mvumi_start
->mvumi_check_handshake
-> mvumi_handshake_event
-> mvumi_handshake
->mvumi_hs_build_page

interrupt comes
-> mvumi_isr_handler
-> mvumi_handshake
-> mvumi_hs_build_page

In this case the same data mhba->handshake_page is modified from two
threads. Likely the first thread should acquire the same spinlock
mhba->shost->host_lock as the second thread.

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

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