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 39123 88425 0 0 0 0 syz-executor.1 *320706 88425 0 0 0x4000000 1K 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(ffff800023bd1210) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800021b5e000,fffffd806f44ce00,10,ffff8000000253b0,ffff800023bd1478) at alltraps_kern_meltdown+0x7b 0(b,ffff800023bd13d8,83,ffff800023bd1478,0,b) at 0 rt_clone(ffff800023bd14e8,fffffd806f6cc828,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cc828,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cc828,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023bd15c0,fffffd8066cd5920,fffffd806f6cc7a8) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cc7a8,fffffd8066cd5900) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd8061f37488,4,0,fffffd8066cd5900,0,ffff800020ab18c8) at udp_usrreq+0x560 sys_connect(ffff800020ab18c8,ffff800023bd1748,ffff800023bd1790) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023bd1810) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bd1810) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,90dd77b010) at Xsyscall+0x128 end of kernel end trace frame: 0x93723a88a0, 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(ffff800023bd1210) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800021b5e000,fffffd806f44ce00,10,ffff8000000253b0,ffff800023bd1478) at alltraps_kern_meltdown+0x7b 0(b,ffff800023bd13d8,83,ffff800023bd1478,0,b) at 0 rt_clone(ffff800023bd14e8,fffffd806f6cc828,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cc828,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cc828,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023bd15c0,fffffd8066cd5920,fffffd806f6cc7a8) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cc7a8,fffffd8066cd5900) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd8061f37488,4,0,fffffd8066cd5900,0,ffff800020ab18c8) at udp_usrreq+0x560 sys_connect(ffff800020ab18c8,ffff800023bd1748,ffff800023bd1790) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023bd1810) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bd1810) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,90dd77b010) at Xsyscall+0x128 end of kernel end trace frame: 0x93723a88a0, count: -14 ddb{1}> show registers rdi 0xffffffff815a92f7 db_enter+0x17 rsi 0x2367 __ALIGN_SIZE+0x1367 rbp 0xffff800023bd1080 rbx 0xffff800023bd1130 rdx 0x2368 __ALIGN_SIZE+0x1368 rcx 0xffff800021b5e000 rax 0xffff800021b5e000 r8 0xffffffff821269af kprintf+0x16f r9 0x1 r10 0x25 r11 0x27ae5b5ea7853e04 r12 0x3000000008 r13 0xffff800023bd1090 r14 0x100 r15 0x1 rip 0xffffffff815a92f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023bd1070 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=320706 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab1650,0xffffffff8266aad8 process=0xffff800020adc700 user=0xffff800023bcc000, vmspace=0xfffffd807f00a8a0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 88425 39123 25653 0 7 0 syz-executor.1 *88425 320706 25653 0 7 0x4000000 syz-executor.1 78097 353286 31989 0 3 0x80 nanosleep syz-executor.0 78097 477498 31989 0 3 0x4000080 wsevent_read syz-executor.0 78097 307765 31989 0 3 0x4000080 fsleep syz-executor.0 31989 485671 19878 0 3 0x82 nanosleep syz-executor.0 25653 341733 19878 0 3 0x82 nanosleep syz-executor.1 12362 440296 0 0 3 0x14200 acct acct 26481 1166 0 0 3 0x14200 bored sosplice 19878 360160 56092 0 3 0x82 nanosleep syz-fuzzer 19878 270206 56092 0 3 0x4000082 nanosleep syz-fuzzer 19878 121025 56092 0 3 0x4000082 thrsleep syz-fuzzer 19878 173734 56092 0 3 0x4000082 thrsleep syz-fuzzer 19878 175010 56092 0 3 0x4000082 kqread syz-fuzzer 19878 163329 56092 0 3 0x4000082 thrsleep syz-fuzzer 19878 470057 56092 0 3 0x4000082 thrsleep syz-fuzzer 19878 419316 56092 0 3 0x4000082 thrsleep syz-fuzzer 19878 478520 56092 0 3 0x4000082 thrsleep syz-fuzzer 19878 43859 56092 0 3 0x4000082 thrsleep syz-fuzzer 56092 513598 25000 0 3 0x10008a pause ksh 25000 372326 77241 0 3 0x92 select sshd 88293 391748 1 0 3 0x100083 ttyin getty 77241 443879 1 0 3 0x80 select sshd 55627 476922 18657 74 3 0x100092 bpf pflogd 18657 173158 1 0 3 0x80 netio pflogd 35775 124751 87642 73 3 0x100090 kqread syslogd 87642 140921 1 0 3 0x100082 netio syslogd 39163 455939 1 77 3 0x100090 poll dhclient 83330 182464 1 0 3 0x80 poll dhclient 4561 338030 0 0 3 0x14200 pgzero zerothread 11419 246617 0 0 3 0x14200 aiodoned aiodoned 68449 429993 0 0 3 0x14200 syncer update 94747 221758 0 0 3 0x14200 cleaner cleaner 48699 191146 0 0 3 0x14200 reaper reaper 32101 242465 0 0 3 0x14200 pgdaemon pagedaemon 84126 149420 0 0 3 0x14200 bored crynlk 41584 189740 0 0 3 0x14200 bored crypto 57216 7912 0 0 3 0x40014200 acpi0 acpi0 84092 352123 0 0 3 0x40014200 idle1 57832 322479 0 0 3 0x14200 bored softnet 36728 212958 0 0 3 0x14200 bored systqmp 46981 320850 0 0 3 0x14200 bored systq 94797 322592 0 0 3 0x40014200 bored softclock 47377 323483 0 0 3 0x40014200 idle0 20005 520956 0 0 3 0x14200 bored smr 1 34675 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 88425 (syz-executor.1) thread 0xffff800020ab18c8 (320706) exclusive rwlock netlock r = 0 (0xffffffff824895c8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 uvn_io+0x3b2 sys/uvm/uvm_vnode.c:1206 #2 uvn_get+0x226 sys/uvm/uvm_vnode.c:1049 #3 uvm_fault+0x11cc sys/uvm/uvm_fault.c:1023 #4 pageflttrap+0x20b sys/arch/amd64/amd64/trap.c:199 #5 kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 #6 alltraps_kern_meltdown+0x7b #7 copyin+0x4b #8 sys_connect+0x9c sys/kern/uipc_syscalls.c:367 #9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #10 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 2 (0xffffffff82663580) #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 9626 7362K 8003K 78643K 21525 0 0 pcb 13 12K 14K 78643K 873 0 0 rtable 155 15K 15K 78643K 2166 0 0 ifaddr 101 22K 23K 78643K 637 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1637 0 0 iov 0 0K 24K 78643K 830 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1220 77K 77K 78643K 5182 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 45 0 0 VM map 23 11K 11K 78643K 31 0 0 sem 12 0K 1K 78643K 1212 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 3536 0 0 sigio 0 0K 0K 78643K 62 0 0 proc 61 63K 95K 78643K 1764 0 0 subproc 32 2K 2K 78643K 427 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 325 0 0 in_multi 40 2K 2K 78643K 503 0 0 ether_multi 1 0K 0K 78643K 39 0 0 mrt 0 0K 0K 78643K 13 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 84 371K 371K 78643K 84 0 0 exec 0 0K 1K 78643K 949 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 170 207K 216K 78643K 13770 0 0 UVM aobj 130 5K 5K 78643K 135 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 855 0 0 NDP 24 0K 1K 78643K 206 0 0 temp 243 3565K 4205K 78643K 135573 0 0 kqueue 0 0K 0K 78643K 19 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 63 0 56 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 361 0 359 1 0 1 1 0 8 0 rtentry 112 404 0 344 2 0 2 2 0 8 0 unpcb 120 2061 0 2047 3 2 1 2 0 8 0 syncache 264 20 0 20 8 8 0 1 0 8 0 tcpqe 32 7 0 7 5 5 0 1 0 8 0 tcpcb 544 2701 0 2697 26 23 3 6 0 8 2 inpcb 280 13323 0 13315 67 61 6 12 0 8 5 rttmr 72 2 0 2 2 2 0 1 0 8 0 ip6q 72 3 0 3 2 2 0 1 0 8 0 ip6af 40 7 0 7 2 2 0 1 0 8 0 nd6 48 67 0 63 2 1 1 1 0 8 0 pkpcb 40 10 0 10 7 7 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 73 0 73 17 16 1 1 0 8 1 pffrag 232 86 0 86 14 13 1 1 0 482 1 pffrnode 88 86 0 86 14 13 1 1 0 8 1 pffrent 40 2360 0 2360 14 13 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 310 0 259 1 0 1 1 0 8 0 pfstkey 112 310 0 259 2 0 2 2 0 8 0 pfstate 328 310 0 259 8 3 5 6 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 10 0 6 9 5 4 6 0 8 0 art_heap4 256 1891 0 1635 33 16 17 18 0 8 1 art_table 32 1901 0 1641 4 1 3 3 0 8 0 art_node 16 398 0 344 1 0 1 1 0 8 0 sysvmsgpl 40 36 0 22 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 1210 0 1200 1 0 1 1 0 8 0 shmpl 112 133 0 5 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 6792 0 5381 46 0 46 46 0 8 0 ffsino 272 6792 0 5381 95 0 95 95 0 8 0 nchpl 144 12787 0 12327 61 42 19 61 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 45461 0 45461 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 21 0 0 3 0 3 3 0 8 0 vmpool 552 29 0 8 2 0 2 2 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 38340 0 38340 30 28 2 7 0 8 2 plimitpl 152 301 0 293 1 0 1 1 0 8 0 sigapl 432 3665 0 3649 4 2 2 3 0 8 0 futexpl 56 97258 0 97257 1 0 1 1 0 8 0 knotepl 112 949 0 930 6 5 1 3 0 8 0 kqueuepl 104 985 0 983 2 1 1 2 0 8 0 pipepl 112 2054 0 2034 7 6 1 2 0 8 0 fdescpl 488 3666 0 3649 3 0 3 3 0 8 0 filepl 152 39836 0 39726 41 34 7 11 0 8 2 lockfpl 104 1096 0 1095 1 0 1 1 0 8 0 lockfspl 48 380 0 379 1 0 1 1 0 8 0 sessionpl 112 41 0 30 1 0 1 1 0 8 0 pgrppl 48 96 0 85 1 0 1 1 0 8 0 ucredpl 96 4958 0 4949 1 0 1 1 0 8 0 zombiepl 144 3649 0 3649 1 0 1 1 0 8 1 processpl 896 3683 0 3649 5 1 4 5 0 8 0 procpl 632 11718 0 11672 6 1 5 5 0 8 1 srpgc 64 32 0 32 10 9 1 1 0 8 1 sosppl 128 112 0 112 15 14 1 1 0 8 1 sockpl 384 16027 0 16003 95 85 10 19 0 8 6 mcl64k 65536 525 0 0 66 20 46 66 0 8 1 mcl16k 16384 17 0 0 3 1 2 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 22 0 0 2 0 2 2 0 8 0 mcl8k 8192 33 0 0 5 2 3 3 0 8 0 mcl4k 4096 25 0 0 3 0 3 3 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 190 0 0 20 2 18 20 0 8 0 mtagpl 80 104 0 0 2 0 2 2 0 8 0 mbufpl 256 844 0 0 42 0 42 42 0 8 0 bufpl 256 16776 0 9718 442 0 442 442 0 8 0 anonpl 16 496340 0 480180 181 93 88 102 0 124 1 amapchunkpl 152 28576 0 28419 58 46 12 14 0 158 4 amappl16 192 20935 0 19738 170 107 63 72 0 8 3 amappl15 184 364 0 364 5 5 0 1 0 8 0 amappl14 176 914 0 905 1 0 1 1 0 8 0 amappl13 168 827 0 827 4 3 1 1 0 8 1 amappl12 160 487 0 482 1 0 1 1 0 8 0 amappl11 152 257 0 240 1 0 1 1 0 8 0 amappl10 144 585 0 580 1 0 1 1 0 8 0 amappl9 136 1091 0 1088 1 0 1 1 0 8 0 amappl8 128 706 0 654 3 1 2 2 0 8 0 amappl7 120 684 0 676 1 0 1 1 0 8 0 amappl6 112 214 0 199 1 0 1 1 0 8 0 amappl5 104 833 0 816 1 0 1 1 0 8 0 amappl4 96 3830 0 3798 1 0 1 1 0 8 0 amappl3 88 910 0 902 1 0 1 1 0 8 0 amappl2 80 27878 0 27798 3 1 2 3 0 8 0 amappl1 72 93554 0 93104 27 18 9 20 0 8 0 amappl 80 12452 0 12389 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 134 0 5 3 0 3 3 0 8 0 uaddrrnd 24 3695 0 3649 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3695 0 3649 1 0 1 1 0 8 0 vmmpekpl 168 34365 0 34328 3 1 2 2 0 8 0 vmmpepl 168 477458 0 474946 331 179 152 152 0 357 40 vmsppl 368 3665 0 3649 2 0 2 2 0 8 0 pdppl 4096 7397 0 7335 8 0 8 8 0 8 0 pvpl 32 1233901 0 1214918 382 170 212 239 0 265 16 pmappl 232 3694 0 3657 4 1 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 763 0 73 21 0 21 21 0 8 0