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 247440 55824 0 0 0 0 syz-executor.0 *302929 55824 0 0 0x4000000 1K syz-executor.0 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(ffff800022d853a0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800023bb8000,fffffd80627d4bd8,10,ffff800000025380,ffff800022d85608) at alltraps_kern_meltdown+0x7b 0(b,ffff800022d85568,83,ffff800022d85608,0,b) at 0 rt_clone(ffff800022d85678,fffffd806f6cd828,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cd828,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cd828,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800022d85750,fffffd806f27f420,fffffd806f6cd7a8) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cd7a8,fffffd806f27f400) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8062d17968,4,0,fffffd806f27f400,0,ffff800020ace020) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020ace020,ffff800022d858f8,ffff800022d85940) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800022d859c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d859c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,b41ceb79010) at Xsyscall+0x128 end of kernel end trace frame: 0xb449714a600, 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(ffff800022d853a0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800023bb8000,fffffd80627d4bd8,10,ffff800000025380,ffff800022d85608) at alltraps_kern_meltdown+0x7b 0(b,ffff800022d85568,83,ffff800022d85608,0,b) at 0 rt_clone(ffff800022d85678,fffffd806f6cd828,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cd828,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cd828,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800022d85750,fffffd806f27f420,fffffd806f6cd7a8) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cd7a8,fffffd806f27f400) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8062d17968,4,0,fffffd806f27f400,0,ffff800020ace020) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020ace020,ffff800022d858f8,ffff800022d85940) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800022d859c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022d859c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,b41ceb79010) at Xsyscall+0x128 end of kernel end trace frame: 0xb449714a600, count: -14 ddb{1}> show registers rdi 0xffffffff814c4807 db_enter+0x17 rsi 0x2158 __ALIGN_SIZE+0x1158 rbp 0xffff800022d85210 rbx 0xffff800022d852c0 rdx 0x2159 __ALIGN_SIZE+0x1159 rcx 0xffff800023bb8000 rax 0xffff800023bb8000 r8 0xffffffff8141f94f kprintf+0x16f r9 0x1 r10 0x25 r11 0x720dcc84bc4b3698 r12 0x3000000008 r13 0xffff800022d85220 r14 0x100 r15 0x1 rip 0xffffffff814c4808 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022d85200 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=302929 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ace510,0xffffffff8265b7c8 process=0xffff800020adc380 user=0xffff800022d80000, vmspace=0xfffffd807f00a730 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 55824 247440 24096 0 7 0 syz-executor.0 *55824 302929 24096 0 7 0x4000000 syz-executor.0 37242 348601 71731 0 3 0x82 nanosleep syz-executor.1 24096 284196 71731 0 3 0x82 nanosleep syz-executor.0 87386 431970 1 0 3 0x100083 ttyin getty 12205 119374 0 0 3 0x14200 acct acct 98730 214380 0 0 3 0x14200 bored sosplice 71731 69549 46478 0 3 0x82 thrsleep syz-fuzzer 71731 26734 46478 0 3 0x4000082 thrsleep syz-fuzzer 71731 464023 46478 0 3 0x4000082 thrsleep syz-fuzzer 71731 285846 46478 0 3 0x4000082 thrsleep syz-fuzzer 71731 501069 46478 0 3 0x4000082 thrsleep syz-fuzzer 71731 494355 46478 0 3 0x4000082 thrsleep syz-fuzzer 71731 343204 46478 0 3 0x4000082 thrsleep syz-fuzzer 71731 200592 46478 0 3 0x4000082 kqread syz-fuzzer 71731 336947 46478 0 3 0x4000082 thrsleep syz-fuzzer 71731 307239 46478 0 3 0x4000082 thrsleep syz-fuzzer 71731 213588 46478 0 3 0x4000082 thrsleep syz-fuzzer 46478 490961 28952 0 3 0x10008a pause ksh 28952 160883 79612 0 3 0x92 select sshd 79612 259370 1 0 3 0x80 select sshd 21756 516911 43443 74 3 0x100092 bpf pflogd 43443 409487 1 0 3 0x80 netio pflogd 87542 300170 41843 73 3 0x100090 kqread syslogd 41843 65485 1 0 3 0x100082 netio syslogd 31861 499218 1 77 3 0x100090 poll dhclient 1511 269507 1 0 3 0x80 poll dhclient 54430 385659 0 0 3 0x14200 pgzero zerothread 58736 413980 0 0 3 0x14200 aiodoned aiodoned 98516 68228 0 0 3 0x14200 syncer update 1401 87242 0 0 3 0x14200 cleaner cleaner 54943 389216 0 0 3 0x14200 reaper reaper 71978 251061 0 0 3 0x14200 pgdaemon pagedaemon 42289 24206 0 0 3 0x14200 bored crynlk 18784 211668 0 0 3 0x14200 bored crypto 13467 255175 0 0 3 0x40014200 acpi0 acpi0 50154 160058 0 0 3 0x40014200 idle1 89632 35048 0 0 3 0x14200 bored softnet 13565 89141 0 0 3 0x14200 bored systqmp 24678 428082 0 0 3 0x14200 bored systq 31845 121846 0 0 3 0x40014200 bored softclock 28859 93927 0 0 3 0x40014200 idle0 31931 111419 0 0 3 0x14200 bored smr 1 90248 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 55824 (syz-executor.0) thread 0xffff800020ace020 (302929) exclusive rwlock netlock r = 0 (0xffffffff824dc718) #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 (0xffffffff82648ec0) #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 9601 7228K 14738K 78643K 15288 0 0 pcb 13 11K 12K 78643K 482 0 0 rtable 141 14K 15K 78643K 1481 0 0 ifaddr 90 18K 19K 78643K 389 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1604 0 0 iov 0 0K 24K 78643K 429 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1222 77K 77K 78643K 2971 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 27 0 0 VM map 22 11K 11K 78643K 32 0 0 sem 12 0K 1K 78643K 955 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 1962 0 0 sigio 0 0K 0K 78643K 166 0 0 proc 62 63K 95K 78643K 1219 0 0 subproc 32 2K 2K 78643K 276 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 2K 78643K 3964 0 0 in_multi 33 2K 2K 78643K 731 0 0 ether_multi 1 0K 0K 78643K 23 0 0 mrt 0 0K 0K 78643K 20 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 78 344K 344K 78643K 78 0 0 exec 0 0K 1K 78643K 592 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 150 170K 172K 78643K 8030 0 0 UVM aobj 130 7K 7K 78643K 136 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 371 0 0 NDP 21 0K 1K 78643K 131 0 0 temp 236 3561K 4200K 78643K 64019 0 0 kqueue 0 0K 0K 78643K 20 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 50 0 41 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 157 0 155 1 0 1 1 0 8 0 rtentry 112 310 0 257 2 0 2 2 0 8 0 unpcb 120 1156 0 1145 4 2 2 2 0 8 1 syncache 264 13 0 13 5 5 0 1 0 8 0 tcpqe 32 21 0 21 3 3 0 1 0 8 0 tcpcb 544 1132 0 1125 26 25 1 14 0 8 0 inpcb 280 6601 0 6591 22 19 3 9 0 8 2 rttmr 72 7 0 7 5 5 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 47 0 44 1 0 1 1 0 8 0 pkpcb 40 7 0 7 4 4 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 41 0 41 8 7 1 1 0 8 1 pffrag 232 36 0 36 8 8 0 1 0 482 0 pffrnode 88 36 0 36 8 8 0 1 0 8 0 pffrent 40 1068 0 1068 9 8 1 1 0 8 1 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 141 0 87 1 0 1 1 0 8 0 pfstkey 112 141 0 87 2 0 2 2 0 8 0 pfstate 328 141 0 87 6 0 6 6 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 6 0 4 5 3 2 3 0 8 0 art_heap4 256 1339 0 1101 23 6 17 17 0 8 0 art_table 32 1345 0 1105 3 0 3 3 0 8 0 art_node 16 307 0 258 1 0 1 1 0 8 0 sysvmsgpl 40 45 0 17 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 951 0 941 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4261 0 2854 46 0 46 46 0 8 0 ffsino 272 4261 0 2854 96 1 95 95 0 8 0 nchpl 144 7383 0 5782 61 1 60 61 0 8 0 uvmvnodes 72 5647 0 0 103 0 103 103 0 8 0 vnodes 208 5647 0 0 298 0 298 298 0 8 0 namei 1024 24963 0 24963 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 21 0 1 3 0 3 3 0 8 0 vmpool 552 30 0 10 2 0 2 2 0 8 0 scxspl 192 26783 0 26783 20 17 3 4 0 8 3 plimitpl 152 188 0 180 1 0 1 1 0 8 0 sigapl 432 2119 0 2104 4 2 2 3 0 8 0 futexpl 56 50280 0 50280 2 1 1 1 0 8 1 knotepl 112 443 0 424 1 0 1 1 0 8 0 kqueuepl 104 641 0 639 7 6 1 4 0 8 0 pipepl 112 1656 0 1637 6 5 1 2 0 8 0 fdescpl 488 2120 0 2104 3 0 3 3 0 8 0 filepl 152 20388 0 20285 30 24 6 14 0 8 1 lockfpl 104 630 0 629 1 0 1 1 0 8 0 lockfspl 48 212 0 211 1 0 1 1 0 8 0 sessionpl 112 33 0 22 1 0 1 1 0 8 0 pgrppl 48 65 0 54 1 0 1 1 0 8 0 ucredpl 96 2021 0 2012 1 0 1 1 0 8 0 zombiepl 144 2104 0 2103 2 1 1 1 0 8 0 processpl 896 2137 0 2103 5 1 4 5 0 8 0 procpl 632 6475 0 6430 5 0 5 5 0 8 0 srpgc 64 19 0 19 8 7 1 1 0 8 1 sosppl 128 86 0 86 7 6 1 1 0 8 1 sockpl 384 7973 0 7950 34 28 6 14 0 8 3 mcl64k 65536 262 0 0 33 1 32 33 0 8 1 mcl16k 16384 16 0 0 2 0 2 2 0 8 0 mcl12k 12288 24 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 25 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 221 0 0 27 2 25 27 0 8 0 mtagpl 80 61 0 0 1 0 1 1 0 8 0 mbufpl 256 518 0 0 25 0 25 25 0 8 0 bufpl 256 12361 0 5303 442 0 442 442 0 8 0 anonpl 16 282538 0 264651 121 38 83 98 0 124 0 amapchunkpl 152 16733 0 16588 49 38 11 20 0 158 4 amappl16 192 11974 0 10858 118 60 58 68 0 8 0 amappl15 184 34 0 32 1 0 1 1 0 8 0 amappl14 176 664 0 659 1 0 1 1 0 8 0 amappl13 168 466 0 466 3 3 0 1 0 8 0 amappl12 160 391 0 390 1 0 1 1 0 8 0 amappl11 152 120 0 104 1 0 1 1 0 8 0 amappl10 144 206 0 198 1 0 1 1 0 8 0 amappl9 136 887 0 884 1 0 1 1 0 8 0 amappl8 128 471 0 424 2 0 2 2 0 8 0 amappl7 120 300 0 291 1 0 1 1 0 8 0 amappl6 112 92 0 80 1 0 1 1 0 8 0 amappl5 104 654 0 639 1 0 1 1 0 8 0 amappl4 96 1878 0 1847 1 0 1 1 0 8 0 amappl3 88 983 0 977 1 0 1 1 0 8 0 amappl2 80 15599 0 15528 3 1 2 3 0 8 0 amappl1 72 57947 0 57511 26 16 10 20 0 8 0 amappl 80 7012 0 6958 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 135 0 6 3 0 3 3 0 8 0 uaddrrnd 24 2150 0 2104 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2150 0 2104 1 0 1 1 0 8 0 vmmpekpl 168 21796 0 21757 3 0 3 3 0 8 0 vmmpepl 168 286766 0 284460 218 73 145 146 0 357 36 vmsppl 368 2119 0 2104 2 0 2 2 0 8 0 pdppl 4096 4307 0 4248 8 0 8 8 0 8 0 pvpl 32 785159 0 764013 281 74 207 233 0 265 16 pmappl 232 2149 0 2114 4 1 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 704 0 42 20 0 20 20 0 8 0