Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1461147

A potential data race in drivers/scsi/mvumi.ko

From Pavel Andrianov <andrianov@ispras.ru>
Newsgroups linux.kernel
Subject A potential data race in drivers/scsi/mvumi.ko
Date 2016-08-12 14:40 +0200
Message-ID <s5jUK-1Cc-13@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

A potential data race in drivers/scsi/mvumi.ko Pavel Andrianov <andrianov@ispras.ru> - 2016-08-12 14:40 +0200

csiph-web