Subject: kern/24220: Possible use of kqueue_scan on stack marker while stack swapped out
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <ups@tree.com>
List: netbsd-bugs
Date: 01/24/2004 20:53:18
>Number:         24220
>Category:       kern
>Synopsis:       Possible use of kqueue_scan on stack marker while stack swapped out
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 24 20:54:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Stephan Uphoff
>Release:        current
>Organization:
>Environment:
N/A
>Description:
kqueue_scan() puts a marker element on the event list.
The marker element lives on the stack.
kqueue_scan() can block (example copyout) and its stack can
be swapped out.
The marker element might be accessed while the stack is swapped out.


>How-To-Repeat:

>Fix:
Use PHOLD/PRELE to prevent swapping or use 
non stack memory for the marker element.
>Release-Note:
>Audit-Trail:
>Unformatted: