public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Possible bug in cypress_m8.ko
@ 2017-08-22 12:11 Anton Volkov
  2017-08-22 14:18 ` Oliver Neukum
  0 siblings, 1 reply; 2+ messages in thread
From: Anton Volkov @ 2017-08-22 12:11 UTC (permalink / raw)
  To: dignome, koyama, johan
  Cc: gregkh, linux-usb, linux-kernel, ldv-project, Alexey Khoroshilov

Hello.

Judging by the code of cypress_m8.c some functions are considered to be 
capable of working concurrently with other functions, e.g. cypress_open.
There are, however, entities that are protected by the locks at one 
place and not protected in another. Lines are given using the info from 
Linux kernel v4.12. Example:

cypress_send
   spin_lock_irqsave
   priv->write_urb_in_use = 1;
   spin_lock_irqrestore
   (cypress_m8.c: lines 761-763)
   ...
   if (result) {
      priv->write_urb_in_use = 0; //without lock protection
      (cypress_m8.c: line 783)
   }

Is it a bug?

Thank you for your time.

-- Anton Volkov
Linux Verification Center, ISPRAS
web: http://linuxtesting.org
e-mail: avolkov@ispras.ru

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

end of thread, other threads:[~2017-08-22 14:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-22 12:11 Possible bug in cypress_m8.ko Anton Volkov
2017-08-22 14:18 ` Oliver Neukum

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