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 53359 93601 0 0 0 0 syz-executor.0 *254042 93601 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(ffff800021765940) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800023388000,fffffd8065c333f8,10,ffff80000005b570,ffff800021765ba8) at alltraps_kern_meltdown+0x7b 0(b,ffff800021765b08,83,ffff800021765ba8,0,b) at 0 rt_clone(ffff800021765c18,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(ffff800021765cf0,fffffd806a0a3420,fffffd806f6c8af0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6c8af0,fffffd806a0a3400) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd8062ea6da8,4,0,fffffd806a0a3400,0,ffff800020ace788) at udp_usrreq+0x560 sys_connect(ffff800020ace788,ffff800021765e78,ffff800021765ec0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800021765f40) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021765f40) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,20028b5f010) at Xsyscall+0x128 end of kernel end trace frame: 0x20323807610, 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(ffff800021765940) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800023388000,fffffd8065c333f8,10,ffff80000005b570,ffff800021765ba8) at alltraps_kern_meltdown+0x7b 0(b,ffff800021765b08,83,ffff800021765ba8,0,b) at 0 rt_clone(ffff800021765c18,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(ffff800021765cf0,fffffd806a0a3420,fffffd806f6c8af0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6c8af0,fffffd806a0a3400) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd8062ea6da8,4,0,fffffd806a0a3400,0,ffff800020ace788) at udp_usrreq+0x560 sys_connect(ffff800020ace788,ffff800021765e78,ffff800021765ec0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800021765f40) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021765f40) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,20028b5f010) at Xsyscall+0x128 end of kernel end trace frame: 0x20323807610, count: -14 ddb{1}> show registers rdi 0xffffffff81ceddf7 db_enter+0x17 rsi 0x1eb1 __ALIGN_SIZE+0xeb1 rbp 0xffff8000217657b0 rbx 0xffff800021765860 rdx 0x1eb2 __ALIGN_SIZE+0xeb2 rcx 0xffff800023388000 rax 0xffff800023388000 r8 0xffffffff81931c2f kprintf+0x16f r9 0x1 r10 0x25 r11 0xfaa74bb52af2db23 r12 0x3000000008 r13 0xffff8000217657c0 r14 0x100 r15 0x1 rip 0xffffffff81ceddf8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000217657a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=254042 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020ace020,0xffff800020acf668 process=0xffff800020addc00 user=0xffff800021760000, vmspace=0xfffffd807f00bb80 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 93601 53359 67003 0 7 0 syz-executor.0 *93601 254042 67003 0 7 0x4000000 syz-executor.0 93601 126966 67003 0 3 0x4000080 fsleep syz-executor.0 67003 65877 9841 0 3 0x82 nanosleep syz-executor.0 63234 208007 9841 0 3 0x82 nanosleep syz-executor.1 71896 77809 1 0 3 0x100083 ttyin getty 99119 257376 0 0 3 0x14200 acct acct 51892 294039 0 0 3 0x14200 bored sosplice 9841 512871 98620 0 3 0x82 thrsleep syz-fuzzer 9841 246557 98620 0 3 0x4000082 thrsleep syz-fuzzer 9841 130401 98620 0 3 0x4000082 thrsleep syz-fuzzer 9841 337411 98620 0 3 0x4000082 thrsleep syz-fuzzer 9841 391215 98620 0 3 0x4000082 kqread syz-fuzzer 9841 76369 98620 0 3 0x4000082 thrsleep syz-fuzzer 9841 141388 98620 0 3 0x4000082 thrsleep syz-fuzzer 9841 242243 98620 0 3 0x4000082 thrsleep syz-fuzzer 9841 240457 98620 0 3 0x4000082 thrsleep syz-fuzzer 9841 414893 98620 0 3 0x4000082 thrsleep syz-fuzzer 98620 63185 88154 0 3 0x10008a pause ksh 88154 71559 41698 0 3 0x92 select sshd 41698 468378 1 0 3 0x80 select sshd 37716 193420 10977 74 3 0x100092 bpf pflogd 10977 239020 1 0 3 0x80 netio pflogd 55159 45842 55636 73 3 0x100090 kqread syslogd 55636 342204 1 0 3 0x100082 netio syslogd 51740 282051 1 77 3 0x100090 poll dhclient 1621 434993 1 0 3 0x80 poll dhclient 30785 502275 0 0 3 0x14200 pgzero zerothread 84161 306215 0 0 3 0x14200 aiodoned aiodoned 55180 291319 0 0 3 0x14200 syncer update 80641 61072 0 0 3 0x14200 cleaner cleaner 89236 32426 0 0 3 0x14200 reaper reaper 86621 133272 0 0 3 0x14200 pgdaemon pagedaemon 96800 289411 0 0 3 0x14200 bored crynlk 68335 17601 0 0 3 0x14200 bored crypto 7115 515998 0 0 3 0x40014200 acpi0 acpi0 5522 80169 0 0 3 0x40014200 idle1 86607 415840 0 0 3 0x14200 bored softnet 44611 45910 0 0 3 0x14200 bored systqmp 42863 225253 0 0 3 0x14200 bored systq 98777 404748 0 0 3 0x40014200 bored softclock 72076 484166 0 0 3 0x40014200 idle0 2436 391273 0 0 3 0x14200 bored smr 1 19603 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 93601 (syz-executor.0) thread 0xffff800020ace788 (254042) exclusive rwlock netlock r = 0 (0xffffffff824e54e8) #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 (0xffffffff8265c4c8) #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 6485K 9299K 78643K 34505 0 0 pcb 13 9K 9K 78643K 746 0 0 rtable 104 12K 13K 78643K 2731 0 0 ifaddr 89 20K 22K 78643K 922 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1643 0 0 iov 0 0K 32K 78643K 773 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1238 78K 78K 78643K 8284 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 68 0 0 VM map 2 1K 1K 78643K 34 0 0 sem 11 1K 1K 78643K 15 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 4306 0 0 sigio 0 0K 0K 78643K 52 0 0 proc 62 63K 95K 78643K 1861 0 0 subproc 32 2K 2K 78643K 425 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 302 0 0 in_multi 23 1K 2K 78643K 403 0 0 ether_multi 1 0K 0K 78643K 22 0 0 mrt 0 0K 0K 78643K 23 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 928 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 124 23K 36K 78643K 15597 0 0 UVM aobj 130 6K 6K 78643K 142 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 797 0 0 NDP 21 0K 0K 78643K 287 0 0 temp 235 3557K 4197K 78643K 150124 0 0 kqueue 0 0K 0K 78643K 41 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 88 0 82 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 324 0 322 1 0 1 1 0 8 0 rtentry 112 397 0 360 2 0 2 2 0 8 0 unpcb 120 1495 0 1483 1 0 1 1 0 8 0 syncache 264 33 0 33 13 13 0 1 0 8 0 tcpqe 32 6585 0 6585 2 2 0 2 0 8 0 tcpcb 544 1407 0 1403 1 0 1 1 0 8 0 inpcb 280 5159 0 5150 12 11 1 3 0 8 0 rttmr 72 4 0 4 3 3 0 1 0 8 0 ip6q 72 1 0 0 1 0 1 1 0 8 0 nd6 48 57 0 55 2 1 1 1 0 8 0 pkpcb 40 13 0 13 6 6 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 142 0 142 8 7 1 1 0 8 1 pffrag 232 80 0 80 12 12 0 1 0 482 0 pffrnode 88 80 0 80 12 12 0 1 0 8 0 pffrent 40 181 0 181 12 12 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 296 0 243 1 0 1 1 0 8 0 pfstkey 112 296 0 243 3 0 3 3 0 8 0 pfstate 328 296 0 243 7 1 6 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 4 0 3 4 3 1 3 0 8 0 art_heap4 256 1654 0 1470 34 20 14 15 0 8 0 art_table 32 1658 0 1473 2 0 2 2 0 8 0 art_node 16 395 0 361 1 0 1 1 0 8 0 sysvmsgpl 40 17 0 11 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 9 0 0 1 0 1 1 0 8 0 shmpl 112 140 0 12 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 8098 0 6681 46 0 46 46 0 8 0 ffsino 272 8098 0 6681 95 0 95 95 0 8 0 nchpl 144 15815 0 15347 61 40 21 61 0 8 0 uvmvnodes 72 6022 0 0 110 0 110 110 0 8 0 vnodes 208 6022 0 0 317 0 317 317 0 8 0 namei 1024 54526 0 54526 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 32 0 32 11 11 0 1 0 8 0 scsiplug 64 7 0 7 4 4 0 1 0 8 0 scxspl 192 46635 0 46635 34 33 1 7 0 8 1 plimitpl 152 406 0 398 1 0 1 1 0 8 0 sigapl 432 4442 0 4427 3 1 2 3 0 8 0 futexpl 56 86636 0 86635 1 0 1 1 0 8 0 knotepl 112 1191 0 1172 4 3 1 3 0 8 0 kqueuepl 104 1095 0 1093 1 0 1 1 0 8 0 pipepl 112 2340 0 2321 6 4 2 2 0 8 0 fdescpl 488 4443 0 4427 3 0 3 3 0 8 0 filepl 152 37302 0 37199 21 16 5 7 0 8 1 lockfpl 104 1551 0 1550 1 0 1 1 0 8 0 lockfspl 48 522 0 521 1 0 1 1 0 8 0 sessionpl 112 46 0 35 1 0 1 1 0 8 0 pgrppl 48 84 0 73 1 0 1 1 0 8 0 ucredpl 96 4838 0 4829 1 0 1 1 0 8 0 zombiepl 144 4429 0 4428 4 3 1 1 0 8 0 processpl 896 4462 0 4428 4 0 4 4 0 8 0 procpl 632 13662 0 13617 5 0 5 5 0 8 0 srpgc 64 39 0 39 15 14 1 1 0 8 1 sosppl 128 91 0 90 13 12 1 1 0 8 0 sockpl 384 7076 0 7053 17 14 3 5 0 8 0 mcl64k 65536 265 0 0 34 0 34 34 0 8 1 mcl16k 16384 12 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 23 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 33 0 0 4 1 3 3 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 240 0 0 27 10 17 27 0 8 0 mtagpl 80 61 0 0 1 0 1 1 0 8 0 mbufpl 256 589 0 0 24 0 24 24 0 8 0 bufpl 256 21023 0 13975 441 0 441 441 0 8 0 anonpl 16 468684 0 454692 146 76 70 90 0 124 0 amapchunkpl 152 30001 0 29863 70 50 20 20 0 158 13 amappl16 192 20921 0 20036 112 66 46 57 0 8 0 amappl15 184 1251 0 1249 5 4 1 1 0 8 0 amappl14 176 1171 0 1168 2 1 1 1 0 8 0 amappl13 168 78 0 78 3 3 0 1 0 8 0 amappl12 160 546 0 546 6 6 0 1 0 8 0 amappl11 152 1159 0 1144 1 0 1 1 0 8 0 amappl10 144 171 0 165 1 0 1 1 0 8 0 amappl9 136 1338 0 1332 1 0 1 1 0 8 0 amappl8 128 884 0 848 3 1 2 2 0 8 0 amappl7 120 279 0 269 1 0 1 1 0 8 0 amappl6 112 1099 0 1086 1 0 1 1 0 8 0 amappl5 104 869 0 854 1 0 1 1 0 8 0 amappl4 96 4409 0 4376 1 0 1 1 0 8 0 amappl3 88 1031 0 1024 1 0 1 1 0 8 0 amappl2 80 33984 0 33911 3 1 2 3 0 8 0 amappl1 72 107739 0 107289 26 16 10 20 0 8 0 amappl 80 14301 0 14256 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 141 0 12 3 0 3 3 0 8 0 uaddrrnd 24 4475 0 4427 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4475 0 4427 1 0 1 1 0 8 0 vmmpekpl 168 37573 0 37538 2 0 2 2 0 8 0 vmmpepl 168 556542 0 554495 282 159 123 128 0 357 27 vmsppl 368 4442 0 4427 2 0 2 2 0 8 0 pdppl 4096 8957 0 8918 7 1 6 6 0 8 0 pvpl 32 1294115 0 1276889 349 176 173 211 0 265 11 pmappl 232 4474 0 4459 12 11 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 688 0 40 19 0 19 19 0 8 0