panic: attempt to execute user address 0x0 in supervisor mode Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *144072 98010 0 0 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 pageflttrap() at pageflttrap+0x3eb kerntrap(ffff80001492fe30) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800014939000,fffffd803a4ae1c8,10,ffff80000005b8d0,ffff800014930098) at alltraps_kern_meltdown+0x7b 0(b,ffff80001492fff8,83,ffff800014930098,0,b) at 0 rt_match(fffffd803d0c0c88,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803d0c0c88,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff800014930170,fffffd803b83ce20,fffffd803d0c0c08) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd803d0c0c08,fffffd803b83ce00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd802ac72498,4,0,fffffd803b83ce00,0,ffff8000ffff2c70) at tcp_usrreq+0xada sys/netinet/tcp_usrreq.c:228 sys_connect(ffff8000ffff2c70,ffff800014930318,ffff800014930360) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000149303e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffecf,0,3,52eb3d28010) at Xsyscall+0x128 end of kernel end trace frame: 0x530d10d4d90, count: 2 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 attempt to execute user address 0x0 in supervisor mode ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 pageflttrap() at pageflttrap+0x3eb kerntrap(ffff80001492fe30) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800014939000,fffffd803a4ae1c8,10,ffff80000005b8d0,ffff800014930098) at alltraps_kern_meltdown+0x7b 0(b,ffff80001492fff8,83,ffff800014930098,0,b) at 0 rt_match(fffffd803d0c0c88,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803d0c0c88,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff800014930170,fffffd803b83ce20,fffffd803d0c0c08) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd803d0c0c08,fffffd803b83ce00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd802ac72498,4,0,fffffd803b83ce00,0,ffff8000ffff2c70) at tcp_usrreq+0xada sys/netinet/tcp_usrreq.c:228 sys_connect(ffff8000ffff2c70,ffff800014930318,ffff800014930360) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff8000149303e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffecf,0,3,52eb3d28010) at Xsyscall+0x128 end of kernel end trace frame: 0x530d10d4d90, count: -13 ddb> show registers rdi 0xffffffff813b3ea7 db_enter+0x17 rsi 0x219c __ALIGN_SIZE+0x119c rbp 0xffff80001492fca0 rbx 0xffff80001492fd50 rdx 0x219d __ALIGN_SIZE+0x119d rcx 0xffff800014939000 rax 0xffff800014939000 r8 0xffff80001492fc60 r9 0x1 r10 0xffff800000a64600 r11 0x6811e0d729b4f0b3 r12 0x3000000008 r13 0xffff80001492fcb0 r14 0x100 r15 0x1 rip 0xffffffff813b3ea8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001492fc90 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=144072 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff29f8,0xffffffff82558cc8 process=0xffff8000148a26d8 user=0xffff80001492b000, vmspace=0xfffffd803f014330 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 98010 275316 84448 0 2 0 syz-executor.1 *98010 144072 84448 0 7 0x4000000 syz-executor.1 26753 432596 64002 0 2 0x2 syz-executor.0 84448 77815 64002 0 3 0x82 nanosleep syz-executor.1 41143 231406 0 0 3 0x14200 acct acct 69790 230313 1 0 3 0x100083 ttyin getty 11390 8101 0 0 3 0x14200 bored sosplice 64002 511223 20025 0 3 0x82 thrsleep syz-fuzzer 64002 473505 20025 0 3 0x4000082 nanosleep syz-fuzzer 64002 163207 20025 0 3 0x4000082 thrsleep syz-fuzzer 64002 37966 20025 0 3 0x4000082 thrsleep syz-fuzzer 64002 85850 20025 0 3 0x4000082 thrsleep syz-fuzzer 64002 218904 20025 0 3 0x4000082 kqread syz-fuzzer 64002 166606 20025 0 3 0x4000082 thrsleep syz-fuzzer 64002 482720 20025 0 3 0x4000082 thrsleep syz-fuzzer 20025 22885 59627 0 3 0x10008a pause ksh 59627 473287 56216 0 3 0x92 select sshd 56216 214325 1 0 3 0x80 select sshd 87315 69718 74871 73 3 0x100090 kqread syslogd 74871 40703 1 0 3 0x100082 netio syslogd 39510 333155 1 77 3 0x100090 poll dhclient 5387 499696 1 0 3 0x80 poll dhclient 66573 84343 0 0 2 0x14200 zerothread 15931 392961 0 0 3 0x14200 aiodoned aiodoned 10512 380914 0 0 3 0x14200 syncer update 29335 306546 0 0 3 0x14200 cleaner cleaner 49394 80719 0 0 3 0x14200 reaper reaper 99009 91535 0 0 3 0x14200 pgdaemon pagedaemon 72456 66727 0 0 3 0x14200 bored crynlk 17492 129685 0 0 3 0x14200 bored crypto 26893 34943 0 0 3 0x40014200 acpi0 acpi0 40391 409778 0 0 3 0x14200 bored softnet 58072 18120 0 0 3 0x14200 bored systqmp 29416 89120 0 0 3 0x14200 bored systq 64126 288408 0 0 3 0x40014200 bored softclock 73870 46236 0 0 3 0x40014200 idle0 22307 104424 0 0 3 0x14200 bored smr 1 377421 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9601 7018K 11421K 78643K 23332 0 0 pcb 13 12K 14K 78643K 1171 0 0 rtable 106 8K 9K 78643K 3359 0 0 ifaddr 88 19K 21K 78643K 927 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 240 0 0 iov 0 0K 32K 78643K 1274 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1217 76K 77K 78643K 5842 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 90 0 0 VM map 2 0K 0K 78643K 34 0 0 sem 12 1K 1K 78643K 305 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 6103 0 0 sigio 0 0K 0K 78643K 56 0 0 proc 50 38K 63K 78643K 2170 0 0 subproc 32 2K 2K 78643K 607 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 352 0 0 in_multi 19 1K 2K 78643K 556 0 0 ether_multi 1 0K 0K 78643K 27 0 0 mrt 0 0K 0K 78643K 17 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 180 795K 795K 78643K 180 0 0 exec 0 0K 1K 78643K 1301 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 120 22K 40K 78643K 15703 0 0 UVM aobj 130 6K 6K 78643K 140 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 1197 0 0 NDP 22 0K 1K 78643K 300 0 0 temp 241 3541K 4181K 78643K 171799 0 0 kqueue 0 0K 0K 78643K 38 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 139 0 133 1 0 1 1 0 8 0 rtpcb 80 482 0 480 1 0 1 1 0 8 0 rtentry 112 593 0 557 2 0 2 2 0 8 0 unpcb 120 6583 0 6567 26 24 2 3 0 8 1 syncache 264 23 0 23 12 12 0 1 0 8 0 tcpqe 32 5276 0 5276 4 4 0 1 0 8 0 tcpcb 544 3136 0 3131 26 17 9 15 0 8 8 ipq 40 37 0 37 14 14 0 1 0 8 0 ipqe 40 90 0 90 14 14 0 1 0 8 0 inpcb 280 7582 0 7574 63 54 9 13 0 8 8 rttmr 72 6 0 5 1 0 1 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 2 0 2 1 1 0 1 0 8 0 nd6 48 76 0 75 3 2 1 1 0 8 0 pkpcb 40 16 0 16 6 6 0 1 0 8 0 swfcl 56 6 0 0 1 0 1 1 0 8 0 ppxss 1128 117 0 117 18 17 1 1 0 8 1 art_heap8 4096 15 0 14 13 10 3 3 0 8 2 art_heap4 256 2391 0 2198 38 23 15 17 0 8 0 art_table 32 2406 0 2212 8 5 3 3 0 8 0 art_node 16 584 0 551 1 0 1 1 0 8 0 sysvmsgpl 40 38 0 28 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 303 0 293 1 0 1 1 0 8 0 shmpl 112 138 0 10 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 10473 0 9064 46 0 46 46 0 8 0 ffsino 240 10473 0 9064 84 0 84 84 0 8 0 nchpl 144 22997 0 21391 60 0 60 60 0 8 0 uvmvnodes 72 8594 0 0 157 0 157 157 0 8 0 vnodes 208 8594 0 0 453 0 453 453 0 8 0 namei 1024 81515 0 81514 7 6 1 1 0 8 0 vmpool 520 32 0 32 13 12 1 1 0 8 1 scsiplug 64 4 0 4 4 4 0 1 0 8 0 scxspl 192 73431 0 73431 30 27 3 7 0 8 3 plimitpl 152 445 0 438 1 0 1 1 0 8 0 sigapl 432 6181 0 6168 2 0 2 2 0 8 0 futexpl 56 173731 0 173731 7 6 1 1 0 8 1 knotepl 112 2851 0 2832 3 2 1 2 0 8 0 kqueuepl 104 3770 0 3768 4 0 4 4 0 8 3 pipepl 112 2974 0 2955 9 8 1 2 0 8 0 fdescpl 424 6182 0 6168 2 0 2 2 0 8 0 filepl 120 64746 0 64648 67 57 10 11 0 8 7 lockfpl 104 2051 0 2050 1 0 1 1 0 8 0 lockfspl 48 679 0 678 1 0 1 1 0 8 0 sessionpl 112 56 0 46 1 0 1 1 0 8 0 pgrppl 48 90 0 80 1 0 1 1 0 8 0 ucredpl 96 9038 0 9030 1 0 1 1 0 8 0 zombiepl 144 6173 0 6173 4 3 1 1 0 8 1 processpl 864 6203 0 6173 4 0 4 4 0 8 0 procpl 632 13318 0 13280 5 1 4 5 0 8 0 sosppl 128 62 0 62 15 15 0 1 0 8 0 sockpl 384 16096 0 16070 126 114 12 22 0 8 8 mcl64k 65536 1337 0 1337 106 105 1 33 0 8 1 mcl16k 16384 89 0 89 18 18 0 1 0 8 0 mcl12k 12288 164 0 164 14 13 1 1 0 8 1 mcl9k 9216 102 0 102 18 17 1 1 0 8 1 mcl8k 8192 281 0 281 7 6 1 1 0 8 1 mcl4k 4096 1216 0 1216 6 5 1 1 0 8 1 mcl2k2 2112 61 0 61 20 19 1 1 0 8 1 mcl2k 2048 65536 0 65490 18 11 7 14 0 8 0 mtagpl 80 251 0 248 5 4 1 1 0 8 0 mbufpl 256 151795 0 151659 84 75 9 24 0 8 0 bufpl 256 31469 0 22872 538 0 538 538 0 8 0 anonpl 16 704445 0 688645 235 166 69 83 0 62 0 amapchunkpl 152 31936 0 31832 108 102 6 15 0 158 0 amappl16 192 34362 0 33479 230 184 46 58 0 8 0 amappl15 184 666 0 664 1 0 1 1 0 8 0 amappl14 176 1472 0 1466 2 1 1 1 0 8 0 amappl13 168 128 0 128 4 4 0 1 0 8 0 amappl12 160 1576 0 1573 1 0 1 1 0 8 0 amappl11 152 421 0 410 1 0 1 1 0 8 0 amappl10 144 1737 0 1735 1 0 1 1 0 8 0 amappl9 136 1195 0 1187 1 0 1 1 0 8 0 amappl8 128 722 0 678 2 0 2 2 0 8 0 amappl7 120 1905 0 1896 1 0 1 1 0 8 0 amappl6 112 333 0 324 1 0 1 1 0 8 0 amappl5 104 2037 0 2027 1 0 1 1 0 8 0 amappl4 96 5125 0 5098 1 0 1 1 0 8 0 amappl3 88 2842 0 2837 1 0 1 1 0 8 0 amappl2 80 47154 0 47087 3 1 2 3 0 8 0 amappl1 72 124594 0 124190 28 19 9 20 0 8 0 amappl 80 14093 0 14058 2 0 2 2 0 84 0 dma4096 4096 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 139 0 10 3 0 3 3 0 8 0 uaddrrnd 24 6214 0 6168 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6214 0 6168 1 0 1 1 0 8 0 vmmpekpl 168 40068 0 40043 2 0 2 2 0 8 0 vmmpepl 168 746415 0 744469 359 248 111 123 0 357 17 vmsppl 272 6181 0 6168 5 4 1 2 0 8 0 pdppl 4096 12434 0 12400 6 1 5 6 0 8 0 pvpl 32 2086331 0 2067385 542 369 173 293 0 265 11 pmappl 200 6213 0 6200 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 961 0 283 24 3 21 21 0 8 0