[lkml]   [2016]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectA potential race in drivers/atm/eni.ko

There is a potential race in drivers/atm/eni.ko.

In the interrupt handler eni_int the field eni_dev->events is masked
(line 1519) with a spinlock protection. In eni_start eni_dev->events is
initialized (line 1844), but it is done after interrupts are requested
(line 1813). Thus, the interrupt may occur while initialization is not
finishing and the new value of events will be lost. Moreover, the
spinlock, which is used in the interrupt handler, is also initialized
(line 1842) after request_irq (line 1813).

Pavel Andrianov
Linux Verification Center, ISPRAS

 \ /
  Last update: 2016-08-08 10:41    [W:0.033 / U:1.420 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site