kern/60636: rump on sparc64 totally broken still with vm.c rev 1.201

"[email protected] via gnats" <[email protected]>
Newsgroups gmane.os.netbsd.bugs
Message-ID <[email protected]>
>Number:         60636
>Category:       kern
>Synopsis:       rump on sparc64 totally broken still with vm.c rev 1.201
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 24 18:45:00 +0000 2026
>Originator:     Martin Husemann
>Release:        NetBSD 11.99.7
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD thirdstage.duskware.de 11.99.7 NetBSD 11.99.7 (MODULAR) #911: Mon Aug 24 12:13:03 CEST 2026 [email protected]:/home/martin/current/src/sys/arch/sparc64/compile/MODULAR sparc64
Architecture: sparc64
Machine: sparc64
>Description:

After the recent uvm changes, rump is broken on sparc64.
This is build locally, cvs.netbsd.org source tree date: 2026-08-24 08:27 UTC
and explicitly checked: all /usr/lib/librump* show vm.c as 
$NetBSD: vm.c,v 1.201 2026/08/23 23:56:54 riastradh Exp $

Here is an example from atf test output:

tc-end: 1787589424.304451, cgd_3des_cbc_192_encblkno1, failed, Test program received signal 6 (core dumped)
tc-start: 1787589424.306559, cgd_3des_cbc_192_encblkno8
tc-so:[   1.0000000] mutex error: mutex_enter,165: spin lock held
tc-so:
tc-so:[   1.0000000] lock address : 0x000000004136f410
tc-so:[   1.0000000] type         : spin
tc-so:[   1.0000000] initialized  : 0x00000000411a2184
tc-so:[   1.0000000] shared holds :                  0 exclusive:                  1
tc-so:[   1.0000000] shares wanted:                  0 exclusive:                  0
tc-so:[   1.0000000] relevant cpu :                  0 last held:                  0
tc-so:[   1.0000000] relevant lwp : 0x0000000041359f28 last held: 0x0000000041359f28
tc-so:[   1.0000000] last locked* : 0x00000000411a2a2c
tc-so:[   1.0000000] unlocked     : 000000000000000000
tc-so:
tc-so:[   1.0000000] panic: LOCKDEBUG: mutex error: mutex_enter,165: spin lock held
tc-so:[   1.0000000] rump kernel halting...
tc-so:halted
tc-se:Test program crashed; attempting to get stack trace
tc-se:[New process 22944]
tc-se:Core was generated by `t_cgd_3des'.
tc-se:Program terminated with signal SIGABRT, Aborted.
tc-se:#0  abort () at /home/martin/current/src/lib/libc/stdlib/abort.c:80
tc-se:80                (void)signal(SIGABRT, SIG_DFL);
tc-se:#0  abort () at /home/martin/current/src/lib/libc/stdlib/abort.c:80
tc-se:#1  0x000000004140aa7c in rumpuser_exit (rv=-1) at /home/martin/current/src/lib/librumpuser/rumpuser.c:236
tc-se:#2  0x000000004120796c in cpu_reboot (howto=4, bootstr=0x0) at /home/martin/current/src/lib/librump/../../sys/rump/librump/rumpkern/emul.c:447
tc-se:#3  0x00000000411d1c5c in kern_reboot (howto=4, bootstr=0x0) at /home/martin/current/src/lib/librump/../../sys/rump/../kern/kern_reboot.c:91
tc-se:#4  0x000000004119f938 in vpanic (fmt=0x4120d8c0 "LOCKDEBUG: %s error: %s,%zu: %s", ap=0xffffffffffffc158) at /home/martin/current/src/lib/librump/../../sys/rump/../kern/subr_prf.c:288
tc-se:#5  0x000000004119fa28 in panic (fmt=0x4120d8c0 "LOCKDEBUG: %s error: %s,%zu: %s") at /home/martin/current/src/lib/librump/../../sys/rump/../kern/subr_prf.c:209
tc-se:#6  0x000000004117abb4 in lockdebug_abort1 (s=0, func=0x412233b8 <__func__.12> "mutex_enter", line=165, ld=0x4135cb58 <rumpns_ld_prime+2400>, msg=0x4120da90 "spin lock held", dopanic=true) at /home/martin/current/src/lib/librump/../../sys/rump/../kern/subr_lockdebug.c:818
tc-se:#7  lockdebug_abort1 (func=0x412233b8 <__func__.12> "mutex_enter", line=165, ld=0x4135cb58 <rumpns_ld_prime+2400>, msg=0x4120da90 "spin lock held", dopanic=true, s=0) at /home/martin/current/src/lib/librump/../../sys/rump/../kern/subr_lockdebug.c:796
tc-se:#8  0x00000000411fd77c in mutex_enter (mtx=0x41373a90 <pdaemonmtx>) at /home/martin/current/src/lib/librump/../../sys/rump/librump/rumpkern/locks.c:165
tc-se:#9  0x0000000041200100 in uvm_wait_prepare () at /home/martin/current/src/lib/librump/../../sys/rump/librump/rumpkern/vm.c:1116
tc-se:#10 uvm_wait_prepare () at /home/martin/current/src/lib/librump/../../sys/rump/librump/rumpkern/vm.c:1109
tc-se:#11 0x0000000041200cd0 in rump_hypermalloc (howmuch=8192, alignment=8192, waitok=false, wmsg=0x4121e508 "kmalloc") at /home/martin/current/src/lib/librump/../../sys/rump/librump/rumpkern/vm.c:1359
tc-se:#12 0x0000000041200e1c in uvm_km_kmem_alloc (vm=<optimized out>, size=8192, flags=4098, addr=0xffffffffffffc558) at /home/martin/current/src/lib/librump/../../sys/rump/librump/rumpkern/vm.c:930
tc-se:#13 0x0000000041195c04 in vmem_import (vm=0x4136b558 <kmem_meta_arena_store>, size=<optimized out>, flags=4098) at /home/martin/current/src/lib/librump/../../sys/rump/../kern/subr_vmem.c:836
tc-se:#14 vmem_xalloc (vm=0x4136b558 <kmem_meta_arena_store>, size0=<optimized out>, align=8192, phase=0, nocross=0, minaddr=0, maxaddr=<optimized out>, flags=<optimized out>, addrp=<optimized out>) at /home/martin/current/src/lib/librump/../../sys/rump/../kern/subr_vmem.c:1312
tc-se:#15 0x00000000411967a4 in vmem_alloc (vm=0x4136b558 <kmem_meta_arena_store>, size=8192, flags=4098, addrp=0xffffffffffffc6e8) at /home/martin/current/src/lib/librump/../../sys/rump/../kern/subr_vmem.c:1151
tc-se:#16 0x00000000411a076c in pool_page_alloc_meta (pp=<optimized out>, flags=<optimized out>) at /home/martin/current/src/lib/librump/../../sys/rump/../kern/subr_pool.c:3011
tc-se:#17 0x00000000411a367c in pool_allocator_alloc (pp=0x4136f360 <pcg_normal_pool>, flags=2) at /home/martin/current/src/lib/librump/../../sys/rump/../kern/subr_pool.c:2962
tc-se:#18 pool_grow (pp=0x4136f360 <pcg_normal_pool>, flags=2) at /home/martin/current/src/lib/librump/../../sys/rump/../kern/subr_pool.c:1419
tc-se:#19 0x00000000411a2a7c in pool_get (pp=0x4136f360 <pcg_normal_pool>, flags=2) at /home/martin/current/src/lib/librump/../../sys/rump/../kern/subr_pool.c:1189
tc-se:#20 0x00000000411a5f94 in pool_cache_put_slow (pc=0x40246c00, cc=0x40246f40, object=0x40290040, s=0) at /home/martin/current/src/lib/librump/../../sys/rump/../kern/subr_pool.c:2797
tc-se:#21 0x00000000411a6e88 in pool_cache_put_paddr (pc=0x40246c00, object=0x40290040, pa=18446744073709551615) at /home/martin/current/src/lib/librump/../../sys/rump/../kern/subr_pool.c:2895
tc-se:#22 0x00000000411cbd1c in sysctl_realloc (p=0x41354020 <rumpns_sysctl_root>) at /home/martin/current/src/lib/librump/../../sys/rump/../kern/kern_sysctl.c:2748
tc-se:#23 sysctl_create (name=<optimized out>, namelen=<optimized out>, oldp=0xffffffffffffcce0, oldlenp=0xffffffffffffcc18, newp=<optimized out>, newlen=<optimized out>, oname=0xffffffffffffcc20, l=0x0, rnode=0x41354020 <rumpns_sysctl_root>) at /home/martin/current/src/lib/librump/../../sys/rump/../kern/kern_sysctl.c:1150
tc-se:#24 0x00000000411cd3ac in sysctl_createv (log=0x0, cflags=<optimized out>, rnode=<optimized out>, cnode=0x0, flags=16777729, type=<optimized out>, namep=<optimized out>, descr=<optimized out>, func=<optimized out>, qv=<optimized out>, newp=<optimized out>, newlen=<optimized out>) at /home/martin/current/src/lib/librump/../../sys/rump/../kern/kern_sysctl.c:2096
tc-se:#25 0x00000000411f85e0 in sysctl_basenode_init () at /home/martin/current/src/lib/librump/../../sys/rump/../kern/init_sysctl_base.c:104
tc-se:#26 0x00000000411cc4b0 in sysctl_init () at /home/martin/current/src/lib/librump/../../sys/rump/../kern/kern_sysctl.c:243
tc-se:#27 0x0000000041209588 in rump_init_callback (cpuinit_callback=0x0) at /home/martin/current/src/lib/librump/../../sys/rump/librump/rumpkern/rump.c:305
tc-se:#28 0x000000000010220c in atfu_cgd_3des_cbc_192_encblkno8_body (tc=0x205e18 <atfu_cgd_3des_cbc_192_encblkno8_tc>) at /home/martin/current/src/tests/dev/cgd/t_cgd_3des.c:873
tc-se:#29 0x0000000041a0965c in atf_tc_run (tc=0x205e18 <atfu_cgd_3des_cbc_192_encblkno8_tc>, resfile=0x40216060 "/tmp/atf-run.Zlyt0l/tcr") at /home/martin/current/src/external/bsd/atf/dist/atf-c/tc.c:1024
tc-se:#30 0x0000000041a07c74 in run_tc (tp=0xffffffffffffd3a8, p=0xffffffffffffd3c0, exitcode=<synthetic pointer>) at /home/martin/current/src/external/bsd/atf/dist/atf-c/detail/tp_main.c:510


>How-To-Repeat:

Just run ATF tests.

>Fix:
n/a
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.