syzbot


panic: LOCKDEBUG: Mutex error: mutex_vector_enter,NUM: assertion failed: !cpu_intr_p()

Status: upstream: reported on 2024/06/07 01:47
Reported-by: syzbot+ba0ea889f49e0da30adc@syzkaller.appspotmail.com
First crash: 11d, last: 13h52m

Sample crash report:
[ 874.0067441] panic: LOCKDEBUG: Mutex error: mutex_vector_enter,519: assertion failed: !cpu_intr_p()
[ 874.0067441] cpu0: Begin traceback...
[ 874.0067441] vpanic() at netbsd:vpanic+0x27a sys/kern/subr_prf.c:288
[ 874.0067441] panic() at netbsd:panic+0x9d sys/kern/subr_prf.c:1084
[ 874.0067441] lockdebug_abort1() at netbsd:lockdebug_abort1+0x149 sys/kern/subr_lockdebug.c:388
[ 874.0067441] lockdebug_abort() at netbsd:lockdebug_abort+0xa2 sys/kern/subr_lockdebug.c:1095
[ 874.0067441] mutex_enter() at netbsd:mutex_enter+0xa88 sys/kern/kern_mutex.c:519
[ 874.0067441] pmap_extract() at netbsd:pmap_extract+0xd8 sys/arch/x86/x86/pmap.c:3927
[ 874.0067441] db_validate_address() at netbsd:db_validate_address+0xb9 sys/arch/x86/x86/db_memrw.c:82
[ 874.0067441] db_read_bytes() at netbsd:db_read_bytes+0x27 sys/arch/x86/x86/db_memrw.c:95
[ 874.0067441] db_show_all_procs() at netbsd:db_show_all_procs+0x897 sys/ddb/db_proc.c:206
[ 874.0067441] db_command() at netbsd:db_command+0x369 sys/ddb/db_command.c:972
[ 874.0067441] db_command_loop() at netbsd:db_command_loop+0x390 db_execute_commandlist sys/ddb/db_command.c:468 [inline]
[ 874.0067441] db_command_loop() at netbsd:db_command_loop+0x390 sys/ddb/db_command.c:618
[ 874.0067441] db_trap() at netbsd:db_trap+0x226 sys/ddb/db_trap.c:94
[ 874.0067441] kdb_trap() at netbsd:kdb_trap+0x262 sys/arch/amd64/amd64/db_interface.c:252
[ 874.0067441] trap() at netbsd:trap+0x42f sys/arch/amd64/amd64/trap.c:314
[ 874.0067441] --- trap (number 1) ---
[ 874.0067441] breakpoint() at netbsd:breakpoint+0x5
[ 874.0067441] db_panic() at netbsd:db_panic+0x105 sys/ddb/db_panic.c:71
[ 874.0067441] vpanic() at netbsd:vpanic+0x27a sys/kern/subr_prf.c:288
[ 874.0067441] panic() at netbsd:panic+0x9d sys/kern/subr_prf.c:1084
[ 874.0067441] heartbeat() at netbsd:heartbeat+0x759 heartbeat_timecounter_suspended sys/kern/kern_heartbeat.c:232 [inline]
[ 874.0067441] heartbeat() at netbsd:heartbeat+0x759 sys/kern/kern_heartbeat.c:672
[ 874.0067441] hardclock() at netbsd:hardclock+0x182 sys/kern/kern_clock.c:347
[ 874.0067441] Xresume_lapic_ltimer() at netbsd:Xresume_lapic_ltimer+0x1e
[ 874.0067441] --- interrupt ---
[ 874.0067441] trace_cmp() at netbsd:trace_cmp+0x2c sys/kern/subr_kcov.c:627
[ 874.0067441] kauth_authorize_action_internal() at netbsd:kauth_authorize_action_internal+0x135 sys/kern/kern_auth.c:992
[ 874.0067441] kauth_authorize_process() at netbsd:kauth_authorize_process+0x4c kauth_authorize_action sys/kern/kern_auth.c:1014 [inline]
[ 874.0067441] kauth_authorize_process() at netbsd:kauth_authorize_process+0x4c sys/kern/kern_auth.c:1057
[ 874.0067441] procfs_root_readdir_callback() at netbsd:procfs_root_readdir_callback+0xe2 sys/miscfs/procfs/procfs_vnops.c:1260
[ 874.0067441] proclist_foreach_call() at netbsd:proclist_foreach_call+0x192 sys/kern/kern_proc.c:1771
[ 874.0067441] procfs_readdir() at netbsd:procfs_readdir+0x1228 sys/miscfs/procfs/procfs_vnops.c:1601
[ 874.0067441] VOP_READDIR() at netbsd:VOP_READDIR+0x15c sys/kern/vnode_if.c:1469
[ 874.0067441] getcwd_scandir() at netbsd:getcwd_scandir+0x3ba sys/kern/vfs_getcwd.c:182
[ 874.0067441] getcwd_common() at netbsd:getcwd_common+0x5c2 sys/kern/vfs_getcwd.c:388
[ 874.0067441] exec_makepathbuf() at netbsd:exec_makepathbuf+0x275 sys/kern/kern_exec.c:712
[ 874.0067441] execve_loadvm() at netbsd:execve_loadvm+0x1a1 sys/kern/kern_exec.c:807
[ 874.0067441] execve1() at netbsd:execve1+0xde sys/kern/kern_exec.c:1479
[ 874.0067441] sys_execve() at netbsd:sys_execve+0x5f sys/kern/kern_exec.c:608
[ 874.0067441] sys___syscall() at netbsd:sys___syscall+0x10e sy_call sys/sys/syscallvar.h:65 [inline]
[ 874.0067441] sys___syscall() at netbsd:sys___syscall+0x10e sys/kern/sys_syscall.c:90
[ 874.0067441] syscall() at netbsd:syscall+0x35c sy_call sys/sys/syscallvar.h:65 [inline]
[ 874.0067441] syscall() at netbsd:syscall+0x35c sy_invoke sys/sys/syscallvar.h:94 [inline]
[ 874.0067441] syscall() at netbsd:syscall+0x35c sys/arch/x86/x86/syscall.c:137
[ 874.0067441] --- syscall (number 59 via SYS_syscall) ---
[ 874.0067441] netbsd:syscall+0x35c:
[ 874.0067441] cpu0: End traceback...
[ 874.0067441] fatal breakpoint trap in supervisor mode
[ 874.0067441] trap type 1 code 0 rip 0xffffffff8023240d cs 0x8 rflags 0x246 cr2 0x7c6c0d5ee710 ilevel 0x8 rsp 0xffffb602495c0510
[ 874.0067441] curlwp 0xffffb600126d9340 pid 8868.8998 lowest kstack 0xffffb602495bb2c0
    Stopped in pid 8868.8998 (syz-executor.3) at       netbsd:breakpoint+0x5:  leave

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/17 21:43 netbsd 17ee9e3fb6e1 1f11cfd7 .config console log report [disk image] [netbsd.gdb] ci2-netbsd panic: LOCKDEBUG: Mutex error: mutex_vector_enter,NUM: assertion failed: !cpu_intr_p()
2024/06/17 16:52 netbsd b4906c100b05 1f11cfd7 .config console log report [disk image] [netbsd.gdb] ci2-netbsd panic: LOCKDEBUG: Mutex error: mutex_vector_enter,NUM: assertion failed: !cpu_intr_p()
2024/06/17 08:40 netbsd 37ab12172080 88722c0f .config console log report [disk image] [netbsd.gdb] ci2-netbsd panic: LOCKDEBUG: Mutex error: mutex_vector_enter,NUM: assertion failed: !cpu_intr_p()
2024/06/15 23:26 netbsd 1cd85761873a f429ab00 .config console log report [disk image] [netbsd.gdb] ci2-netbsd panic: LOCKDEBUG: Mutex error: mutex_vector_enter,NUM: assertion failed: !cpu_intr_p()
2024/06/15 22:33 netbsd 1cd85761873a f429ab00 .config console log report [disk image] [netbsd.gdb] ci2-netbsd panic: LOCKDEBUG: Mutex error: mutex_vector_enter,NUM: assertion failed: !cpu_intr_p()
2024/06/15 12:04 netbsd 601249a25d87 f429ab00 .config console log report [disk image] [netbsd.gdb] ci2-netbsd panic: LOCKDEBUG: Mutex error: mutex_vector_enter,NUM: assertion failed: !cpu_intr_p()
2024/06/15 05:58 netbsd e9cd92281172 f429ab00 .config console log report [disk image] [netbsd.gdb] ci2-netbsd panic: LOCKDEBUG: Mutex error: mutex_vector_enter,NUM: assertion failed: !cpu_intr_p()
2024/06/13 23:19 netbsd 24ad272671f1 a9616ff5 .config console log report [disk image] [netbsd.gdb] ci2-netbsd panic: LOCKDEBUG: Mutex error: mutex_vector_enter,NUM: assertion failed: !cpu_intr_p()
2024/06/13 22:05 netbsd 24ad272671f1 a9616ff5 .config console log report [disk image] [netbsd.gdb] ci2-netbsd panic: LOCKDEBUG: Mutex error: mutex_vector_enter,NUM: assertion failed: !cpu_intr_p()
2024/06/13 09:20 netbsd ab12e0e2c1c7 2aa5052f .config console log report [disk image] [netbsd.gdb] ci2-netbsd panic: LOCKDEBUG: Mutex error: mutex_vector_enter,NUM: assertion failed: !cpu_intr_p()
2024/06/12 13:07 netbsd 5aa7b24f7fcd f815599d .config console log report [disk image] [netbsd.gdb] ci2-netbsd panic: LOCKDEBUG: Mutex error: mutex_vector_enter,NUM: assertion failed: !cpu_intr_p()
2024/06/07 01:46 netbsd b9433a63b353 121701b6 .config console log report [disk image] [netbsd.gdb] ci2-netbsd panic: LOCKDEBUG: Mutex error: mutex_vector_enter,NUM: assertion failed: !cpu_intr_p()
* Struck through repros no longer work on HEAD.