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 59861 12640 0 0 0 0 syz-executor.0 *203647 12640 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(ffff800023bd0970) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020b74000,fffffd8064d2c3f8,10,ffff80000005b830,ffff800023bd0bd8) at alltraps_kern_meltdown+0x7b 0(b,ffff800023bd0b38,83,ffff800023bd0bd8,0,b) at 0 rt_clone(ffff800023bd0c48,fffffd806f6c5940,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6c5940,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6c5940,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023bd0d20,fffffd80652f3020,fffffd806f6c58c0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6c58c0,fffffd80652f3000) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd806294ac40,4,0,fffffd80652f3000,0,ffff800020acea00) at udp_usrreq+0x560 sys_connect(ffff800020acea00,ffff800023bd0ea8,ffff800023bd0ef0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023bd0f70) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bd0f70) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,eca85bab010) at Xsyscall+0x128 end of kernel end trace frame: 0xeccb089d780, 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(ffff800023bd0970) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020b74000,fffffd8064d2c3f8,10,ffff80000005b830,ffff800023bd0bd8) at alltraps_kern_meltdown+0x7b 0(b,ffff800023bd0b38,83,ffff800023bd0bd8,0,b) at 0 rt_clone(ffff800023bd0c48,fffffd806f6c5940,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6c5940,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6c5940,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023bd0d20,fffffd80652f3020,fffffd806f6c58c0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6c58c0,fffffd80652f3000) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd806294ac40,4,0,fffffd80652f3000,0,ffff800020acea00) at udp_usrreq+0x560 sys_connect(ffff800020acea00,ffff800023bd0ea8,ffff800023bd0ef0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023bd0f70) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bd0f70) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,eca85bab010) at Xsyscall+0x128 end of kernel end trace frame: 0xeccb089d780, count: -14 ddb{1}> show registers rdi 0xffffffff8120bfe7 db_enter+0x17 rsi 0x1dc2 __ALIGN_SIZE+0xdc2 rbp 0xffff800023bd07e0 rbx 0xffff800023bd0890 rdx 0x1dc3 __ALIGN_SIZE+0xdc3 rcx 0xffff800020b74000 rax 0xffff800020b74000 r8 0xffffffff81d00c7f kprintf+0x16f r9 0x1 r10 0x25 r11 0xdb383583b1a55962 r12 0x3000000008 r13 0xffff800023bd07f0 r14 0x100 r15 0x1 rip 0xffffffff8120bfe8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023bd07d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=203647 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff800020acf658,0xffffffff8266a260 process=0xffff800020a8b890 user=0xffff800023bcc000, vmspace=0xfffffd807f00a5c0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 12640 59861 88998 0 7 0 syz-executor.0 *12640 203647 88998 0 7 0x4000000 syz-executor.0 57012 321087 72134 0 2 0 syz-executor.1 57012 121676 72134 0 3 0x4000080 ttyin syz-executor.1 57012 343181 72134 0 3 0x4000080 ttyin syz-executor.1 57012 425292 72134 0 3 0x4000080 netcon syz-executor.1 57012 191713 72134 0 3 0x4000080 netcon syz-executor.1 57012 352887 72134 0 3 0x4000080 netcon2 syz-executor.1 26860 389268 0 0 3 0x14200 bored sosplice 24734 93913 0 0 3 0x14200 acct acct 72134 442904 84353 0 3 0x82 nanosleep syz-executor.1 88998 376624 84353 0 3 0x82 nanosleep syz-executor.0 84353 237895 64645 0 3 0x82 thrsleep syz-fuzzer 84353 222332 64645 0 3 0x4000082 nanosleep syz-fuzzer 84353 318669 64645 0 3 0x4000082 thrsleep syz-fuzzer 84353 392229 64645 0 3 0x4000082 thrsleep syz-fuzzer 84353 369221 64645 0 3 0x4000082 thrsleep syz-fuzzer 84353 280497 64645 0 3 0x4000082 thrsleep syz-fuzzer 84353 269826 64645 0 3 0x4000082 thrsleep syz-fuzzer 84353 86594 64645 0 3 0x4000082 thrsleep syz-fuzzer 84353 142620 64645 0 3 0x4000082 kqread syz-fuzzer 84353 243415 64645 0 3 0x4000082 thrsleep syz-fuzzer 64645 54914 54441 0 3 0x10008a pause ksh 54441 335125 65901 0 3 0x92 select sshd 15844 25942 1 0 3 0x100083 ttyin getty 65901 264660 1 0 3 0x80 select sshd 80540 288575 12893 74 3 0x100092 bpf pflogd 12893 457169 1 0 3 0x80 netio pflogd 56091 223997 16216 73 3 0x100090 kqread syslogd 16216 305833 1 0 3 0x100082 netio syslogd 84412 169193 1 77 3 0x100090 poll dhclient 73238 246497 1 0 3 0x80 poll dhclient 82458 184120 0 0 2 0x14200 zerothread 85778 13784 0 0 3 0x14200 aiodoned aiodoned 82897 201820 0 0 3 0x14200 syncer update 98691 214993 0 0 3 0x14200 cleaner cleaner 48089 294848 0 0 3 0x14200 reaper reaper 42703 489337 0 0 3 0x14200 pgdaemon pagedaemon 4881 165743 0 0 3 0x14200 bored crynlk 67663 460432 0 0 3 0x14200 bored crypto 56710 310722 0 0 3 0x40014200 acpi0 acpi0 7854 129092 0 0 3 0x40014200 idle1 66218 231305 0 0 3 0x14200 bored softnet 53259 183515 0 0 3 0x14200 bored systqmp 16548 330326 0 0 3 0x14200 bored systq 95857 10088 0 0 3 0x40014200 bored softclock 87956 439509 0 0 3 0x40014200 idle0 76180 205559 0 0 3 0x14200 bored smr 1 81404 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 12640 (syz-executor.0) thread 0xffff800020acea00 (203647) exclusive rwlock netlock r = 0 (0xffffffff824c0f78) #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 (0xffffffff82623a10) #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 9547 7067K 8016K 78643K 14253 0 0 pcb 13 8K 8K 78643K 222 0 0 rtable 93 4K 4K 78643K 525 0 0 ifaddr 62 13K 14K 78643K 185 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1507 0 0 iov 0 0K 16K 78643K 177 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1226 77K 77K 78643K 2212 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 14 0 0 VM map 8 4K 4K 78643K 8 0 0 sem 12 1K 1K 78643K 75 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 654 0 0 sigio 0 0K 0K 78643K 47 0 0 proc 60 63K 95K 78643K 515 0 0 subproc 32 2K 2K 78643K 34 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 353 0 0 in_multi 19 1K 2K 78643K 97 0 0 ether_multi 1 0K 0K 78643K 10 0 0 mrt 0 0K 0K 78643K 2 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 54 238K 238K 78643K 54 0 0 exec 0 0K 1K 78643K 264 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 133 71K 71K 78643K 3289 0 0 UVM aobj 97 5K 5K 78643K 97 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 175 0 0 NDP 14 0K 0K 78643K 53 0 0 temp 185 3556K 4192K 78643K 11470 0 0 kqueue 0 0K 0K 78643K 4 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 12 0 6 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 71 0 69 1 0 1 1 0 8 0 rtentry 112 74 0 39 2 0 2 2 0 8 0 unpcb 120 465 0 453 3 1 2 2 0 8 1 syncache 264 6 0 6 2 2 0 1 0 8 0 tcpqe 32 9 0 9 2 2 0 1 0 8 0 tcpcb 544 613 0 605 4 3 1 3 0 8 0 inpcb 280 1319 0 1306 4 2 2 3 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 8 0 7 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 20 0 20 3 2 1 1 0 8 1 pffrag 232 17 0 17 2 1 1 1 0 482 1 pffrnode 88 17 0 17 2 1 1 1 0 8 1 pffrent 40 679 0 679 2 1 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 92 0 16 1 0 1 1 0 8 0 pfstkey 112 92 0 16 3 0 3 3 0 8 0 pfstate 328 92 0 16 7 0 7 7 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 335 0 169 14 2 12 14 0 8 0 art_table 32 336 0 169 2 0 2 2 0 8 0 art_node 16 72 0 39 1 0 1 1 0 8 0 sysvmsgpl 40 28 0 21 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 73 0 63 1 0 1 1 0 8 0 shmpl 112 95 0 0 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2441 0 1040 46 0 46 46 0 8 0 ffsino 272 2441 0 1040 95 1 94 95 0 8 0 nchpl 144 3721 0 2114 61 0 61 61 0 8 0 uvmvnodes 72 3328 0 0 61 0 61 61 0 8 0 vnodes 208 3328 0 0 176 0 176 176 0 8 0 namei 1024 11739 0 11739 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 6 0 0 1 0 1 1 0 8 0 vmpool 552 6 0 0 1 0 1 1 0 8 0 scsiplug 64 3 0 3 1 1 0 1 0 8 0 scxspl 192 11468 0 11468 12 11 1 7 0 8 1 plimitpl 152 71 0 63 1 0 1 1 0 8 0 sigapl 432 852 0 836 3 1 2 3 0 8 0 futexpl 56 19138 0 19138 1 0 1 1 0 8 1 knotepl 112 127 0 108 1 0 1 1 0 8 0 kqueuepl 104 180 0 176 1 0 1 1 0 8 0 pipepl 112 1414 0 1393 6 4 2 2 0 8 1 fdescpl 488 853 0 836 3 0 3 3 0 8 0 filepl 152 8258 0 8141 10 4 6 7 0 8 1 lockfpl 104 307 0 306 1 0 1 1 0 8 0 lockfspl 48 97 0 96 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 18 0 7 1 0 1 1 0 8 0 ucredpl 96 741 0 732 1 0 1 1 0 8 0 zombiepl 144 836 0 836 1 0 1 1 0 8 1 processpl 896 870 0 836 4 0 4 4 0 8 0 procpl 632 2484 0 2435 5 0 5 5 0 8 0 sosppl 128 42 0 42 2 2 0 1 0 8 0 sockpl 384 1874 0 1847 10 4 6 7 0 8 3 mcl64k 65536 514 0 0 65 2 63 65 0 8 1 mcl16k 16384 8 0 0 1 0 1 1 0 8 0 mcl12k 12288 11 0 0 2 0 2 2 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 10 0 0 2 0 2 2 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 181 0 0 22 0 22 22 0 8 0 mtagpl 80 239 0 0 5 0 5 5 0 8 0 mbufpl 256 893 0 0 55 0 55 55 0 8 0 bufpl 256 7895 0 1323 411 0 411 411 0 8 0 anonpl 16 113700 0 93357 103 9 94 98 0 124 12 amapchunkpl 152 5569 0 5392 26 5 21 21 0 158 13 amappl16 192 5437 0 4324 91 31 60 68 0 8 4 amappl15 184 8 0 7 1 0 1 1 0 8 0 amappl14 176 48 0 43 1 0 1 1 0 8 0 amappl12 160 325 0 323 2 1 1 1 0 8 0 amappl11 152 60 0 45 1 0 1 1 0 8 0 amappl10 144 318 0 310 1 0 1 1 0 8 0 amappl9 136 602 0 598 1 0 1 1 0 8 0 amappl8 128 178 0 144 3 1 2 2 0 8 0 amappl7 120 342 0 336 1 0 1 1 0 8 0 amappl6 112 61 0 50 1 0 1 1 0 8 0 amappl5 104 461 0 445 1 0 1 1 0 8 0 amappl4 96 808 0 776 1 0 1 1 0 8 0 amappl3 88 451 0 445 1 0 1 1 0 8 0 amappl2 80 5942 0 5863 3 1 2 3 0 8 0 amappl1 72 28879 0 28412 25 15 10 20 0 8 0 amappl 80 2746 0 2688 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 96 0 0 2 0 2 2 0 8 0 uaddrrnd 24 859 0 836 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 859 0 836 1 0 1 1 0 8 0 vmmpekpl 168 12615 0 12580 2 0 2 2 0 8 0 vmmpepl 168 114574 0 112170 144 38 106 136 0 357 1 vmsppl 368 852 0 836 2 0 2 2 0 8 0 pdppl 4096 1725 0 1678 7 0 7 7 0 8 1 pvpl 32 322433 0 298250 232 11 221 227 0 265 25 pmappl 232 858 0 836 3 1 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 689 0 12 20 0 20 20 0 8 0