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


Groups > linux.kernel > #1457604 > unrolled thread

A potential race in drivers/atm/eni.ko

Started byPavel Andrianov <andrianov@ispras.ru>
First post2016-08-08 10:20 +0200
Last post2016-08-08 10:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  A potential race in drivers/atm/eni.ko Pavel Andrianov <andrianov@ispras.ru> - 2016-08-08 10:20 +0200

#1457604 — A potential race in drivers/atm/eni.ko

FromPavel Andrianov <andrianov@ispras.ru>
Date2016-08-08 10:20 +0200
SubjectA potential race in drivers/atm/eni.ko
Message-ID<s3NWW-7is-17@gated-at.bofh.it>
Hi!

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
web: http://linuxtesting.org
e-mail: andrianov@ispras.ru

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web