uvm_fault(0xfffff48072f2de68, 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 * 8503 33105 0 0 0x4000000 0 syz-executor sys_shmat(ffff80003c8f1a10,ffff80002a78bac0,ffff80002a78ba10) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002a78bac0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a78bac0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc9cf3a81150, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: uvm_fault(0xfffff48072f2de68, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace sys_shmat(ffff80003c8f1a10,ffff80002a78bac0,ffff80002a78ba10) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002a78bac0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a78bac0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc9cf3a81150, count: -3 ddb> show registers rdi 0 rsi 0x2000 __ALIGN_SIZE+0x1000 rbp 0xffff80002a78b9f0 rbx 0 rdx 0x1 rcx 0x1 rax 0xfffff480732ebf00 r8 0x180 r9 0xfffff48007ffd6e8 r10 0 r11 0x3afd29f286e847ad r12 0xffff80003c8f1a10 r13 0xffff8000015f1000 r14 0 r15 0x3 rip 0xffffffff8123d8a7 sys_shmat+0x3d7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002a78b960 ss 0 sys_shmat+0x3d7: movq 0(%r14),%rdi ddb> show proc PROC (syz-executor) tid=8503 pid=33105 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=50, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c8f0d18,0xffff80003c8f1788 process=0xffff8000384cb1f0 user=0xffff80002a786000, vmspace=0xfffff48072f2de68 estcpu=0, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 33105 158372 13464 0 3 0 0 vmmaplk syz-executor 33105 301642 13464 0 2 0 0x4000000 syz-executor *33105 8503 13464 0 7 0 0x4000000 syz-executor 33105 99185 13464 0 2 0 0x4000000 syz-executor 57529 65745 59759 0 2 0 0 syz-executor 57529 292031 59759 0 3 0 0x4000080 fsleep syz-executor 57529 162527 59759 0 3 0 0x4000080 fsleep syz-executor 11836 389218 1 0 3 0 0x80 nanoslp init 37523 290086 27005 0 2 0 0 syz-executor 37523 319626 27005 0 3 0 0x4000080 kqpoll syz-executor 37523 326768 27005 0 3 0 0x4000080 fsleep syz-executor 94489 471328 4989 0 2 0x2044 0 syz-executor 30218 272971 1884 0 2 0 0 syz-executor 30218 398041 1884 0 3 0 0x4000080 ttyin syz-executor 30218 247621 1884 0 3 0 0x4000000 inode syz-executor 30218 268981 1884 0 3 0 0x4000000 inode syz-executor 30218 346921 1884 0 2 0 0x4000000 syz-executor 45136 492946 2287 0 2 0x10 0xc80 syz-executor 45136 325489 2287 0 3 0x10 0x4000080 lockf syz-executor 45136 342808 2287 0 3 0x10 0x4000080 fsleep syz-executor 79230 9950 21932 0 2 0 0xc80 syz-executor 79230 273214 21932 0 3 0 0x4000080 kqsel syz-executor 79230 450375 21932 0 3 0 0x4000080 fsleep syz-executor 769 47105 21394 0 2 0 0x1 syz-executor 769 20990 21394 0 3 0 0x4000080 ttyin syz-executor 769 331937 21394 0 3 0 0x4000080 fsleep syz-executor 13464 24332 68736 0 2 0x2 0xc80 syz-executor 4989 292814 68736 0 3 0x82 0 ppwait syz-executor 21394 381701 68736 0 2 0x2 0xc80 syz-executor 27005 117732 68736 0 2 0x2 0xc80 syz-executor 2287 516895 68736 0 2 0x2 0xc80 syz-executor 59759 72357 68736 0 2 0x2 0xc80 syz-executor 21932 414628 68736 0 2 0x2 0xc80 syz-executor 1884 45674 68736 0 2 0x2 0xc80 syz-executor 68736 413525 1 0 3 0x2 0x80 kqread syz-executor 95367 224180 1 73 3 0x1100010 0x80 kqread syslogd 25481 342972 0 0 3 0x14000 0x200 bored smr 22126 402517 0 0 2 0x14000 0x200 zerothread 43084 39638 0 0 3 0x14000 0x200 aiodoned aiodoned 70892 166055 0 0 3 0x14000 0x200 syncer update 24746 497188 0 0 3 0x14000 0x200 cleaner cleaner 59492 455633 0 0 3 0x14000 0x200 reaper reaper 36577 379040 0 0 3 0x14000 0x200 pgdaemon pagedaemon 21582 163710 0 0 3 0x14000 0x200 bored viomb 30098 20939 0 0 3 0x14000 0x40000200 acpi0 acpi0 18472 281775 0 0 3 0x14000 0x200 bored softnet0 2799 437224 0 0 3 0x14000 0x200 bored systqmp 72601 376780 0 0 3 0x14000 0x200 bored systq 45422 330923 0 0 3 0x14000 0x40000200 tmoslp softclock 93499 357607 0 0 3 0x14000 0x40000200 idle0 1 389246 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 11020 12159K 12229K 166960K 12154 0 pcb 18 12K 12K 166960K 27 0 rtable 191 5K 6K 166960K 327 0 pf 29 12K 13K 166960K 31 0 ifaddr 36 6K 7K 166960K 42 0 ifgroup 46 2K 2K 166960K 50 0 sysctl 2 1K 9K 166960K 6 0 counters 32 17K 17K 166960K 33 0 ioctlops 0 0K 2K 166960K 35 0 iov 0 0K 12K 166960K 7 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1290 81K 81K 166960K 1390 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 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12472 0 file desc 18 65K 93K 166960K 158 0 proc 10 17K 100K 166960K 500 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 1 0K 0K 166960K 2 0 in_multi 78 5K 6K 166960K 89 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 2 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 1 0K 1K 166960K 378 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 154 87K 159K 166960K 3189 0 UVM aobj 4 2K 2K 166960K 4 0 pinsyscall 21 42K 94K 166960K 1258 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 10 0K 1K 166960K 25 0 temp 39 9115K 9178K 166960K 4891 0 kqueue 4 6K 22K 166960K 27 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 37 0 37 1 1 0 1 0 8 0 rtentry 136 104 0 12 4 0 4 4 0 8 0 unpcb 144 64 0 56 1 0 1 1 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 14 0 13 1 0 1 1 0 8 0 arp 96 18 0 2 1 0 1 1 0 8 0 inpcb 328 83 0 80 2 0 2 2 0 8 0 ip6q 80 2 0 0 1 0 1 1 0 8 0 ip6af 40 2 0 0 1 0 1 1 0 8 0 nd6 112 21 0 3 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 413 0 44 26 2 24 26 0 8 0 art_table 40 414 0 44 5 0 5 5 0 8 0 art_node 32 104 0 20 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 1 0 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 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1617 0 157 92 0 92 92 0 8 0 ffsino 256 1617 0 157 92 0 92 92 0 8 0 nchpl 144 1851 0 153 64 0 64 64 0 8 0 vnodes 216 1718 0 0 96 0 96 96 0 8 0 namei 1024 6141 0 6137 4 3 1 4 0 8 0 kstatmem 264 23 0 2 2 0 2 2 0 8 0 scxspl 216 6244 0 6244 4 3 1 4 1 8 1 plimitpl 152 32 0 21 1 0 1 1 0 8 0 sigapl 424 450 0 416 6 1 5 6 0 8 0 knotepl 120 3093 0 2890 7 0 7 7 0 8 0 kqueuepl 184 29 0 24 1 0 1 1 0 8 0 pipepl 304 126 0 99 3 0 3 3 0 8 0 fdescpl 448 437 0 416 5 1 4 5 0 8 0 filepl 120 1592 0 1408 7 0 7 7 0 8 0 lockfpl 104 25 0 23 1 0 1 1 0 8 0 lockfspl 48 12 0 11 1 0 1 1 0 8 0 sessionpl 144 26 0 23 1 0 1 1 0 8 0 pgrppl 48 35 0 24 1 0 1 1 0 8 0 ucredpl 104 99 0 92 1 0 1 1 0 8 0 zombiepl 144 417 0 417 2 1 1 1 0 8 1 processpl 1160 450 0 416 4 0 4 4 0 8 0 procpl 664 498 0 447 5 0 5 5 0 8 0 sockpl 552 184 0 173 3 1 2 3 0 8 0 mcl64k 65536 6 0 4 1 0 1 1 0 8 0 mcl16k 16384 3 0 3 1 1 0 1 0 8 0 mcl12k 12288 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 13 0 13 1 1 0 1 0 8 0 mcl4k 4096 2585 0 2534 13 6 7 13 0 8 0 mcl2k 2048 142 0 141 1 0 1 1 0 8 0 mextrefs 64 52 0 51 1 0 1 1 0 8 0 mtagpl 96 5 0 5 1 1 0 1 0 8 0 mbufpl 256 4582 0 4453 12 2 10 12 0 8 0 bufpl 272 2319 0 85 149 0 149 149 0 8 0 anonpl 24 89597 0 87766 22 4 18 22 0 187 0 amapchunkpl 152 8816 0 8405 22 3 19 22 0 158 1 amappl16 200 1470 0 1456 5 3 2 5 0 8 0 amappl14 184 404 0 404 1 1 0 1 0 8 0 amappl13 176 124 0 123 1 0 1 1 0 8 0 amappl12 168 673 0 655 2 0 2 2 0 8 0 amappl11 160 6 0 6 1 1 0 1 0 8 0 amappl10 152 76 0 74 1 0 1 1 0 8 0 amappl9 144 285 0 285 1 1 0 1 0 8 0 amappl8 136 86 0 85 1 0 1 1 0 8 0 amappl7 128 157 0 154 1 0 1 1 0 8 0 amappl6 120 112 0 112 1 1 0 1 0 8 0 amappl5 112 127 0 126 1 0 1 1 0 8 0 amappl4 104 332 0 328 1 0 1 1 0 8 0 amappl3 96 1609 0 1522 3 0 3 3 0 8 0 amappl2 88 443 0 435 2 0 2 2 0 8 0 amappl1 80 10195 0 10059 14 4 10 14 0 8 0 amappl 88 2517 0 2380 4 0 4 4 0 92 0 uvmvnodes 80 101 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 437 0 416 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 437 0 416 1 0 1 1 0 8 0 vmmpekpl 168 5295 0 5264 2 0 2 2 0 8 0 vmmpepl 168 37648 0 36698 79 28 51 79 0 357 0 vmsppl 368 436 0 416 4 1 3 4 0 8 0 rwobjpl 40 14068 0 13629 11 0 11 11 0 8 0 pdppl 4096 880 0 832 92 44 48 80 0 8 0 pvpl 32 215622 0 210910 78 20 58 78 0 265 0 pmappl 216 436 0 416 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 502 0 64 14 0 14 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_shmat(ffff80003c8f1a10,ffff80002a78bac0,ffff80002a78ba10) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002a78bac0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a78bac0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc9cf3a81150, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_shmat(ffff80003c8f1a10,ffff80002a78bac0,ffff80002a78ba10) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002a78bac0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a78bac0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc9cf3a81150, count: -3 ddb>