uvm_fault(0xfffff7006d24a018, 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 *201031 27181 0 0 0x4000000 0 syz-executor sys_shmat(ffff80003c8ec800,ffff80003c90dc40,ffff80003c90db90) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c90dc40) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c90dc40) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x485a8364b50, 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(0xfffff7006d24a018, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace sys_shmat(ffff80003c8ec800,ffff80003c90dc40,ffff80003c90db90) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c90dc40) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c90dc40) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x485a8364b50, count: -3 ddb> show registers rdi 0xffff800033cc2000 rsi 0x112 rbp 0xffff80003c90db70 rbx 0 rdx 0 rcx 0 rax 0xfffff7006b415f00 r8 0x100 r9 0xfffff70007ffd750 r10 0x7b5484961ceccf27 r11 0x3423acedf7d4b62c r12 0xffff80003c8ec800 r13 0xffff800001608000 r14 0 r15 0x1 rip 0xffffffff826bfee7 sys_shmat+0x3d7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c90dae0 ss 0x10 sys_shmat+0x3d7: movq 0(%r14),%rdi ddb> show proc PROC (syz-executor) tid=201031 pid=27181 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=71, usrpri=71, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80003c8ed790,0xffff80003c8ecd40 process=0xffff80003c964930 user=0xffff80003c908000, vmspace=0xfffff7006d24a018 estcpu=21, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 2661 511911 74347 0 2 0 0 syz-executor 2661 62011 74347 0 3 0 0x4000080 fsleep syz-executor 21753 305714 17743 0 2 0 0 syz-executor 21753 253107 17743 0 3 0 0x4000080 fsleep syz-executor 21632 148187 98683 0 2 0 0 syz-executor 21632 498032 98683 0 3 0 0x4000080 fsleep syz-executor 1172 380777 7778 0 2 0 0 syz-executor 1172 498650 7778 0 2 0 0x4000000 syz-executor 27181 476976 15617 0 2 0 0 syz-executor 27181 8036 15617 0 2 0 0x4000000 syz-executor *27181 201031 15617 0 7 0 0x4000000 syz-executor 30937 175099 21851 0 2 0 0 syz-executor 30937 464771 21851 0 3 0 0x4000080 fsleep syz-executor 30937 278418 21851 0 3 0 0x4000080 fsleep syz-executor 16546 467968 0 0 3 0x14000 0x280 nfsidl nfsio 31174 420573 0 0 3 0x14000 0x280 nfsidl nfsio 29279 260999 0 0 3 0x14000 0x280 nfsidl nfsio 69 169905 0 0 3 0x14000 0x280 nfsidl nfsio 31300 142005 0 0 3 0x14000 0x280 nfsidl nfsio 37638 171822 0 0 3 0x14000 0x280 nfsidl nfsio 49427 458266 0 0 3 0x14000 0x280 nfsidl nfsio 15497 345559 0 0 3 0x14000 0x280 nfsidl nfsio 39171 243625 0 0 3 0x14000 0x280 nfsidl nfsio 37311 333133 0 0 3 0x14000 0x280 nfsidl nfsio 42602 461404 0 0 3 0x14000 0x280 nfsidl nfsio 29959 190880 0 0 3 0x14000 0x280 nfsidl nfsio 70881 368525 0 0 3 0x14000 0x280 nfsidl nfsio 44041 310818 0 0 3 0x14000 0x280 nfsidl nfsio 33252 418728 0 0 3 0x14000 0x280 nfsidl nfsio 39698 197509 0 0 3 0x14000 0x280 nfsidl nfsio 9947 81598 0 0 3 0x14000 0x280 nfsidl nfsio 32687 450486 0 0 3 0x14000 0x280 nfsidl nfsio 91567 81069 0 0 3 0x14000 0x280 nfsidl nfsio 76314 452772 0 0 3 0x14000 0x280 nfsidl nfsio 45589 502761 55805 0 2 0x10 0 syz-executor 45589 425412 55805 0 3 0x10 0x4000088 kqread syz-executor 45589 34371 55805 0 3 0x10 0x4000000 vmmaplk syz-executor 45589 358450 55805 0 2 0x10 0x4000000 syz-executor 81583 161269 96445 0 2 0 0 syz-executor 81583 55121 96445 0 2 0 0x4000000 syz-executor 81583 66373 96445 0 3 0 0x4000080 msgwait syz-executor 81583 77774 96445 0 2 0 0x4000000 syz-executor 96445 477708 43760 0 3 0x2 0x80 nanoslp syz-executor 98683 252320 43760 0 3 0x2 0x80 nanoslp syz-executor 17743 456314 43760 0 3 0x2 0x80 nanoslp syz-executor 15617 422900 43760 0 3 0x2 0x80 nanoslp syz-executor 21851 198513 43760 0 3 0x2 0x80 nanoslp syz-executor 74347 113745 43760 0 3 0x2 0x80 nanoslp syz-executor 7778 316304 43760 0 3 0x2 0x80 nanoslp syz-executor 55805 189187 43760 0 3 0x2 0x80 nanoslp syz-executor 43760 407768 81991 0 3 0x2 0x80 kqread syz-executor 81991 211009 47806 0 3 0x100002 0x88 sigsusp ksh 47806 77965 15615 0 3 0x10 0x88 kqread sshd-session 15615 86451 47017 0 3 0x12 0x80 kqread sshd-session 71096 405021 1 0 3 0x100003 0x80 ttyin getty 47017 422814 1 0 3 0 0x88 kqread sshd 99049 107411 3477 73 3 0x1100010 0x80 kqread syslogd 3477 235776 1 0 3 0x100002 0x80 sbwait syslogd-parent 56375 467407 1 0 3 0x100000 0x80 kqread resolvd 73735 451806 57361 77 3 0x100012 0x80 kqread dhcpleased 12066 101251 57361 77 3 0x100012 0x80 kqread dhcpleased 57361 66099 1 0 3 0 0x80 kqread dhcpleased 11563 481706 0 0 3 0x14000 0x200 bored smr 21544 77417 0 0 2 0x14000 0x200 zerothread 55036 20958 0 0 3 0x14000 0x200 aiodoned aiodoned 75809 40110 0 0 3 0x14000 0x200 syncer update 20822 87655 0 0 3 0x14000 0x200 cleaner cleaner 15607 391979 0 0 3 0x14000 0x200 reaper reaper 19970 294334 0 0 3 0x14000 0x200 pgdaemon pagedaemon 74032 391389 0 0 3 0x14000 0x200 bored viomb 64372 74599 0 0 3 0x14000 0x40000200 acpi0 acpi0 80517 36086 0 0 3 0x14000 0x200 bored softnet0 59452 466229 0 0 3 0x14000 0x200 bored systqmp 55430 247180 0 0 3 0x14000 0x200 bored systq 98959 326751 0 0 3 0x14000 0x40000200 tmoslp softclock 11688 266248 0 0 3 0x14000 0x40000200 idle0 1 480630 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 11030 12112K 12118K 166960K 12116 0 pcb 17 12K 12K 166960K 17 0 rtable 227 6K 6K 166960K 343 0 pf 32 13K 15K 166960K 36 0 ifaddr 43 7K 7K 166960K 45 0 ifgroup 52 2K 2K 166960K 52 0 sysctl 1 1K 9K 166960K 5 0 counters 34 17K 17K 166960K 34 0 ioctlops 0 0K 4K 166960K 34 0 iov 0 0K 0K 166960K 1 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1291 81K 81K 166960K 1364 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 2 0K 0K 166960K 2 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12472 0 file desc 18 65K 89K 166960K 154 0 proc 59 59K 100K 166960K 497 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 99 6K 6K 166960K 99 0 ether_multi 1 0K 0K 166960K 1 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 37 175K 175K 166960K 37 0 exec 0 0K 1K 166960K 372 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 14 124K 124K 166960K 15 0 UVM amap 240 152K 157K 166960K 3022 0 UVM aobj 4 2K 2K 166960K 4 0 pinsyscall 39 78K 92K 166960K 1248 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 0K 166960K 2 0 NDP 12 0K 2K 166960K 28 0 temp 35 9118K 9166K 166960K 3250 0 kqueue 16 24K 24K 166960K 29 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 34 1 0 1 1 0 8 0 rtentry 136 111 0 1 4 0 4 4 0 8 0 unpcb 144 52 0 31 1 0 1 1 0 8 0 syncache 336 5 0 5 2 1 1 1 0 8 1 tcpcb 736 80 0 75 7 0 7 7 0 8 6 arp 96 18 0 0 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 1 0 0 1 0 1 1 0 8 0 inpcb 328 137 0 128 8 1 7 7 0 8 6 ip6q 80 1 0 0 1 0 1 1 0 8 0 ip6af 40 1 0 0 1 0 1 1 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 ppxss 1072 1 0 0 1 0 1 1 0 8 0 pfrule 1360 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 453 0 0 29 0 29 29 0 8 0 art_table 40 454 0 0 5 0 5 5 0 8 0 art_node 32 111 0 11 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 1590 0 127 92 0 92 92 0 8 0 ffsino 256 1590 0 127 92 0 92 92 0 8 0 nchpl 144 1807 0 114 63 0 63 63 0 8 0 vnodes 216 1675 0 0 94 0 94 94 0 8 0 namei 1024 6104 0 6104 10 3 7 7 0 8 7 kstatmem 264 25 0 0 2 0 2 2 0 8 0 scxspl 216 6158 0 6158 4 3 1 4 1 8 1 plimitpl 152 32 0 15 1 0 1 1 0 8 0 sigapl 424 461 0 398 9 1 8 8 0 8 0 knotepl 120 3121 0 3068 2 0 2 2 0 8 0 kqueuepl 184 26 0 13 1 0 1 1 0 8 0 pipepl 304 124 0 97 3 0 3 3 0 8 0 fdescpl 448 428 0 398 5 1 4 5 0 8 0 filepl 120 1602 0 1386 9 0 9 9 0 8 1 lockfpl 104 8 0 6 1 0 1 1 0 8 0 lockfspl 48 5 0 3 1 0 1 1 0 8 0 sessionpl 144 23 0 15 1 0 1 1 0 8 0 pgrppl 48 31 0 15 1 0 1 1 0 8 0 ucredpl 104 90 0 78 1 0 1 1 0 8 0 zombiepl 144 401 0 401 2 1 1 1 0 8 1 processpl 1160 461 0 398 5 0 5 5 0 8 0 procpl 664 494 0 417 8 1 7 7 0 8 0 sockpl 552 226 0 193 8 0 8 8 0 8 4 mcl64k 65536 2 0 1 1 0 1 1 0 8 0 mcl8k 8192 13 0 13 2 1 1 1 0 8 1 mcl4k 4096 2557 0 2505 13 4 9 13 0 8 1 mcl2k 2048 129 0 129 2 1 1 1 0 8 1 mextrefs 64 40 0 40 2 1 1 1 0 8 1 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 4412 0 4255 12 1 11 11 0 8 0 bufpl 272 2292 0 89 147 0 147 147 0 8 0 anonpl 24 86043 0 80932 34 2 32 32 0 187 0 amapchunkpl 152 8282 0 7641 26 1 25 25 0 158 0 amappl16 200 1321 0 1300 6 4 2 5 0 8 0 amappl15 192 36 0 36 1 1 0 1 0 8 0 amappl14 184 400 0 399 1 0 1 1 0 8 0 amappl13 176 112 0 102 1 0 1 1 0 8 0 amappl12 168 659 0 629 2 0 2 2 0 8 0 amappl11 160 6 0 6 1 1 0 1 0 8 0 amappl10 152 78 0 70 1 0 1 1 0 8 0 amappl9 144 278 0 278 1 1 0 1 0 8 0 amappl8 136 90 0 89 1 0 1 1 0 8 0 amappl7 128 160 0 150 1 0 1 1 0 8 0 amappl6 120 117 0 115 1 0 1 1 0 8 0 amappl5 112 140 0 134 1 0 1 1 0 8 0 amappl4 104 263 0 248 1 0 1 1 0 8 0 amappl3 96 1534 0 1410 4 0 4 4 0 8 0 amappl2 88 435 0 386 2 0 2 2 0 8 0 amappl1 80 10011 0 9473 12 0 12 12 0 8 0 amappl 88 2360 0 2184 4 0 4 4 0 92 0 uvmvnodes 80 99 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 428 0 398 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 428 0 398 1 0 1 1 0 8 0 vmmpekpl 168 5197 0 5168 2 0 2 2 0 8 0 vmmpepl 168 36693 0 34876 81 2 79 79 0 357 0 vmsppl 368 427 0 398 4 1 3 4 0 8 0 rwobjpl 40 13706 0 12766 10 0 10 10 0 8 0 pdppl 4096 862 0 796 90 22 68 78 0 8 2 pvpl 32 207234 0 196142 98 3 95 95 0 265 0 pmappl 216 427 0 398 2 0 2 2 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 516 0 37 14 0 14 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_shmat(ffff80003c8ec800,ffff80003c90dc40,ffff80003c90db90) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c90dc40) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c90dc40) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x485a8364b50, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_shmat(ffff80003c8ec800,ffff80003c90dc40,ffff80003c90db90) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c90dc40) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c90dc40) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x485a8364b50, count: -3