Subject: kern/37091: lpt driver needs to be spinlocked
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <ad@netbsd.org>
List: netbsd-bugs
Date: 10/09/2007 12:55:00
>Number:         37091
>Category:       kern
>Synopsis:       lpt driver needs to be spinlocked
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 09 12:55:00 +0000 2007
>Originator:     Andrew Doran
>Release:        NetBSD 4.99.32
>Organization:
The NetBSD Project
>Environment:
N/A
>Description:
lptintr can be called at very high priority (above IPL_SCHED).
Interrupts above IPL_VM should not take the kernel lock, and
interrupts above IPL_SCHED must not take the kernel lock.

>How-To-Repeat:
Code inspection.

>Fix:
The lpt driver needs to be spinlocked, at least WRT to lptintr().