uvm_fault(0xfffff68078730b88, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped at sys_shmat+0x3d7: movq 0(%r14),%rdi TID PID UID PRFLAGS PFLAGS CPU COMMAND *343647 46450 0 0 0x4000000 0K syz-executor sys_shmat(ffff80002f38c7f0,ffff80002abc3670,ffff80002abc35c0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002abc3670) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002abc3670) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x486eae3b220, count: 12 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: uvm_fault(0xfffff68078730b88, 0x0, 0, 1) -> e ddb{0}> show kasan No such command ddb{0}> trace sys_shmat(ffff80002f38c7f0,ffff80002abc3670,ffff80002abc35c0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002abc3670) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002abc3670) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x486eae3b220, count: -3 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80002abc3590 rbx 0 rdx 0x1 rcx 0x1 rax 0xfffff68073754d20 r8 0x180 r9 0xfffff680097fd340 r10 0xa5e629ae29665c21 r11 0xa063269dcb11584b r12 0xffff80002f38c7f0 r13 0xffff800001609000 r14 0 r15 0x3 rip 0xffffffff8287fc37 sys_shmat+0x3d7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002abc3500 ss 0 sys_shmat+0x3d7: movq 0(%r14),%rdi ddb{0}> show proc PROC (syz-executor) tid=343647 pid=46450 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=72, usrpri=72, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002f38d4e8,0xffff80002f38da28 process=0xffff800045ff2bb0 user=0xffff80002abbe000, vmspace=0xfffff68078730b88 estcpu=22, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 44344 322361 83032 0 2 0x1006 0 sh 92374 218799 14151 0 2 0x101004 0 sh 14151 361956 28668 0 3 0x100002 0x88 sigsusp sh 36778 51673 91353 0 2 0x2044 0 syz-executor 47658 10236 58436 0 4 0x2004 0x80000 syz-executor 47658 490801 58436 0 2 0x2004 0x4000000 syz-executor 46450 448087 8818 0 2 0 0 syz-executor *46450 343647 8818 0 7 0 0x4000000 syz-executor 46450 17612 8818 0 3 0 0x4000080 fsleep syz-executor 46450 426667 8818 0 2 0 0x4000000 syz-executor 88550 213893 50099 0 2 0 0 syz-executor 88550 179186 50099 0 3 0 0x4000080 fsleep syz-executor 52878 166700 50732 0 2 0 0 syz-executor 52878 210165 50732 0 3 0 0x4000080 fsleep syz-executor 52878 296851 50732 0 2 0 0x4000000 syz-executor 28668 208286 59557 0 3 0x2 0x80 wait syz-executor 91353 78929 59557 0 3 0x82 0 ppwait syz-executor 46731 24458 59557 0 2 0x2 0 syz-executor 83032 344168 59557 0 3 0x2 0x80 wait syz-executor 8818 61389 59557 0 3 0x2 0x80 nanoslp syz-executor 58436 502731 59557 0 3 0x2 0x80 nanoslp syz-executor 50099 2746 59557 0 3 0x2 0x80 nanoslp syz-executor 50732 94674 59557 0 3 0x2 0x80 nanoslp syz-executor 59557 383076 23398 0 3 0x2 0x80 kqread syz-executor 23398 71093 16829 0 3 0x100002 0x88 sigsusp ksh 16829 50262 80975 0 3 0x10 0x88 kqread sshd-session 80975 7347 7864 0 3 0x12 0x80 kqread sshd-session 60238 141717 1 0 3 0x100003 0x80 ttyin getty 7864 417603 1 0 3 0 0x88 kqread sshd 5994 108950 24484 74 3 0x1100012 0x80 bpf pflogd 24484 459316 1 0 3 0 0x80 sbwait pflogd 73792 435755 97644 73 3 0x1100010 0x80 kqread syslogd 97644 285515 1 0 3 0x100002 0x80 sbwait syslogd-parent 17524 114558 1 0 3 0x100000 0x80 kqread resolvd 84416 400040 3602 77 3 0x100012 0x80 kqread dhcpleased 39542 421651 3602 77 3 0x100012 0x80 kqread dhcpleased 3602 274374 1 0 3 0 0x80 kqread dhcpleased 53682 301651 0 0 3 0x14000 0x200 bored smr 98969 507907 0 0 2 0x14000 0x200 zerothread 4927 343198 0 0 3 0x14000 0x200 aiodoned aiodoned 56556 10776 0 0 3 0x14000 0x200 syncer update 86342 202699 0 0 3 0x14000 0x200 cleaner cleaner 33477 98447 0 0 3 0x14000 0x200 reaper reaper 44966 490375 0 0 3 0x14000 0x200 pgdaemon pagedaemon 99072 474526 0 0 3 0x14000 0x200 bored viomb 58301 200510 0 0 3 0x14000 0x40000200 acpi0 acpi0 94680 391679 0 0 7 0x14000 0x40000200 idle1 1633 124383 0 0 3 0x14000 0x200 bored softnet1 22983 34927 0 0 3 0x14000 0x200 bored softnet0 22793 462613 0 0 3 0x14000 0x200 bored systqmp 47810 302803 0 0 3 0x14000 0x200 bored systq 77238 192645 0 0 3 0x14000 0x200 tmoslp softclockmp 37739 62983 0 0 3 0x14000 0x40000200 tmoslp softclock 65230 237198 0 0 3 0x14000 0x40000200 idle0 1 233949 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb{0}> show all locks Process 92374 (sh) thread 0xffff80002f38cd20 (218799) exclusive rwlock vmmaplk r = 0 (0xfffff6806cc58ab0) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x42c sys/kern/kern_rwlock.c:320 #2 vm_map_lock_ln+0x12e sys/uvm/uvm_map.c:5170 #3 uvm_map_immutable+0xb0 sys/uvm/uvm_map.c:4121 #4 vmcmd_mutable+0x88 sys/kern/exec_subr.c:312 #5 exec_process_vmcmds+0xef sys/kern/exec_subr.c:139 #6 sys_execve+0xebc sys/kern/kern_exec.c:540 #7 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #7 syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 #8 Xsyscall+0x128 Process 46450 (syz-executor) thread 0xffff80002f38c7f0 (343647) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83ac1e00) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 #2 malloc+0xe3 sys/kern/kern_malloc.c:174 #3 sys_shmat+0x181 sys/kern/sysv_shm.c:-1 #4 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #4 syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 #5 Xsyscall+0x128 Process 88550 (syz-executor) thread 0xffff80002a247a08 (213893) exclusive rwlock vmmaplk r = 0 (0xfffff68078730118) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x42c sys/kern/kern_rwlock.c:320 #2 vm_map_lock_ln+0x12e sys/uvm/uvm_map.c:5170 #3 uvm_map_protect+0xe1 sys/uvm/uvm_map.c:3081 #4 sys_mprotect+0x351 sys/uvm/uvm_mmap.c:590 #5 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #5 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 #6 Xsyscall+0x128 Process 46731 (syz-executor) thread 0xffff80002a247ca0 (24458) exclusive rwlock clonelk r = 0 (0xffffffff839ac078) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x42c sys/kern/kern_rwlock.c:320 #2 if_clone_create+0x65 sys/net/if.c:-1 #3 tun_dev_open+0x1a0 sys/net/if_tun.c:409 #4 spec_open+0x2d9 sys/kern/spec_vnops.c:150 #5 VOP_OPEN+0x8b sys/kern/vfs_vops.c:138 #6 vn_open+0x75f sys/kern/vfs_vnops.c:183 #7 doopenat+0x36c sys/kern/vfs_syscalls.c:1163 #8 sys_open+0x59 sys/kern/vfs_syscalls.c:1065 #9 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #9 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:791 #10 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11052 12085K 12093K 166960K 12163 0 pcb 17 12K 12K 166960K 20 0 rtable 145 4K 6K 166960K 347 0 pf 32 17K 18K 166960K 53 0 ifaddr 31 4K 7K 166960K 52 0 ifgroup 51 2K 2K 166960K 69 0 sysctl 1 1K 9K 166960K 5 0 counters 68 36K 37K 166960K 78 0 ioctlops 0 0K 4K 166960K 1549 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1291 81K 81K 166960K 1405 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 4 0K 0K 166960K 4 0 dirhash 15 2K 2K 166960K 15 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 18 65K 97K 166960K 186 0 proc 71 115K 164K 166960K 612 0 subproc 72 4K 4K 166960K 108 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 3 0 in_multi 56 3K 6K 166960K 103 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 5 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 43 201K 201K 166960K 43 0 exec 4 1K 1K 166960K 412 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 215 176K 186K 166960K 3293 0 UVM aobj 4 2K 2K 166960K 4 0 pinsyscall 45 89K 106K 166960K 1361 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 13 0K 1K 166960K 32 0 temp 36 9123K 9143K 166960K 3679 0 kqueue 13 20K 22K 166960K 28 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 28 0 0 1 0 1 1 0 8 0 rtpcb 120 33 0 30 1 0 1 1 0 8 0 rtentry 176 114 0 45 5 0 5 5 0 8 0 unpcb 144 45 0 26 1 0 1 1 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 11 0 7 1 0 1 1 0 8 0 arp 136 19 0 8 1 0 1 1 0 8 0 inpcb 328 82 0 74 2 0 2 2 0 8 1 nd6 152 24 0 12 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 kcovpl 48 12 0 4 1 0 1 1 0 8 0 ppxss 1192 1 0 1 1 0 1 1 0 8 1 pffrag 232 1 0 0 1 0 1 1 0 482 0 pffrnode 88 1 0 0 1 0 1 1 0 8 0 pffrent 40 1 0 0 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 28 0 0 1 0 1 1 0 8 0 pfstkey 128 28 0 0 1 0 1 1 0 8 0 pfstate 448 28 0 0 4 0 4 4 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 455 0 176 29 0 29 29 0 8 6 art_table 40 456 0 176 5 0 5 5 0 8 0 art_node 32 114 0 51 1 0 1 1 0 8 0 semapl 72 2 0 0 1 0 1 1 0 8 0 shmpl 120 1 0 0 1 0 1 1 0 8 0 dirhash 1024 19 0 0 3 0 3 3 0 8 0 dino2pl 256 1606 0 127 93 0 93 93 0 8 0 ffsino 296 1606 0 127 114 0 114 114 0 8 0 nchpl 144 1822 0 112 64 0 64 64 0 8 0 vnodes 216 1731 0 0 97 0 97 97 0 8 0 namei 1024 6472 0 6461 6 4 2 3 0 8 0 percpumem 16 56 0 5 1 0 1 1 0 8 0 kstatmem 264 35 0 10 2 0 2 2 0 8 0 scxspl 216 6274 0 6274 3 2 1 2 1 8 1 plimitpl 152 37 0 20 1 0 1 1 0 8 0 sigapl 424 482 0 434 7 0 7 7 0 8 1 knotepl 120 55 0 0 2 0 2 2 0 8 0 kqueuepl 224 25 0 16 1 0 1 1 0 8 0 pipepl 344 139 0 112 3 0 3 3 0 8 0 fdescpl 528 466 0 434 3 0 3 3 0 8 0 filepl 160 1661 0 1447 10 0 10 10 0 8 1 lockfpl 104 16 0 14 1 0 1 1 0 8 0 lockfspl 48 9 0 7 1 0 1 1 0 8 0 sessionpl 144 29 0 20 1 0 1 1 0 8 0 pgrppl 48 43 0 26 1 0 1 1 0 8 0 ucredpl 104 113 0 100 1 0 1 1 0 8 0 zombiepl 144 455 0 455 2 1 1 1 0 8 1 processpl 1240 482 0 434 5 0 5 5 0 8 1 procpl 664 536 0 481 6 0 6 6 0 8 1 sockpl 752 163 0 133 5 1 4 4 0 8 0 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl9k128 9344 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 131 0 0 17 0 17 17 0 8 0 mcl2k 2048 12 0 0 2 0 2 2 0 8 0 mextrefs 64 11 0 0 1 0 1 1 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 183 0 0 12 0 12 12 0 8 0 bufpl 272 2372 0 88 153 0 153 153 0 8 0 anonpl 32 3625 0 0 30 0 30 30 0 247 0 amapchunkpl 152 9016 0 8623 21 0 21 21 0 158 4 amappl16 200 1474 0 1459 5 4 1 5 0 8 0 amappl15 192 21 0 21 1 1 0 1 0 8 0 amappl14 184 438 0 436 1 0 1 1 0 8 0 amappl13 176 119 0 107 1 0 1 1 0 8 0 amappl12 168 712 0 684 2 0 2 2 0 8 0 amappl11 160 12 0 11 1 0 1 1 0 8 0 amappl10 152 63 0 51 1 0 1 1 0 8 0 amappl9 144 296 0 296 1 1 0 1 0 8 0 amappl8 136 105 0 103 1 0 1 1 0 8 0 amappl7 128 143 0 131 1 0 1 1 0 8 0 amappl6 120 130 0 126 1 0 1 1 0 8 0 amappl5 112 145 0 136 1 0 1 1 0 8 0 amappl4 104 290 0 273 1 0 1 1 0 8 0 amappl3 96 1676 0 1579 4 0 4 4 0 8 1 amappl2 88 440 0 385 2 0 2 2 0 8 0 amappl1 80 10452 0 9859 16 0 16 16 0 8 3 amappl 88 2585 0 2445 5 0 5 5 0 92 1 uvmvnodes 80 103 0 0 3 0 3 3 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 3 0 0 1 0 1 1 0 8 0 uaddrrnd 24 466 0 434 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 466 0 434 1 0 1 1 0 8 0 vmmpekpl 168 5615 0 5578 3 0 3 3 0 8 0 vmmpepl 168 39153 0 37353 91 1 90 90 0 357 8 vmsppl 488 465 0 434 6 1 5 5 0 8 0 rwobjpl 80 14423 0 13438 26 1 25 25 0 8 1 pdppl 4096 939 0 868 105 28 77 87 0 8 6 pvpl 32 9809 0 0 80 0 80 80 0 265 0 pmappl 256 465 0 434 4 1 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 438 0 37 12 0 12 12 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace sys_shmat(ffff80002f38c7f0,ffff80002abc3670,ffff80002abc35c0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002abc3670) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002abc3670) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x486eae3b220, count: -3 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffff80002999dff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 acpicpu_idle() at acpicpu_idle+0x457 sys/dev/acpi/acpicpu_x86.c:1224 sched_idle(ffff80002999dff0) at sched_idle+0x391 sys/kern/kern_sched.c:192 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff80002999dff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 acpicpu_idle() at acpicpu_idle+0x457 sys/dev/acpi/acpicpu_x86.c:1224 sched_idle(ffff80002999dff0) at sched_idle+0x391 sys/kern/kern_sched.c:192 end trace frame: 0x0, count: -5