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 384824 96900 0 0 0 0 syz-executor.0 *292541 96900 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(ffff800022bd8e70) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800021f5e000,fffffd807b2a3c50,10,ffff80000005b580,ffff800022bd90d8) at alltraps_kern_meltdown+0x7b 0(b,ffff800022bd9038,83,ffff800022bd90d8,0,b) at 0 rt_clone(ffff800022bd9148,fffffd806f6ccb70,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6ccb70,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6ccb70,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800022bd9220,fffffd805f4ea520,fffffd806f6ccaf0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6ccaf0,fffffd805f4ea500) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd80772ae7c0,4,0,fffffd805f4ea500,0,ffff800020abe018) at udp_usrreq+0x560 sys_connect(ffff800020abe018,ffff800022bd93a8,ffff800022bd93f0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800022bd9470) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022bd9470) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,21e1d66b010) at Xsyscall+0x128 end of kernel end trace frame: 0x220febcd250, 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(ffff800022bd8e70) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800021f5e000,fffffd807b2a3c50,10,ffff80000005b580,ffff800022bd90d8) at alltraps_kern_meltdown+0x7b 0(b,ffff800022bd9038,83,ffff800022bd90d8,0,b) at 0 rt_clone(ffff800022bd9148,fffffd806f6ccb70,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6ccb70,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6ccb70,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800022bd9220,fffffd805f4ea520,fffffd806f6ccaf0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6ccaf0,fffffd805f4ea500) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd80772ae7c0,4,0,fffffd805f4ea500,0,ffff800020abe018) at udp_usrreq+0x560 sys_connect(ffff800020abe018,ffff800022bd93a8,ffff800022bd93f0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800022bd9470) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022bd9470) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,21e1d66b010) at Xsyscall+0x128 end of kernel end trace frame: 0x220febcd250, count: -14 ddb{1}> show registers rdi 0xffffffff81db2357 db_enter+0x17 rsi 0x26e9 __ALIGN_SIZE+0x16e9 rbp 0xffff800022bd8ce0 rbx 0xffff800022bd8d90 rdx 0x26ea __ALIGN_SIZE+0x16ea rcx 0xffff800021f5e000 rax 0xffff800021f5e000 r8 0xffffffff81879bcf kprintf+0x16f r9 0x1 r10 0x25 r11 0x1d9a632306b437f4 r12 0x3000000008 r13 0xffff800022bd8cf0 r14 0x100 r15 0x1 rip 0xffffffff81db2358 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022bd8cd0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=292541 stat=onproc flags process=0 proc=4000000 pri=79, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800020a5e4f8,0xffff800020abe518 process=0xffff800020adc000 user=0xffff800022bd4000, vmspace=0xfffffd807f00a000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 22095 395844 60649 0 2 0 syz-executor.1 96900 384824 79231 0 7 0 syz-executor.0 *96900 292541 79231 0 7 0x4000000 syz-executor.0 79231 447605 78672 0 3 0x82 nanosleep syz-executor.0 60649 160102 78672 0 2 0x2 syz-executor.1 77065 69584 0 0 3 0x14200 bored sosplice 78672 117406 55900 0 3 0x82 thrsleep syz-fuzzer 78672 61196 55900 0 3 0x4000082 nanosleep syz-fuzzer 78672 105762 55900 0 3 0x4000082 thrsleep syz-fuzzer 78672 240273 55900 0 3 0x4000082 thrsleep syz-fuzzer 78672 518193 55900 0 3 0x4000082 kqread syz-fuzzer 78672 195547 55900 0 3 0x4000082 thrsleep syz-fuzzer 78672 202525 55900 0 3 0x4000082 thrsleep syz-fuzzer 78672 94424 55900 0 3 0x4000082 nanosleep syz-fuzzer 78672 388660 55900 0 3 0x4000082 thrsleep syz-fuzzer 78672 484848 55900 0 3 0x4000082 thrsleep syz-fuzzer 55900 41556 28712 0 3 0x10008a pause ksh 28712 262559 26846 0 3 0x92 select sshd 3398 95480 1 0 3 0x100083 ttyin getty 26846 503268 1 0 3 0x80 select sshd 42915 499104 55360 74 3 0x100092 bpf pflogd 55360 298916 1 0 3 0x80 netio pflogd 36119 294959 68887 73 3 0x100090 kqread syslogd 68887 436904 1 0 3 0x100082 netio syslogd 87964 2376 1 77 3 0x100090 poll dhclient 25919 120503 1 0 3 0x80 poll dhclient 50963 417683 0 0 3 0x14200 pgzero zerothread 9783 489884 0 0 3 0x14200 aiodoned aiodoned 19579 204562 0 0 3 0x14200 syncer update 36559 362457 0 0 3 0x14200 cleaner cleaner 22901 27696 0 0 3 0x14200 reaper reaper 30567 273779 0 0 3 0x14200 pgdaemon pagedaemon 53394 253412 0 0 3 0x14200 bored crynlk 77330 468467 0 0 3 0x14200 bored crypto 59896 40712 0 0 3 0x40014200 acpi0 acpi0 45805 133109 0 0 3 0x40014200 idle1 78728 175134 0 0 3 0x14200 bored softnet 30943 327586 0 0 3 0x14200 bored systqmp 75819 293109 0 0 3 0x14200 bored systq 73841 343553 0 0 3 0x40014200 bored softclock 66100 140435 0 0 3 0x40014200 idle0 97771 149802 0 0 3 0x14200 bored smr 1 47332 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 96900 (syz-executor.0) thread 0xffff800020abe018 (292541) exclusive rwlock netlock r = 0 (0xffffffff824fd158) #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 (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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9646 6506K 8618K 78643K 42249 0 0 pcb 13 13K 15K 78643K 6205 0 0 rtable 210 20K 20K 78643K 7419 0 0 ifaddr 138 38K 45K 78643K 2491 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2042 0 0 iov 0 0K 32K 78643K 2939 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1216 76K 77K 78643K 13266 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 174 0 0 VM map 103 51K 52K 78643K 157 0 0 sem 12 1K 1K 78643K 498 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 13233 0 0 sigio 0 0K 0K 78643K 193 0 0 proc 62 63K 95K 78643K 4766 0 0 subproc 32 2K 2K 78643K 1247 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 1670 0 0 in_multi 45 2K 3K 78643K 1422 0 0 ether_multi 1 0K 0K 78643K 137 0 0 mrt 0 0K 0K 78643K 72 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 2625 0 0 pfkey data 0 0K 4K 78643K 4 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 313 872K 877K 78643K 46839 0 0 UVM aobj 130 8K 8K 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 2K 78643K 3170 0 0 NDP 27 0K 1K 78643K 754 0 0 temp 224 3565K 4205K 78643K 328076 0 0 kqueue 0 0K 0K 78643K 122 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 178 0 173 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 1142 0 1140 1 0 1 1 0 8 0 rtentry 112 1123 0 1038 3 0 3 3 0 8 0 unpcb 120 8286 0 8262 16 15 1 2 0 8 0 syncache 264 55 0 55 29 29 0 1 0 8 0 tcpqe 32 72 0 72 16 16 0 1 0 8 0 tcpcb 544 7507 0 7503 114 113 1 14 0 8 0 inpcb 280 24330 0 24322 126 122 4 13 0 8 3 rttmr 72 25 0 25 10 10 0 1 0 8 0 ip6q 72 14 0 14 8 8 0 1 0 8 0 ip6af 40 29 0 29 7 7 0 1 0 8 0 nd6 48 173 0 171 11 10 1 1 0 8 0 pkpcb 40 85 0 85 28 28 0 1 0 8 0 swfcl 56 17 0 0 1 0 1 1 0 8 0 ppxss 1128 397 0 397 37 36 1 1 0 8 1 pffrag 232 463 0 463 32 31 1 1 0 482 1 pffrnode 88 463 0 463 32 31 1 1 0 8 1 pffrent 40 14940 0 14940 32 31 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 1154 0 1129 1 0 1 1 0 8 0 pfstkey 112 1157 0 1132 4 2 2 4 0 8 0 pfstate 328 1157 0 1132 14 11 3 9 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 21 0 15 14 8 6 8 0 8 0 art_heap4 256 4949 0 4657 65 44 21 22 0 8 1 art_table 32 4970 0 4672 3 0 3 3 0 8 0 art_node 16 1118 0 1062 1 0 1 1 0 8 0 sysvmsgpl 40 38 0 21 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 496 0 486 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 22254 0 20776 51 3 48 48 0 8 0 ffsino 272 22254 0 20776 101 1 100 100 0 8 0 nchpl 144 49161 0 48689 61 42 19 61 0 8 0 uvmvnodes 72 7843 0 0 143 0 143 143 0 8 0 vnodes 208 7843 0 0 413 0 413 413 0 8 0 namei 1024 166812 0 166812 6 5 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 102 0 1 13 0 13 13 0 8 0 vmpool 552 155 0 54 11 3 8 8 0 8 0 scsiplug 64 19 0 19 11 11 0 1 0 8 0 scxspl 192 143103 0 143103 96 95 1 4 0 8 1 plimitpl 152 1037 0 1029 1 0 1 1 0 8 0 sigapl 432 13218 0 13202 4 1 3 3 0 8 1 futexpl 56 348609 0 348609 2 1 1 1 0 8 1 knotepl 112 2637 0 2618 11 10 1 3 0 8 0 kqueuepl 104 4449 0 4447 25 24 1 4 0 8 0 pipepl 112 11642 0 11623 34 33 1 2 0 8 0 fdescpl 488 13219 0 13202 3 0 3 3 0 8 0 filepl 152 133036 0 132934 135 128 7 14 0 8 3 lockfpl 104 4741 0 4740 1 0 1 1 0 8 0 lockfspl 48 1570 0 1569 1 0 1 1 0 8 0 sessionpl 112 89 0 78 1 0 1 1 0 8 0 pgrppl 48 1853 0 1842 1 0 1 1 0 8 0 ucredpl 96 14264 0 14255 1 0 1 1 0 8 0 zombiepl 144 13213 0 13213 4 3 1 1 0 8 1 processpl 896 13246 0 13213 4 0 4 4 0 8 0 procpl 632 42136 0 42093 11 6 5 5 0 8 1 srpgc 64 179 0 179 41 40 1 1 0 8 1 sosppl 128 398 0 398 46 45 1 1 0 8 1 sockpl 384 34249 0 34215 188 180 8 23 0 8 3 mcl64k 65536 1081 0 0 132 102 30 129 0 8 0 mcl16k 16384 38 0 0 4 2 2 3 0 8 0 mcl12k 12288 57 0 0 2 0 2 2 0 8 0 mcl9k 9216 33 0 0 3 1 2 2 0 8 0 mcl8k 8192 33 0 0 5 2 3 3 0 8 0 mcl4k 4096 31 0 0 3 0 3 3 0 8 0 mcl2k2 2112 19 0 0 2 0 2 2 0 8 0 mcl2k 2048 268 0 0 26 13 13 26 0 8 0 mtagpl 80 206 0 0 1 0 1 1 0 8 0 mbufpl 256 1431 0 0 70 3 67 70 0 8 0 bufpl 256 48010 0 40166 492 1 491 491 0 8 0 anonpl 16 1601251 0 1563097 495 326 169 181 0 124 3 amapchunkpl 152 96100 0 94901 226 176 50 60 0 158 2 amappl16 192 73296 0 71891 510 431 79 83 0 8 7 amappl15 184 1416 0 1416 6 6 0 1 0 8 0 amappl14 176 3254 0 3248 1 0 1 1 0 8 0 amappl13 168 1572 0 1572 15 15 0 1 0 8 0 amappl12 160 1751 0 1747 1 0 1 1 0 8 0 amappl11 152 2447 0 2430 1 0 1 1 0 8 0 amappl10 144 1726 0 1721 1 0 1 1 0 8 0 amappl9 136 2276 0 2272 1 0 1 1 0 8 0 amappl8 128 2049 0 1967 3 0 3 3 0 8 0 amappl7 120 2026 0 2017 1 0 1 1 0 8 0 amappl6 112 2259 0 2246 1 0 1 1 0 8 0 amappl5 104 2598 0 2580 1 0 1 1 0 8 0 amappl4 96 11615 0 11572 5 3 2 2 0 8 0 amappl3 88 5244 0 5232 1 0 1 1 0 8 0 amappl2 80 102583 0 102504 3 1 2 3 0 8 0 amappl1 72 303457 0 303015 25 15 10 20 0 8 0 amappl 80 43792 0 43684 3 0 3 3 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 13374 0 13202 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 13374 0 13202 2 0 2 2 0 8 0 vmmpekpl 168 104689 0 104633 4 1 3 3 0 8 0 vmmpepl 168 1695254 0 1692293 768 592 176 188 0 357 38 vmsppl 368 13218 0 13202 2 0 2 2 0 8 0 pdppl 4096 26755 0 26613 30 11 19 19 0 8 1 pvpl 32 4113185 0 4091505 770 550 220 239 0 265 19 pmappl 232 13373 0 13256 9 1 8 8 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1071 0 308 24 1 23 24 0 8 0