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 * 10484 48642 0 0 0x4000000 1K syz-executor.1 136732 106 0 0x2 0x4000000 0 syz-fuzzer 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+0x40b kerntrap(ffff800020b5b1d0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020b64000,fffffd8063e185b8,10,ffff800000025370,ffff800020b5b438) at alltraps_kern_meltdown+0x7b 0(b,ffff800020b5b398,83,ffff800020b5b438,0,b) at 0 rt_clone(ffff800020b5b4a8,fffffd806f6c8b70,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6c8b70,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6c8b70,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800020b5b580,fffffd806218f620,fffffd806f6c8af0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6c8af0,fffffd806218f600) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8062293c68,4,0,fffffd806218f600,0,ffff800020acf3e0) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020acf3e0,ffff800020b5b728,ffff800020b5b770) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800020b5b7f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b5b7f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,410b1c6010) at Xsyscall+0x128 end of kernel end trace frame: 0x43fa08f380, count: 1 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic attempt to execute user address 0x0 in supervisor mode ddb{1}> 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+0x40b kerntrap(ffff800020b5b1d0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020b64000,fffffd8063e185b8,10,ffff800000025370,ffff800020b5b438) at alltraps_kern_meltdown+0x7b 0(b,ffff800020b5b398,83,ffff800020b5b438,0,b) at 0 rt_clone(ffff800020b5b4a8,fffffd806f6c8b70,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6c8b70,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6c8b70,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800020b5b580,fffffd806218f620,fffffd806f6c8af0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6c8af0,fffffd806218f600) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8062293c68,4,0,fffffd806218f600,0,ffff800020acf3e0) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020acf3e0,ffff800020b5b728,ffff800020b5b770) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800020b5b7f0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b5b7f0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,410b1c6010) at Xsyscall+0x128 end of kernel end trace frame: 0x43fa08f380, count: -14 ddb{1}> show registers rdi 0xffffffff818c8e87 db_enter+0x17 rsi 0x23cb __ALIGN_SIZE+0x13cb rbp 0xffff800020b5b040 rbx 0xffff800020b5b0f0 rdx 0x23cc __ALIGN_SIZE+0x13cc rcx 0xffff800020b64000 rax 0xffff800020b64000 r8 0xffffffff81ad2b6f kprintf+0x16f r9 0x1 r10 0x25 r11 0xf74df6df6a09af11 r12 0x3000000008 r13 0xffff800020b5b050 r14 0x100 r15 0x1 rip 0xffffffff818c8e88 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b5b030 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=10484 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020acec78,0xffffffff8265a258 process=0xffff800020a8aa90 user=0xffff800020b56000, vmspace=0xfffffd807f007cf0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 48642 7171 16718 0 2 0 syz-executor.1 *48642 10484 16718 0 7 0x4000000 syz-executor.1 8974 126452 106 0 2 0x2 syz-executor.0 16718 231831 106 0 3 0x82 nanosleep syz-executor.1 61457 506073 1 0 3 0x100083 ttyin getty 54677 227043 0 0 3 0x14200 acct acct 40368 325299 0 0 3 0x14200 bored sosplice 106 132635 43276 0 3 0x82 thrsleep syz-fuzzer 106 459192 43276 0 3 0x4000082 nanosleep syz-fuzzer 106 323566 43276 0 3 0x4000082 thrsleep syz-fuzzer 106 309952 43276 0 3 0x4000082 kqread syz-fuzzer 106 121208 43276 0 3 0x4000082 thrsleep syz-fuzzer 106 496112 43276 0 3 0x4000082 thrsleep syz-fuzzer 106 203146 43276 0 3 0x4000082 thrsleep syz-fuzzer 106 136732 43276 0 7 0x4000002 syz-fuzzer 106 178844 43276 0 3 0x4000082 thrsleep syz-fuzzer 106 493139 43276 0 3 0x4000082 thrsleep syz-fuzzer 106 76501 43276 0 3 0x4000082 thrsleep syz-fuzzer 43276 201612 25320 0 3 0x10008a pause ksh 25320 293917 86603 0 3 0x92 select sshd 86603 412824 1 0 3 0x80 select sshd 77804 325015 32108 74 3 0x100092 bpf pflogd 32108 287698 1 0 3 0x80 netio pflogd 54851 109867 66868 73 3 0x100090 kqread syslogd 66868 133990 1 0 3 0x100082 netio syslogd 32932 38196 1 77 3 0x100090 poll dhclient 3337 49735 1 0 3 0x80 poll dhclient 92330 225606 0 0 3 0x14200 pgzero zerothread 74999 13037 0 0 3 0x14200 aiodoned aiodoned 70173 362031 0 0 3 0x14200 syncer update 23546 142354 0 0 3 0x14200 cleaner cleaner 20507 346512 0 0 3 0x14200 reaper reaper 74578 259564 0 0 3 0x14200 pgdaemon pagedaemon 23382 245853 0 0 3 0x14200 bored crynlk 54202 85476 0 0 3 0x14200 bored crypto 90228 263626 0 0 3 0x40014200 acpi0 acpi0 36094 151320 0 0 3 0x40014200 idle1 75424 521660 0 0 3 0x14200 bored softnet 97678 292126 0 0 3 0x14200 bored systqmp 4365 121410 0 0 3 0x14200 bored systq 67023 106427 0 0 3 0x40014200 bored softclock 39947 86153 0 0 3 0x40014200 idle0 99936 161296 0 0 3 0x14200 bored smr 1 155444 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 48642 (syz-executor.1) thread 0xffff800020acf3e0 (10484) exclusive rwlock netlock r = 0 (0xffffffff824d1b18) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 solock+0x5a sys/kern/uipc_socket2.c:282 #2 sys_connect+0x6b sys/kern/uipc_syscalls.c:362 #3 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #3 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #4 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 2 (0xffffffff8265b1d8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:555 #2 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9607 7291K 7319K 78643K 13889 0 0 pcb 13 8K 8K 78643K 299 0 0 rtable 104 5K 6K 78643K 1476 0 0 ifaddr 77 16K 17K 78643K 373 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1541 0 0 iov 0 0K 16K 78643K 295 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1226 77K 77K 78643K 2611 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 35 0 0 VM map 9 4K 4K 78643K 12 0 0 sem 12 0K 1K 78643K 272 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1809 196K 290K 78643K 12766 0 0 file desc 5 13K 25K 78643K 1642 0 0 sigio 0 0K 0K 78643K 18 0 0 proc 61 63K 95K 78643K 1353 0 0 subproc 32 2K 2K 78643K 340 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 211 0 0 in_multi 23 1K 2K 78643K 354 0 0 ether_multi 1 0K 0K 78643K 24 0 0 mrt 0 0K 0K 78643K 12 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 561 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 142 89K 92K 78643K 6689 0 0 UVM aobj 126 3K 3K 78643K 128 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 2K 78643K 353 0 0 NDP 19 0K 0K 78643K 133 0 0 temp 221 3560K 4200K 78643K 83581 0 0 kqueue 0 0K 0K 78643K 255 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 55 0 49 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 119 0 117 1 0 1 1 0 8 0 rtentry 112 301 0 262 2 0 2 2 0 8 0 unpcb 120 830 0 820 1 0 1 1 0 8 0 syncache 264 11 0 11 4 4 0 1 0 8 0 tcpqe 32 100 0 100 2 2 0 1 0 8 0 tcpcb 544 664 0 659 3 2 1 2 0 8 0 inpcb 280 2370 0 2362 6 4 2 3 0 8 1 rttmr 72 2 0 2 2 2 0 1 0 8 0 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 6 0 6 1 1 0 1 0 8 0 nd6 48 49 0 47 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 29 0 29 6 5 1 1 0 8 1 pffrag 232 30 0 30 6 6 0 1 0 482 0 pffrnode 88 30 0 30 6 6 0 1 0 8 0 pffrent 40 1092 0 1092 6 6 0 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 133 0 106 1 0 1 1 0 8 0 pfstkey 112 133 0 106 2 0 2 2 0 8 0 pfstate 328 133 0 106 5 0 5 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1360 0 1171 19 4 15 15 0 8 0 art_table 32 1361 0 1171 2 0 2 2 0 8 0 art_node 16 298 0 262 1 0 1 1 0 8 0 sysvmsgpl 40 47 0 7 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 270 0 260 1 0 1 1 0 8 0 shmpl 112 126 0 2 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3675 0 2264 46 0 46 46 0 8 0 ffsino 272 3675 0 2264 95 0 95 95 0 8 0 nchpl 144 7049 0 6612 61 41 20 61 0 8 0 uvmvnodes 72 4800 0 0 88 0 88 88 0 8 0 vnodes 208 4800 0 0 253 0 253 253 0 8 0 namei 1024 23777 0 23777 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 7 0 0 1 0 1 1 0 8 0 vmpool 552 10 0 3 1 0 1 1 0 8 0 scxspl 192 19749 0 19749 14 13 1 7 0 8 1 plimitpl 152 147 0 139 1 0 1 1 0 8 0 sigapl 432 1788 0 1773 3 1 2 3 0 8 0 futexpl 56 38359 0 38359 1 0 1 1 0 8 1 knotepl 112 1504 0 1485 14 11 3 3 0 8 2 kqueuepl 104 1499 0 1497 8 6 2 2 0 8 1 pipepl 112 1120 0 1101 5 4 1 2 0 8 0 fdescpl 488 1789 0 1773 3 0 3 3 0 8 0 filepl 152 17022 0 16920 27 19 8 11 0 8 3 lockfpl 104 542 0 541 1 0 1 1 0 8 0 lockfspl 48 185 0 184 1 0 1 1 0 8 0 sessionpl 112 38 0 27 1 0 1 1 0 8 0 pgrppl 48 42 0 31 1 0 1 1 0 8 0 ucredpl 96 1440 0 1431 1 0 1 1 0 8 0 zombiepl 144 1773 0 1773 1 0 1 1 0 8 1 processpl 896 1806 0 1773 4 0 4 4 0 8 0 procpl 632 5054 0 5010 5 0 5 5 0 8 0 srpgc 64 34 0 34 6 6 0 1 0 8 0 sosppl 128 20 0 20 4 4 0 1 0 8 0 sockpl 384 3348 0 3328 17 12 5 6 0 8 2 mcl64k 65536 26 0 0 3 0 3 3 0 8 0 mcl16k 16384 14 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 7 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 172 0 0 21 0 21 21 0 8 0 mtagpl 80 42 0 0 1 0 1 1 0 8 0 mbufpl 256 544 0 0 32 0 32 32 0 8 0 bufpl 256 10720 0 3662 442 0 442 442 0 8 0 anonpl 16 231487 0 211360 129 31 98 99 0 124 15 amapchunkpl 152 13588 0 13418 30 18 12 14 0 158 4 amappl16 192 9518 0 8383 106 40 66 69 0 8 8 amappl15 184 263 0 263 2 2 0 1 0 8 0 amappl14 176 312 0 304 1 0 1 1 0 8 0 amappl13 168 13 0 13 2 2 0 1 0 8 0 amappl12 160 23 0 20 1 0 1 1 0 8 0 amappl11 152 165 0 150 1 0 1 1 0 8 0 amappl10 144 502 0 494 1 0 1 1 0 8 0 amappl9 136 1276 0 1273 1 0 1 1 0 8 0 amappl8 128 834 0 787 2 0 2 2 0 8 0 amappl7 120 616 0 606 1 0 1 1 0 8 0 amappl6 112 111 0 100 1 0 1 1 0 8 0 amappl5 104 319 0 306 1 0 1 1 0 8 0 amappl4 96 2110 0 2078 1 0 1 1 0 8 0 amappl3 88 310 0 305 1 0 1 1 0 8 0 amappl2 80 12519 0 12443 3 1 2 3 0 8 0 amappl1 72 51307 0 50863 25 15 10 20 0 8 0 amappl 80 5625 0 5570 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 18 0 17 1 0 1 1 0 8 0 aobjpl 64 127 0 2 3 0 3 3 0 8 0 uaddrrnd 24 1799 0 1773 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1799 0 1773 1 0 1 1 0 8 0 vmmpekpl 168 18225 0 18189 3 1 2 2 0 8 0 vmmpepl 168 243604 0 241249 201 74 127 152 0 357 17 vmsppl 368 1788 0 1773 2 0 2 2 0 8 0 pdppl 4096 3605 0 3559 7 0 7 7 0 8 0 pvpl 32 644076 0 621116 292 68 224 232 0 265 31 pmappl 232 1798 0 1776 2 0 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 641 0 9 19 0 19 19 0 8 0