uvm_fault(0xfffff3000df27018, 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 *445291 26855 0 0 0x4000000 0 syz-executor sys_shmat(ffff80002a75dca0,ffff80003c90f6b0,ffff80003c90f600) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c90f6b0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c90f6b0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5561bfaab0, 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(0xfffff3000df27018, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace sys_shmat(ffff80002a75dca0,ffff80003c90f6b0,ffff80003c90f600) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c90f6b0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c90f6b0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5561bfaab0, count: -3 ddb> show registers rdi 0 rsi 0 rbp 0xffff80003c90f5e0 rbx 0 rdx 0x1 rcx 0x1 rax 0xfffff30067226f00 r8 0x180 r9 0xfffff30007ffd5b0 r10 0 r11 0x1751be46b57694bd r12 0xffff80002a75dca0 r13 0xffff8000015fb000 r14 0 r15 0x3 rip 0xffffffff82319327 sys_shmat+0x3d7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c90f550 ss 0x10 sys_shmat+0x3d7: movq 0(%r14),%rdi ddb> show proc PROC (syz-executor) tid=445291 pid=26855 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=63, usrpri=63, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7382c0,0xffff80002a75cfb8 process=0xffff800030cac928 user=0xffff80003c90a000, vmspace=0xfffff3000df27018 estcpu=13, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 55500 309984 9058 0 2 0 0 syz-executor 84862 246797 2567 0 2 0 0 syz-executor 84862 279909 2567 0 3 0 0x4000080 fsleep syz-executor 84862 94877 2567 0 3 0 0x4000080 fsleep syz-executor 26855 447186 85441 0 2 0 0 syz-executor 26855 47304 85441 0 2 0 0x4000000 syz-executor *26855 445291 85441 0 7 0 0x4000000 syz-executor 85946 498892 4319 0 2 0 0 syz-executor 85946 114037 4319 0 3 0 0x4000080 fsleep syz-executor 12603 476345 53776 0 2 0 0 syz-executor 12603 9754 53776 0 3 0 0x4000080 ttyout syz-executor 12603 465293 53776 0 3 0 0x4000080 fsleep syz-executor 12603 120181 53776 0 3 0 0x4000080 fsleep syz-executor 72500 207086 59789 0 3 0x1000 0x2000 suspend syz-executor 72500 247155 59789 0 2 0x1000 0x4080000 syz-executor 90049 339248 72901 0 2 0 0 syz-executor 90049 218541 72901 0 3 0 0x4000080 fsleep syz-executor 72901 133136 96516 0 2 0x2 0xc80 syz-executor 9058 24864 96516 0 3 0x2 0x80 nanoslp syz-executor 2567 56006 96516 0 2 0x2 0xc80 syz-executor 59789 328767 96516 0 3 0x2 0x80 nanoslp syz-executor 85441 406537 96516 0 2 0x2 0x1 syz-executor 5264 359097 96516 0 2 0x2 0 syz-executor 4319 186278 96516 0 2 0x2 0x1 syz-executor 53776 222560 96516 0 3 0x2 0x80 nanoslp syz-executor 96516 350486 84716 0 3 0x2 0x80 kqread syz-executor 84716 6228 87981 0 3 0x100002 0x88 sigsusp ksh 87981 388157 72569 0 3 0x10 0x88 kqread sshd-session 72569 465780 78145 0 3 0x12 0x80 kqread sshd-session 12342 250313 1 0 3 0x100003 0x80 ttyin getty 78145 89355 1 0 3 0 0x88 kqread sshd 21953 464971 56928 73 3 0x1100010 0x80 kqread syslogd 56928 509967 1 0 3 0x100002 0x80 sbwait syslogd-parent 75526 418290 1 0 3 0x100000 0x80 kqread resolvd 92572 140186 16401 77 3 0x100012 0x80 kqread dhcpleased 62076 500448 16401 77 3 0x100012 0x80 kqread dhcpleased 16401 454313 1 0 3 0 0x80 kqread dhcpleased 41555 497099 0 0 3 0x14000 0x200 bored smr 43629 406047 0 0 2 0x14000 0x200 zerothread 1126 100774 0 0 3 0x14000 0x200 aiodoned aiodoned 96141 337767 0 0 3 0x14000 0x200 syncer update 74283 213463 0 0 3 0x14000 0x200 cleaner cleaner 77778 496166 0 0 3 0x14000 0x200 reaper reaper 12407 178167 0 0 3 0x14000 0x200 pgdaemon pagedaemon 15988 95701 0 0 3 0x14000 0x200 bored viomb 35630 10099 0 0 3 0x14000 0x40000200 acpi0 acpi0 55130 142506 0 0 3 0x14000 0x200 bored softnet0 3772 410225 0 0 3 0x14000 0x200 bored systqmp 11179 145856 0 0 3 0x14000 0x200 bored systq 44582 64284 0 0 3 0x14000 0x40000200 tmoslp softclock 27427 313474 0 0 3 0x14000 0x40000200 idle0 1 497208 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 11037 12231K 12231K 166960K 12147 0 pcb 17 12K 12K 166960K 21 0 rtable 227 6K 6K 166960K 375 0 pf 31 13K 13K 166960K 33 0 ifaddr 42 7K 7K 166960K 48 0 ifgroup 50 2K 2K 166960K 54 0 sysctl 2 1K 9K 166960K 6 0 counters 33 17K 17K 166960K 34 0 ioctlops 0 0K 4K 166960K 34 0 iov 0 0K 4K 166960K 1 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1296 82K 82K 166960K 1386 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 3 0K 0K 166960K 3 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12472 0 file desc 17 61K 89K 166960K 172 0 proc 59 59K 91K 166960K 525 0 subproc 72 4K 4K 166960K 81 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 1 0 in_multi 99 6K 6K 166960K 112 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 5 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 388 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 218 142K 151K 166960K 3165 0 UVM aobj 4 2K 2K 166960K 4 0 pinsyscall 38 76K 91K 166960K 1302 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 11 0K 1K 166960K 30 0 temp 34 9114K 9120K 166960K 5459 0 kqueue 13 20K 22K 166960K 27 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 40 0 37 1 0 1 1 0 8 0 rtentry 136 122 0 12 4 0 4 4 0 8 0 unpcb 144 37 0 22 1 0 1 1 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 13 0 9 1 0 1 1 0 8 0 arp 96 20 0 2 1 0 1 1 0 8 0 inpcb 328 72 0 65 2 0 2 2 0 8 1 nd6 112 27 0 3 1 0 1 1 0 8 0 kcovpl 48 9 0 1 1 0 1 1 0 8 0 pfstscr 40 2 0 2 1 0 1 1 0 8 1 pfstkey 128 2 0 2 1 0 1 1 0 8 1 pfstate 384 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 496 0 44 31 0 31 31 0 8 2 art_table 40 497 0 44 6 0 6 6 0 8 0 art_node 32 122 0 22 1 0 1 1 0 8 0 semapl 72 1 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 1594 0 126 92 0 92 92 0 8 0 ffsino 256 1594 0 126 92 0 92 92 0 8 0 nchpl 144 1819 0 123 64 0 64 64 0 8 0 vnodes 216 1698 0 0 95 0 95 95 0 8 0 namei 1024 6104 0 6104 4 2 2 3 0 8 2 kstatmem 264 25 0 2 2 0 2 2 0 8 0 scxspl 216 6545 0 6545 10 2 8 8 1 8 8 plimitpl 152 30 0 13 1 0 1 1 0 8 0 sigapl 424 460 0 418 6 0 6 6 0 8 1 knotepl 120 3402 0 3355 2 0 2 2 0 8 0 kqueuepl 184 25 0 16 1 0 1 1 0 8 0 pipepl 304 129 0 102 3 0 3 3 0 8 0 fdescpl 448 447 0 418 5 1 4 5 0 8 0 filepl 120 1515 0 1302 7 0 7 7 0 8 0 lockfpl 104 13 0 10 1 0 1 1 0 8 0 lockfspl 48 8 0 5 1 0 1 1 0 8 0 sessionpl 144 24 0 16 1 0 1 1 0 8 0 pgrppl 48 34 0 18 1 0 1 1 0 8 0 ucredpl 104 96 0 85 1 0 1 1 0 8 0 zombiepl 144 442 0 440 2 1 1 1 0 8 0 processpl 1160 461 0 418 4 0 4 4 0 8 0 procpl 664 517 0 463 6 0 6 6 0 8 1 sockpl 552 179 0 154 4 1 3 3 0 8 1 mcl64k 65536 2 0 2 1 0 1 1 0 8 1 mcl8k 8192 12 0 12 1 1 0 1 0 8 0 mcl4k 4096 2572 0 2516 14 5 9 14 0 8 1 mcl2k 2048 153 0 153 3 1 2 2 0 8 2 mextrefs 64 53 0 53 2 1 1 1 0 8 1 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 4532 0 4370 11 0 11 11 0 8 0 bufpl 272 2311 0 86 149 0 149 149 0 8 0 anonpl 24 77651 0 74651 26 1 25 25 0 187 4 amapchunkpl 152 8784 0 8328 27 0 27 27 0 158 9 amappl16 200 939 0 921 4 3 1 4 0 8 0 amappl15 192 7 0 6 1 0 1 1 0 8 0 amappl14 184 436 0 435 1 0 1 1 0 8 0 amappl13 176 117 0 107 1 0 1 1 0 8 0 amappl12 168 682 0 655 2 0 2 2 0 8 0 amappl11 160 3 0 3 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 92 0 91 1 0 1 1 0 8 0 amappl7 128 140 0 130 1 0 1 1 0 8 0 amappl6 120 125 0 124 1 0 1 1 0 8 0 amappl5 112 141 0 135 1 0 1 1 0 8 0 amappl4 104 270 0 257 1 0 1 1 0 8 0 amappl3 96 1617 0 1508 3 0 3 3 0 8 0 amappl2 88 437 0 391 2 0 2 2 0 8 0 amappl1 80 10355 0 9808 13 0 13 13 0 8 1 amappl 88 2473 0 2316 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 447 0 418 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 447 0 418 1 0 1 1 0 8 0 vmmpekpl 168 5350 0 5307 3 0 3 3 0 8 0 vmmpepl 168 37837 0 36096 83 3 80 80 0 357 4 vmsppl 368 446 0 418 4 0 4 4 0 8 1 rwobjpl 40 13719 0 12799 12 1 11 11 0 8 1 pdppl 4096 900 0 836 98 32 66 78 0 8 2 pvpl 32 205735 0 197849 80 2 78 78 0 265 9 pmappl 216 446 0 418 2 0 2 2 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 514 0 45 14 0 14 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_shmat(ffff80002a75dca0,ffff80003c90f6b0,ffff80003c90f600) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c90f6b0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c90f6b0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5561bfaab0, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_shmat(ffff80002a75dca0,ffff80003c90f6b0,ffff80003c90f600) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c90f6b0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c90f6b0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5561bfaab0, count: -3