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 *101284 85913 0 0 0x4000000 0 syz-executor.1 102097 32999 0 0x2 0x4000000 1K syz-fuzzer 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(ffff800023bf2c50) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020b5a000,fffffd8064468cb8,10,ffff800000025370,ffff800023bf2eb8) at alltraps_kern_meltdown+0x7b 0(b,ffff800023bf2e18,83,ffff800023bf2eb8,0,b) at 0 rt_clone(ffff800023bf2f28,fffffd806f6d53c8,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d53c8,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d53c8,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023bf3000,fffffd805e880a20,fffffd806f6d5348) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d5348,fffffd805e880a00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd807322bdd0,4,0,fffffd805e880a00,0,ffff800020abe290) at udp_usrreq+0x560 sys_connect(ffff800020abe290,ffff800023bf3188,ffff800023bf31d0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023bf3250) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bf3250) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,2d5877fa010) at Xsyscall+0x128 end of kernel end trace frame: 0x2d8404efef0, 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(ffff800023bf2c50) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800020b5a000,fffffd8064468cb8,10,ffff800000025370,ffff800023bf2eb8) at alltraps_kern_meltdown+0x7b 0(b,ffff800023bf2e18,83,ffff800023bf2eb8,0,b) at 0 rt_clone(ffff800023bf2f28,fffffd806f6d53c8,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d53c8,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d53c8,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023bf3000,fffffd805e880a20,fffffd806f6d5348) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d5348,fffffd805e880a00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd807322bdd0,4,0,fffffd805e880a00,0,ffff800020abe290) at udp_usrreq+0x560 sys_connect(ffff800020abe290,ffff800023bf3188,ffff800023bf31d0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023bf3250) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bf3250) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,2d5877fa010) at Xsyscall+0x128 end of kernel end trace frame: 0x2d8404efef0, count: -14 ddb{0}> show registers rdi 0xffffffff818c8e87 db_enter+0x17 rsi 0x2290 __ALIGN_SIZE+0x1290 rbp 0xffff800023bf2ac0 rbx 0xffff800023bf2b70 rdx 0x2291 __ALIGN_SIZE+0x1291 rcx 0xffff800020b5a000 rax 0xffff800020b5a000 r8 0xffffffff81ad2b6f kprintf+0x16f r9 0x1 r10 0x25 r11 0x30bccc07280a8547 r12 0x3000000008 r13 0xffff800023bf2ad0 r14 0x100 r15 0x1 rip 0xffffffff818c8e88 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023bf2ab0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=101284 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020abf650,0xffff800020abf170 process=0xffff800020adc700 user=0xffff800023bee000, vmspace=0xfffffd807f00b000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 85913 6834 49504 0 2 0 syz-executor.1 *85913 101284 49504 0 7 0x4000000 syz-executor.1 30836 105742 90799 0 2 0 syz-executor.0 30836 161652 90799 0 3 0x4000080 fsleep syz-executor.0 30836 278157 90799 0 2 0x4000000 syz-executor.0 30836 217452 90799 0 3 0x4000080 fsleep syz-executor.0 49504 44817 32999 0 2 0x482 syz-executor.1 90799 240523 32999 0 2 0x2 syz-executor.0 62138 401831 0 0 3 0x14200 acct acct 75992 378841 1 0 3 0x100083 ttyin getty 23503 12562 0 0 3 0x14200 bored sosplice 32999 247149 26742 0 3 0x82 thrsleep syz-fuzzer 32999 989 26742 0 3 0x4000082 nanosleep syz-fuzzer 32999 102097 26742 0 7 0x4000002 syz-fuzzer 32999 131977 26742 0 3 0x4000082 thrsleep syz-fuzzer 32999 366112 26742 0 3 0x4000082 thrsleep syz-fuzzer 32999 24086 26742 0 2 0x4000082 syz-fuzzer 32999 241348 26742 0 3 0x4000082 thrsleep syz-fuzzer 32999 436598 26742 0 2 0x4000082 syz-fuzzer 32999 291248 26742 0 3 0x4000082 thrsleep syz-fuzzer 32999 262316 26742 0 3 0x4000082 kqread syz-fuzzer 26742 29006 2740 0 3 0x10008a pause ksh 2740 425586 34971 0 3 0x92 select sshd 34971 316808 1 0 3 0x80 select sshd 251 16136 24007 74 3 0x100092 bpf pflogd 24007 79991 1 0 3 0x80 netio pflogd 62717 409166 95107 73 3 0x100090 kqread syslogd 95107 513665 1 0 3 0x100082 netio syslogd 73456 40313 1 77 3 0x100090 poll dhclient 24522 157162 1 0 3 0x80 poll dhclient 83057 116320 0 0 2 0x14200 zerothread 3916 317019 0 0 3 0x14200 aiodoned aiodoned 7667 468442 0 0 3 0x14200 syncer update 62388 299966 0 0 3 0x14200 cleaner cleaner 86446 513521 0 0 3 0x14200 reaper reaper 32502 162593 0 0 3 0x14200 pgdaemon pagedaemon 81677 392818 0 0 3 0x14200 bored crynlk 77697 259849 0 0 3 0x14200 bored crypto 43254 389666 0 0 3 0x40014200 acpi0 acpi0 96291 57395 0 0 3 0x40014200 idle1 66346 226035 0 0 3 0x14200 bored softnet 48586 62094 0 0 3 0x14200 bored systqmp 14416 29783 0 0 3 0x14200 bored systq 3114 57636 0 0 2 0x40014200 softclock 94733 450790 0 0 3 0x40014200 idle0 67601 419304 0 0 3 0x14200 bored smr 1 303431 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 85913 (syz-executor.1) thread 0xffff800020abe290 (101284) exclusive rwlock netlock r = 0 (0xffffffff824d1b18) #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 (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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9622 6473K 8456K 78643K 20489 0 0 pcb 13 11K 12K 78643K 1278 0 0 rtable 128 14K 14K 78643K 2566 0 0 ifaddr 104 22K 24K 78643K 778 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1628 0 0 iov 0 0K 32K 78643K 812 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1231 77K 78K 78643K 5284 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 80 0 0 VM map 35 17K 18K 78643K 52 0 0 sem 10 1K 1K 78643K 10 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 4155 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 465 0 0 in_multi 31 2K 2K 78643K 556 0 0 ether_multi 1 0K 0K 78643K 41 0 0 mrt 1 0K 0K 78643K 17 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 906 0 0 pfkey data 0 0K 4K 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 186 276K 276K 78643K 15679 0 0 UVM aobj 130 8K 8K 78643K 137 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 1553 0 0 NDP 24 0K 1K 78643K 253 0 0 temp 257 3561K 4201K 78643K 194818 0 0 kqueue 0 0K 0K 78643K 42 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 77 0 70 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 412 0 410 1 0 1 1 0 8 0 rtentry 112 448 0 400 2 0 2 2 0 8 0 unpcb 120 2195 0 2181 5 4 1 2 0 8 0 syncache 264 28 0 28 13 13 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 206 0 206 10 10 0 1 0 8 0 tcpcb 544 2677 0 2672 42 41 1 14 0 8 0 inpcb 280 9331 0 9323 52 48 4 9 0 8 3 rttmr 72 3 0 3 3 3 0 1 0 8 0 ip6q 72 2 0 1 2 1 1 1 0 8 0 nd6 48 71 0 69 1 0 1 1 0 8 0 pkpcb 40 36 0 36 8 8 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 94 0 94 18 17 1 1 0 8 1 pffrag 232 117 0 117 14 13 1 1 0 482 1 pffrnode 88 117 0 117 14 13 1 1 0 8 1 pffrent 40 3479 0 3479 14 13 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 377 0 302 1 0 1 1 0 8 0 pfstkey 112 377 0 302 3 0 3 3 0 8 0 pfstate 328 377 0 302 9 1 8 8 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 4 0 2 4 2 2 3 0 8 0 art_heap4 256 1894 0 1687 31 16 15 16 0 8 0 art_table 32 1898 0 1689 2 0 2 2 0 8 0 art_node 16 446 0 400 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 12 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 8 0 0 1 0 1 1 0 8 0 shmpl 112 135 0 7 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 7787 0 6354 48 1 47 47 0 8 0 ffsino 272 7787 0 6354 96 0 96 96 0 8 0 nchpl 144 15783 0 15307 60 40 20 60 0 8 0 uvmvnodes 72 6143 0 0 112 0 112 112 0 8 0 vnodes 208 6143 0 0 324 0 324 324 0 8 0 namei 1024 59388 0 59388 7 6 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 33 0 0 5 0 5 5 0 8 0 vmpool 552 50 0 17 3 0 3 3 0 8 0 scsiplug 64 4 0 4 3 3 0 1 0 8 0 scxspl 192 45939 0 45939 34 32 2 7 0 8 2 plimitpl 152 320 0 311 1 0 1 1 0 8 0 sigapl 432 4286 0 4270 3 1 2 3 0 8 0 futexpl 56 103181 0 103179 3 2 1 1 0 8 0 knotepl 112 1168 0 1149 8 7 1 3 0 8 0 kqueuepl 104 1388 0 1386 11 10 1 4 0 8 0 pipepl 112 2482 0 2463 2 1 1 2 0 8 0 fdescpl 488 4287 0 4270 3 0 3 3 0 8 0 filepl 152 45052 0 44948 54 48 6 14 0 8 1 lockfpl 104 1348 0 1347 1 0 1 1 0 8 0 lockfspl 48 449 0 448 1 0 1 1 0 8 0 sessionpl 112 43 0 32 1 0 1 1 0 8 0 pgrppl 48 64 0 53 1 0 1 1 0 8 0 ucredpl 96 8641 0 8630 1 0 1 1 0 8 0 zombiepl 144 4271 0 4271 3 2 1 1 0 8 1 processpl 896 4305 0 4271 4 0 4 4 0 8 0 procpl 632 13597 0 13550 11 6 5 5 0 8 1 srpgc 64 29 0 29 11 10 1 1 0 8 1 sosppl 128 1082 0 1082 10 9 1 1 0 8 1 sockpl 384 12130 0 12106 73 66 7 14 0 8 3 mcl64k 65536 731 0 0 78 13 65 66 0 8 0 mcl16k 16384 20 0 0 3 1 2 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 208 0 0 22 6 16 22 0 8 0 mtagpl 80 101 0 0 2 1 1 2 0 8 0 mbufpl 256 881 0 0 39 0 39 39 0 8 0 bufpl 256 18237 0 11179 442 0 442 442 0 8 0 anonpl 16 539414 0 518166 172 77 95 103 0 124 2 amapchunkpl 152 31991 0 31814 62 51 11 21 0 158 3 amappl16 192 24013 0 22790 171 99 72 74 0 8 8 amappl15 184 645 0 643 1 0 1 1 0 8 0 amappl14 176 692 0 685 1 0 1 1 0 8 0 amappl13 168 407 0 407 5 4 1 1 0 8 1 amappl12 160 1231 0 1230 2 1 1 1 0 8 0 amappl11 152 343 0 326 1 0 1 1 0 8 0 amappl10 144 1021 0 1013 1 0 1 1 0 8 0 amappl9 136 1017 0 1013 1 0 1 1 0 8 0 amappl8 128 615 0 561 2 0 2 2 0 8 0 amappl7 120 1109 0 1099 1 0 1 1 0 8 0 amappl6 112 301 0 285 1 0 1 1 0 8 0 amappl5 104 1554 0 1540 1 0 1 1 0 8 0 amappl4 96 3588 0 3552 1 0 1 1 0 8 0 amappl3 88 1822 0 1816 1 0 1 1 0 8 0 amappl2 80 32621 0 32535 3 1 2 3 0 8 0 amappl1 72 106565 0 106112 26 16 10 20 0 8 0 amappl 80 14331 0 14262 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 136 0 7 3 0 3 3 0 8 0 uaddrrnd 24 4337 0 4270 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4337 0 4270 1 0 1 1 0 8 0 vmmpekpl 168 37843 0 37802 4 1 3 3 0 8 0 vmmpepl 168 558266 0 555632 355 198 157 172 0 357 37 vmsppl 368 4286 0 4270 2 0 2 2 0 8 0 pdppl 4096 8681 0 8607 13 3 10 10 0 8 0 pvpl 32 1371956 0 1347913 341 129 212 227 0 265 1 pmappl 232 4336 0 4287 3 0 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 792 0 91 21 0 21 21 0 8 0