Subject: panic: kernel diagnostic assertion "len < sizeof(cred->cr_groups) / sizeof(cred->cr_groups[0])"
To: None <port-xen@NetBSD.org>
From: Andreas Wrede <andreas@planix.com>
List: port-xen
Date: 06/20/2006 14:09:46
With -current built from June 18 sources, I get this kernel diag  
assert in a DOMU soon after booting, typically during the start of  
cron or sshd.

The DOM0 environment is also NetBSD-current XEN2 from June 18.

panic: kernel diagnostic assertion "len < sizeof(cred->cr_groups) /  
sizeof(cred->cr_groups[0])" failed: file "/m5/netbsd-current/src/sys/ 
kern/kern_auth.c", line 339
Stopped in pid 1051.1 (cron) at netbsd:cpu_Debugger+0x4:         
popl    %ebp
db> bt
cpu_Debugger(c0418636,cba72b68,cba72b7c,c02b2832,cba49db8) at  
netbsd:cpu_Debugger+0x4
panic(c044c2e0,c040950a,c04377e0,c04377a0,153) at netbsd:panic+0x12c
__assert(c040950a,c04377a0,153,c04377e0,0) at netbsd:__assert+0x2e
kauth_cred_setgroups(cba49db8,cba72bc4,10,ffffffff,0) at  
netbsd:kauth_cred_setgroups+0xcf
sys_setgroups(cb89073c,cba72c44,cba72c3c,cb8944ec,0) at  
netbsd:sys_setgroups+0xbb
syscall_plain() at netbsd:syscall_plain+0x19b
--- syscall (number 80) ---
0xbbb5cebb:

I am posting this to port-xen as the issue only occurs under XEN2.  
All is well when I run the same userland with a -current kernel  
native on the machine.

Has anyone else seen this? Should I file a PR?

-- 
     aew