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 *372672 77476 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(ffff8000189741d0) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff80001490b000,fffffd802cdf2ee8,10,ffff80000005b8e0,ffff800018974438) at alltraps_kern_meltdown+0x7b 0(b,ffff800018974398,83,ffff800018974438,0,b) at 0 rt_match(fffffd803b6b6dc0,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803b6b6dc0,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff800018974510,fffffd803b8b3220,fffffd803b6b6d40) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd803b6b6d40,fffffd803b8b3200) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd80309631b0,4,0,fffffd803b8b3200,0,ffff8000ffff2508) at tcp_usrreq+0xada sys/netinet/tcp_usrreq.c:228 sys_connect(ffff8000ffff2508,ffff8000189746b8,ffff800018974700) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800018974780) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,8b69387c010) at Xsyscall+0x128 end of kernel end trace frame: 0x8b9690e5540, 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(ffff8000189741d0) at kerntrap+0xdb sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff80001490b000,fffffd802cdf2ee8,10,ffff80000005b8e0,ffff800018974438) at alltraps_kern_meltdown+0x7b 0(b,ffff800018974398,83,ffff800018974438,0,b) at 0 rt_match(fffffd803b6b6dc0,0,1,0) at rt_match+0xbe rt_clone sys/net/route.c:266 [inline] rt_match(fffffd803b6b6dc0,0,1,0) at rt_match+0xbe sys/net/route.c:242 in_pcbselsrc(ffff800018974510,fffffd803b8b3220,fffffd803b6b6d40) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd803b6b6d40,fffffd803b8b3200) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd80309631b0,4,0,fffffd803b8b3200,0,ffff8000ffff2508) at tcp_usrreq+0xada sys/netinet/tcp_usrreq.c:228 sys_connect(ffff8000ffff2508,ffff8000189746b8,ffff800018974700) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800018974780) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,8b69387c010) at Xsyscall+0x128 end of kernel end trace frame: 0x8b9690e5540, count: -13 ddb> show registers rdi 0xffffffff81ed85e7 db_enter+0x17 rsi 0x2328 __ALIGN_SIZE+0x1328 rbp 0xffff800018974040 rbx 0xffff8000189740f0 rdx 0x2329 __ALIGN_SIZE+0x1329 rcx 0xffff80001490b000 rax 0xffff80001490b000 r8 0xffff800018974000 r9 0x1 r10 0xffff800000a6bf40 r11 0x38bd37d4ffac3255 r12 0x3000000008 r13 0xffff800018974050 r14 0x100 r15 0x1 rip 0xffffffff81ed85e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800018974030 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=372672 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff3160,0xffffffff8257fc40 process=0xffff8000ffff6370 user=0xffff80001896f000, vmspace=0xfffffd803f014990 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 77476 412564 35184 0 2 0 syz-executor.1 *77476 372672 35184 0 7 0x4000000 syz-executor.1 32593 201053 67858 0 3 0x80 nanosleep syz-executor.0 32593 445247 67858 0 3 0x4000080 ttyin syz-executor.0 32593 2777 67858 0 3 0x4000080 fsleep syz-executor.0 50650 233980 0 0 3 0x14200 acct acct 35184 138625 18332 0 3 0x82 nanosleep syz-executor.1 67858 370625 18332 0 3 0x82 nanosleep syz-executor.0 10162 58353 1 0 3 0x100083 ttyin getty 75612 458015 0 0 3 0x14200 bored sosplice 18332 472845 35211 0 3 0x82 thrsleep syz-fuzzer 18332 245366 35211 0 3 0x4000082 nanosleep syz-fuzzer 18332 57666 35211 0 3 0x4000082 thrsleep syz-fuzzer 18332 77826 35211 0 3 0x4000082 thrsleep syz-fuzzer 18332 400522 35211 0 3 0x4000082 thrsleep syz-fuzzer 18332 510619 35211 0 3 0x4000082 kqread syz-fuzzer 18332 227280 35211 0 3 0x4000082 thrsleep syz-fuzzer 18332 488814 35211 0 3 0x4000082 thrsleep syz-fuzzer 35211 514595 81865 0 3 0x10008a pause ksh 81865 6027 68974 0 3 0x92 select sshd 68974 4665 1 0 3 0x80 select sshd 59715 348309 45987 73 3 0x100090 kqread syslogd 45987 289816 1 0 3 0x100082 netio syslogd 55777 108339 1 77 3 0x100090 poll dhclient 11362 152950 1 0 3 0x80 poll dhclient 64409 128887 0 0 2 0x14200 zerothread 77712 378558 0 0 3 0x14200 aiodoned aiodoned 96580 429891 0 0 3 0x14200 syncer update 22871 190871 0 0 3 0x14200 cleaner cleaner 2505 338785 0 0 3 0x14200 reaper reaper 63836 345139 0 0 3 0x14200 pgdaemon pagedaemon 5998 465937 0 0 3 0x14200 bored crynlk 1652 147044 0 0 3 0x14200 bored crypto 71251 385184 0 0 3 0x40014200 acpi0 acpi0 53761 371058 0 0 3 0x14200 bored softnet 48687 2664 0 0 3 0x14200 bored systqmp 46831 457133 0 0 3 0x14200 bored systq 65281 347432 0 0 3 0x40014200 bored softclock 53460 277949 0 0 3 0x40014200 idle0 37859 262997 0 0 3 0x14200 bored smr 1 515776 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 9610 7032K 7423K 78643K 17749 0 0 pcb 13 12K 14K 78643K 770 0 0 rtable 140 13K 14K 78643K 2725 0 0 ifaddr 103 22K 22K 78643K 758 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 124 0 0 iov 0 0K 32K 78643K 864 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1202 75K 77K 78643K 4220 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 74 0 0 VM map 2 0K 0K 78643K 22 0 0 sem 12 0K 0K 78643K 464 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 4306 0 0 sigio 0 0K 0K 78643K 37 0 0 proc 50 38K 63K 78643K 1603 0 0 subproc 32 2K 2K 78643K 391 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 175 0 0 in_multi 34 2K 2K 78643K 396 0 0 ether_multi 1 0K 0K 78643K 4 0 0 mrt 0 0K 0K 78643K 21 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 108 477K 477K 78643K 108 0 0 exec 0 0K 1K 78643K 891 0 0 pfkey data 0 0K 0K 78643K 2 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 113 22K 31K 78643K 11215 0 0 UVM aobj 130 4K 4K 78643K 141 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 766 0 0 NDP 25 0K 1K 78643K 237 0 0 temp 261 3537K 4178K 78643K 88718 0 0 kqueue 0 0K 0K 78643K 46 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 116 0 108 1 0 1 1 0 8 0 rtpcb 80 530 0 528 1 0 1 1 0 8 0 rtentry 112 475 0 424 3 1 2 3 0 8 0 unpcb 120 1499 0 1482 4 3 1 2 0 8 0 syncache 264 19 0 19 8 8 0 1 0 8 0 tcpqe 32 7085 0 7085 3 3 0 1 0 8 0 tcpcb 544 1323 0 1318 18 17 1 15 0 8 0 ipq 40 26 0 26 7 7 0 1 0 8 0 ipqe 40 60 0 60 7 7 0 1 0 8 0 inpcb 280 4576 0 4566 32 30 2 13 0 8 0 rttmr 72 8 0 8 6 5 1 1 0 8 1 nd6 48 58 0 54 4 3 1 1 0 8 0 pkpcb 40 24 0 24 7 7 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 97 0 97 19 18 1 1 0 8 1 art_heap8 4096 20 0 19 12 11 1 3 0 8 0 art_heap4 256 2032 0 1795 42 26 16 22 0 8 1 art_table 32 2052 0 1814 5 2 3 3 0 8 1 art_node 16 465 0 419 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 14 1 0 1 1 0 8 0 semapl 112 462 0 452 1 0 1 1 0 8 0 shmpl 112 139 0 11 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 7906 0 6507 46 0 46 46 0 8 0 ffsino 240 7906 0 6507 83 0 83 83 0 8 0 nchpl 144 16184 0 14581 61 1 60 61 0 8 0 uvmvnodes 72 7656 0 0 140 0 140 140 0 8 0 vnodes 208 7656 0 0 403 0 403 403 0 8 0 namei 1024 51546 0 51546 6 5 1 1 0 8 1 vmpool 520 20 0 20 8 8 0 1 0 8 0 scsiplug 64 6 0 6 5 5 0 1 0 8 0 scxspl 192 57078 0 57078 29 26 3 7 0 8 3 plimitpl 152 334 0 327 1 0 1 1 0 8 0 sigapl 432 4415 0 4401 2 0 2 2 0 8 0 futexpl 56 97156 0 97155 5 4 1 1 0 8 0 knotepl 112 971 0 952 2 1 1 2 0 8 0 kqueuepl 104 1057 0 1055 4 3 1 4 0 8 0 pipepl 112 2202 0 2181 8 7 1 2 0 8 0 fdescpl 424 4416 0 4401 2 0 2 2 0 8 0 filepl 120 34370 0 34266 25 21 4 11 0 8 0 lockfpl 104 1536 0 1535 1 0 1 1 0 8 0 lockfspl 48 517 0 516 1 0 1 1 0 8 0 sessionpl 112 39 0 29 1 0 1 1 0 8 0 pgrppl 48 57 0 47 1 0 1 1 0 8 0 ucredpl 96 4420 0 4413 1 0 1 1 0 8 0 zombiepl 144 4408 0 4408 4 3 1 1 0 8 1 processpl 864 4439 0 4408 4 0 4 4 0 8 0 procpl 632 9441 0 9400 4 0 4 4 0 8 0 sosppl 128 59 0 59 15 15 0 1 0 8 0 sockpl 384 6668 0 6641 47 43 4 22 0 8 0 mcl64k 65536 1572 0 1572 108 77 31 33 0 8 31 mcl16k 16384 44 0 44 19 18 1 1 0 8 1 mcl12k 12288 98 0 98 13 12 1 1 0 8 1 mcl9k 9216 73 0 73 14 13 1 1 0 8 1 mcl8k 8192 109 0 107 12 11 1 1 0 8 0 mcl4k 4096 532 0 532 8 7 1 1 0 8 1 mcl2k2 2112 32 0 32 14 14 0 1 0 8 0 mcl2k 2048 57789 0 57745 23 16 7 14 0 8 0 mtagpl 80 161 0 153 7 6 1 1 0 8 0 mbufpl 256 144566 0 144454 141 123 18 31 0 8 8 bufpl 256 24057 0 16404 479 0 479 479 0 8 0 anonpl 16 529039 0 513675 192 117 75 92 0 62 3 amapchunkpl 152 22955 0 22841 88 82 6 19 0 158 1 amappl16 192 26515 0 25619 208 155 53 58 0 8 8 amappl15 184 290 0 290 5 4 1 1 0 8 1 amappl14 176 385 0 382 2 1 1 1 0 8 0 amappl13 168 1448 0 1445 1 0 1 1 0 8 0 amappl12 160 26 0 24 1 0 1 1 0 8 0 amappl11 152 427 0 414 1 0 1 1 0 8 0 amappl10 144 1015 0 1012 1 0 1 1 0 8 0 amappl9 136 1452 0 1446 1 0 1 1 0 8 0 amappl8 128 930 0 896 2 0 2 2 0 8 0 amappl7 120 1124 0 1117 1 0 1 1 0 8 0 amappl6 112 410 0 399 1 0 1 1 0 8 0 amappl5 104 325 0 315 1 0 1 1 0 8 0 amappl4 96 5237 0 5204 1 0 1 1 0 8 0 amappl3 88 559 0 554 1 0 1 1 0 8 0 amappl2 80 34035 0 33959 4 2 2 3 0 8 0 amappl1 72 89049 0 88614 29 20 9 20 0 8 0 amappl 80 10023 0 9983 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 140 0 11 3 0 3 3 0 8 0 uaddrrnd 24 4436 0 4401 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4436 0 4401 1 0 1 1 0 8 0 vmmpekpl 168 28611 0 28587 2 0 2 2 0 8 0 vmmpepl 168 534788 0 532714 350 231 119 123 0 357 28 vmsppl 272 4415 0 4401 5 4 1 2 0 8 0 pdppl 4096 8878 0 8842 7 2 5 6 0 8 0 pvpl 32 1558522 0 1539927 580 326 254 294 0 265 91 pmappl 200 4435 0 4421 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 968 0 319 20 1 19 19 0 8 0