uvm_fault(0xfffff680735b9b80, 0x0, 0, 1) -> e kernel: page fault trap, code=0 Stopped at sys_shmat+0x453: movq 0(%r15),%rdi TID PID UID PRFLAGS PFLAGS CPU COMMAND * 29635 75717 0 0 0x4000000 0K syz-executor sys_shmat(ffff800038bb3ca8,ffff80002a256990,ffff80002a2568e0) at sys_shmat+0x453 sys/kern/sysv_shm.c:292 syscall(ffff80002a256990) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a256990) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2778f0c30b0, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: uvm_fault(0xfffff680735b9b80, 0x0, 0, 1) -> e ddb{0}> show kasan No such command ddb{0}> trace sys_shmat(ffff800038bb3ca8,ffff80002a256990,ffff80002a2568e0) at sys_shmat+0x453 sys/kern/sysv_shm.c:292 syscall(ffff80002a256990) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80002a256990) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2778f0c30b0, count: -3 ddb{0}> show registers rdi 0xffff800038fba000 rsi 0x20d rbp 0xffff80002a2568b0 rbx 0xfffff6806ad64ee0 rdx 0xffff800038fba000 rcx 0x1 rax 0x1 r8 0x180 r9 0xfffff680097fd3a8 r10 0 r11 0xd40199112428231e r12 0xffff800038bb3ca8 r13 0xffff8000015f9010 r14 0x3 r15 0 rip 0xffffffff81c07e73 sys_shmat+0x453 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002a256820 ss 0x10 sys_shmat+0x453: movq 0(%r15),%rdi ddb{0}> show proc PROC (syz-executor) tid=29635 pid=75717 tcnt=5 stat=onproc flags process=0 proc=4000000 runpri=80, usrpri=81, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800038bb02c8,0xffff800038bb3258 process=0xffff800038bac020 user=0xffff80002a251000, vmspace=0xfffff680735b9b80 estcpu=31, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 75717 59852 1079 0 2 0 0 syz-executor 75717 364635 1079 0 3 0 0x4000080 sbwait syz-executor 75717 72542 1079 0 2 0 0x4000000 syz-executor *75717 29635 1079 0 7 0 0x4000000 syz-executor 75717 411212 1079 0 3 0 0x4000080 fsleep syz-executor 73206 297851 90304 0 2 0 0x1 syz-executor 73206 48930 90304 0 2 0 0x4000001 syz-executor 50263 97953 12080 0 2 0x10 0x1 syz-executor 50263 518908 12080 0 3 0x10 0x4000080 fsleep syz-executor 50263 409529 12080 0 2 0x10 0x4000001 syz-executor 54599 149057 81947 0 2 0 0 syz-executor 54599 298032 81947 0 3 0 0x4000080 fsleep syz-executor 54599 347315 81947 0 3 0 0x4000080 fsleep syz-executor 50250 106412 88557 0 2 0 0x1 syz-executor 50250 482901 88557 0 3 0 0x4000080 fsleep syz-executor 50250 204086 88557 0 2 0 0x4000001 syz-executor 47229 117044 4588 0 3 0x2 0x80 wait syz-executor 89342 42357 4588 0 2 0x2 0x1 syz-executor 86824 435784 4588 0 2 0x2 0x1 syz-executor 1079 483843 4588 0 2 0x2 0x1 syz-executor 88557 230402 4588 0 2 0x2 0x1 syz-executor 90304 298070 4588 0 2 0x2 0x1 syz-executor 12080 446836 4588 0 2 0x2 0x1 syz-executor 81947 292370 4588 0 2 0x2 0x1 syz-executor 4588 493186 1 0 3 0x2 0x80 kqread syz-executor 92498 245032 39694 74 3 0x1100012 0x80 bpf pflogd 39694 480300 1 0 3 0 0x80 sbwait pflogd 18156 451548 1 73 3 0x1100010 0x80 kqread syslogd 74483 210092 0 0 3 0x14000 0x200 bored smr 6992 404011 0 0 2 0x14000 0x200 zerothread 20879 40286 0 0 3 0x14000 0x200 aiodoned aiodoned 37947 18525 0 0 3 0x14000 0x200 syncer update 72165 150519 0 0 3 0x14000 0x200 cleaner cleaner 18447 102683 0 0 3 0x14000 0x200 reaper reaper 51082 427185 0 0 3 0x14000 0x200 pgdaemon pagedaemon 45950 186451 0 0 3 0x14000 0x200 bored viomb 57198 21698 0 0 3 0x14000 0x40000200 acpi0 acpi0 42040 292609 0 0 7 0x14000 0x40000200 idle1 79957 124381 0 0 3 0x14000 0x200 bored softnet1 66427 468965 0 0 3 0x14000 0x200 bored softnet0 78271 28639 0 0 3 0x14000 0x200 bored systqmp 12131 268651 0 0 3 0x14000 0x200 bored systq 60869 276392 0 0 3 0x14000 0x200 tmoslp softclockmp 82365 22575 0 0 3 0x14000 0x40000200 tmoslp softclock 16126 355409 0 0 3 0x14000 0x40000200 idle0 1 267430 0 0 4 0x50000002 0x8000080 init 0 0 -1 0 3 0x10010000 0x200 scheduler swapper ddb{0}> show all locks Process 75717 (syz-executor) thread 0xffff800038bb3ca8 (29635) exclusive kernel_lock &kernel_lock r = 0 (0xffffffff83af3f40) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 #2 malloc+0xe3 sys/kern/kern_malloc.c:175 #3 sys_shmat+0x9f sys/kern/sysv_shm.c:-1 #4 syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] #4 syscall+0xb17 sys/arch/amd64/amd64/trap.c:783 #5 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11061 12212K 12340K 166960K 12393 0 pcb 18 14K 16K 166960K 136 0 rtable 249 7K 7K 166960K 412 0 pf 35 17K 24K 166960K 77 0 ifaddr 45 8K 8K 166960K 50 0 ifgroup 55 2K 2K 166960K 62 0 sysctl 1 1K 9K 166960K 5 0 counters 70 37K 37K 166960K 76 0 ioctlops 0 0K 4K 166960K 1518 0 iov 0 0K 16K 166960K 45 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1295 81K 82K 166960K 1494 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 11 0K 1K 166960K 58 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 16 57K 93K 166960K 318 0 sigio 0 0K 0K 166960K 1 0 proc 26 49K 164K 166960K 579 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 33 0 in_multi 107 7K 7K 166960K 117 0 ether_multi 1 0K 0K 166960K 4 0 mrt 0 0K 0K 166960K 22 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 79 360K 360K 166960K 79 0 exec 0 0K 1K 166960K 438 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 162 87K 168K 166960K 4933 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 22 44K 103K 166960K 1504 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 1 0K 0K 166960K 5 0 NDP 12 0K 2K 166960K 30 0 temp 40 9114K 9122K 166960K 7643 0 kqueue 4 6K 24K 166960K 64 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 28 0 0 1 0 1 1 0 8 0 rtpcb 120 109 0 109 3 1 2 2 0 8 2 rtentry 176 119 0 4 6 0 6 6 0 8 0 unpcb 144 126 0 116 1 0 1 1 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 90 0 87 4 0 4 4 0 8 3 arp 136 18 0 0 1 0 1 1 0 8 0 inpcb 328 393 0 387 9 5 4 6 0 8 2 nd6 152 28 0 1 2 0 2 2 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1192 2 0 2 1 0 1 1 0 8 1 pppxif 1576 1 0 1 1 0 1 1 0 8 1 pfstscr 40 2 0 2 2 1 1 1 0 8 1 pffrag 232 3 0 0 1 0 1 1 0 482 0 pffrnode 88 3 0 0 1 0 1 1 0 8 0 pffrent 40 3 0 0 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfanchor 1288 11 0 1 2 1 1 1 0 8 0 pfstitem 24 43 0 2 1 0 1 1 0 8 0 pfstkey 128 45 0 4 2 0 2 2 0 8 0 pfstate 448 45 0 4 5 0 5 5 0 8 0 pfrule 1360 24 0 19 2 1 1 2 0 8 0 rttmr 136 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 517 0 20 32 0 32 32 0 8 0 art_table 40 518 0 20 6 0 6 6 0 8 0 art_node 32 119 0 15 1 0 1 1 0 8 0 sysvmsgpl 40 26 0 26 1 1 0 1 0 8 0 semupl 112 2 0 2 2 1 1 1 0 8 1 semapl 72 53 0 44 1 0 1 1 0 8 0 shmpl 112 1 0 0 1 0 1 1 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 1903 0 440 93 0 93 93 0 8 0 ffsino 296 1903 0 440 114 0 114 114 0 8 0 nchpl 144 2339 0 633 64 0 64 64 0 8 0 vnodes 216 2065 0 0 115 0 115 115 0 8 0 namei 1024 7647 0 7647 3 2 1 2 0 8 1 percpumem 16 54 0 3 1 0 1 1 0 8 0 kstatmem 264 31 0 4 2 0 2 2 0 8 0 scxspl 216 7970 0 7970 4 3 1 3 1 8 1 plimitpl 152 46 0 29 1 0 1 1 0 8 0 sigapl 424 644 0 598 7 1 6 7 0 8 0 knotepl 120 142 0 0 5 0 5 5 0 8 0 kqueuepl 224 77 0 74 1 0 1 1 0 8 0 pipepl 344 146 0 119 3 0 3 3 0 8 0 fdescpl 528 628 0 608 3 0 3 3 0 8 0 filepl 160 2863 0 2668 12 1 11 11 0 8 1 lockfpl 104 87 0 85 1 0 1 1 0 8 0 lockfspl 48 37 0 35 1 0 1 1 0 8 0 sessionpl 144 31 0 22 1 0 1 1 0 8 0 pgrppl 48 43 0 26 1 0 1 1 0 8 0 ucredpl 104 389 0 375 1 0 1 1 0 8 0 zombiepl 144 681 0 670 1 0 1 1 0 8 0 processpl 1232 644 0 598 5 0 5 5 0 8 0 procpl 664 990 0 933 8 2 6 7 0 8 0 sockpl 752 634 0 618 14 6 8 8 0 8 5 mcl64k 65536 7 0 0 1 0 1 1 0 8 0 mcl16k 16384 7 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k128 9344 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 118 0 0 15 0 15 15 0 8 0 mcl2k 2048 21 0 0 3 0 3 3 0 8 0 mextrefs 64 21 0 0 1 0 1 1 0 8 0 mtagpl 96 4 0 0 1 0 1 1 0 8 0 mbufpl 256 6570 0 0 411 0 411 411 0 8 0 bufpl 272 2870 0 107 185 0 185 185 0 8 0 anonpl 32 3777 0 0 31 0 31 31 0 247 0 amapchunkpl 152 14535 0 14133 37 5 32 32 0 158 13 amappl16 200 1961 0 1940 5 2 3 5 0 8 0 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 441 0 441 1 1 0 1 0 8 0 amappl13 176 126 0 123 1 0 1 1 0 8 0 amappl12 168 882 0 863 2 0 2 2 0 8 0 amappl11 160 7 0 7 1 1 0 1 0 8 0 amappl10 152 65 0 59 1 0 1 1 0 8 0 amappl9 144 282 0 282 1 1 0 1 0 8 0 amappl8 136 131 0 129 1 0 1 1 0 8 0 amappl7 128 154 0 148 1 0 1 1 0 8 0 amappl6 120 171 0 171 1 1 0 1 0 8 0 amappl5 112 99 0 95 1 0 1 1 0 8 0 amappl4 104 316 0 305 1 0 1 1 0 8 0 amappl3 96 2751 0 2664 4 1 3 4 0 8 0 amappl2 88 572 0 551 2 0 2 2 0 8 0 amappl1 80 11213 0 11039 15 5 10 15 0 8 1 amappl 88 4151 0 4016 4 0 4 4 0 92 0 uvmvnodes 80 104 0 0 3 0 3 3 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 2 0 1 1 0 1 1 0 8 0 dma512 512 1 0 1 1 1 0 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 628 0 608 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 628 0 608 1 0 1 1 0 8 0 vmmpekpl 168 7158 0 7119 2 0 2 2 0 8 0 vmmpepl 168 48750 0 47769 88 27 61 87 0 357 2 vmsppl 488 627 0 608 5 1 4 5 0 8 1 rwobjpl 80 16818 0 16279 23 2 21 23 0 8 0 pdppl 4096 1263 0 1216 101 50 51 85 0 8 4 pvpl 32 11340 0 0 92 0 92 92 0 265 0 pmappl 256 627 0 608 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 869 0 57 24 0 24 24 0 8 0 ddb{0}>