uvm_fault(0xffffef806c59c468, 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 *443184 49213 0 0 0x4000000 0 syz-executor sys_shmat(ffff80002a784018,ffff80003c8d1290,ffff80003c8d11e0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c8d1290) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8d1290) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x874ee879700, 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(0xffffef806c59c468, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace sys_shmat(ffff80002a784018,ffff80003c8d1290,ffff80003c8d11e0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c8d1290) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8d1290) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x874ee879700, count: -3 ddb> show registers rdi 0xffff80002cc9e000 rsi 0x115 rbp 0xffff80003c8d11c0 rbx 0 rdx 0x1 rcx 0x1 rax 0xffffef8065434f00 r8 0x180 r9 0xffffef8007ffd478 r10 0x864511e8e88f44b7 r11 0xc30b8d25b97e72a4 r12 0xffff80002a784018 r13 0xffff8000015f2000 r14 0 r15 0x3 rip 0xffffffff82d522f7 sys_shmat+0x3d7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c8d1130 ss 0 sys_shmat+0x3d7: movq 0(%r14),%rdi ddb> show proc PROC (syz-executor) tid=443184 pid=49213 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=77, usrpri=78, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a785770,0xffff80002a727a08 process=0xffff80002a77ed60 user=0xffff80003c8cc000, vmspace=0xffffef806c59c468 estcpu=28, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 44226 263797 46056 0 2 0x100002 0 sh 49213 287278 51061 0 2 0 0 syz-executor *49213 443184 51061 0 7 0 0x4000000 syz-executor 49213 60063 51061 0 2 0 0x4000000 syz-executor 49213 473235 51061 0 2 0 0x4000000 syz-executor 17803 128251 84434 0 2 0 0 syz-executor 17803 162564 84434 0 2 0 0x4000000 syz-executor 17803 518013 84434 0 3 0 0x4000080 fsleep syz-executor 17803 106513 84434 0 2 0 0x4000000 syz-executor 14795 312558 31938 0 2 0 0 syz-executor 14795 249145 31938 0 3 0 0x4000080 fsleep syz-executor 14795 224631 31938 0 3 0 0x4000080 fsleep syz-executor 14795 423445 31938 0 2 0 0x4000000 syz-executor 98062 459264 2778 0 2 0 0 syz-executor 98062 416547 2778 0 3 0 0x4000080 fsleep syz-executor 98062 93756 2778 0 3 0 0x4000080 fsleep syz-executor 98062 410138 2778 0 3 0 0x4000080 fsleep syz-executor 54592 190083 15652 0 2 0 0 syz-executor 54592 165154 15652 0 2 0 0x4000000 syz-executor 54592 53207 15652 0 3 0 0x4000080 fsleep syz-executor 54592 99263 15652 0 2 0 0x4000000 syz-executor 54592 301678 15652 0 2 0 0x4000000 syz-executor 46056 58127 88065 0 3 0x2 0x80 wait syz-executor 15652 419109 88065 0 3 0x2 0x80 nanoslp syz-executor 6502 43152 88065 0 3 0x2 0x80 piperd syz-executor 84434 324047 88065 0 3 0x2 0x80 nanoslp syz-executor 2778 334233 88065 0 3 0x2 0x80 nanoslp syz-executor 51061 246551 88065 0 3 0x2 0x80 nanoslp syz-executor 31938 46345 88065 0 3 0x2 0x80 nanoslp syz-executor 88065 203621 58825 0 2 0x2 0 syz-executor 58825 377924 64744 0 3 0x100002 0x88 sigsusp ksh 64744 91986 38529 0 3 0x10 0x88 kqread sshd-session 38529 6583 60390 0 3 0x12 0x80 kqread sshd-session 25412 355759 1 0 3 0x100003 0x80 ttyin getty 60390 380224 1 0 3 0 0x88 kqread sshd 82435 301276 68537 73 3 0x1100010 0x80 kqread syslogd 68537 464397 1 0 3 0x100002 0x80 sbwait syslogd-parent 85195 389930 1 0 3 0x100000 0x80 kqread resolvd 60107 226915 16969 77 3 0x100012 0x80 kqread dhcpleased 82214 141361 16969 77 3 0x100012 0x80 kqread dhcpleased 16969 271614 1 0 3 0 0x80 kqread dhcpleased 62336 192250 0 0 3 0x14000 0x200 bored smr 13951 28136 0 0 2 0x14000 0x200 zerothread 67489 218131 0 0 3 0x14000 0x200 aiodoned aiodoned 20615 477897 0 0 3 0x14000 0x200 syncer update 92883 70869 0 0 3 0x14000 0x200 cleaner cleaner 19839 409982 0 0 3 0x14000 0x200 reaper reaper 37494 160103 0 0 3 0x14000 0x200 pgdaemon pagedaemon 26383 433762 0 0 3 0x14000 0x200 bored viomb 32679 317304 0 0 3 0x14000 0x40000200 acpi0 acpi0 77680 285618 0 0 3 0x14000 0x200 bored softnet0 70422 440417 0 0 3 0x14000 0x200 bored systqmp 25156 186831 0 0 3 0x14000 0x200 bored systq 51899 358284 0 0 3 0x14000 0x40000200 tmoslp softclock 1808 464999 0 0 3 0x14000 0x40000200 idle0 1 461292 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 11028 12100K 12216K 166960K 12249 0 pcb 18 12K 12K 166960K 32 0 rtable 197 6K 7K 166960K 723 0 pf 28 12K 18K 166960K 65 0 ifaddr 35 6K 7K 166960K 97 0 ifgroup 46 2K 2K 166960K 106 0 sysctl 3 1K 9K 166960K 7 0 counters 32 17K 18K 166960K 49 0 ioctlops 0 0K 4K 166960K 56 0 iov 0 0K 12K 166960K 5 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1361 86K 86K 166960K 1616 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 9 0K 0K 166960K 9 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 15 53K 93K 166960K 409 0 proc 61 59K 116K 166960K 842 0 subproc 63 3K 4K 166960K 189 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 7 0 in_multi 77 5K 6K 166960K 231 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 11 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 67 307K 307K 166960K 67 0 exec 0 0K 1K 166960K 538 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 209 151K 167K 166960K 4814 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 36 72K 94K 166960K 1821 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 1 0 NDP 10 0K 1K 166960K 66 0 temp 32 9114K 9180K 166960K 6244 0 kqueue 13 20K 26K 166960K 43 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 64 1 0 1 1 0 8 0 rtentry 136 243 0 155 4 0 4 4 0 8 0 unpcb 144 76 0 61 1 0 1 1 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 17 0 10 1 0 1 1 0 8 0 arp 96 42 0 28 1 0 1 1 0 8 0 inpcb 328 144 0 132 3 1 2 2 0 8 1 nd6 112 60 0 42 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 kcovpl 48 21 0 14 1 0 1 1 0 8 0 ppxss 1072 3 0 3 1 0 1 1 0 8 1 pfrktable 1344 1 0 1 1 0 1 1 0 8 1 pftag 88 1 0 1 1 0 1 1 0 8 1 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 992 0 625 29 0 29 29 0 8 1 art_table 40 993 0 625 5 0 5 5 0 8 0 art_node 32 243 0 163 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 2 2 1 1 1 0 8 1 semapl 72 7 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 1754 0 262 94 0 94 94 0 8 0 ffsino 256 1754 0 262 94 0 94 94 0 8 0 nchpl 144 2061 0 302 66 0 66 66 0 8 0 rtmask 32 1 0 1 1 0 1 1 0 8 1 vnodes 216 2053 0 0 115 0 115 115 0 8 0 namei 1024 8457 0 8457 6 2 4 4 0 8 4 kstatmem 264 53 0 32 2 0 2 2 0 8 0 scxspl 216 7174 0 7174 10 2 8 8 1 8 8 plimitpl 152 62 0 47 1 0 1 1 0 8 0 sigapl 424 670 0 630 7 1 6 6 0 8 1 knotepl 120 20930 0 20883 10 0 10 10 0 8 8 kqueuepl 184 45 0 36 1 0 1 1 0 8 0 pipepl 304 164 0 136 3 0 3 3 0 8 0 fdescpl 448 657 0 630 5 1 4 5 0 8 0 filepl 120 2445 0 2248 9 0 9 9 0 8 2 lockfpl 104 30 0 27 1 0 1 1 0 8 0 lockfspl 48 15 0 12 1 0 1 1 0 8 0 sessionpl 144 38 0 30 1 0 1 1 0 8 0 pgrppl 48 59 0 44 1 0 1 1 0 8 0 ucredpl 104 196 0 185 1 0 1 1 0 8 0 zombiepl 144 717 0 717 1 0 1 1 0 8 1 processpl 1160 670 0 630 4 0 4 4 0 8 1 procpl 664 880 0 824 6 0 6 6 0 8 1 sockpl 552 291 0 260 3 0 3 3 0 8 0 mcl64k 65536 7 0 7 1 0 1 1 0 8 1 mcl16k 16384 3 0 3 1 0 1 1 0 8 1 mcl12k 12288 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 16 0 16 2 1 1 1 0 8 1 mcl4k 4096 2712 0 2657 14 6 8 14 0 8 0 mcl2k 2048 404 0 404 3 1 2 2 0 8 2 mextrefs 64 123 0 123 2 1 1 1 0 8 1 mtagpl 96 5 0 4 2 1 1 1 0 8 0 mbufpl 256 6196 0 6044 12 0 12 12 0 8 1 bufpl 272 2504 0 87 162 0 162 162 0 8 0 anonpl 24 97490 0 94536 24 2 22 22 0 187 2 amapchunkpl 152 13303 0 12877 21 0 21 21 0 158 4 amappl16 200 1220 0 1203 5 3 2 4 0 8 1 amappl15 192 2 0 2 1 1 0 1 0 8 0 amappl14 184 541 0 539 1 0 1 1 0 8 0 amappl13 176 132 0 122 1 0 1 1 0 8 0 amappl12 168 938 0 913 2 0 2 2 0 8 0 amappl11 160 2 0 2 1 1 0 1 0 8 0 amappl10 152 62 0 54 1 0 1 1 0 8 0 amappl9 144 327 0 327 1 1 0 1 0 8 0 amappl8 136 137 0 136 1 0 1 1 0 8 0 amappl7 128 163 0 152 1 0 1 1 0 8 0 amappl6 120 209 0 207 1 0 1 1 0 8 0 amappl5 112 180 0 174 1 0 1 1 0 8 0 amappl4 104 295 0 282 1 0 1 1 0 8 0 amappl3 96 2628 0 2525 4 0 4 4 0 8 1 amappl2 88 485 0 435 2 0 2 2 0 8 0 amappl1 80 11790 0 11253 14 1 13 13 0 8 1 amappl 88 3925 0 3779 5 0 5 5 0 92 1 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 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 657 0 630 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 657 0 630 1 0 1 1 0 8 0 vmmpekpl 168 6870 0 6830 3 0 3 3 0 8 0 vmmpepl 168 50837 0 49184 83 2 81 81 0 357 5 vmsppl 368 656 0 630 4 1 3 4 0 8 0 rwobjpl 40 16922 0 16009 12 1 11 11 0 8 1 pdppl 4096 1320 0 1260 114 46 68 80 0 8 8 pvpl 32 276401 0 268506 78 2 76 76 0 265 5 pmappl 216 656 0 630 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 551 0 61 15 0 15 15 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_shmat(ffff80002a784018,ffff80003c8d1290,ffff80003c8d11e0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c8d1290) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8d1290) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x874ee879700, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_shmat(ffff80002a784018,ffff80003c8d1290,ffff80003c8d11e0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c8d1290) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8d1290) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x874ee879700, count: -3