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 410757 91363 0 0 0 1 syz-executor.0 *222745 91363 0 0 0x4000000 0K 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(ffff800020b25080) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800023d88000,fffffd807b0cd238,10,ffff80000005b170,ffff800020b252e8) at alltraps_kern_meltdown+0x7b 0(b,ffff800020b25248,83,ffff800020b252e8,0,b) at 0 rt_clone(ffff800020b25358,fffffd80627da090,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd80627da090,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd80627da090,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800020b25430,fffffd806d751520,fffffd80627da010) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd80627da010,fffffd806d751500) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd80648f3918,4,0,fffffd806d751500,0,ffff800020ace510) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020ace510,ffff800020b255d8,ffff800020b25620) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800020b256a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b256a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffecf,0,3,3f6cf74b010) at Xsyscall+0x128 end of kernel end trace frame: 0x3f9a04754d0, 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(ffff800020b25080) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800023d88000,fffffd807b0cd238,10,ffff80000005b170,ffff800020b252e8) at alltraps_kern_meltdown+0x7b 0(b,ffff800020b25248,83,ffff800020b252e8,0,b) at 0 rt_clone(ffff800020b25358,fffffd80627da090,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd80627da090,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd80627da090,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800020b25430,fffffd806d751520,fffffd80627da010) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd80627da010,fffffd806d751500) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd80648f3918,4,0,fffffd806d751500,0,ffff800020ace510) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020ace510,ffff800020b255d8,ffff800020b25620) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800020b256a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b256a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffecf,0,3,3f6cf74b010) at Xsyscall+0x128 end of kernel end trace frame: 0x3f9a04754d0, count: -14 ddb{0}> show registers rdi 0xffffffff81823987 db_enter+0x17 rsi 0x24bb __ALIGN_SIZE+0x14bb rbp 0xffff800020b24ef0 rbx 0xffff800020b24fa0 rdx 0x24bc __ALIGN_SIZE+0x14bc rcx 0xffff800023d88000 rax 0xffff800023d88000 r8 0xffffffff81cd62ff kprintf+0x16f r9 0x1 r10 0x25 r11 0x9abc61719be87ec9 r12 0x3000000008 r13 0xffff800020b24f00 r14 0x100 r15 0x1 rip 0xffffffff81823988 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b24ee0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=222745 stat=onproc flags process=0 proc=4000000 pri=70, usrpri=70, nice=20 forw=0xffffffffffffffff, list=0xffff800020ace020,0xffffffff826651a0 process=0xffff800020adca80 user=0xffff800020b20000, vmspace=0xfffffd807f00acf0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 91363 410757 28837 0 7 0 syz-executor.0 *91363 222745 28837 0 7 0x4000000 syz-executor.0 10704 100666 33066 0 3 0x80 nanosleep syz-executor.1 10704 314644 33066 0 3 0x4000080 switchread syz-executor.1 10704 288444 33066 0 3 0x4000080 fsleep syz-executor.1 28837 326105 14047 0 3 0x82 nanosleep syz-executor.0 33066 173395 14047 0 3 0x82 nanosleep syz-executor.1 12716 185960 0 0 3 0x14200 bored sosplice 14047 276414 49022 0 3 0x82 thrsleep syz-fuzzer 14047 216021 49022 0 3 0x4000082 nanosleep syz-fuzzer 14047 325303 49022 0 3 0x4000082 kqread syz-fuzzer 14047 84947 49022 0 3 0x4000082 thrsleep syz-fuzzer 14047 195571 49022 0 3 0x4000082 nanosleep syz-fuzzer 14047 30083 49022 0 3 0x4000082 thrsleep syz-fuzzer 14047 191651 49022 0 3 0x4000082 thrsleep syz-fuzzer 14047 15673 49022 0 3 0x4000082 thrsleep syz-fuzzer 14047 459764 49022 0 3 0x4000082 thrsleep syz-fuzzer 14047 32882 49022 0 3 0x4000082 thrsleep syz-fuzzer 49022 458711 97510 0 3 0x10008a pause ksh 97510 319586 62471 0 3 0x92 select sshd 12374 27236 1 0 3 0x100083 ttyin getty 62471 229835 1 0 3 0x80 select sshd 23634 427778 17455 74 3 0x100092 bpf pflogd 17455 93618 1 0 3 0x80 netio pflogd 64456 522365 97267 73 3 0x100090 kqread syslogd 97267 45236 1 0 3 0x100082 netio syslogd 80417 29604 1 77 3 0x100090 poll dhclient 42179 241210 1 0 3 0x80 poll dhclient 19352 407928 0 0 3 0x14200 pgzero zerothread 7077 516567 0 0 3 0x14200 aiodoned aiodoned 15396 496788 0 0 3 0x14200 syncer update 90894 296366 0 0 3 0x14200 cleaner cleaner 67170 14354 0 0 3 0x14200 reaper reaper 79109 370239 0 0 3 0x14200 pgdaemon pagedaemon 53008 380910 0 0 3 0x14200 bored crynlk 76826 107974 0 0 3 0x14200 bored crypto 89476 177916 0 0 3 0x40014200 acpi0 acpi0 59514 229887 0 0 3 0x40014200 idle1 86822 273556 0 0 3 0x14200 bored softnet 17591 465207 0 0 3 0x14200 bored systqmp 67043 194438 0 0 3 0x14200 bored systq 96885 361975 0 0 3 0x40014200 bored softclock 21990 284209 0 0 3 0x40014200 idle0 53783 339231 0 0 3 0x14200 bored smr 1 343858 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 91363 (syz-executor.0) thread 0xffff800020ace510 (222745) exclusive rwlock netlock r = 0 (0xffffffff824d6738) #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 (0xffffffff82666748) #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 9532 6407K 7745K 78643K 12995 0 0 pcb 13 8K 8K 78643K 111 0 0 rtable 74 3K 3K 78643K 482 0 0 ifaddr 54 12K 13K 78643K 169 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1491 0 0 iov 0 0K 16K 78643K 65 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1229 77K 78K 78643K 1929 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 4 0 0 VM map 2 1K 1K 78643K 6 0 0 sem 12 0K 0K 78643K 47 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 452 0 0 proc 61 63K 83K 78643K 552 0 0 subproc 32 2K 2K 78643K 68 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 7 0 0 in_multi 12 0K 2K 78643K 62 0 0 ether_multi 1 0K 0K 78643K 1 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 102 450K 450K 78643K 102 0 0 exec 0 0K 1K 78643K 261 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 106 21K 26K 78643K 2635 0 0 UVM aobj 130 4K 4K 78643K 130 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 95 0 0 NDP 12 0K 0K 78643K 47 0 0 temp 155 3555K 3625K 78643K 5702 0 0 kqueue 0 0K 0K 78643K 3 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 14 0 11 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 38 0 36 1 0 1 1 0 8 0 rtentry 112 73 0 46 2 0 2 2 0 8 0 unpcb 120 148 0 138 1 0 1 1 0 8 0 syncache 264 7 0 7 3 3 0 1 0 8 0 tcpqe 32 5426 0 5426 2 2 0 1 0 8 0 tcpcb 544 153 0 146 1 0 1 1 0 8 0 inpcb 280 486 0 476 3 1 2 2 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 8 0 8 1 0 1 1 0 8 1 ppxss 1128 15 0 15 3 2 1 1 0 8 1 pffrag 232 9 0 9 3 2 1 1 0 482 1 pffrnode 88 9 0 9 3 2 1 1 0 8 1 pffrent 40 20 0 20 3 2 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 44 0 16 1 0 1 1 0 8 0 pfstkey 112 44 0 16 1 0 1 1 0 8 0 pfstate 328 44 0 16 3 0 3 3 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 328 0 194 14 2 12 14 0 8 2 art_table 32 329 0 194 2 0 2 2 0 8 0 art_node 16 72 0 47 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 12 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 45 0 35 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2044 0 642 46 0 46 46 0 8 0 ffsino 272 2044 0 642 95 0 95 95 0 8 0 nchpl 144 2832 0 1216 61 0 61 61 0 8 0 uvmvnodes 72 2689 0 0 49 0 49 49 0 8 0 vnodes 208 2689 0 0 142 0 142 142 0 8 0 namei 1024 9307 0 9307 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 4 0 4 2 2 0 1 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 8141 0 8141 11 10 1 7 0 8 1 plimitpl 152 52 0 44 1 0 1 1 0 8 0 sigapl 432 646 0 630 3 1 2 3 0 8 0 futexpl 56 9571 0 9570 1 0 1 1 0 8 0 knotepl 112 168 0 149 1 0 1 1 0 8 0 kqueuepl 104 285 0 283 1 0 1 1 0 8 0 pipepl 112 362 0 343 2 1 1 1 0 8 0 fdescpl 488 647 0 630 3 0 3 3 0 8 0 filepl 152 4907 0 4804 9 4 5 7 0 8 0 lockfpl 104 119 0 118 1 0 1 1 0 8 0 lockfspl 48 45 0 44 1 0 1 1 0 8 0 sessionpl 112 20 0 9 1 0 1 1 0 8 0 pgrppl 48 136 0 125 1 0 1 1 0 8 0 ucredpl 96 652 0 643 1 0 1 1 0 8 0 zombiepl 144 630 0 630 3 2 1 1 0 8 1 processpl 896 663 0 630 4 0 4 4 0 8 0 procpl 632 1784 0 1739 5 0 5 5 0 8 0 srpgc 64 6 0 6 3 2 1 1 0 8 1 sosppl 128 9 0 9 2 1 1 1 0 8 1 sockpl 384 676 0 654 5 2 3 4 0 8 0 mcl64k 65536 10 0 0 2 0 2 2 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 6 0 0 1 0 1 1 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 9 0 0 2 0 2 2 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 124 0 0 14 0 14 14 0 8 0 mtagpl 80 15 0 0 1 0 1 1 0 8 0 mbufpl 256 212 0 0 9 0 9 9 0 8 0 bufpl 256 7217 0 1317 369 0 369 369 0 8 0 anonpl 16 79127 0 62975 84 16 68 82 0 124 2 amapchunkpl 152 4302 0 4186 14 8 6 12 0 158 0 amappl16 192 2919 0 1994 56 8 48 55 0 8 1 amappl15 184 97 0 96 1 0 1 1 0 8 0 amappl14 176 39 0 38 2 1 1 1 0 8 0 amappl12 160 41 0 39 2 1 1 1 0 8 0 amappl11 152 63 0 47 1 0 1 1 0 8 0 amappl10 144 328 0 321 1 0 1 1 0 8 0 amappl9 136 646 0 640 1 0 1 1 0 8 0 amappl8 128 183 0 158 1 0 1 1 0 8 0 amappl7 120 362 0 355 1 0 1 1 0 8 0 amappl6 112 89 0 76 1 0 1 1 0 8 0 amappl5 104 180 0 164 1 0 1 1 0 8 0 amappl4 96 870 0 841 1 0 1 1 0 8 0 amappl3 88 165 0 158 1 0 1 1 0 8 0 amappl2 80 4187 0 4103 3 1 2 3 0 8 0 amappl1 72 24695 0 24225 28 18 10 21 0 8 0 amappl 80 2060 0 2019 2 1 1 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 129 0 0 3 0 3 3 0 8 0 uaddrrnd 24 651 0 630 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 651 0 630 1 0 1 1 0 8 0 vmmpekpl 168 9678 0 9644 2 0 2 2 0 8 0 vmmpepl 168 87541 0 85358 186 61 125 125 0 357 29 vmsppl 368 646 0 630 2 0 2 2 0 8 0 pdppl 4096 1309 0 1268 7 1 6 6 0 8 0 pvpl 32 243889 0 224469 223 45 178 198 0 265 19 pmappl 232 650 0 634 3 2 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 528 0 8 15 0 15 15 0 8 0