ED5ÅÄI·øeÑK¢)uvm_fault(0xfffffb000e09da28, 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 *486078 789 0 0 0x4000000 0 syz-executor sys_shmat(ffff80002a784018,ffff80003c8ddb70,ffff80003c8ddac0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c8ddb70) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8ddb70) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb79c6fe7dd0, 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(0xfffffb000e09da28, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace sys_shmat(ffff80002a784018,ffff80003c8ddb70,ffff80003c8ddac0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c8ddb70) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8ddb70) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb79c6fe7dd0, count: -3 ddb> show registers rdi 0xffff80002f09e000 rsi 0x115 rbp 0xffff80003c8ddaa0 rbx 0 rdx 0x1 rcx 0x1 rax 0xfffffb006929ce88 r8 0x180 r9 0xfffffb0007ffd340 r10 0xc8730ae58e2aeb06 r11 0x57fd319e8e5973b4 r12 0xffff80002a784018 r13 0xffff8000015fe000 r14 0 r15 0x3 rip 0xffffffff826bfee7 sys_shmat+0x3d7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c8dda10 ss 0x10 sys_shmat+0x3d7: movq 0(%r14),%rdi ddb> show proc PROC (syz-executor) tid=486078 pid=789 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=50, usrpri=51, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7262a0,0xffff80002a784558 process=0xffff8000380c84a0 user=0xffff80003c8d8000, vmspace=0xfffffb000e09da28 estcpu=1, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 10425 195655 81419 0 2 0 0 syz-executor 10425 224491 81419 0 2 0 0x4000000 syz-executor 10425 250385 81419 0 3 0 0x4000080 fsleep syz-executor 789 37740 24376 0 2 0 0 syz-executor 789 325246 24376 0 2 0 0x4000000 syz-executor * 789 486078 24376 0 7 0 0x4000000 syz-executor 84266 233446 79248 0 3 0 0x80 nanoslp syz-executor 84266 381436 79248 0 2 0 0x4000000 syz-executor 84266 427893 79248 0 3 0 0x4000080 fsleep syz-executor 84266 167252 79248 0 3 0 0x4000080 fsleep syz-executor 83087 446434 67416 0 2 0 0 syz-executor 83087 146345 67416 0 3 0 0x4000080 fsleep syz-executor 83087 329756 67416 0 3 0 0x4000080 fsleep syz-executor 83087 116022 67416 0 3 0 0x4000080 fsleep syz-executor 83087 36941 67416 0 2 0 0x4000000 syz-executor 79248 86830 75366 0 3 0x2 0x80 nanoslp syz-executor 47372 158621 93422 0 3 0 0x80 nanoslp syz-executor 47372 488727 93422 0 3 0 0x4000080 ttyin syz-executor 47372 20529 93422 0 3 0 0x4000080 lockf syz-executor 47372 390856 93422 0 3 0 0x4000080 fsleep syz-executor 47372 113172 93422 0 3 0 0x4000080 fsleep syz-executor 81419 468005 75366 0 3 0x2 0x80 nanoslp syz-executor 45834 457123 0 0 3 0x14000 0x200 acct acct 93422 482233 75366 0 3 0x2 0x80 nanoslp syz-executor 67416 243759 75366 0 3 0x2 0x80 nanoslp syz-executor 24376 520802 75366 0 3 0x2 0x80 nanoslp syz-executor 5401 434925 75366 0 2 0x2 0 syz-executor 44663 288110 75366 0 2 0x2 0 syz-executor 793 361183 75366 0 2 0x2 0 syz-executor 75366 8352 51011 0 2 0x2 0 syz-executor 51011 212631 8319 0 3 0x100002 0x88 sigsusp ksh 8319 457239 42512 0 3 0x10 0x88 kqread sshd-session 42512 443882 61368 0 3 0x12 0x80 kqread sshd-session 92345 189619 1 0 3 0x100003 0x80 ttyin getty 61368 82670 1 0 3 0 0x88 kqread sshd 59090 137850 65506 73 3 0x1100010 0x80 kqread syslogd 65506 105223 1 0 3 0x100002 0x80 sbwait syslogd-parent 25143 251799 1 0 3 0x100000 0x80 kqread resolvd 2315 305639 52001 77 3 0x100012 0x80 kqread dhcpleased 28628 429000 52001 77 3 0x100012 0x80 kqread dhcpleased 52001 262183 1 0 3 0 0x80 kqread dhcpleased 21266 460203 0 0 3 0x14000 0x200 bored smr 52749 237282 0 0 2 0x14000 0x200 zerothread 66154 287754 0 0 3 0x14000 0x200 aiodoned aiodoned 73449 88390 0 0 3 0x14000 0x200 syncer update 85216 67179 0 0 3 0x14000 0x200 cleaner cleaner 67086 382526 0 0 3 0x14000 0x200 reaper reaper 62555 521362 0 0 3 0x14000 0x200 pgdaemon pagedaemon 20399 354142 0 0 3 0x14000 0x200 bored viomb 44711 511987 0 0 3 0x14000 0x40000200 acpi0 acpi0 68136 181219 0 0 3 0x14000 0x200 bored softnet0 94905 18634 0 0 3 0x14000 0x200 bored systqmp 31593 287860 0 0 3 0x14000 0x200 bored systq 47041 177403 0 0 3 0x14000 0x40000200 tmoslp softclock 91487 155499 0 0 3 0x14000 0x40000200 idle0 1 117661 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 11032 12111K 12231K 166960K 12146 0 pcb 18 12K 12K 166960K 24 0 rtable 233 7K 7K 166960K 414 0 pf 30 12K 12K 166960K 34 0 ifaddr 42 7K 7K 166960K 52 0 ifgroup 50 2K 2K 166960K 58 0 sysctl 1 1K 9K 166960K 6 0 counters 33 17K 17K 166960K 35 0 ioctlops 0 0K 4K 166960K 43 0 iov 0 0K 12K 166960K 2 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1296 81K 81K 166960K 1409 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 15 53K 93K 166960K 197 0 sigio 0 0K 0K 166960K 1 0 proc 58 59K 91K 166960K 555 0 subproc 72 4K 4K 166960K 90 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 99 6K 6K 166960K 123 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 67 307K 307K 166960K 67 0 exec 0 0K 1K 166960K 404 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 216 142K 150K 166960K 3286 0 UVM aobj 3 2K 2K 166960K 3 0 pinsyscall 36 72K 92K 166960K 1353 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 11 0K 2K 166960K 33 0 temp 37 9118K 9138K 166960K 3521 0 kqueue 14 22K 26K 166960K 38 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 43 0 40 1 0 1 1 0 8 0 rtentry 136 134 0 23 4 0 4 4 0 8 0 unpcb 144 48 0 31 1 0 1 1 0 8 0 syncache 336 4 0 4 1 1 0 1 0 8 0 tcpcb 736 16 0 12 1 0 1 1 0 8 0 arp 96 22 0 4 1 0 1 1 0 8 0 inpcb 328 93 0 84 2 1 1 2 0 8 0 nd6 112 30 0 6 1 0 1 1 0 8 0 kcovpl 48 10 0 2 1 0 1 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 546 0 88 29 0 29 29 0 8 0 art_table 40 548 0 88 5 0 5 5 0 8 0 art_node 32 134 0 33 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 1629 0 158 93 0 93 93 0 8 0 ffsino 256 1629 0 158 93 0 93 93 0 8 0 nchpl 144 1882 0 174 64 0 64 64 0 8 0 vnodes 216 1747 0 0 98 0 98 98 0 8 0 namei 1024 6591 0 6589 4 3 1 4 0 8 0 kstatmem 264 27 0 4 2 0 2 2 0 8 0 scxspl 216 6886 0 6886 3 2 1 3 1 8 1 plimitpl 152 39 0 20 1 0 1 1 0 8 0 sigapl 424 484 0 443 6 1 5 6 0 8 0 knotepl 120 3135 0 3085 2 0 2 2 0 8 0 kqueuepl 184 35 0 25 1 0 1 1 0 8 0 pipepl 304 133 0 106 3 0 3 3 0 8 0 fdescpl 448 470 0 443 5 1 4 5 0 8 0 filepl 120 1823 0 1595 9 0 9 9 0 8 0 lockfpl 104 18 0 13 1 0 1 1 0 8 0 lockfspl 48 10 0 6 1 0 1 1 0 8 0 sessionpl 144 27 0 18 1 0 1 1 0 8 0 pgrppl 48 37 0 20 1 0 1 1 0 8 0 ucredpl 104 165 0 154 1 0 1 1 0 8 0 zombiepl 144 445 0 445 1 0 1 1 0 8 1 processpl 1160 485 0 443 4 0 4 4 0 8 0 procpl 664 554 0 497 7 0 7 7 0 8 1 sockpl 552 184 0 154 3 0 3 3 0 8 0 mcl64k 65536 3 0 3 2 1 1 1 0 8 1 mcl16k 16384 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 13 0 13 1 1 0 1 0 8 0 mcl4k 4096 2593 0 2540 14 6 8 14 0 8 0 mcl2k 2048 177 0 177 2 1 1 1 0 8 1 mextrefs 64 56 0 56 2 1 1 1 0 8 1 mtagpl 96 4 0 4 1 1 0 1 0 8 0 mbufpl 256 4713 0 4567 10 0 10 10 0 8 0 bufpl 272 2648 0 90 171 0 171 171 0 8 0 anonpl 24 89666 0 86657 32 8 24 32 0 187 0 amapchunkpl 152 9090 0 8627 25 5 20 23 0 158 0 amappl16 200 1356 0 1337 5 2 3 5 0 8 0 amappl15 192 52 0 52 1 1 0 1 0 8 0 amappl14 184 429 0 428 1 0 1 1 0 8 0 amappl13 176 118 0 108 1 0 1 1 0 8 0 amappl12 168 709 0 683 2 0 2 2 0 8 0 amappl11 160 5 0 5 1 1 0 1 0 8 0 amappl10 152 95 0 86 1 0 1 1 0 8 0 amappl9 144 315 0 315 1 1 0 1 0 8 0 amappl8 136 100 0 99 1 0 1 1 0 8 0 amappl7 128 151 0 141 1 0 1 1 0 8 0 amappl6 120 124 0 123 1 0 1 1 0 8 0 amappl5 112 136 0 130 1 0 1 1 0 8 0 amappl4 104 268 0 254 1 0 1 1 0 8 0 amappl3 96 1749 0 1639 4 0 4 4 0 8 0 amappl2 88 445 0 396 2 0 2 2 0 8 0 amappl1 80 10416 0 9880 14 2 12 14 0 8 0 amappl 88 2587 0 2432 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 470 0 443 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 470 0 443 1 0 1 1 0 8 0 vmmpekpl 168 5513 0 5471 3 0 3 3 0 8 0 vmmpepl 168 39430 0 37758 80 0 80 80 0 357 0 vmsppl 368 469 0 443 4 1 3 4 0 8 0 rwobjpl 40 14325 0 13394 11 0 11 11 0 8 0 pdppl 4096 946 0 886 100 34 66 80 0 8 6 pvpl 32 223422 0 215424 89 11 78 89 0 265 1 pmappl 216 469 0 443 3 0 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 539 0 52 15 0 15 15 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_shmat(ffff80002a784018,ffff80003c8ddb70,ffff80003c8ddac0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c8ddb70) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8ddb70) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb79c6fe7dd0, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_shmat(ffff80002a784018,ffff80003c8ddb70,ffff80003c8ddac0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80003c8ddb70) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c8ddb70) at syscall+0x962 sys/arch/amd64/amd64/trap.c:804 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xb79c6fe7dd0, count: -3