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 *381210 20164 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(ffff800014f23590) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff80001596e000,fffffd803e95a158,10,ffff800000025490,ffff800014f237f8) at alltraps_kern_meltdown+0x7b 0(b,ffff800014f23758,83,ffff800014f237f8,0,b) at 0 rt_match(fffffd803a4254e0,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803a4254e0,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff800014f238d0,fffffd803c510720,fffffd803a425460) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd803a425460,fffffd803c510700) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd802aafbc58,4,0,fffffd803c510700,0,ffff800014915650) at tcp_usrreq+0xada sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800014915650,ffff800014f23a78,ffff800014f23ac0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800014f23b40) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,e17ce10d010) at Xsyscall+0x128 end of kernel end trace frame: 0xe1a97c6bdc0, 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(ffff800014f23590) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff80001596e000,fffffd803e95a158,10,ffff800000025490,ffff800014f237f8) at alltraps_kern_meltdown+0x7b 0(b,ffff800014f23758,83,ffff800014f237f8,0,b) at 0 rt_match(fffffd803a4254e0,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803a4254e0,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff800014f238d0,fffffd803c510720,fffffd803a425460) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd803a425460,fffffd803c510700) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd802aafbc58,4,0,fffffd803c510700,0,ffff800014915650) at tcp_usrreq+0xada sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800014915650,ffff800014f23a78,ffff800014f23ac0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800014f23b40) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,e17ce10d010) at Xsyscall+0x128 end of kernel end trace frame: 0xe1a97c6bdc0, count: -13 ddb> show registers rdi 0xffffffff812241d7 db_enter+0x17 rsi 0x2263 __ALIGN_SIZE+0x1263 rbp 0xffff800014f23400 rbx 0xffff800014f234b0 rdx 0x2264 __ALIGN_SIZE+0x1264 rcx 0xffff80001596e000 rax 0xffff80001596e000 r8 0xffff800014f233c0 r9 0x1 r10 0xffff800000a63b00 r11 0x837277c55d219179 r12 0x3000000008 r13 0xffff800014f23410 r14 0x100 r15 0x1 rip 0xffffffff812241d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014f233f0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=381210 stat=onproc flags process=0 proc=4000000 pri=77, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff8000149153d8,0xffffffff825686e0 process=0xffff8000ffff70f0 user=0xffff800014f1e000, vmspace=0xfffffd803f013110 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 20164 201675 29499 0 2 0 syz-executor.1 *20164 381210 29499 0 7 0x4000000 syz-executor.1 86861 381604 58483 0 3 0x82 nanosleep syz-executor.0 29499 181522 58483 0 3 0x82 nanosleep syz-executor.1 78600 477946 0 0 3 0x14200 bored sosplice 58483 261028 13375 0 3 0x82 thrsleep syz-fuzzer 58483 93059 13375 0 3 0x4000082 nanosleep syz-fuzzer 58483 234488 13375 0 3 0x4000082 thrsleep syz-fuzzer 58483 392266 13375 0 3 0x4000082 thrsleep syz-fuzzer 58483 12098 13375 0 3 0x4000082 thrsleep syz-fuzzer 58483 59252 13375 0 3 0x4000082 thrsleep syz-fuzzer 58483 65378 13375 0 3 0x4000082 thrsleep syz-fuzzer 58483 208975 13375 0 3 0x4000082 kqread syz-fuzzer 13375 337753 45974 0 3 0x10008a pause ksh 45974 352435 87548 0 3 0x92 select sshd 91925 393449 1 0 3 0x100083 ttyopn getty 87548 238447 1 0 3 0x80 select sshd 61317 25281 82679 73 3 0x100090 kqread syslogd 82679 274643 1 0 3 0x100082 netio syslogd 70282 234908 1 77 3 0x100090 poll dhclient 50719 174793 1 0 3 0x80 poll dhclient 89857 484794 0 0 2 0x14200 zerothread 7331 63061 0 0 3 0x14200 aiodoned aiodoned 6092 269650 0 0 3 0x14200 syncer update 75514 189166 0 0 3 0x14200 cleaner cleaner 17641 121080 0 0 3 0x14200 reaper reaper 81560 182885 0 0 3 0x14200 pgdaemon pagedaemon 80494 146994 0 0 3 0x14200 bored crynlk 51208 293864 0 0 3 0x14200 bored crypto 58162 370171 0 0 3 0x40014200 acpi0 acpi0 93266 5091 0 0 3 0x14200 bored softnet 2135 246278 0 0 3 0x14200 bored systqmp 76585 284625 0 0 3 0x14200 bored systq 70940 237181 0 0 3 0x40014200 bored softclock 27554 442680 0 0 3 0x40014200 idle0 16304 35006 0 0 3 0x14200 bored smr 1 283071 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 9607 7048K 8356K 78643K 25723 0 0 pcb 13 13K 15K 78643K 1605 0 0 rtable 130 8K 9K 78643K 4474 0 0 ifaddr 95 25K 28K 78643K 1373 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 388 0 0 iov 0 0K 32K 78643K 1724 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1232 77K 78K 78643K 7077 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 130 0 0 VM map 2 0K 0K 78643K 32 0 0 sem 12 0K 0K 78643K 2719 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 7722 0 0 sigio 0 0K 0K 78643K 86 0 0 proc 51 38K 63K 78643K 2547 0 0 subproc 32 2K 2K 78643K 599 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 422 0 0 in_multi 35 2K 3K 78643K 778 0 0 ether_multi 1 0K 0K 78643K 28 0 0 mrt 0 0K 0K 78643K 39 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 186 821K 821K 78643K 186 0 0 exec 0 0K 1K 78643K 1487 0 0 pfkey data 0 0K 0K 78643K 6 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 121 23K 32K 78643K 19893 0 0 UVM aobj 130 6K 6K 78643K 150 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 1661 0 0 NDP 22 0K 0K 78643K 443 0 0 temp 240 3537K 4177K 78643K 152718 0 0 kqueue 0 0K 0K 78643K 49 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 140 0 133 1 0 1 1 0 8 0 rtpcb 80 409 0 407 1 0 1 1 0 8 0 rtentry 112 788 0 739 2 0 2 2 0 8 0 unpcb 120 3032 0 3019 4 3 1 2 0 8 0 syncache 264 38 0 38 17 17 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 7773 0 7773 7 7 0 1 0 8 0 tcpcb 544 3222 0 3217 60 59 1 15 0 8 0 ipq 40 54 0 54 20 20 0 1 0 8 0 ipqe 40 119 0 119 20 20 0 1 0 8 0 inpcb 280 10319 0 10311 65 63 2 13 0 8 1 rttmr 72 14 0 13 9 8 1 1 0 8 0 ip6q 72 2 0 2 2 2 0 1 0 8 0 ip6af 40 4 0 4 2 2 0 1 0 8 0 nd6 48 109 0 106 7 6 1 1 0 8 0 pkpcb 40 32 0 32 11 11 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 181 0 181 25 24 1 1 0 8 1 art_heap8 4096 8 0 7 5 4 1 3 0 8 0 art_heap4 256 3340 0 3073 46 28 18 19 0 8 0 art_table 32 3348 0 3080 3 0 3 3 0 8 0 art_node 16 777 0 732 1 0 1 1 0 8 0 sysvmsgpl 40 14 0 11 1 0 1 1 0 8 0 semapl 112 2715 0 2705 1 0 1 1 0 8 0 shmpl 112 148 0 20 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 15130 0 13714 46 0 46 46 0 8 0 ffsino 240 15130 0 13714 84 0 84 84 0 8 0 nchpl 144 27469 0 25837 61 0 61 61 0 8 0 uvmvnodes 72 8543 0 0 156 0 156 156 0 8 0 vnodes 208 8543 0 0 450 0 450 450 0 8 0 namei 1024 97653 0 97653 4 3 1 1 0 8 1 vmpool 520 30 0 30 12 12 0 1 0 8 0 scsiplug 64 10 0 10 9 9 0 1 0 8 0 scxspl 192 97324 0 97324 48 47 1 7 0 8 1 plimitpl 152 670 0 663 1 0 1 1 0 8 0 sigapl 432 7794 0 7781 2 0 2 2 0 8 0 futexpl 56 206969 0 206969 2 1 1 1 0 8 1 knotepl 112 1703 0 1684 1 0 1 1 0 8 0 kqueuepl 104 2356 0 2354 13 12 1 4 0 8 0 pipepl 112 4046 0 4027 13 12 1 2 0 8 0 fdescpl 424 7795 0 7781 2 0 2 2 0 8 0 filepl 120 66740 0 66644 51 47 4 11 0 8 0 lockfpl 104 2808 0 2807 1 0 1 1 0 8 0 lockfspl 48 881 0 880 1 0 1 1 0 8 0 sessionpl 112 50 0 40 1 0 1 1 0 8 0 pgrppl 48 108 0 98 1 0 1 1 0 8 0 ucredpl 96 8409 0 8402 1 0 1 1 0 8 0 zombiepl 144 7785 0 7784 3 2 1 1 0 8 0 processpl 864 7814 0 7784 4 0 4 4 0 8 0 procpl 632 17262 0 17224 7 3 4 5 0 8 0 sosppl 128 109 0 109 27 27 0 1 0 8 0 sockpl 384 13971 0 13948 97 93 4 22 0 8 1 mcl64k 65536 3270 0 3270 260 259 1 33 0 8 1 mcl16k 16384 79 0 79 29 29 0 1 0 8 0 mcl12k 12288 182 0 182 22 21 1 1 0 8 1 mcl9k 9216 120 0 120 26 25 1 1 0 8 1 mcl8k 8192 369 0 369 11 10 1 1 0 8 1 mcl4k 4096 841 0 841 4 3 1 1 0 8 1 mcl2k2 2112 78 0 78 28 27 1 1 0 8 1 mcl2k 2048 67215 0 67174 31 25 6 18 0 8 0 mtagpl 80 97 0 97 4 4 0 1 0 8 0 mbufpl 256 181476 0 181369 200 192 8 36 0 8 0 bufpl 256 38060 0 29510 536 1 535 535 0 8 0 anonpl 16 1047568 0 1032333 268 192 76 81 0 62 7 amapchunkpl 152 44418 0 44314 162 150 12 15 0 158 7 amappl16 192 51100 0 50199 359 309 50 58 0 8 4 amappl15 184 1569 0 1568 1 0 1 1 0 8 0 amappl14 176 1596 0 1588 2 1 1 1 0 8 0 amappl13 168 576 0 576 3 3 0 1 0 8 0 amappl12 160 1194 0 1194 8 8 0 1 0 8 0 amappl11 152 1638 0 1626 1 0 1 1 0 8 0 amappl10 144 401 0 400 1 0 1 1 0 8 0 amappl9 136 1639 0 1632 1 0 1 1 0 8 0 amappl8 128 1178 0 1136 2 0 2 2 0 8 0 amappl7 120 526 0 517 1 0 1 1 0 8 0 amappl6 112 1545 0 1531 1 0 1 1 0 8 0 amappl5 104 1640 0 1631 1 0 1 1 0 8 0 amappl4 96 7611 0 7582 1 0 1 1 0 8 0 amappl3 88 2393 0 2384 1 0 1 1 0 8 0 amappl2 80 60879 0 60813 4 2 2 3 0 8 0 amappl1 72 148638 0 148223 28 19 9 20 0 8 0 amappl 80 18163 0 18128 1 0 1 1 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 149 0 20 3 0 3 3 0 8 0 uaddrrnd 24 7825 0 7781 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7825 0 7781 1 0 1 1 0 8 0 vmmpekpl 168 47586 0 47559 2 0 2 2 0 8 0 vmmpepl 168 940495 0 938515 460 340 120 126 0 357 26 vmsppl 272 7794 0 7781 5 4 1 2 0 8 0 pdppl 4096 15656 0 15622 6 1 5 6 0 8 0 pvpl 32 2808941 0 2790593 664 477 187 288 0 265 28 pmappl 200 7824 0 7811 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1286 0 620 21 0 21 21 0 8 0