uvm_fault(0xfffffa800f423208, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped at shm_deallocate_segment+0x3b: movq 0(%rax),%rdi TID PID UID PRFLAGS PFLAGS CPU COMMAND *417606 98675 0 0 0x4000000 1K syz-executor 224819 61400 0 0 0 0 syz-executor shm_deallocate_segment(fffffa806c171e70) at shm_deallocate_segment+0x3b sys/kern/sysv_shm.c:157 sys_shmctl(ffff80003bfb87e8,ffff80003c3d1d10,ffff80003c3d1c60) at sys_shmctl+0x3cf sys/kern/sysv_shm.c:365 syscall(ffff80003c3d1d10) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3d1d10) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x456e787dd10, count: 11 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: uvm_fault(0xfffffa800f423208, 0x0, 0, 1) -> e ddb{1}> show kasan No such command ddb{1}> trace shm_deallocate_segment(fffffa806c171e70) at shm_deallocate_segment+0x3b sys/kern/sysv_shm.c:157 sys_shmctl(ffff80003bfb87e8,ffff80003c3d1d10,ffff80003c3d1c60) at sys_shmctl+0x3cf sys/kern/sysv_shm.c:365 syscall(ffff80003c3d1d10) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3d1d10) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x456e787dd10, count: -4 ddb{1}> show registers rdi 0xfffffa806c171e70 rsi 0 rbp 0xffff80003c3d1b50 rbx 0 rdx 0 rcx 0xffff80003bfb87e8 rax 0 r8 0xffffffff8238b190 uvm_map_inentry_sp r9 0 r10 0 r11 0xb9db5804a3b0e2a r12 0 r13 0xfffffa806c171e70 r14 0xfffffa806c171e70 r15 0xfff rip 0xffffffff811144db shm_deallocate_segment+0x3b cs 0x8 rflags 0x10206 __ALIGN_SIZE+0xf206 rsp 0xffff80003c3d1b20 ss 0x10 shm_deallocate_segment+0x3b: movq 0(%rax),%rdi ddb{1}> show proc PROC (syz-executor) tid=417606 pid=98675 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800045feea78,0xffff80003bfb94f0 process=0xffff80003c3d79e0 user=0xffff80003c3cc000, vmspace=0xfffffa800f423208 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 98675 381889 93925 0 2 0 0 syz-executor *98675 417606 93925 0 7 0 0x4000000 syz-executor 98675 251619 93925 0 2 0 0x4000000 syz-executor 98675 9402 93925 0 2 0 0x4000000 syz-executor 61400 224819 25853 0 7 0 0 syz-executor 61400 181245 25853 0 2 0 0x4000000 syz-executor 87181 289525 90654 0 2 0 0 syz-executor 87181 333814 90654 0 3 0 0x4000000 vmmaplk syz-executor 83030 131166 93424 0 2 0 0 syz-executor 83030 103619 93424 0 2 0 0x4000000 syz-executor 52787 212949 90146 0 2 0 0 syz-executor 52787 498698 90146 0 3 0 0x4000080 fsleep syz-executor 23974 426819 69214 0 2 0 0 syz-executor 45041 170327 67143 0 2 0 0 syz-executor 45041 313764 67143 0 3 0 0x4000080 fsleep syz-executor 45041 391451 67143 0 2 0 0x4000000 syz-executor 32160 458297 21165 0 2 0 0 syz-executor 32160 523708 21165 0 3 0 0x4000080 fsleep syz-executor 90654 292112 13647 0 3 0x2 0x80 nanoslp syz-executor 67143 221095 13647 0 2 0x2 0x1 syz-executor 69214 392309 13647 0 3 0x2 0x80 nanoslp syz-executor 93424 204860 13647 0 3 0x2 0x80 nanoslp syz-executor 93925 155960 13647 0 2 0x2 0x1 syz-executor 90146 173164 13647 0 2 0x2 0x1 syz-executor 25853 128562 13647 0 2 0x2 0x1 syz-executor 21165 270969 13647 0 2 0x2 0x1 syz-executor 13647 382736 7853 0 3 0x2 0x80 kqread syz-executor 7853 449793 35776 0 3 0x100002 0x88 sigsusp ksh 35776 21926 95043 0 3 0x10 0x88 kqread sshd-session 95043 494708 91397 0 3 0x12 0x80 kqread sshd-session 65906 59535 1 0 3 0x100003 0x80 ttyin getty 91397 344755 1 0 3 0 0x88 kqread sshd 81486 28564 66865 74 3 0x1100012 0x80 bpf pflogd 66865 265076 1 0 3 0 0x80 sbwait pflogd 72913 38689 61412 73 3 0x1100010 0x80 kqread syslogd 61412 195112 1 0 3 0x100002 0x80 sbwait syslogd 24786 272646 1 0 3 0x100000 0x80 kqread resolvd 72084 352000 18532 77 3 0x100012 0x80 kqread dhcpleased 46012 282511 18532 77 3 0x100012 0x80 kqread dhcpleased 18532 189127 1 0 3 0 0x80 kqread dhcpleased 86096 355860 0 0 2 0x14000 0x40000200 smr 96880 509449 0 0 2 0x14000 0x200 zerothread 87566 438473 0 0 3 0x14000 0x200 aiodoned aiodoned 27292 119511 0 0 3 0x14000 0x200 syncer update 93276 97569 0 0 3 0x14000 0x200 cleaner cleaner 71662 174154 0 0 3 0x14000 0x200 reaper reaper 50784 471783 0 0 3 0x14000 0x200 pgdaemon pagedaemon 35081 509789 0 0 3 0x14000 0x200 bored viomb 93558 5154 0 0 3 0x14000 0x40000200 acpi0 acpi0 2369 415713 0 0 3 0x14000 0x40000200 idle1 75032 258134 0 0 3 0x14000 0x200 bored softnet1 33545 239040 0 0 3 0x14000 0x200 bored softnet0 11700 120515 0 0 3 0x14000 0x200 bored systqmp 28433 17130 0 0 3 0x14000 0x200 bored systq 27653 332039 0 0 3 0x14000 0x200 tmoslp softclockmp 31761 174901 0 0 3 0x14000 0x40000200 tmoslp softclock 71100 395460 0 0 3 0x14000 0x40000200 idle0 1 161232 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb{1}> show all locks Process 98675 (syz-executor) thread 0xffff80003bfb87e8 (417606) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83aedc00) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 syscall+0xaf4 mi_syscall sys/sys/syscall_mi.h:175 [inline] #1 syscall+0xaf4 sys/arch/amd64/amd64/trap.c:783 #2 Xsyscall+0x128 Process 87181 (syz-executor) thread 0xffff800045fee2b0 (289525) exclusive rwlock vmmaplk r = 0 (0xfffffa806fbc0108) #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_read+0x3e8 sys/kern/kern_rwlock.c:413 #2 uvmfault_lookup+0x122 sys/uvm/uvm_fault.c:1880 #3 uvm_fault_check+0x4f sys/uvm/uvm_fault.c:693 #4 uvm_fault+0x106 sys/uvm/uvm_fault.c:627 #5 upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:192 #6 usertrap+0x430 sys/arch/amd64/amd64/trap.c:640 #7 recall_trap+0x8 Process 83030 (syz-executor) thread 0xffff80003bfb82b8 (103619) exclusive rwlock ptarrlk r = 0 (0xffffffff8390ae58) #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+0x419 sys/kern/kern_rwlock.c:320 #2 check_pty+0x52 sys/kern/tty_pty.c:170 #3 ptmioctl+0x33a sys/kern/tty_pty.c:1111 #4 VOP_IOCTL+0xac sys/kern/vfs_vops.c:264 #5 vn_ioctl+0xf8 sys/kern/vfs_vnops.c:537 #6 sys_ioctl+0x674 sys/kern/sys_generic.c:-1 #7 syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] #7 syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 #8 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11056 12086K 12178K 166960K 12166 0 pcb 17 12K 12K 166960K 32 0 rtable 243 15K 15K 166960K 368 0 pf 34 17K 24K 166960K 55 0 ifaddr 43 7K 7K 166960K 46 0 ifgroup 55 2K 2K 166960K 55 0 sysctl 1 1K 9K 166960K 5 0 counters 70 37K 37K 166960K 70 0 ioctlops 0 0K 4K 166960K 1483 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1296 82K 82K 166960K 1374 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 3 0K 0K 166960K 3 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 18 65K 97K 166960K 162 0 proc 70 115K 180K 166960K 555 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 2 0 in_multi 99 6K 7K 166960K 107 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 47 219K 219K 166960K 47 0 exec 0 0K 1K 166960K 383 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 227 158K 168K 166960K 3278 0 UVM aobj 4 4K 4K 166960K 4 0 pinsyscall 43 86K 108K 166960K 1318 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 16 0K 2K 166960K 28 0 temp 35 9114K 9120K 166960K 5695 0 kqueue 14 22K 24K 166960K 29 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> 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 35 0 32 1 0 1 1 0 8 0 rtentry 176 112 0 2 6 0 6 6 0 8 1 unpcb 144 81 0 62 2 0 2 2 0 8 1 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 18 0 0 1 0 1 1 0 8 0 inpcb 328 147 0 139 7 0 7 7 0 8 5 nd6 152 25 0 1 1 0 1 1 0 8 0 pkpcb 40 1 0 0 1 0 1 1 0 8 0 kcovpl 48 8 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 pfanchor 1288 2 0 0 1 0 1 1 0 8 0 pfstitem 24 17 0 0 1 0 1 1 0 8 0 pfstkey 128 17 0 0 1 0 1 1 0 8 0 pfstate 448 17 0 0 2 0 2 2 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 451 0 0 29 0 29 29 0 8 0 art_table 40 452 0 0 5 0 5 5 0 8 0 art_node 32 112 0 12 1 0 1 1 0 8 0 semapl 72 1 0 0 1 0 1 1 0 8 0 shmpl 112 1 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1604 0 133 93 0 93 93 0 8 0 ffsino 296 1604 0 133 114 0 114 114 0 8 0 nchpl 144 1838 0 139 64 0 64 64 0 8 0 vnodes 216 1703 0 0 95 0 95 95 0 8 0 namei 1024 5620 0 5620 3 2 1 2 0 8 1 percpumem 16 51 0 0 1 0 1 1 0 8 0 kstatmem 264 27 0 0 2 0 2 2 0 8 0 scxspl 216 6483 0 6483 4 3 1 3 1 8 1 plimitpl 152 33 0 14 1 0 1 1 0 8 0 sigapl 424 479 0 431 7 0 7 7 0 8 1 knotepl 120 270 0 0 9 0 9 9 0 8 0 kqueuepl 224 27 0 17 1 0 1 1 0 8 0 pipepl 344 192 0 164 3 0 3 3 0 8 0 fdescpl 528 463 0 431 3 0 3 3 0 8 0 filepl 160 1904 0 1679 13 0 13 13 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 24 0 15 1 0 1 1 0 8 0 pgrppl 48 32 0 15 1 0 1 1 0 8 0 ucredpl 104 116 0 103 1 0 1 1 0 8 0 zombiepl 144 452 0 452 2 1 1 1 0 8 1 processpl 1232 479 0 431 5 0 5 5 0 8 0 procpl 664 541 0 483 6 0 6 6 0 8 1 sosppl 176 1 0 0 1 0 1 1 0 8 0 sockpl 752 267 0 236 14 1 13 13 0 8 8 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 125 0 0 16 0 16 16 0 8 0 mcl2k 2048 16 0 0 2 0 2 2 0 8 0 mextrefs 64 9 0 0 1 0 1 1 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 122 0 0 8 0 8 8 0 8 0 bufpl 272 2475 0 105 159 1 158 158 0 8 0 anonpl 32 3740 0 0 31 0 31 31 0 247 0 amapchunkpl 152 8987 0 8521 21 0 21 21 0 158 3 amappl16 200 1626 0 1605 7 4 3 5 0 8 1 amappl15 192 8 0 8 1 1 0 1 0 8 0 amappl14 184 433 0 432 1 0 1 1 0 8 0 amappl13 176 127 0 114 1 0 1 1 0 8 0 amappl12 168 711 0 680 2 0 2 2 0 8 0 amappl11 160 4 0 4 1 1 0 1 0 8 0 amappl10 152 66 0 52 1 0 1 1 0 8 0 amappl9 144 276 0 275 1 0 1 1 0 8 0 amappl8 136 109 0 107 1 0 1 1 0 8 0 amappl7 128 173 0 160 1 0 1 1 0 8 0 amappl6 120 153 0 152 1 0 1 1 0 8 0 amappl5 112 98 0 88 1 0 1 1 0 8 0 amappl4 104 297 0 277 1 0 1 1 0 8 0 amappl3 96 1616 0 1505 4 0 4 4 0 8 0 amappl2 88 535 0 477 2 0 2 2 0 8 0 amappl1 80 10501 0 9893 15 0 15 15 0 8 2 amappl 88 2553 0 2396 4 0 4 4 0 92 0 uvmvnodes 80 100 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 463 0 431 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 463 0 431 1 0 1 1 0 8 0 vmmpekpl 168 5975 0 5942 2 0 2 2 0 8 0 vmmpepl 168 38840 0 36916 88 2 86 86 0 357 0 vmsppl 488 462 0 431 5 0 5 5 0 8 1 rwobjpl 80 14596 0 13591 25 2 23 24 0 8 1 pdppl 4096 933 0 862 97 22 75 87 0 8 4 pvpl 32 10519 0 0 86 1 85 85 0 265 0 pmappl 256 462 0 431 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 424 0 29 12 0 12 12 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp x86_ipi_db(ffffffff83915ff0) 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 __mp_lock(ffffffff83aed400) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83aed400) at __mp_lock+0x192 sys/kern/kern_lock.c:173 softintr_dispatch(0) at softintr_dispatch+0x125 sys/kern/kern_softintr.c:83 dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:862 Xsoftclock() at Xsoftclock+0x27 end of kernel end trace frame: 0x73c961682f40, count: 8 ddb{0}> trace x86_ipi_db(ffffffff83915ff0) 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 __mp_lock(ffffffff83aed400) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83aed400) at __mp_lock+0x192 sys/kern/kern_lock.c:173 softintr_dispatch(0) at softintr_dispatch+0x125 sys/kern/kern_softintr.c:83 dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:862 Xsoftclock() at Xsoftclock+0x27 end of kernel end trace frame: 0x73c961682f40, count: -7 ddb{0}> machine ddbcpu 1 Stopped at shm_deallocate_segment+0x3b: movq 0(%rax),%rdi shm_deallocate_segment(fffffa806c171e70) at shm_deallocate_segment+0x3b sys/kern/sysv_shm.c:157 sys_shmctl(ffff80003bfb87e8,ffff80003c3d1d10,ffff80003c3d1c60) at sys_shmctl+0x3cf sys/kern/sysv_shm.c:365 syscall(ffff80003c3d1d10) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3d1d10) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x456e787dd10, count: 11 ddb{1}> trace shm_deallocate_segment(fffffa806c171e70) at shm_deallocate_segment+0x3b sys/kern/sysv_shm.c:157 sys_shmctl(ffff80003bfb87e8,ffff80003c3d1d10,ffff80003c3d1c60) at sys_shmctl+0x3cf sys/kern/sysv_shm.c:365 syscall(ffff80003c3d1d10) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3d1d10) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x456e787dd10, count: -4