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 316340 7903 0 0 0 0 syz-executor.0 * 73343 7903 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(ffff800024bc4b10) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800022d90000,fffffd8065eb0cb8,10,ffff800000025010,ffff800024bc4d78) at alltraps_kern_meltdown+0x7b 0(b,ffff800024bc4cd8,83,ffff800024bc4d78,0,b) at 0 rt_clone(ffff800024bc4de8,fffffd806f6d25f8,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d25f8,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d25f8,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800024bc4ec0,fffffd8062392920,fffffd806f6d2578) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d2578,fffffd8062392900) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd806c8c0190,4,0,fffffd8062392900,0,ffff800020ab0780) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020ab0780,ffff800024bc5068,ffff800024bc50b0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800024bc5130) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024bc5130) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,76f95756010) at Xsyscall+0x128 end of kernel end trace frame: 0x772274a7790, 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(ffff800024bc4b10) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800022d90000,fffffd8065eb0cb8,10,ffff800000025010,ffff800024bc4d78) at alltraps_kern_meltdown+0x7b 0(b,ffff800024bc4cd8,83,ffff800024bc4d78,0,b) at 0 rt_clone(ffff800024bc4de8,fffffd806f6d25f8,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d25f8,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d25f8,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800024bc4ec0,fffffd8062392920,fffffd806f6d2578) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d2578,fffffd8062392900) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd806c8c0190,4,0,fffffd8062392900,0,ffff800020ab0780) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020ab0780,ffff800024bc5068,ffff800024bc50b0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800024bc5130) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024bc5130) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,76f95756010) at Xsyscall+0x128 end of kernel end trace frame: 0x772274a7790, count: -14 ddb{1}> show registers rdi 0xffffffff818c8e87 db_enter+0x17 rsi 0x249e __ALIGN_SIZE+0x149e rbp 0xffff800024bc4980 rbx 0xffff800024bc4a30 rdx 0x249f __ALIGN_SIZE+0x149f rcx 0xffff800022d90000 rax 0xffff800022d90000 r8 0xffffffff81ad2b6f kprintf+0x16f r9 0x1 r10 0x25 r11 0x4d8ff18edefe3116 r12 0x3000000008 r13 0xffff800024bc4990 r14 0x100 r15 0x1 rip 0xffffffff818c8e88 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800024bc4970 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=73343 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab1160,0xffffffff8265a258 process=0xffff800020a8ae10 user=0xffff800024bc0000, vmspace=0xfffffd807f00b5c0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 7903 316340 30452 0 7 0 syz-executor.0 * 7903 73343 30452 0 7 0x4000000 syz-executor.0 47339 496495 8705 0 3 0x80 nanosleep syz-executor.1 47339 419098 8705 0 3 0x4000080 netcon syz-executor.1 47339 418524 8705 0 3 0x4000080 fsleep syz-executor.1 8705 440099 76546 0 3 0x82 nanosleep syz-executor.1 30452 322926 76546 0 3 0x82 nanosleep syz-executor.0 95509 423769 1 0 3 0x100083 ttyin getty 27457 300432 0 0 3 0x14200 acct acct 71017 431698 0 0 3 0x14200 bored sosplice 76546 230834 94864 0 3 0x82 thrsleep syz-fuzzer 76546 62071 94864 0 3 0x4000082 nanosleep syz-fuzzer 76546 230576 94864 0 3 0x4000082 thrsleep syz-fuzzer 76546 41674 94864 0 3 0x4000082 nanosleep syz-fuzzer 76546 373476 94864 0 3 0x4000082 thrsleep syz-fuzzer 76546 310537 94864 0 3 0x4000082 thrsleep syz-fuzzer 76546 335324 94864 0 3 0x4000082 thrsleep syz-fuzzer 76546 158251 94864 0 3 0x4000082 kqread syz-fuzzer 76546 343579 94864 0 3 0x4000082 thrsleep syz-fuzzer 76546 431332 94864 0 3 0x4000082 thrsleep syz-fuzzer 94864 206896 22966 0 3 0x10008a pause ksh 22966 391021 41895 0 3 0x92 select sshd 41895 196764 1 0 3 0x80 select sshd 67312 236199 34256 74 3 0x100092 bpf pflogd 34256 332148 1 0 3 0x80 netio pflogd 69085 76567 37626 73 3 0x100090 kqread syslogd 37626 217743 1 0 3 0x100082 netio syslogd 40848 12367 1 77 3 0x100090 poll dhclient 9735 6518 1 0 3 0x80 poll dhclient 93788 72161 0 0 3 0x14200 pgzero zerothread 46037 135039 0 0 3 0x14200 aiodoned aiodoned 13911 162155 0 0 3 0x14200 syncer update 21842 257696 0 0 3 0x14200 cleaner cleaner 49568 514716 0 0 3 0x14200 reaper reaper 33365 27386 0 0 3 0x14200 pgdaemon pagedaemon 8955 342357 0 0 3 0x14200 bored crynlk 46605 197102 0 0 3 0x14200 bored crypto 48554 79724 0 0 3 0x40014200 acpi0 acpi0 56600 313592 0 0 3 0x40014200 idle1 65958 468836 0 0 3 0x14200 bored softnet 19006 361485 0 0 3 0x14200 bored systqmp 12723 84658 0 0 3 0x14200 bored systq 25119 434088 0 0 3 0x40014200 bored softclock 49171 30486 0 0 3 0x40014200 idle0 12246 446676 0 0 3 0x14200 bored smr 1 330841 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 7903 (syz-executor.0) thread 0xffff800020ab0780 (73343) 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 9632 6483K 8713K 78643K 37570 0 0 pcb 13 11K 12K 78643K 2281 0 0 rtable 161 16K 17K 78643K 6608 0 0 ifaddr 120 30K 31K 78643K 2004 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1896 0 0 iov 0 0K 32K 78643K 2107 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1225 77K 78K 78643K 10692 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 171 0 0 VM map 68 34K 34K 78643K 129 0 0 sem 12 0K 1K 78643K 5893 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 9617 0 0 sigio 0 0K 0K 78643K 144 0 0 proc 62 63K 95K 78643K 3968 0 0 subproc 32 2K 2K 78643K 952 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 1K 78643K 1074 0 0 in_multi 48 3K 3K 78643K 1393 0 0 ether_multi 1 0K 0K 78643K 131 0 0 mrt 0 0K 0K 78643K 52 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 114 503K 503K 78643K 114 0 0 exec 0 0K 1K 78643K 1925 0 0 pfkey data 0 0K 4K 78643K 4 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 243 486K 487K 78643K 35030 0 0 UVM aobj 130 4K 4K 78643K 138 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 2442 0 0 NDP 25 0K 1K 78643K 654 0 0 temp 264 3561K 4202K 78643K 363789 0 0 kqueue 0 0K 0K 78643K 107 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 185 0 178 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 958 0 956 1 0 1 1 0 8 0 rtentry 112 1172 0 1109 2 0 2 2 0 8 0 unpcb 120 6258 0 6241 11 10 1 2 0 8 0 syncache 264 68 0 68 26 26 0 1 0 8 0 sackhl 24 3 0 3 1 1 0 1 0 8 0 tcpqe 32 20 0 20 16 16 0 1 0 8 0 tcpcb 544 4767 0 4759 21 20 1 4 0 8 0 inpcb 280 15275 0 15263 57 55 2 13 0 8 1 rttmr 72 15 0 15 10 10 0 1 0 8 0 ip6q 72 4 0 4 3 3 0 1 0 8 0 ip6af 40 9 0 9 3 3 0 1 0 8 0 nd6 48 178 0 175 2 1 1 1 0 8 0 pkpcb 40 78 0 78 24 23 1 1 0 8 1 swfcl 56 8 0 0 1 0 1 1 0 8 0 ppxss 1128 260 0 260 16 15 1 1 0 8 1 pffrag 232 274 0 274 21 20 1 1 0 482 1 pffrnode 88 271 0 271 21 20 1 1 0 8 1 pffrent 40 8899 0 8899 21 20 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 871 0 774 1 0 1 1 0 8 0 pfstkey 112 873 0 776 4 1 3 4 0 8 0 pfstate 328 873 0 776 11 2 9 10 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 21 0 19 12 10 2 4 0 8 0 art_heap4 256 5089 0 4817 40 22 18 19 0 8 0 art_table 32 5110 0 4836 6 3 3 3 0 8 0 art_node 16 1164 0 1112 1 0 1 1 0 8 0 sysvmsgpl 40 54 0 36 1 0 1 1 0 8 0 semupl 112 5 0 5 1 1 0 1 0 8 0 semapl 112 5885 0 5875 1 0 1 1 0 8 0 shmpl 112 136 0 8 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 16485 0 15031 49 1 48 48 0 8 0 ffsino 272 16485 0 15031 98 0 98 98 0 8 0 nchpl 144 34318 0 33819 61 41 20 61 0 8 0 uvmvnodes 72 6724 0 0 123 0 123 123 0 8 0 vnodes 208 6724 0 0 354 0 354 354 0 8 0 namei 1024 129644 0 129644 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 67 0 1 9 0 9 9 0 8 0 vmpool 552 127 0 61 7 2 5 5 0 8 0 scsiplug 64 9 0 9 6 6 0 1 0 8 0 scxspl 192 108227 0 108227 68 65 3 7 0 8 3 plimitpl 152 754 0 746 1 0 1 1 0 8 0 sigapl 432 9662 0 9646 4 2 2 3 0 8 0 futexpl 56 257917 0 257916 1 0 1 1 0 8 0 knotepl 112 2378 0 2359 10 9 1 3 0 8 0 kqueuepl 104 2490 0 2488 1 0 1 1 0 8 0 pipepl 112 7568 0 7549 15 14 1 2 0 8 0 fdescpl 488 9663 0 9646 3 0 3 3 0 8 0 filepl 152 98184 0 98078 54 49 5 14 0 8 0 lockfpl 104 3495 0 3494 1 0 1 1 0 8 0 lockfspl 48 1125 0 1124 1 0 1 1 0 8 0 sessionpl 112 81 0 70 1 0 1 1 0 8 0 pgrppl 48 161 0 150 1 0 1 1 0 8 0 ucredpl 96 13053 0 13044 1 0 1 1 0 8 0 zombiepl 144 9648 0 9648 3 2 1 1 0 8 1 processpl 896 9682 0 9648 5 1 4 5 0 8 0 procpl 632 31212 0 31166 5 0 5 5 0 8 0 srpgc 64 71 0 71 22 21 1 1 0 8 1 sosppl 128 222 0 222 33 33 0 1 0 8 0 sockpl 384 22695 0 22663 93 88 5 23 0 8 1 mcl64k 65536 278 0 0 33 26 7 33 0 8 0 mcl16k 16384 41 0 0 6 3 3 3 0 8 0 mcl12k 12288 33 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 41 0 0 3 0 3 3 0 8 0 mcl4k 4096 33 0 0 3 0 3 3 0 8 0 mcl2k2 2112 14 0 0 1 0 1 1 0 8 0 mcl2k 2048 203 0 0 21 8 13 21 0 8 0 mtagpl 80 96 0 0 2 0 2 2 0 8 0 mbufpl 256 1156 0 0 46 1 45 45 0 8 0 bufpl 256 36928 0 29870 442 0 442 442 0 8 0 anonpl 16 1194751 0 1173310 299 189 110 116 0 124 11 amapchunkpl 152 71545 0 71378 115 106 9 20 0 158 0 amappl16 192 54127 0 52802 288 211 77 79 0 8 8 amappl15 184 1565 0 1564 1 0 1 1 0 8 0 amappl14 176 3217 0 3209 1 0 1 1 0 8 0 amappl13 168 304 0 304 9 9 0 1 0 8 0 amappl12 160 1418 0 1415 1 0 1 1 0 8 0 amappl11 152 906 0 891 1 0 1 1 0 8 0 amappl10 144 1011 0 1001 1 0 1 1 0 8 0 amappl9 136 1916 0 1911 1 0 1 1 0 8 0 amappl8 128 1585 0 1507 3 0 3 3 0 8 0 amappl7 120 1202 0 1193 1 0 1 1 0 8 0 amappl6 112 776 0 761 1 0 1 1 0 8 0 amappl5 104 2062 0 2049 1 0 1 1 0 8 0 amappl4 96 8529 0 8491 2 1 1 2 0 8 0 amappl3 88 3350 0 3342 1 0 1 1 0 8 0 amappl2 80 74584 0 74495 3 1 2 3 0 8 0 amappl1 72 227076 0 226605 25 15 10 20 0 8 0 amappl 80 32582 0 32499 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 137 0 8 3 0 3 3 0 8 0 uaddrrnd 24 9790 0 9646 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 9790 0 9646 1 0 1 1 0 8 0 vmmpekpl 168 78906 0 78855 4 1 3 3 0 8 0 vmmpepl 168 1244740 0 1241898 455 289 166 180 0 357 37 vmsppl 368 9662 0 9646 2 0 2 2 0 8 0 pdppl 4096 19587 0 19480 20 6 14 14 0 8 0 pvpl 32 3061423 0 3039513 536 310 226 243 0 265 27 pmappl 232 9789 0 9707 5 0 5 5 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 757 0 101 20 0 20 20 0 8 0