Subject: kern/35134: paxctl +M on programs that use mlockall() causes panics
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <christos@netbsd.org>
List: netbsd-bugs
Date: 11/26/2006 21:35:00
	Note: There was a bad value `' for the field `Class'.
	It was set to the default value of `sw-bug'.

>Number:         35134
>Category:       kern
>Synopsis:       paxctl +M on programs that use mlockall() causes panics
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 26 21:35:00 +0000 2006
>Originator:     Christos Zoulas
>Release:        NetBSD 4.99.4
>Organization:
	Radical Exterminators, LLC.
>Environment:
NetBSD quasar.astron.com 4.99.4 NetBSD 4.99.4 (QUASAR) #15: Sun Nov 26 16:15:37 EST 2006  christos@quasar.astron.com:/usr/src/sys/arch/i386/compile/QUASAR i386
Architecture: i386
Machine: i386
>Description:
	Running binaries that do mlockall(2) and have paxctl flags +M
	panic kernel.
>How-To-Repeat:
	Read above.

panic: kernel diagnostic assertion "fault_flag != UVM_FAULT_WIREMAX" failed: file "../../../../uvm/uvm_fault.c", line 800
breakpoint(cc86c908,0,cc86c92c,c04376f7,c06703c6) at netbsd:breakpoint+0x4
cpu_Debugger(c06703c6,cc86c938,cc86c93c,cc84426c,1) at netbsd:cpu_Debugger+0xb
panic(c06d1fc8,c065f817,c065faa4,c065f848,320) at netbsd:panic+0xcc
__assert(c065f817,c065f848,320,c065faa4,c06dde94) at netbsd:__assert+0x2e
uvm_fault_internal(cbb8b540,8048000,5,2,0) at netbsd:uvm_fault_internal+0x219
uvm_fault_wire(cbb8b540,8048000,8063000,5,1) at netbsd:uvm_fault_wire+0x58
uvm_map_pageable_all(cbb8b540,3,14aa1aaa,c0403351,0) at netbsd:uvm_map_pageable_all+0x4fb
sys_mlockall(cc85be20,cc86cc50,cc86cc48,cc86cc30,0) at netbsd:sys_mlockall+0x5f
syscall_plain() at netbsd:syscall_plain+0x186
--- syscall (number 242) ---

>Fix:
	Unknown