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 *491815 67360 0 0 0x4000000 0K syz-executor.0 362489 53034 0 0 0 1 syz-executor.1 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(ffff800022c1f860) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800022d88000,fffffd806f460ee0,10,ffff8000000257c0,ffff800022c1fac8) at alltraps_kern_meltdown+0x7b 0(b,ffff800022c1fa28,83,ffff800022c1fac8,0,b) at 0 rt_clone(ffff800022c1fb38,fffffd806f6d5710,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d5710,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d5710,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800022c1fc10,fffffd8064791d20,fffffd806f6d5690) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d5690,fffffd8064791d00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd806f6d6d80,4,0,fffffd8064791d00,0,ffff800020a89910) at udp_usrreq+0x560 sys_connect(ffff800020a89910,ffff800022c1fd98,ffff800022c1fde0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800022c1fe60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022c1fe60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,f4824f97010) at Xsyscall+0x128 end of kernel end trace frame: 0xf4ab7c45f50, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic attempt to execute user address 0x0 in supervisor mode ddb{0}> 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(ffff800022c1f860) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800022d88000,fffffd806f460ee0,10,ffff8000000257c0,ffff800022c1fac8) at alltraps_kern_meltdown+0x7b 0(b,ffff800022c1fa28,83,ffff800022c1fac8,0,b) at 0 rt_clone(ffff800022c1fb38,fffffd806f6d5710,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d5710,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d5710,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800022c1fc10,fffffd8064791d20,fffffd806f6d5690) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d5690,fffffd8064791d00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd806f6d6d80,4,0,fffffd8064791d00,0,ffff800020a89910) at udp_usrreq+0x560 sys_connect(ffff800020a89910,ffff800022c1fd98,ffff800022c1fde0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800022c1fe60) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022c1fe60) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,f4824f97010) at Xsyscall+0x128 end of kernel end trace frame: 0xf4ab7c45f50, count: -14 ddb{0}> show registers rdi 0xffffffff81db2357 db_enter+0x17 rsi 0x1a84 __ALIGN_SIZE+0xa84 rbp 0xffff800022c1f6d0 rbx 0xffff800022c1f780 rdx 0x1a85 __ALIGN_SIZE+0xa85 rcx 0xffff800022d88000 rax 0xffff800022d88000 r8 0xffffffff81879bcf kprintf+0x16f r9 0x1 r10 0x25 r11 0x4d12ff299c11967f r12 0x3000000008 r13 0xffff800022c1f6e0 r14 0x100 r15 0x1 rip 0xffffffff81db2358 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022c1f6c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=491815 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800020a88cb8,0xffffffff82659c00 process=0xffff800020add180 user=0xffff800022c1a000, vmspace=0xfffffd807f00a8a0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 67360 114314 71377 0 2 0 syz-executor.0 *67360 491815 71377 0 7 0x4000000 syz-executor.0 53034 362489 3124 0 7 0 syz-executor.1 53034 176599 3124 0 3 0x4000080 fsleep syz-executor.1 53034 311808 3124 0 3 0x4000080 pipewr syz-executor.1 3124 78527 50260 0 3 0x82 nanosleep syz-executor.1 71377 386504 50260 0 3 0x82 nanosleep syz-executor.0 94151 82019 1 0 3 0x100083 ttyin getty 34679 407468 0 0 3 0x14200 acct acct 7708 289461 0 0 3 0x14200 bored sosplice 50260 170717 54067 0 3 0x82 thrsleep syz-fuzzer 50260 52544 54067 0 3 0x4000082 nanosleep syz-fuzzer 50260 341524 54067 0 3 0x4000082 thrsleep syz-fuzzer 50260 178337 54067 0 3 0x4000082 kqread syz-fuzzer 50260 90899 54067 0 3 0x4000082 thrsleep syz-fuzzer 50260 30945 54067 0 3 0x4000082 thrsleep syz-fuzzer 50260 74903 54067 0 3 0x4000082 thrsleep syz-fuzzer 50260 16313 54067 0 3 0x4000082 thrsleep syz-fuzzer 50260 369586 54067 0 3 0x4000082 thrsleep syz-fuzzer 50260 461495 54067 0 3 0x4000082 thrsleep syz-fuzzer 54067 371915 35703 0 3 0x10008a pause ksh 35703 248179 5911 0 3 0x92 select sshd 5911 473870 1 0 3 0x80 select sshd 49718 311271 7819 74 3 0x100092 bpf pflogd 7819 355687 1 0 3 0x80 netio pflogd 47559 75256 25836 73 3 0x100090 kqread syslogd 25836 249533 1 0 3 0x100082 netio syslogd 68733 293974 0 0 2 0x14200 zerothread 79580 252807 0 0 3 0x14200 aiodoned aiodoned 89099 413861 0 0 3 0x14200 syncer update 38230 6821 0 0 3 0x14200 cleaner cleaner 57981 247615 0 0 3 0x14200 reaper reaper 22021 79214 0 0 3 0x14200 pgdaemon pagedaemon 73856 36022 0 0 3 0x14200 bored crynlk 65876 348713 0 0 3 0x14200 bored crypto 35171 152124 0 0 3 0x40014200 acpi0 acpi0 95660 73755 0 0 3 0x40014200 idle1 69733 132742 0 0 3 0x14200 bored softnet 56745 73078 0 0 3 0x14200 bored systqmp 18148 511413 0 0 3 0x14200 bored systq 96092 551 0 0 3 0x40014200 bored softclock 48182 7385 0 0 3 0x40014200 idle0 5056 80629 0 0 3 0x14200 bored smr 1 202048 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 67360 (syz-executor.0) thread 0xffff800020a89910 (491815) exclusive rwlock netlock r = 0 (0xffffffff824fd158) #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 (0xffffffff82645558) #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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9629 7049K 14571K 78643K 31960 0 0 pcb 13 12K 14K 78643K 2366 0 0 rtable 156 16K 17K 78643K 3657 0 0 ifaddr 120 29K 31K 78643K 1826 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2117 0 0 iov 0 0K 60K 78643K 2354 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1220 77K 77K 78643K 10075 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 173 0 0 VM map 85 42K 42K 78643K 119 0 0 sem 12 0K 1K 78643K 3320 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 10362 0 0 sigio 0 0K 0K 78643K 916 0 0 proc 57 51K 95K 78643K 4227 0 0 subproc 32 2K 2K 78643K 1088 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 1145 0 0 in_multi 33 2K 3K 78643K 1303 0 0 ether_multi 1 0K 0K 78643K 124 0 0 mrt 1 0K 0K 78643K 62 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 2144 0 0 pfkey data 0 0K 4K 78643K 12 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 273 678K 682K 78643K 38188 0 0 UVM aobj 130 8K 8K 78643K 132 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 2439 0 0 NDP 27 0K 1K 78643K 577 0 0 temp 218 3565K 4205K 78643K 229255 0 0 kqueue 0 0K 0K 78643K 64 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 150 0 145 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 935 0 935 15 14 1 1 0 8 1 rtentry 112 1002 0 942 4 2 2 3 0 8 0 unpcb 120 6592 0 6570 13 11 2 2 0 8 0 syncache 264 69 0 69 27 26 1 1 0 8 1 tcpqe 32 128 0 128 16 15 1 1 0 8 1 tcpcb 544 6746 0 6742 93 92 1 13 0 8 0 inpcb 280 27739 0 27734 92 90 2 13 0 8 1 rttmr 72 17 0 16 5 4 1 1 0 8 0 ip6q 72 8 0 8 4 4 0 1 0 8 0 ip6af 40 19 0 19 3 3 0 1 0 8 0 nd6 48 161 0 160 9 8 1 1 0 8 0 pkpcb 40 1887 0 1887 8 7 1 1 0 8 1 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 245 0 245 29 28 1 1 0 8 1 pffrag 232 1398 0 1398 6 5 1 1 0 482 1 pffrnode 88 1398 0 1398 6 5 1 1 0 8 1 pffrent 40 14458 0 14458 6 5 1 1 0 8 1 pfosfp 40 846 0 846 5 5 0 5 0 8 0 pfosfpen 112 1428 0 1428 21 21 0 21 0 8 0 pfstitem 24 929 0 854 1 0 1 1 0 8 0 pfstkey 112 932 0 857 5 2 3 3 0 8 0 pfstate 328 932 0 857 14 7 7 9 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 33 0 29 20 16 4 5 0 8 0 art_heap4 256 4510 0 4255 70 50 20 21 0 8 0 art_table 32 4543 0 4284 5 2 3 3 0 8 0 art_node 16 1000 0 952 1 0 1 1 0 8 0 sysvmsgpl 40 53 0 14 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 3316 0 3306 1 0 1 1 0 8 0 shmpl 112 130 0 2 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 18215 0 16749 48 0 48 48 0 8 0 ffsino 272 18215 0 16749 99 0 99 99 0 8 0 nchpl 144 34103 0 33648 62 42 20 61 0 8 0 uvmvnodes 72 7069 0 0 129 0 129 129 0 8 0 vnodes 208 7069 0 0 373 0 373 373 0 8 0 namei 1024 130627 0 130627 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 84 0 1 11 0 11 11 0 8 0 vmpool 552 117 0 34 7 1 6 6 0 8 0 scsiplug 64 13 0 13 9 9 0 1 0 8 0 scxspl 192 112802 0 112802 90 87 3 7 0 8 3 plimitpl 152 904 0 897 1 0 1 1 0 8 0 sigapl 432 10389 0 10375 3 1 2 3 0 8 0 futexpl 56 282965 0 282964 5 4 1 1 0 8 0 knotepl 112 2256 0 2237 12 11 1 3 0 8 0 kqueuepl 104 3509 0 3507 20 19 1 4 0 8 0 pipepl 112 6372 0 6349 13 12 1 2 0 8 0 fdescpl 488 10390 0 10375 3 0 3 3 0 8 0 filepl 152 103866 0 103772 109 104 5 14 0 8 1 lockfpl 104 4112 0 4112 6 5 1 1 0 8 1 lockfspl 48 1387 0 1387 6 5 1 1 0 8 1 sessionpl 112 95 0 86 1 0 1 1 0 8 0 pgrppl 48 241 0 232 1 0 1 1 0 8 0 ucredpl 96 16040 0 16031 1 0 1 1 0 8 0 zombiepl 144 10383 0 10383 4 3 1 1 0 8 1 processpl 896 10415 0 10383 4 0 4 4 0 8 0 procpl 632 33781 0 33737 13 8 5 5 0 8 0 srpgc 64 111 0 111 32 31 1 1 0 8 1 sosppl 128 383 0 383 36 36 0 1 0 8 0 sockpl 384 37401 0 37374 144 139 5 22 0 8 1 mcl64k 65536 491 0 0 45 38 7 34 0 8 0 mcl16k 16384 25 0 0 3 0 3 3 0 8 0 mcl12k 12288 41 0 0 2 0 2 2 0 8 0 mcl9k 9216 57 0 0 3 1 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 42 0 0 3 0 3 3 0 8 0 mcl2k2 2112 12 0 0 1 0 1 1 0 8 0 mcl2k 2048 253 0 0 27 10 17 27 0 8 0 mtagpl 80 133 0 0 1 0 1 1 0 8 0 mbufpl 256 1092 0 0 46 2 44 46 0 8 0 bufpl 256 40903 0 33790 445 0 445 445 0 8 0 anonpl 16 1361211 0 1331260 369 232 137 137 0 124 14 amapchunkpl 152 80910 0 80240 163 132 31 31 0 158 4 amappl16 192 59635 0 58303 406 329 77 79 0 8 8 amappl15 184 1810 0 1808 1 0 1 1 0 8 0 amappl14 176 2593 0 2587 1 0 1 1 0 8 0 amappl13 168 917 0 915 1 0 1 1 0 8 0 amappl12 160 913 0 912 1 0 1 1 0 8 0 amappl11 152 518 0 510 1 0 1 1 0 8 0 amappl10 144 814 0 809 1 0 1 1 0 8 0 amappl9 136 3955 0 3950 1 0 1 1 0 8 0 amappl8 128 3674 0 3588 4 1 3 3 0 8 0 amappl7 120 1113 0 1104 1 0 1 1 0 8 0 amappl6 112 389 0 373 1 0 1 1 0 8 0 amappl5 104 2136 0 2124 1 0 1 1 0 8 0 amappl4 96 9810 0 9768 6 4 2 2 0 8 0 amappl3 88 5385 0 5378 1 0 1 1 0 8 0 amappl2 80 80125 0 80049 3 1 2 3 0 8 0 amappl1 72 243353 0 242925 26 16 10 20 0 8 0 amappl 80 35400 0 35312 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 131 0 2 3 0 3 3 0 8 0 uaddrrnd 24 10507 0 10375 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 10507 0 10375 1 0 1 1 0 8 0 vmmpekpl 168 84173 0 84123 4 1 3 3 0 8 0 vmmpepl 168 1348062 0 1345322 597 436 161 167 0 357 35 vmsppl 368 10389 0 10375 2 0 2 2 0 8 0 pdppl 4096 21021 0 20901 21 5 16 16 0 8 0 pvpl 32 3366304 0 3342284 630 400 230 240 0 265 24 pmappl 232 10506 0 10409 6 0 6 6 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 888 0 219 20 0 20 20 0 8 0