uvm_fault(0xfffff3006d0d8b90, 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 *215851 26305 0 0 0x4000000 0 syz-executor sys_shmat(ffff80002a74e028,ffff80003acd1770,ffff80003acd16c0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003acd1770) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003acd1770) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc2a0c4da850, 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(0xfffff3006d0d8b90, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace sys_shmat(ffff80002a74e028,ffff80003acd1770,ffff80003acd16c0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003acd1770) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003acd1770) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc2a0c4da850, count: -3 ddb> show registers rdi 0xffff800038ccc000 rsi 0x115 rbp 0xffff80003acd16a0 rbx 0 rdx 0x1 rcx 0x1 rax 0xfffff3006dc86e88 r8 0x180 r9 0xfffff30007ffd958 r10 0x8e6ad54687415c0e r11 0x300e0f16a013dde0 r12 0xffff80002a74e028 r13 0xffff8000015fa000 r14 0 r15 0x3 rip 0xffffffff826ff4f7 sys_shmat+0x3d7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003acd1610 ss 0x10 sys_shmat+0x3d7: movq 0(%r14),%rdi ddb> show proc PROC (syz-executor) tid=215851 pid=26305 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=72, usrpri=72, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a74f4e8,0xffff80002a784558 process=0xffff8000388ca8e0 user=0xffff80003accc000, vmspace=0xfffff3006d0d8b90 estcpu=22, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 36726 85156 63634 0 2 0 0 syz-executor 36726 195765 63634 0 3 0 0x4000080 fsleep syz-executor 62227 271851 83999 -1 2 0x10 0 syz-executor 62227 355786 83999 -1 3 0x10 0x4000080 fsleep syz-executor 95339 12588 83641 0 2 0 0 syz-executor 95339 399865 83641 0 3 0 0x4000080 fsleep syz-executor 95339 186750 83641 0 3 0 0x4000080 fsleep syz-executor 54496 257465 21508 0 2 0 0 syz-executor 54496 514398 21508 0 3 0 0x4000080 fsleep syz-executor 54496 226610 21508 0 2 0 0x4000000 syz-executor 88498 116917 26268 0 2 0 0 syz-executor 88498 356894 26268 0 2 0 0x4000000 syz-executor 88498 313624 26268 0 3 0 0x4000080 fsleep syz-executor 26305 115472 64682 0 2 0 0 syz-executor 26305 69634 64682 0 2 0 0x4000000 syz-executor *26305 215851 64682 0 7 0 0x4000000 syz-executor 26305 35600 64682 0 3 0 0x4000080 fsleep syz-executor 64682 284932 54267 0 3 0x2 0x80 nanoslp syz-executor 25825 76183 54267 0 2 0x2 0 syz-executor 83641 63090 54267 0 3 0x2 0x80 nanoslp syz-executor 26268 204639 54267 0 3 0x2 0x80 nanoslp syz-executor 12389 348551 54267 0 2 0x2 0 syz-executor 83999 376011 54267 0 3 0x2 0x80 nanoslp syz-executor 21508 203613 54267 0 3 0x2 0x80 nanoslp syz-executor 63634 283406 54267 0 3 0x2 0x80 nanoslp syz-executor 54267 408244 54204 0 3 0x2 0x80 kqread syz-executor 54204 219580 59394 0 3 0x100002 0x88 sigsusp ksh 59394 96283 10490 0 3 0x10 0x88 kqread sshd-session 10490 418831 9645 0 3 0x12 0x80 kqread sshd-session 11018 503361 1 0 3 0x100003 0x80 ttyin getty 9645 438270 1 0 3 0 0x88 kqread sshd 20614 269474 61298 73 3 0x1100010 0x80 kqread syslogd 61298 13408 1 0 3 0x100002 0x80 sbwait syslogd-parent 54649 280805 1 0 3 0x100000 0x80 kqread resolvd 20221 17452 87627 77 3 0x100012 0x80 kqread dhcpleased 4237 510088 87627 77 3 0x100012 0x80 kqread dhcpleased 87627 211542 1 0 3 0 0x80 kqread dhcpleased 61812 498049 0 0 3 0x14000 0x200 bored smr 67497 377698 0 0 2 0x14000 0x200 zerothread 47372 111958 0 0 3 0x14000 0x200 aiodoned aiodoned 44824 519968 0 0 3 0x14000 0x200 syncer update 80015 43979 0 0 3 0x14000 0x200 cleaner cleaner 11714 149272 0 0 3 0x14000 0x200 reaper reaper 68009 362157 0 0 3 0x14000 0x200 pgdaemon pagedaemon 48630 133915 0 0 3 0x14000 0x200 bored viomb 37706 234897 0 0 3 0x14000 0x40000200 acpi0 acpi0 69598 140282 0 0 3 0x14000 0x200 bored softnet0 47829 269339 0 0 3 0x14000 0x200 bored systqmp 14326 467203 0 0 3 0x14000 0x200 bored systq 69631 157856 0 0 3 0x14000 0x40000200 tmoslp softclock 61234 236262 0 0 3 0x14000 0x40000200 idle0 1 471248 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 12309K 166960K 12142 0 pcb 17 12K 12K 166960K 28 0 rtable 215 5K 6K 166960K 357 0 pf 29 12K 18K 166960K 38 0 ifaddr 38 6K 7K 166960K 45 0 ifgroup 46 2K 2K 166960K 55 0 sysctl 1 1K 9K 166960K 5 0 counters 32 17K 17K 166960K 34 0 ioctlops 0 0K 4K 166960K 35 0 iov 0 0K 8K 166960K 1 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1293 81K 81K 166960K 1384 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 11 0K 0K 166960K 11 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 17 61K 81K 166960K 195 0 proc 59 59K 83K 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 0 0K 0K 166960K 3 0 in_multi 88 5K 6K 166960K 101 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 3 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 0 0K 1K 166960K 375 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 211 142K 149K 166960K 3473 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 38 76K 90K 166960K 1299 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 5 0 NDP 10 0K 2K 166960K 28 0 temp 34 9110K 9182K 166960K 4021 0 kqueue 13 20K 24K 166960K 31 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 48 0 45 1 0 1 1 0 8 0 rtentry 136 111 0 12 4 0 4 4 0 8 0 unpcb 144 75 0 60 2 0 2 2 0 8 1 syncache 336 5 0 5 1 1 0 1 0 8 0 tcpqe 32 2 0 2 1 1 0 1 0 8 0 tcpcb 736 18 0 12 1 0 1 1 0 8 0 arp 96 18 0 2 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 99 0 87 2 0 2 2 0 8 0 nd6 112 24 0 3 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfqueue 320 2 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 452 0 44 29 0 29 29 0 8 2 art_table 40 453 0 44 5 0 5 5 0 8 0 art_node 32 111 0 21 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 72 9 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 1658 0 194 92 0 92 92 0 8 0 ffsino 256 1658 0 194 92 0 92 92 0 8 0 nchpl 144 1930 0 242 63 0 63 63 0 8 0 vnodes 216 1754 0 0 98 0 98 98 0 8 0 namei 1024 6314 0 6312 4 3 1 3 0 8 0 kstatmem 264 25 0 4 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 6485 0 6485 3 2 1 3 1 8 1 plimitpl 152 32 0 14 1 0 1 1 0 8 0 sigapl 424 485 0 443 6 1 5 6 0 8 0 knotepl 120 4606 0 4559 2 0 2 2 0 8 0 kqueuepl 184 34 0 24 1 0 1 1 0 8 0 pipepl 304 127 0 100 3 0 3 3 0 8 0 fdescpl 448 472 0 443 4 0 4 4 0 8 0 filepl 120 1664 0 1455 8 0 8 8 0 8 0 lockfpl 104 18 0 16 1 0 1 1 0 8 0 lockfspl 48 10 0 8 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 132 0 120 1 0 1 1 0 8 0 zombiepl 144 465 0 465 2 1 1 1 0 8 1 processpl 1160 485 0 443 4 0 4 4 0 8 0 procpl 664 578 0 525 6 0 6 6 0 8 1 sockpl 552 224 0 194 4 0 4 4 0 8 0 mcl64k 65536 16 0 15 1 0 1 1 0 8 0 mcl16k 16384 13 0 13 2 1 1 1 0 8 1 mcl12k 12288 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 21 0 21 2 1 1 1 0 8 1 mcl4k 4096 2635 0 2582 14 6 8 13 0 8 1 mcl2k 2048 158 0 157 5 4 1 4 0 8 0 mextrefs 64 115 0 114 2 1 1 1 0 8 0 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 5010 0 4864 15 1 14 15 0 8 2 bufpl 272 2366 0 88 152 0 152 152 0 8 0 anonpl 24 83313 0 80320 21 1 20 20 0 187 0 amapchunkpl 152 9666 0 9224 26 0 26 26 0 158 7 amappl16 200 1157 0 1136 4 2 2 4 0 8 0 amappl15 192 15 0 15 1 1 0 1 0 8 0 amappl14 184 402 0 401 1 0 1 1 0 8 0 amappl13 176 124 0 114 1 0 1 1 0 8 0 amappl12 168 713 0 686 2 0 2 2 0 8 0 amappl11 160 4 0 4 1 1 0 1 0 8 0 amappl10 152 60 0 52 1 0 1 1 0 8 0 amappl9 144 278 0 278 1 1 0 1 0 8 0 amappl8 136 91 0 90 1 0 1 1 0 8 0 amappl7 128 137 0 126 1 0 1 1 0 8 0 amappl6 120 112 0 111 1 0 1 1 0 8 0 amappl5 112 129 0 122 1 0 1 1 0 8 0 amappl4 104 285 0 272 1 0 1 1 0 8 0 amappl3 96 1839 0 1732 3 0 3 3 0 8 0 amappl2 88 436 0 390 2 0 2 2 0 8 0 amappl1 80 10351 0 9798 13 0 13 13 0 8 1 amappl 88 2795 0 2644 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 254 0 254 2 1 1 1 0 8 1 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 472 0 443 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 472 0 443 1 0 1 1 0 8 0 vmmpekpl 168 5456 0 5423 2 0 2 2 0 8 0 vmmpepl 168 38998 0 37284 81 1 80 80 0 357 0 vmsppl 368 471 0 443 4 1 3 4 0 8 0 rwobjpl 40 14010 0 13091 11 1 10 11 0 8 0 pdppl 4096 950 0 886 86 20 66 74 0 8 2 pvpl 32 217335 0 209226 78 1 77 77 0 265 5 pmappl 216 471 0 443 2 0 2 2 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 512 0 40 14 0 14 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_shmat(ffff80002a74e028,ffff80003acd1770,ffff80003acd16c0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003acd1770) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003acd1770) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc2a0c4da850, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_shmat(ffff80002a74e028,ffff80003acd1770,ffff80003acd16c0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003acd1770) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003acd1770) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc2a0c4da850, count: -3