uvm_fault(0xfffff1806d1922f0, 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 *387903 61943 0 0 0x4000000 0 syz-executor shm_deallocate_segment(fffff18072277d90) at shm_deallocate_segment+0x3b sys/kern/sysv_shm.c:157 sys_shmctl(ffff80003c918030,ffff80003a4cf070,ffff80003a4cefc0) at sys_shmctl+0x3cf sys/kern/sysv_shm.c:367 syscall(ffff80003a4cf070) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a4cf070) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x444a9415440, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: uvm_fault(0xfffff1806d1922f0, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace shm_deallocate_segment(fffff18072277d90) at shm_deallocate_segment+0x3b sys/kern/sysv_shm.c:157 sys_shmctl(ffff80003c918030,ffff80003a4cf070,ffff80003a4cefc0) at sys_shmctl+0x3cf sys/kern/sysv_shm.c:367 syscall(ffff80003a4cf070) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a4cf070) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x444a9415440, count: -4 ddb> show registers rdi 0xfffff18072277d90 rsi 0 rbp 0xffff80003a4ceec0 rbx 0 rdx 0 rcx 0xffff800045ff8918 rax 0 r8 0xffffffff821020f0 uvm_map_inentry_sp r9 0 r10 0 r11 0x554cb999f586f9d8 r12 0 r13 0xfffff18072277d90 r14 0xfffff18072277d90 r15 0xfff rip 0xffffffff82baa97b shm_deallocate_segment+0x3b cs 0x8 rflags 0x10206 __ALIGN_SIZE+0xf206 rsp 0xffff80003a4cee90 ss 0x10 shm_deallocate_segment+0x3b: movq 0(%rax),%rdi ddb> show proc PROC (syz-executor) tid=387903 pid=61943 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=73, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c919a20,0xffff80003c8fa030 process=0xffff800045ff8918 user=0xffff80003a4ca000, vmspace=0xfffff1806d1922f0 estcpu=23, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 1456 125089 67985 0 2 0 0 syz-executor 1456 184791 67985 0 2 0 0x4000000 syz-executor 1456 40870 67985 0 2 0 0x4000000 syz-executor 38877 182730 76092 0 2 0 0 syz-executor 38877 521942 76092 0 3 0 0x4000080 fsleep syz-executor 77354 297008 53169 0 2 0 0 syz-executor 77354 283184 53169 0 3 0 0x4000080 fsleep syz-executor 61943 441527 89789 0 2 0 0 syz-executor 61943 509072 89789 0 2 0 0x4000000 syz-executor *61943 387903 89789 0 7 0 0x4000000 syz-executor 67590 452872 87202 0 2 0 0 syz-executor 67590 8551 87202 0 3 0 0x4000080 fsleep syz-executor 67590 81132 87202 0 3 0 0x4000080 fsleep syz-executor 13675 201426 28785 0 2 0 0 syz-executor 13675 212212 28785 0 3 0 0x4000080 sbwait syz-executor 13675 219213 28785 0 3 0 0x4000080 fsleep syz-executor 13675 262276 28785 0 2 0 0x4000000 syz-executor 22379 316069 31135 0 2 0 0 syz-executor 22379 431972 31135 0 3 0 0x4000080 fsleep syz-executor 99353 316224 0 0 3 0x14000 0x280 nfsidl nfsio 49642 177121 0 0 3 0x14000 0x280 nfsidl nfsio 59137 141257 0 0 3 0x14000 0x280 nfsidl nfsio 93834 7183 0 0 3 0x14000 0x280 nfsidl nfsio 22437 379868 0 0 3 0x14000 0x280 nfsidl nfsio 31667 296333 0 0 3 0x14000 0x280 nfsidl nfsio 53735 470271 0 0 3 0x14000 0x280 nfsidl nfsio 85134 213221 0 0 3 0x14000 0x280 nfsidl nfsio 60713 271476 0 0 3 0x14000 0x280 nfsidl nfsio 41975 251501 0 0 3 0x14000 0x280 nfsidl nfsio 57954 283270 0 0 3 0x14000 0x280 nfsidl nfsio 44599 247253 0 0 3 0x14000 0x280 nfsidl nfsio 27888 224360 0 0 3 0x14000 0x280 nfsidl nfsio 97440 261811 0 0 3 0x14000 0x280 nfsidl nfsio 19297 305143 0 0 3 0x14000 0x280 nfsidl nfsio 93423 492335 0 0 3 0x14000 0x280 nfsidl nfsio 13489 367141 0 0 3 0x14000 0x280 nfsidl nfsio 3312 504484 0 0 3 0x14000 0x280 nfsidl nfsio 26588 428697 0 0 3 0x14000 0x280 nfsidl nfsio 40062 91414 0 0 3 0x14000 0x280 nfsidl nfsio 76092 395070 69088 0 2 0x2 0x1 syz-executor 31135 14117 69088 0 2 0x2 0x1 syz-executor 87202 100384 69088 0 2 0x2 0x1 syz-executor 28785 278514 69088 0 2 0x2 0x1 syz-executor 53169 193278 69088 0 2 0x2 0x1 syz-executor 89789 34120 69088 0 2 0x2 0x1 syz-executor 67985 315777 69088 0 2 0x2 0x1 syz-executor 29475 13429 69088 0 2 0x10000002 0x1 syz-executor 69088 442562 10758 0 3 0x2 0x80 kqread syz-executor 10758 85376 58199 0 3 0x100002 0x88 sigsusp ksh 58199 455634 40114 0 3 0x10 0x88 kqread sshd-session 40114 58558 38580 0 3 0x12 0x80 kqread sshd-session 1761 136120 1 0 3 0x100003 0x80 ttyin getty 38580 88478 1 0 3 0 0x88 kqread sshd 10929 136164 58083 73 3 0x1100010 0x80 kqread syslogd 58083 127654 1 0 3 0x100002 0x80 sbwait syslogd 75857 189279 1 0 3 0x100000 0x80 kqread resolvd 90112 398831 38937 77 3 0x100012 0x80 kqread dhcpleased 50380 490164 38937 77 3 0x100012 0x80 kqread dhcpleased 38937 506216 1 0 3 0 0x80 kqread dhcpleased 20172 342204 0 0 3 0x14000 0x200 bored smr 61698 279739 0 0 2 0x14000 0x200 zerothread 75982 393311 0 0 3 0x14000 0x200 aiodoned aiodoned 84962 522201 0 0 3 0x14000 0x200 syncer update 14008 469403 0 0 3 0x14000 0x200 cleaner cleaner 47197 124821 0 0 3 0x14000 0x200 reaper reaper 164 470257 0 0 3 0x14000 0x200 pgdaemon pagedaemon 78926 300258 0 0 3 0x14000 0x200 bored viomb 16847 356337 0 0 3 0x14000 0x40000200 acpi0 acpi0 64897 310667 0 0 3 0x14000 0x200 bored softnet0 60170 342040 0 0 3 0x14000 0x200 bored systqmp 55722 370643 0 0 3 0x14000 0x200 bored systq 59910 16505 0 0 3 0x14000 0x40000200 tmoslp softclock 53943 365263 0 0 3 0x14000 0x40000200 idle0 1 162104 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11029 12102K 12363K 166960K 12229 0 pcb 19 12K 12K 166960K 35 0 rtable 239 7K 7K 166960K 357 0 pf 32 13K 15K 166960K 44 0 ifaddr 42 7K 7K 166960K 51 0 ifgroup 50 2K 2K 166960K 63 0 sysctl 1 1K 9K 166960K 7 0 counters 33 17K 18K 166960K 39 0 ioctlops 0 0K 4K 166960K 48 0 iov 0 0K 12K 166960K 2 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1326 83K 84K 166960K 1454 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 10 0K 0K 166960K 11 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 17 61K 97K 166960K 223 0 sigio 0 0K 0K 166960K 5 0 proc 60 59K 124K 166960K 511 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 8 0 in_multi 99 7K 7K 166960K 101 0 ether_multi 1 0K 0K 166960K 2 0 mrt 0 0K 0K 166960K 4 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 55 254K 254K 166960K 55 0 exec 0 0K 1K 166960K 377 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 217 142K 152K 166960K 3563 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 38 76K 96K 166960K 1323 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 2 0 NDP 11 0K 2K 166960K 32 0 temp 37 9110K 9174K 166960K 4991 0 kqueue 13 20K 31K 166960K 49 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 42 0 38 1 0 1 1 0 8 0 rtentry 136 111 0 1 4 0 4 4 0 8 0 unpcb 144 135 0 116 4 0 4 4 0 8 3 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 32 0 27 1 0 1 1 0 8 0 arp 96 18 0 0 1 0 1 1 0 8 0 ipq 40 2 0 1 1 0 1 1 0 8 0 ipqe 40 3 0 2 1 0 1 1 0 8 0 inpcb 328 127 0 115 2 0 2 2 0 8 0 nd6 112 24 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 0 1 1 0 8 1 ppxss 1072 5 0 5 1 0 1 1 0 8 1 pfstscr 40 6 0 2 1 0 1 1 0 8 0 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 128 6 0 2 1 0 1 1 0 8 0 pfstate 384 3 0 1 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 452 0 0 29 0 29 29 0 8 0 art_table 40 453 0 0 5 0 5 5 0 8 0 art_node 32 111 0 11 1 0 1 1 0 8 0 semapl 72 8 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 1712 0 256 92 0 92 92 0 8 0 ffsino 256 1712 0 256 92 0 92 92 0 8 0 nchpl 144 2041 0 350 64 0 64 64 0 8 0 vnodes 216 1864 0 0 104 0 104 104 0 8 0 namei 1024 6018 0 6018 2 1 1 2 0 8 1 kstatmem 264 33 0 10 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 6649 0 6649 3 2 1 3 1 8 1 plimitpl 152 40 0 23 1 0 1 1 0 8 0 sigapl 424 538 0 475 9 1 8 8 0 8 0 knotepl 120 6420 0 6373 9 0 9 9 0 8 7 kqueuepl 184 59 0 49 1 0 1 1 0 8 0 pipepl 304 127 0 100 3 0 3 3 0 8 0 fdescpl 448 505 0 476 5 1 4 5 0 8 0 filepl 120 1985 0 1765 10 0 10 10 0 8 2 lockfpl 104 23 0 21 1 0 1 1 0 8 0 lockfspl 48 12 0 10 1 0 1 1 0 8 0 sessionpl 144 28 0 20 1 0 1 1 0 8 0 pgrppl 48 38 0 22 1 0 1 1 0 8 0 ucredpl 104 176 0 165 1 0 1 1 0 8 0 zombiepl 144 525 0 524 1 0 1 1 0 8 0 processpl 1152 538 0 475 5 0 5 5 0 8 0 procpl 664 695 0 618 7 0 7 7 0 8 0 sosppl 176 3 0 3 1 0 1 1 0 8 1 sockpl 552 305 0 270 7 0 7 7 0 8 4 mcl64k 65536 34 0 34 2 1 1 1 0 8 1 mcl16k 16384 17 0 17 2 1 1 1 0 8 1 mcl12k 12288 4 0 4 2 1 1 1 0 8 1 mcl9k128 9344 4 0 4 1 0 1 1 0 8 1 mcl8k 8192 16 0 16 2 1 1 1 0 8 1 mcl4k 4096 2660 0 2608 14 6 8 14 0 8 0 mcl2k 2048 170 0 170 2 1 1 1 0 8 1 mextrefs 64 135 0 135 1 0 1 1 0 8 1 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 5241 0 5093 11 0 11 11 0 8 0 bufpl 272 2479 0 136 157 0 157 157 0 8 0 anonpl 24 91543 0 88386 45 0 45 45 0 187 22 amapchunkpl 152 10276 0 9821 25 0 25 25 0 158 5 amappl16 200 1367 0 1340 14 4 10 14 0 8 8 amappl15 192 2 0 2 1 1 0 1 0 8 0 amappl14 184 407 0 406 1 0 1 1 0 8 0 amappl13 176 181 0 171 1 0 1 1 0 8 0 amappl12 168 772 0 744 2 0 2 2 0 8 0 amappl11 160 65 0 65 1 1 0 1 0 8 0 amappl10 152 58 0 48 1 0 1 1 0 8 0 amappl9 144 271 0 271 1 1 0 1 0 8 0 amappl8 136 94 0 93 1 0 1 1 0 8 0 amappl7 128 148 0 136 1 0 1 1 0 8 0 amappl6 120 171 0 170 1 0 1 1 0 8 0 amappl5 112 90 0 83 1 0 1 1 0 8 0 amappl4 104 277 0 262 1 0 1 1 0 8 0 amappl3 96 2026 0 1921 4 0 4 4 0 8 0 amappl2 88 532 0 479 2 0 2 2 0 8 0 amappl1 80 10534 0 9974 14 1 13 14 0 8 1 amappl 88 2865 0 2711 5 0 5 5 0 92 0 uvmvnodes 80 96 0 0 2 0 2 2 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 19 0 18 1 0 1 1 0 8 0 aobjpl 72 3 0 0 1 0 1 1 0 8 0 uaddrrnd 24 505 0 476 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 505 0 476 1 0 1 1 0 8 0 vmmpekpl 168 5990 0 5966 2 0 2 2 0 8 0 vmmpepl 168 41209 0 39426 91 0 91 91 0 357 11 vmsppl 368 504 0 476 4 1 3 4 0 8 0 rwobjpl 40 14605 0 13674 12 0 12 12 0 8 1 pdppl 4096 1016 0 952 98 32 66 82 0 8 2 pvpl 32 237659 0 229102 120 0 120 120 0 265 42 pmappl 216 504 0 476 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 522 0 48 14 0 14 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace shm_deallocate_segment(fffff18072277d90) at shm_deallocate_segment+0x3b sys/kern/sysv_shm.c:157 sys_shmctl(ffff80003c918030,ffff80003a4cf070,ffff80003a4cefc0) at sys_shmctl+0x3cf sys/kern/sysv_shm.c:367 syscall(ffff80003a4cf070) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a4cf070) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x444a9415440, count: -4 ddb> machine ddbcpu 1 No such command ddb> trace shm_deallocate_segment(fffff18072277d90) at shm_deallocate_segment+0x3b sys/kern/sysv_shm.c:157 sys_shmctl(ffff80003c918030,ffff80003a4cf070,ffff80003a4cefc0) at sys_shmctl+0x3cf sys/kern/sysv_shm.c:367 syscall(ffff80003a4cf070) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003a4cf070) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x444a9415440, count: -4