uvm_fault(0xfffff900780078b8, 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 *281062 83119 0 0 0x4000000 0 syz-executor sys_shmat(ffff80002a75e7f8,ffff80002a895d40,ffff80002a895c90) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002a895d40) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a895d40) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x467aea72be0, 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(0xfffff900780078b8, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace sys_shmat(ffff80002a75e7f8,ffff80002a895d40,ffff80002a895c90) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002a895d40) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a895d40) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x467aea72be0, count: -3 ddb> show registers rdi 0 rsi 0 rbp 0xffff80002a895c70 rbx 0 rdx 0x1 rcx 0x1 rax 0xfffff90067e59d98 r8 0x180 r9 0xfffff90007ffd548 r10 0xeca5487c6c8c5b46 r11 0x849ae8569209f53d r12 0xffff80002a75e7f8 r13 0xffff8000015d6000 r14 0 r15 0x3 rip 0xffffffff818b75c7 sys_shmat+0x3d7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002a895be0 ss 0 sys_shmat+0x3d7: movq 0(%r14),%rdi ddb> show proc PROC (syz-executor) tid=281062 pid=83119 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=82, usrpri=82, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a736538,0xffff80002a75ed38 process=0xffff80002a78e8d8 user=0xffff80002a890000, vmspace=0xfffff900780078b8 estcpu=32, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 31981 80520 45588 0 2 0x100002 0 ndp 45588 429942 61263 0 3 0x100002 0x88 sigsusp sh 17454 337161 41996 0 2 0 0 syz-executor 17454 307303 41996 0 3 0 0x4000080 fsleep syz-executor 61263 441213 64512 0 3 0x2 0x80 wait syz-executor 77809 518808 24438 0 2 0x100002 0 arp 24438 121650 10102 0 3 0x100002 0x88 sigsusp sh 83119 170621 39193 0 2 0 0 syz-executor *83119 281062 39193 0 7 0 0x4000000 syz-executor 83119 58418 39193 0 2 0 0x4000000 syz-executor 74467 151168 12657 0 2 0 0 syz-executor 74467 193580 12657 0 2 0 0x4000000 syz-executor 74467 151214 12657 0 2 0 0x4000000 syz-executor 10242 177755 88320 0 2 0 0 syz-executor 10242 18188 88320 0 3 0 0x4000080 fsleep syz-executor 10242 224923 88320 0 2 0 0x4000000 syz-executor 46159 464430 64512 0 2 0x2 0 syz-executor 10102 205639 64512 0 3 0x2 0x80 wait syz-executor 43002 523647 0 0 3 0x14000 0x200 acct acct 12657 84316 64512 0 2 0x2 0xc80 syz-executor 92438 3697 64512 0 2 0x2 0 syz-executor 41996 198919 64512 0 2 0x2 0xc80 syz-executor 88931 170792 1 0 3 0x100003 0x80 ttyin getty 39193 156553 64512 0 2 0x2 0xc80 syz-executor 88320 233148 64512 0 2 0x2 0xc80 syz-executor 64512 155456 74250 0 3 0x2 0x80 kqread syz-executor 74250 121685 44983 0 3 0x100002 0x88 sigsusp ksh 44983 43989 2451 0 3 0x10 0x88 kqread sshd-session 2451 464743 35774 0 3 0x12 0x80 kqread sshd-session 35774 32588 1 0 3 0 0x88 kqread sshd 23273 97184 78101 73 3 0x1100010 0x80 kqread syslogd 78101 316605 1 0 3 0x100002 0x80 sbwait syslogd-parent 6531 358945 1 0 3 0x100000 0x80 kqread resolvd 56687 410639 96480 77 3 0x100012 0x80 kqread dhcpleased 17920 113029 96480 77 3 0x100012 0x80 kqread dhcpleased 96480 188612 1 0 3 0 0x80 kqread dhcpleased 81133 413304 0 0 3 0x14000 0x200 bored smr 67199 336465 0 0 2 0x14000 0x200 zerothread 75862 204552 0 0 3 0x14000 0x200 aiodoned aiodoned 34374 394719 0 0 3 0x14000 0x200 syncer update 11363 383657 0 0 3 0x14000 0x200 cleaner cleaner 49894 476180 0 0 3 0x14000 0x200 reaper reaper 8502 188377 0 0 3 0x14000 0x200 pgdaemon pagedaemon 53576 25328 0 0 3 0x14000 0x200 bored viomb 48769 23389 0 0 3 0x14000 0x40000200 acpi0 acpi0 49265 500678 0 0 3 0x14000 0x200 bored softnet0 37003 124560 0 0 3 0x14000 0x200 smrbar systqmp 80024 99076 0 0 3 0x14000 0x200 bored systq 90016 371675 0 0 3 0x14000 0x40000200 tmoslp softclock 53954 444161 0 0 3 0x14000 0x40000200 idle0 1 140304 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 11025 12100K 12378K 166960K 12227 0 pcb 17 12K 12K 166960K 44 0 rtable 197 5K 6K 166960K 723 0 pf 28 12K 12K 166960K 56 0 ifaddr 36 6K 7K 166960K 96 0 ifgroup 46 2K 2K 166960K 102 0 sysctl 1 1K 9K 166960K 5 0 counters 32 17K 17K 166960K 46 0 ioctlops 0 0K 4K 166960K 56 0 iov 0 0K 12K 166960K 6 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1297 82K 82K 166960K 1545 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 7 0K 0K 166960K 7 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 18 65K 85K 166960K 408 0 proc 59 59K 83K 166960K 881 0 subproc 67 4K 4K 166960K 193 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 69 0 in_multi 78 5K 6K 166960K 233 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 13 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 49 228K 228K 166960K 49 0 exec 0 0K 1K 166960K 563 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 213 162K 172K 166960K 4812 0 UVM aobj 3 2K 2K 166960K 4 0 pinsyscall 41 82K 90K 166960K 1835 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 12 0K 1K 166960K 64 0 temp 33 9114K 9178K 166960K 7264 0 kqueue 13 20K 24K 166960K 37 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 67 0 62 1 0 1 1 0 8 0 rtentry 136 248 0 158 4 0 4 4 0 8 0 unpcb 144 363 0 348 9 4 5 5 0 8 4 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 22 0 17 1 0 1 1 0 8 0 arp 96 43 0 28 1 0 1 1 0 8 0 inpcb 328 169 0 161 3 1 2 2 0 8 1 nd6 112 61 0 44 1 0 1 1 0 8 0 kcovpl 48 21 0 14 1 0 1 1 0 8 0 pfosfp 40 2 0 0 1 0 1 1 0 8 0 pfosfpen 112 2 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 1007 0 638 34 2 32 33 0 8 8 art_table 40 1008 0 638 6 0 6 6 0 8 0 art_node 32 247 0 164 1 0 1 1 0 8 0 semapl 72 5 0 0 1 0 1 1 0 8 0 shmpl 120 2 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1730 0 233 94 0 94 94 0 8 0 ffsino 256 1730 0 233 94 0 94 94 0 8 0 nchpl 144 2047 0 301 65 0 65 65 0 8 0 vnodes 216 1970 0 0 110 0 110 110 0 8 0 namei 1024 8446 0 8446 5 3 2 3 0 8 2 kstatmem 264 49 0 28 2 0 2 2 0 8 0 scsiplug 72 2 0 2 1 0 1 1 0 8 1 scxspl 216 6872 0 6872 3 2 1 3 1 8 1 plimitpl 152 59 0 41 1 0 1 1 0 8 0 sigapl 424 669 0 625 7 1 6 6 0 8 0 knotepl 120 21387 0 21340 10 7 3 10 0 8 0 kqueuepl 184 46 0 37 1 0 1 1 0 8 0 pipepl 304 235 0 208 3 0 3 3 0 8 0 fdescpl 448 655 0 625 4 0 4 4 0 8 0 filepl 120 2560 0 2355 13 3 10 10 0 8 2 lockfpl 104 66 0 64 1 0 1 1 0 8 0 lockfspl 48 33 0 31 1 0 1 1 0 8 0 sessionpl 144 71 0 63 1 0 1 1 0 8 0 pgrppl 48 94 0 78 1 0 1 1 0 8 0 ucredpl 104 159 0 148 1 0 1 1 0 8 0 zombiepl 144 697 0 697 1 0 1 1 0 8 1 processpl 1160 669 0 625 5 1 4 4 0 8 0 procpl 664 873 0 822 8 2 6 6 0 8 1 sockpl 552 603 0 575 17 7 10 10 0 8 7 mcl64k 65536 1 0 1 1 0 1 1 0 8 1 mcl12k 12288 100 0 100 2 1 1 1 0 8 1 mcl8k 8192 13 0 13 1 1 0 1 0 8 0 mcl4k 4096 2634 0 2580 14 6 8 14 0 8 0 mcl2k 2048 423 0 414 4 1 3 3 0 8 1 mextrefs 64 111 0 102 2 1 1 1 0 8 0 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 6271 0 6089 16 1 15 15 0 8 1 bufpl 272 2496 0 87 161 0 161 161 0 8 0 anonpl 24 98245 0 95114 30 9 21 30 0 187 0 amapchunkpl 152 13657 0 13255 38 5 33 33 0 158 12 amappl16 200 1133 0 1118 4 2 2 4 0 8 1 amappl15 192 49 0 49 1 1 0 1 0 8 0 amappl14 184 551 0 548 1 0 1 1 0 8 0 amappl13 176 136 0 124 1 0 1 1 0 8 0 amappl12 168 940 0 910 2 0 2 2 0 8 0 amappl11 160 5 0 5 1 1 0 1 0 8 0 amappl10 152 58 0 49 1 0 1 1 0 8 0 amappl9 144 278 0 278 1 1 0 1 0 8 0 amappl8 136 136 0 135 1 0 1 1 0 8 0 amappl7 128 177 0 165 1 0 1 1 0 8 0 amappl6 120 222 0 219 1 0 1 1 0 8 0 amappl5 112 174 0 168 1 0 1 1 0 8 0 amappl4 104 303 0 287 1 0 1 1 0 8 0 amappl3 96 2643 0 2542 5 1 4 4 0 8 1 amappl2 88 487 0 432 2 0 2 2 0 8 0 amappl1 80 12210 0 11617 14 1 13 13 0 8 0 amappl 88 3913 0 3773 6 1 5 5 0 92 0 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 4 0 1 1 0 1 1 0 8 0 uaddrrnd 24 655 0 625 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 655 0 625 1 0 1 1 0 8 0 vmmpekpl 168 7118 0 7063 3 0 3 3 0 8 0 vmmpepl 168 51061 0 49311 89 7 82 82 0 357 3 vmsppl 368 654 0 625 4 1 3 4 0 8 0 rwobjpl 40 17408 0 16424 11 0 11 11 0 8 0 pdppl 4096 1316 0 1250 110 42 68 76 0 8 2 pvpl 32 271262 0 262878 90 18 72 90 0 265 0 pmappl 216 654 0 625 2 0 2 2 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 551 0 60 15 0 15 15 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_shmat(ffff80002a75e7f8,ffff80002a895d40,ffff80002a895c90) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002a895d40) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a895d40) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x467aea72be0, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_shmat(ffff80002a75e7f8,ffff80002a895d40,ffff80002a895c90) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002a895d40) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a895d40) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x467aea72be0, count: -3