uvm_fault(0xfffffb006cf4c468, 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 *196924 33865 0 0 0x4000000 0 syz-executor sys_shmat(ffff80002a74d4d0,ffff80002a745760,ffff80002a7456b0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002a745760) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a745760) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9bb5b5a5050, 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(0xfffffb006cf4c468, 0x0, 0, 1) -> e ddb> show kasan No such command ddb> trace sys_shmat(ffff80002a74d4d0,ffff80002a745760,ffff80002a7456b0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002a745760) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a745760) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9bb5b5a5050, count: -3 ddb> show registers rdi 0 rsi 0x2000 __ALIGN_SIZE+0x1000 rbp 0xffff80002a745690 rbx 0 rdx 0x1 rcx 0x1 rax 0xfffffb0074e10d98 r8 0x180 r9 0xfffffb0007ffd888 r10 0x66ba0530e9e8f618 r11 0x3c46196ee121ad30 r12 0xffff80002a74d4d0 r13 0xffff800001601000 r14 0 r15 0x3 rip 0xffffffff82109147 sys_shmat+0x3d7 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002a745600 ss 0x10 sys_shmat+0x3d7: movq 0(%r14),%rdi ddb> show proc PROC (syz-executor) tid=196924 pid=33865 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=60, usrpri=60, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a74cfa0,0xffff80002a74c2b8 process=0xffff80003a4ced68 user=0xffff80002a740000, vmspace=0xfffffb006cf4c468 estcpu=10, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 33865 89131 59245 0 2 0 0 syz-executor 33865 435315 59245 0 2 0 0x4000000 syz-executor *33865 196924 59245 0 7 0 0x4000000 syz-executor 20685 233397 35697 60929 2 0x10 0 syz-executor 20685 23816 35697 60929 2 0x10 0x4000000 syz-executor 81714 214089 82871 0 2 0 0 syz-executor 81714 45965 82871 0 2 0 0x4000000 syz-executor 81714 341404 82871 0 3 0 0x4000000 vmmaplk syz-executor 46984 337683 73279 0 2 0x2 0 syz-executor 25666 188855 40882 0 2 0x100002 0 sh 82871 421640 73279 0 3 0x2 0x80 nanoslp syz-executor 84732 180872 69963 0 3 0 0x80 nanoslp syz-executor 84732 346548 69963 0 3 0 0x4000080 lockf syz-executor 84732 54830 69963 0 3 0 0x4000080 fsleep syz-executor 98074 382221 51977 0 3 0 0x80 nanoslp syz-executor 98074 509752 51977 0 3 0 0x4000080 fsleep syz-executor 98074 300773 51977 0 3 0 0x4000080 fsleep syz-executor 98074 98787 51977 0 3 0 0x4000080 fsleep syz-executor 40882 359406 73279 0 3 0x2 0x80 wait syz-executor 30850 272766 1 0 3 0x2 0x80 nanoslp getty 69963 270362 73279 0 3 0x2 0x80 nanoslp syz-executor 54708 284391 73279 0 3 0x2 0x80 piperd syz-executor 59245 510161 73279 0 3 0x2 0x80 nanoslp syz-executor 35697 482784 73279 0 3 0x2 0x80 nanoslp syz-executor 51977 487502 73279 0 3 0x2 0x80 nanoslp syz-executor 73279 209385 1 0 2 0x2 0 syz-executor 91695 489614 0 0 3 0x14000 0x200 bored smr 49146 259602 0 0 2 0x14000 0x200 zerothread 4563 10584 0 0 3 0x14000 0x200 aiodoned aiodoned 85332 69481 0 0 3 0x14000 0x200 syncer update 77166 420962 0 0 3 0x14000 0x200 cleaner cleaner 37779 234697 0 0 3 0x14000 0x200 reaper reaper 19677 173935 0 0 3 0x14000 0x200 pgdaemon pagedaemon 72294 226954 0 0 3 0x14000 0x200 bored viomb 9430 506448 0 0 3 0x14000 0x40000200 acpi0 acpi0 27901 207758 0 0 3 0x14000 0x200 bored softnet0 64855 237371 0 0 3 0x14000 0x200 bored systqmp 54694 474883 0 0 3 0x14000 0x200 bored systq 22274 42575 0 0 3 0x14000 0x40000200 tmoslp softclock 63832 431004 0 0 3 0x14000 0x40000200 idle0 1 219448 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 11024 12112K 12118K 166960K 12142 0 pcb 17 12K 12K 166960K 29 0 rtable 209 7K 8K 166960K 415 0 pf 28 12K 13K 166960K 39 0 ifaddr 36 6K 7K 166960K 53 0 ifgroup 46 2K 2K 166960K 65 0 sysctl 1 1K 9K 166960K 5 0 counters 32 17K 18K 166960K 38 0 ioctlops 0 0K 4K 166960K 44 0 iov 0 0K 8K 166960K 2 0 mount 1 1K 1K 166960K 1 0 log 1 2K 2K 166960K 5 0 vnodes 1294 81K 81K 166960K 1404 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 4 0K 0K 166960K 4 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12472 0 file desc 15 54K 97K 166960K 192 0 proc 18 25K 124K 166960K 556 0 subproc 63 3K 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 4 0 in_multi 78 5K 6K 166960K 113 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 6 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 55 254K 254K 166960K 55 0 exec 0 0K 2K 166960K 400 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 122 83K 159K 166960K 3321 0 UVM aobj 3 2K 6K 166960K 5 0 pinsyscall 18 36K 96K 166960K 1342 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 12 0K 2K 166960K 33 0 temp 32 9114K 9134K 166960K 6000 0 kqueue 1 2K 22K 166960K 33 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 43 1 0 1 1 0 8 1 rtentry 136 127 0 35 4 0 4 4 0 8 0 unpcb 144 44 0 44 1 0 1 1 0 8 1 syncache 336 5 0 5 2 1 1 1 0 8 1 tcpcb 736 15 0 13 1 0 1 1 0 8 0 arp 96 22 0 6 1 0 1 1 0 8 0 inpcb 328 98 0 92 3 1 2 2 0 8 1 ip6q 80 1 0 0 1 0 1 1 0 8 0 nd6 112 27 0 9 1 0 1 1 0 8 0 kcovpl 48 10 0 3 1 0 1 1 0 8 0 ppxss 1072 2 0 2 1 0 1 1 0 8 1 pppxif 1416 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 506 0 138 29 0 29 29 0 8 4 art_table 40 508 0 138 5 0 5 5 0 8 0 art_node 32 127 0 43 1 0 1 1 0 8 0 semapl 72 2 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 1637 0 166 93 0 93 93 0 8 0 ffsino 256 1637 0 166 93 0 93 93 0 8 0 nchpl 144 1878 0 177 64 0 64 64 0 8 0 vnodes 216 1753 0 0 98 0 98 98 0 8 0 namei 1024 6405 0 6405 4 3 1 4 0 8 1 vcpupl 3968 12 0 12 2 0 2 2 0 8 2 vmpool 808 1 0 1 1 0 1 1 0 8 1 kstatmem 264 31 0 10 2 0 2 2 0 8 0 scxspl 216 6680 0 6680 3 2 1 3 1 8 1 plimitpl 152 34 0 24 1 0 1 1 0 8 0 sigapl 424 479 0 448 6 1 5 6 0 8 0 knotepl 120 3076 0 3058 2 0 2 2 0 8 0 kqueuepl 184 38 0 36 1 0 1 1 0 8 0 pipepl 304 136 0 109 3 0 3 3 0 8 0 fdescpl 448 466 0 448 5 1 4 5 0 8 0 filepl 120 1647 0 1487 7 0 7 7 0 8 0 lockfpl 104 30 0 28 1 0 1 1 0 8 0 lockfspl 48 12 0 11 1 0 1 1 0 8 0 sessionpl 144 26 0 24 1 0 1 1 0 8 0 pgrppl 48 37 0 27 1 0 1 1 0 8 0 ucredpl 104 116 0 112 1 0 1 1 0 8 0 zombiepl 144 475 0 475 2 1 1 1 0 8 1 processpl 1160 479 0 448 4 0 4 4 0 8 0 procpl 664 551 0 510 5 0 5 5 0 8 1 sockpl 552 185 0 179 3 0 3 3 0 8 2 mcl64k 65536 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 12 0 12 1 1 0 1 0 8 0 mcl4k 4096 2590 0 2534 14 5 9 13 0 8 0 mcl2k 2048 141 0 141 4 1 3 3 0 8 3 mextrefs 64 63 0 63 2 1 1 1 0 8 1 mtagpl 96 5 0 5 1 1 0 1 0 8 0 mbufpl 256 4838 0 4703 16 0 16 16 0 8 4 bufpl 272 2547 0 88 164 0 164 164 0 8 0 anonpl 24 93182 0 91543 21 1 20 21 0 187 6 amapchunkpl 152 9363 0 9052 27 0 27 27 0 158 14 amappl16 200 1597 0 1572 6 4 2 5 0 8 0 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 429 0 428 1 0 1 1 0 8 0 amappl13 176 116 0 115 1 0 1 1 0 8 0 amappl12 168 710 0 692 2 0 2 2 0 8 0 amappl11 160 19 0 19 1 1 0 1 0 8 0 amappl10 152 94 0 94 1 0 1 1 0 8 1 amappl9 144 284 0 284 1 1 0 1 0 8 0 amappl8 136 96 0 96 1 0 1 1 0 8 1 amappl7 128 147 0 145 1 0 1 1 0 8 0 amappl6 120 127 0 126 1 0 1 1 0 8 0 amappl5 112 145 0 145 1 0 1 1 0 8 1 amappl4 104 270 0 266 1 0 1 1 0 8 0 amappl3 96 1745 0 1674 3 0 3 3 0 8 0 amappl2 88 448 0 441 2 0 2 2 0 8 0 amappl1 80 10294 0 10179 13 1 12 13 0 8 8 amappl 88 2619 0 2514 4 0 4 4 0 92 0 uvmvnodes 80 100 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 5 0 2 1 0 1 1 0 8 0 uaddrrnd 24 466 0 448 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 466 0 448 1 0 1 1 0 8 0 vmmpekpl 168 5500 0 5463 2 0 2 2 0 8 0 vmmpepl 168 39277 0 38518 78 0 78 78 0 357 43 vmsppl 368 465 0 448 4 1 3 4 0 8 0 rwobjpl 40 14461 0 14048 11 1 10 11 0 8 0 pdppl 4096 940 0 898 94 48 46 82 0 8 4 pvpl 32 224959 0 220632 72 0 72 72 0 265 36 pmappl 216 466 0 449 3 1 2 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 534 0 64 14 0 14 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace sys_shmat(ffff80002a74d4d0,ffff80002a745760,ffff80002a7456b0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002a745760) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a745760) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9bb5b5a5050, count: -3 ddb> machine ddbcpu 1 No such command ddb> trace sys_shmat(ffff80002a74d4d0,ffff80002a745760,ffff80002a7456b0) at sys_shmat+0x3d7 sys/kern/sysv_shm.c:283 syscall(ffff80002a745760) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a745760) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x9bb5b5a5050, count: -3 ddb>