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 * 49783 8342 0 0 0x4000000 0 syz-executor.0 70993 96919 0 0x2 0x4000080 1 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(ffff800023d6f340) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800021b64000,fffffd80647c8cb8,10,ffff8000000250a0,ffff800023d6f5a8) at alltraps_kern_meltdown+0x7b 0(b,ffff800023d6f508,83,ffff800023d6f5a8,0,b) at 0 rt_clone(ffff800023d6f618,fffffd806f6cca58,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cca58,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cca58,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023d6f6f0,fffffd80602a8420,fffffd806f6cc9d8) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cc9d8,fffffd80602a8400) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd80616e0dc8,4,0,fffffd80602a8400,0,ffff800020acfb48) at udp_usrreq+0x560 sys_connect(ffff800020acfb48,ffff800023d6f878,ffff800023d6f8c0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023d6f940) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023d6f940) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,c2f4ebc2010) at Xsyscall+0x128 end of kernel end trace frame: 0xc316d937e20, 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(ffff800023d6f340) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800021b64000,fffffd80647c8cb8,10,ffff8000000250a0,ffff800023d6f5a8) at alltraps_kern_meltdown+0x7b 0(b,ffff800023d6f508,83,ffff800023d6f5a8,0,b) at 0 rt_clone(ffff800023d6f618,fffffd806f6cca58,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cca58,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cca58,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023d6f6f0,fffffd80602a8420,fffffd806f6cc9d8) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cc9d8,fffffd80602a8400) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd80616e0dc8,4,0,fffffd80602a8400,0,ffff800020acfb48) at udp_usrreq+0x560 sys_connect(ffff800020acfb48,ffff800023d6f878,ffff800023d6f8c0) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023d6f940) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023d6f940) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,c2f4ebc2010) at Xsyscall+0x128 end of kernel end trace frame: 0xc316d937e20, count: -14 ddb{0}> show registers rdi 0xffffffff81194cb7 db_enter+0x17 rsi 0x2260 __ALIGN_SIZE+0x1260 rbp 0xffff800023d6f1b0 rbx 0xffff800023d6f260 rdx 0x2261 __ALIGN_SIZE+0x1261 rcx 0xffff800021b64000 rax 0xffff800021b64000 r8 0xffffffff81f734ef kprintf+0x16f r9 0x1 r10 0x25 r11 0x3cbfac0da8eee4e8 r12 0x3000000008 r13 0xffff800023d6f1c0 r14 0x100 r15 0x1 rip 0xffffffff81194cb8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023d6f1a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=49783 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800020ace020,0xffffffff82645b50 process=0xffff800020adc380 user=0xffff800023d6a000, vmspace=0xfffffd807f00a000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 8342 266961 23523 0 2 0 syz-executor.0 * 8342 49783 23523 0 7 0x4000000 syz-executor.0 76391 73412 96919 0 2 0x2 syz-executor.1 29051 220341 1 0 3 0x100083 ttyin getty 23523 346235 96919 0 3 0x82 nanosleep syz-executor.0 58012 52275 0 0 3 0x14200 bored sosplice 96919 134065 85727 0 3 0x82 thrsleep syz-fuzzer 96919 119051 85727 0 2 0x4000482 syz-fuzzer 96919 235053 85727 0 2 0x4000482 syz-fuzzer 96919 70993 85727 0 7 0x4000082 syz-fuzzer 96919 202285 85727 0 3 0x4000082 thrsleep syz-fuzzer 96919 103749 85727 0 3 0x4000082 thrsleep syz-fuzzer 96919 235344 85727 0 3 0x4000082 thrsleep syz-fuzzer 96919 57861 85727 0 3 0x4000082 thrsleep syz-fuzzer 96919 294515 85727 0 3 0x4000082 thrsleep syz-fuzzer 96919 18692 85727 0 3 0x4000082 thrsleep syz-fuzzer 85727 344442 94567 0 3 0x10008a pause ksh 94567 457105 55687 0 3 0x92 select sshd 55687 43787 1 0 3 0x80 select sshd 86712 268925 43208 74 3 0x100092 bpf pflogd 43208 134780 1 0 3 0x80 netio pflogd 17897 225148 56431 73 3 0x100090 kqread syslogd 56431 344178 1 0 3 0x100082 netio syslogd 49041 339207 1 77 3 0x100090 poll dhclient 38082 370843 1 0 3 0x80 poll dhclient 64957 51196 0 0 3 0x14200 pgzero zerothread 44061 248692 0 0 3 0x14200 aiodoned aiodoned 86438 195729 0 0 3 0x14200 syncer update 27047 500189 0 0 3 0x14200 cleaner cleaner 1509 25172 0 0 3 0x14200 reaper reaper 45233 87091 0 0 3 0x14200 pgdaemon pagedaemon 61425 307644 0 0 3 0x14200 bored crynlk 38450 467131 0 0 3 0x14200 bored crypto 38883 105012 0 0 3 0x40014200 acpi0 acpi0 84002 305655 0 0 3 0x40014200 idle1 12517 396401 0 0 3 0x14200 bored softnet 151 181471 0 0 3 0x14200 bored systqmp 53629 204818 0 0 3 0x14200 bored systq 85851 349038 0 0 3 0x40014200 bored softclock 97656 54860 0 0 3 0x40014200 idle0 47434 323990 0 0 3 0x14200 bored smr 1 179370 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 8342 (syz-executor.0) thread 0xffff800020acfb48 (49783) exclusive rwlock netlock r = 0 (0xffffffff824f3758) #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 (0xffffffff8262a6d0) #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 9582 6444K 8562K 78643K 21337 0 0 pcb 13 8K 9K 78643K 697 0 0 rtable 122 13K 14K 78643K 1347 0 0 ifaddr 87 18K 18K 78643K 373 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1575 0 0 iov 0 0K 32K 78643K 468 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1231 77K 78K 78643K 4385 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 36 0 0 VM map 13 6K 7K 78643K 20 0 0 sem 12 0K 1K 78643K 493 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 2005 0 0 sigio 0 0K 0K 78643K 24 0 0 proc 61 63K 95K 78643K 1100 0 0 subproc 32 2K 2K 78643K 238 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 181 0 0 in_multi 36 2K 2K 78643K 300 0 0 ether_multi 1 0K 0K 78643K 24 0 0 mrt 0 0K 0K 78643K 12 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 78 344K 344K 78643K 78 0 0 exec 0 0K 1K 78643K 525 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 151 121K 125K 78643K 8028 0 0 UVM aobj 130 8K 8K 78643K 140 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 464 0 0 NDP 20 0K 0K 78643K 124 0 0 temp 228 3565K 3653K 78643K 70859 0 0 kqueue 0 0K 0K 78643K 20 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 43 0 38 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 143 0 141 1 0 1 1 0 8 0 rtentry 112 242 0 196 2 0 2 2 0 8 0 unpcb 120 2645 0 2629 2 1 1 2 0 8 0 syncache 264 8 0 8 3 3 0 1 0 8 0 tcpqe 32 2 0 2 2 2 0 1 0 8 0 tcpcb 544 985 0 981 4 3 1 2 0 8 0 inpcb 280 3312 0 3304 5 3 2 3 0 8 1 rttmr 72 3 0 3 3 3 0 1 0 8 0 ip6q 72 6 0 6 4 4 0 1 0 8 0 ip6af 40 12 0 12 4 4 0 1 0 8 0 nd6 48 40 0 35 1 0 1 1 0 8 0 pkpcb 40 18 0 18 2 1 1 1 0 8 1 ppxss 1128 34 0 34 6 5 1 1 0 8 1 pffrag 232 73 0 51 7 5 2 2 0 482 0 pffrnode 88 55 0 51 6 5 1 1 0 8 0 pffrent 40 1355 0 1298 6 5 1 1 0 8 0 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 187 0 122 1 0 1 1 0 8 0 pfstkey 112 188 0 123 3 0 3 3 0 8 0 pfstate 328 188 0 123 7 0 7 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 3 0 2 3 2 1 3 0 8 0 art_heap4 256 1120 0 877 26 8 18 18 0 8 1 art_table 32 1123 0 879 3 0 3 3 0 8 0 art_node 16 241 0 199 1 0 1 1 0 8 0 sysvmsgpl 40 20 0 4 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 487 0 477 1 0 1 1 0 8 0 shmpl 112 138 0 10 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4707 0 3298 46 0 46 46 0 8 0 ffsino 272 4707 0 3298 95 0 95 95 0 8 0 nchpl 144 7897 0 6276 61 0 61 61 0 8 0 uvmvnodes 72 6201 0 0 113 0 113 113 0 8 0 vnodes 208 6201 0 0 327 0 327 327 0 8 0 namei 1024 28986 0 28986 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 11 0 0 2 0 2 2 0 8 0 vmpool 552 18 0 7 1 0 1 1 0 8 0 scxspl 192 27187 0 27187 14 13 1 7 0 8 1 plimitpl 152 157 0 149 1 0 1 1 0 8 0 sigapl 432 2171 0 2156 3 1 2 3 0 8 0 futexpl 56 49585 0 49585 1 0 1 1 0 8 1 knotepl 112 727 0 708 2 1 1 2 0 8 0 kqueuepl 104 903 0 901 1 0 1 1 0 8 0 pipepl 112 1176 0 1157 4 2 2 2 0 8 1 fdescpl 488 2172 0 2156 3 0 3 3 0 8 0 filepl 152 20386 0 20281 13 7 6 8 0 8 1 lockfpl 104 689 0 688 1 0 1 1 0 8 0 lockfspl 48 239 0 238 1 0 1 1 0 8 0 sessionpl 112 34 0 23 1 0 1 1 0 8 0 pgrppl 48 56 0 45 1 0 1 1 0 8 0 ucredpl 96 2009 0 2000 1 0 1 1 0 8 0 zombiepl 144 2157 0 2157 1 0 1 1 0 8 1 processpl 896 2189 0 2157 4 0 4 4 0 8 0 procpl 632 6555 0 6513 5 0 5 5 0 8 0 srpgc 64 16 0 16 6 5 1 1 0 8 1 sosppl 128 79 0 79 6 5 1 1 0 8 1 sockpl 384 6140 0 6114 17 12 5 7 0 8 2 mcl64k 65536 27 0 0 4 0 4 4 0 8 0 mcl16k 16384 12 0 0 2 0 2 2 0 8 0 mcl12k 12288 12 0 0 2 0 2 2 0 8 0 mcl9k 9216 16 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 19 0 0 3 0 3 3 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 204 0 0 25 1 24 25 0 8 0 mtagpl 80 325 0 0 6 0 6 6 0 8 0 mbufpl 256 1168 0 0 66 0 66 66 0 8 0 bufpl 256 14636 0 7578 442 0 442 442 0 8 0 anonpl 16 287686 0 269905 147 51 96 101 0 124 9 amapchunkpl 152 16998 0 16851 36 19 17 21 0 158 9 amappl16 192 12649 0 11488 114 48 66 70 0 8 7 amappl15 184 322 0 322 2 2 0 1 0 8 0 amappl14 176 392 0 384 1 0 1 1 0 8 0 amappl13 168 13 0 13 2 2 0 1 0 8 0 amappl12 160 388 0 386 1 0 1 1 0 8 0 amappl11 152 334 0 319 1 0 1 1 0 8 0 amappl10 144 123 0 115 1 0 1 1 0 8 0 amappl9 136 963 0 960 1 0 1 1 0 8 0 amappl8 128 563 0 517 2 0 2 2 0 8 0 amappl7 120 215 0 204 1 0 1 1 0 8 0 amappl6 112 326 0 313 1 0 1 1 0 8 0 amappl5 104 621 0 607 1 0 1 1 0 8 0 amappl4 96 2123 0 2093 1 0 1 1 0 8 0 amappl3 88 805 0 796 1 0 1 1 0 8 0 amappl2 80 16068 0 15994 3 1 2 3 0 8 0 amappl1 72 59494 0 59058 25 15 10 20 0 8 0 amappl 80 7068 0 7016 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 139 0 10 3 0 3 3 0 8 0 uaddrrnd 24 2190 0 2156 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2190 0 2156 1 0 1 1 0 8 0 vmmpekpl 168 20845 0 20805 4 1 3 3 0 8 0 vmmpepl 168 287480 0 285107 227 80 147 147 0 357 34 vmsppl 368 2171 0 2156 2 0 2 2 0 8 0 pdppl 4096 4387 0 4337 7 0 7 7 0 8 0 pvpl 32 774477 0 754709 302 85 217 229 0 265 29 pmappl 232 2189 0 2163 3 1 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 690 0 17 20 0 20 20 0 8 0