panic: attempt to execute user address 0x1 in supervisor mode Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *390198 49211 0 0x1000 0x4080000 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(ffff800021b8ae00) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff8000223b0000,fffffd80667e38c8,10,ffff8000000254a0,ffff800021b8b068) at alltraps_kern_meltdown+0x7b 1(b,ffff800021b8afc8,83,ffff800021b8b068,0,b) at 0x1 rt_clone(ffff800021b8b0d8,fffffd80708ffa80,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd80708ffa80,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd80708ffa80,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800021b8b1b0,fffffd807e3afc20,fffffd80708ffa00) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd80708ffa00,fffffd807e3afc00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd807c2eba98,4,0,fffffd807e3afc00,0,ffff800020ace528) at udp_usrreq+0x560 sys_connect(ffff800020ace528,ffff800021b8b338,ffff800021b8b380) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800021b8b400) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b8b400) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,3451b67d0e0) at Xsyscall+0x128 end of kernel end trace frame: 0x347fd5807d0, 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 0x1 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(ffff800021b8ae00) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff8000223b0000,fffffd80667e38c8,10,ffff8000000254a0,ffff800021b8b068) at alltraps_kern_meltdown+0x7b 1(b,ffff800021b8afc8,83,ffff800021b8b068,0,b) at 0x1 rt_clone(ffff800021b8b0d8,fffffd80708ffa80,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd80708ffa80,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd80708ffa80,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800021b8b1b0,fffffd807e3afc20,fffffd80708ffa00) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd80708ffa00,fffffd807e3afc00) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 udp_usrreq(fffffd807c2eba98,4,0,fffffd807e3afc00,0,ffff800020ace528) at udp_usrreq+0x560 sys_connect(ffff800020ace528,ffff800021b8b338,ffff800021b8b380) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800021b8b400) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b8b400) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,3451b67d0e0) at Xsyscall+0x128 end of kernel end trace frame: 0x347fd5807d0, count: -14 ddb{1}> show registers rdi 0xffffffff81d9bc27 db_enter+0x17 rsi 0x384a __ALIGN_SIZE+0x284a rbp 0xffff800021b8ac70 rbx 0xffff800021b8ad20 rdx 0x384b __ALIGN_SIZE+0x284b rcx 0xffff8000223b0000 rax 0xffff8000223b0000 r8 0xffffffff81aab38f kprintf+0x16f r9 0x1 r10 0x25 r11 0x3c332fc2ae8558dd r12 0x3000000008 r13 0xffff800021b8ac80 r14 0x100 r15 0x1 rip 0xffffffff81d9bc28 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021b8ac60 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=390198 stat=onproc flags process=1000 proc=4080000 pri=17, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020acef08,0xffff800020acf8f8 process=0xffff800020add500 user=0xffff800021b86000, vmspace=0xfffffd807f00b5c0 estcpu=30, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 49211 229609 27871 0 3 0x3000 suspend syz-executor.1 *49211 390198 27871 0 7 0x4081000 syz-executor.1 69389 484141 98964 0 3 0x80 nanosleep syz-executor.0 69389 252276 98964 0 3 0x4000080 netio syz-executor.0 69389 1006 98964 0 3 0x4000080 fsleep syz-executor.0 98964 295509 5454 0 3 0x82 nanosleep syz-executor.0 27871 302476 5454 0 3 0x82 nanosleep syz-executor.1 8044 269087 1 0 3 0x100083 ttyin getty 10454 495510 0 0 3 0x14200 bored sosplice 5454 65878 12258 0 3 0x82 thrsleep syz-fuzzer 5454 26769 12258 0 3 0x4000082 thrsleep syz-fuzzer 5454 189215 12258 0 3 0x4000082 thrsleep syz-fuzzer 5454 489491 12258 0 3 0x4000082 thrsleep syz-fuzzer 5454 280216 12258 0 3 0x4000082 thrsleep syz-fuzzer 5454 205416 12258 0 3 0x4000082 thrsleep syz-fuzzer 5454 488506 12258 0 3 0x4000082 kqread syz-fuzzer 5454 10033 12258 0 3 0x4000082 thrsleep syz-fuzzer 5454 267006 12258 0 3 0x4000082 thrsleep syz-fuzzer 5454 523517 12258 0 3 0x4000082 thrsleep syz-fuzzer 12258 382999 92807 0 3 0x10008a pause ksh 92807 191370 65246 0 3 0x92 select sshd 65246 302672 1 0 3 0x80 select sshd 75982 141634 64535 74 3 0x100092 bpf pflogd 64535 198990 1 0 3 0x80 netio pflogd 55395 467902 91062 73 3 0x100090 kqread syslogd 91062 286799 1 0 3 0x100082 netio syslogd 61690 439354 1 77 3 0x100090 poll dhclient 76055 317014 1 0 3 0x80 poll dhclient 55061 381517 0 0 3 0x14200 pgzero zerothread 23044 259578 0 0 3 0x14200 aiodoned aiodoned 34546 181018 0 0 3 0x14200 syncer update 74060 345381 0 0 3 0x14200 cleaner cleaner 57202 194763 0 0 3 0x14200 reaper reaper 73386 347053 0 0 3 0x14200 pgdaemon pagedaemon 45599 337872 0 0 3 0x14200 bored crynlk 61647 509887 0 0 3 0x14200 bored crypto 74710 507754 0 0 3 0x40014200 acpi0 acpi0 64426 263829 0 0 3 0x40014200 idle1 81416 479216 0 0 3 0x14200 bored softnet 40124 459292 0 0 3 0x14200 bored systqmp 2963 111493 0 0 3 0x14200 bored systq 67655 262043 0 0 3 0x40014200 bored softclock 36546 156463 0 0 7 0x40014200 idle0 27388 248764 0 0 3 0x14200 bored smr 1 252038 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 49211 (syz-executor.1) thread 0xffff800020ace528 (390198) exclusive rwlock netlock r = 0 (0xffffffff824a1878) #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 (0xffffffff8265b1f8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 __mp_acquire_count+0x51 sys/kern/kern_lock.c:227 #2 mi_switch+0x392 sys/kern/sched_bsd.c:441 #3 sleep_finish+0x113 sys/kern/kern_synch.c:373 #4 tsleep+0x198 sleep_finish_timeout sys/kern/kern_synch.c:397 [inline] #4 tsleep+0x198 sleep_finish_all sys/kern/kern_synch.c:183 [inline] #4 tsleep+0x198 sys/kern/kern_synch.c:152 #5 biowait+0xa1 sys/kern/vfs_bio.c:1231 #6 ffs_read+0x2ee #7 VOP_READ+0xbf sys/kern/vfs_vops.c:248 #8 uvn_io+0x35e #9 uvn_get+0x226 sys/uvm/uvm_vnode.c:1049 #10 uvm_fault+0x11cc sys/uvm/uvm_fault.c:1023 #11 pageflttrap+0x20b sys/arch/amd64/amd64/trap.c:199 #12 kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 #13 alltraps_kern_meltdown+0x7b #14 copyin+0x4b #15 sys_connect+0x9c sys/kern/uipc_syscalls.c:367 #16 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #16 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #17 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9627 6482K 7989K 78643K 27017 0 0 pcb 13 9K 9K 78643K 821 0 0 rtable 126 9K 9K 78643K 2304 0 0 ifaddr 100 21K 24K 78643K 733 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1691 0 0 iov 0 0K 32K 78643K 566 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1209 76K 77K 78643K 6803 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 99 0 0 VM map 2 1K 1K 78643K 10 0 0 sem 12 0K 1K 78643K 1991 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 5628 0 0 sigio 0 0K 0K 78643K 112 0 0 proc 62 63K 95K 78643K 1880 0 0 subproc 32 2K 2K 78643K 408 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 598 0 0 in_multi 35 2K 2K 78643K 496 0 0 ether_multi 1 0K 0K 78643K 29 0 0 mrt 2 0K 0K 78643K 23 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 96 424K 424K 78643K 96 0 0 exec 0 0K 1K 78643K 910 0 0 pfkey data 0 0K 0K 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 120 22K 31K 78643K 20168 0 0 UVM aobj 130 8K 8K 78643K 197 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 964 0 0 NDP 26 1K 1K 78643K 229 0 0 temp 256 3557K 4197K 78643K 94374 0 0 kqueue 0 0K 0K 78643K 39 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 76 0 69 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 275 0 273 1 0 1 1 0 8 0 rtentry 112 357 0 310 2 0 2 2 0 8 0 unpcb 120 2254 0 2237 3 2 1 2 0 8 0 syncache 264 20 0 20 7 6 1 1 0 8 1 tcpqe 32 5162 0 5162 3 2 1 1 0 8 1 tcpcb 544 1604 0 1599 2 1 1 2 0 8 0 inpcb 280 11763 0 11751 24 22 2 5 0 8 0 rttmr 72 2 0 2 2 2 0 1 0 8 0 nd6 48 51 0 47 3 2 1 1 0 8 0 pkpcb 40 32 0 32 10 10 0 1 0 8 0 ppxss 1128 109 0 109 17 16 1 1 0 8 1 pffrag 232 9 0 9 4 4 0 1 0 482 0 pffrnode 88 9 0 9 4 4 0 1 0 8 0 pffrent 40 26 0 26 5 5 0 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 231 0 182 1 0 1 1 0 8 0 pfstkey 112 231 0 182 2 0 2 2 0 8 0 pfstate 328 231 0 182 7 2 5 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 4 0 3 4 3 1 3 0 8 0 art_heap4 256 1430 0 1200 24 9 15 16 0 8 0 art_table 32 1434 0 1203 2 0 2 2 0 8 0 art_node 16 343 0 300 1 0 1 1 0 8 0 sysvmsgpl 40 11 0 6 1 0 1 1 0 8 0 semapl 112 1989 0 1979 1 0 1 1 0 8 0 shmpl 112 195 0 67 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 9766 0 8355 46 0 46 46 0 8 0 ffsino 272 9766 0 8355 95 0 95 95 0 8 0 nchpl 144 19265 0 17615 62 0 62 62 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 63015 0 63015 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 8 0 8 5 5 0 1 0 8 0 scsiplug 64 15 0 15 9 9 0 1 0 8 0 scxspl 192 52502 0 52502 31 30 1 7 0 8 1 plimitpl 152 548 0 540 1 0 1 1 0 8 0 sigapl 432 5766 0 5750 4 2 2 3 0 8 0 futexpl 56 111055 0 111054 2 1 1 1 0 8 0 knotepl 112 1558 0 1539 4 3 1 3 0 8 0 kqueuepl 104 1917 0 1914 1 0 1 1 0 8 0 pipepl 112 3020 0 3001 7 6 1 2 0 8 0 fdescpl 488 5767 0 5750 3 0 3 3 0 8 0 filepl 152 47366 0 47258 22 17 5 7 0 8 0 lockfpl 104 1752 0 1751 1 0 1 1 0 8 0 lockfspl 48 592 0 591 1 0 1 1 0 8 0 sessionpl 112 44 0 33 1 0 1 1 0 8 0 pgrppl 48 114 0 103 1 0 1 1 0 8 0 ucredpl 96 6282 0 6273 1 0 1 1 0 8 0 zombiepl 144 5753 0 5752 4 3 1 1 0 8 0 processpl 896 5785 0 5752 5 1 4 5 0 8 0 procpl 632 18304 0 18259 8 3 5 5 0 8 0 srpgc 64 42 0 42 16 15 1 1 0 8 1 sosppl 128 77 0 77 17 17 0 1 0 8 0 sockpl 384 14542 0 14511 44 39 5 8 0 8 1 mcl64k 65536 18 0 0 3 0 3 3 0 8 0 mcl16k 16384 22 0 0 3 1 2 3 0 8 0 mcl12k 12288 33 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 21 0 0 3 1 2 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 6 0 0 1 0 1 1 0 8 0 mcl2k 2048 125 0 0 14 0 14 14 0 8 0 mtagpl 80 101 0 0 2 0 2 2 0 8 0 mbufpl 256 709 0 0 35 0 35 35 0 8 0 bufpl 256 17858 0 10810 441 0 441 441 0 8 0 anonpl 16 544382 0 532492 187 122 65 79 0 124 0 amapchunkpl 152 36662 0 36545 39 33 6 18 0 158 0 amappl16 192 28671 0 27802 154 109 45 56 0 8 0 amappl15 184 1628 0 1627 1 0 1 1 0 8 0 amappl14 176 552 0 549 2 1 1 1 0 8 0 amappl13 168 297 0 297 3 3 0 1 0 8 0 amappl12 160 658 0 655 2 1 1 1 0 8 0 amappl11 152 836 0 821 1 0 1 1 0 8 0 amappl10 144 442 0 436 1 0 1 1 0 8 0 amappl9 136 1404 0 1398 1 0 1 1 0 8 0 amappl8 128 944 0 912 4 2 2 2 0 8 0 amappl7 120 577 0 568 1 0 1 1 0 8 0 amappl6 112 775 0 768 1 0 1 1 0 8 0 amappl5 104 968 0 951 1 0 1 1 0 8 0 amappl4 96 5858 0 5824 2 1 1 2 0 8 0 amappl3 88 933 0 922 1 0 1 1 0 8 0 amappl2 80 45176 0 45093 4 2 2 3 0 8 0 amappl1 72 137973 0 137515 25 15 10 20 0 8 0 amappl 80 18928 0 18885 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 dma64 64 259 0 259 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 196 0 67 3 0 3 3 0 8 0 uaddrrnd 24 5775 0 5750 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5775 0 5750 1 0 1 1 0 8 0 vmmpekpl 168 50393 0 50361 2 0 2 2 0 8 0 vmmpepl 168 714365 0 712245 392 271 121 121 0 357 24 vmsppl 368 5766 0 5750 2 0 2 2 0 8 0 pdppl 4096 11557 0 11516 7 1 6 6 0 8 0 pvpl 32 1498692 0 1483501 399 239 160 189 0 265 5 pmappl 232 5774 0 5758 7 6 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 646 0 21 18 0 18 18 0 8 0