panic: attempt to execute user address 0x20ffc000 in supervisor mode Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 497467 40037 0 0 0 1 syz-executor.1 * 34469 40037 0 0 0x4000000 0K 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(ffff800022bb6a70) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff80002176a000,fffffd80665f38c8,10,ffff8000000253d0,ffff800022bb6cd8) at alltraps_kern_meltdown+0x7b __kernel_end_phys(b,ffff800022bb6c38,83,ffff800022bb6cd8,0,b) at 0x20ffc000 rt_clone(ffff800022bb6d48,fffffd806f6cdeb8,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cdeb8,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cdeb8,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800022bb6e20,fffffd806d214020,fffffd806f6cde38) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cde38,fffffd806d214000) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8064b3fc18,4,0,fffffd806d214000,0,ffff800020abe290) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020abe290,ffff800022bb6fc8,ffff800022bb7010) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800022bb7090) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022bb7090) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,76ddb281010) at Xsyscall+0x128 end of kernel end trace frame: 0x7700b573020, 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 0x20ffc000 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(ffff800022bb6a70) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff80002176a000,fffffd80665f38c8,10,ffff8000000253d0,ffff800022bb6cd8) at alltraps_kern_meltdown+0x7b __kernel_end_phys(b,ffff800022bb6c38,83,ffff800022bb6cd8,0,b) at 0x20ffc000 rt_clone(ffff800022bb6d48,fffffd806f6cdeb8,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6cdeb8,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6cdeb8,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800022bb6e20,fffffd806d214020,fffffd806f6cde38) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6cde38,fffffd806d214000) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8064b3fc18,4,0,fffffd806d214000,0,ffff800020abe290) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020abe290,ffff800022bb6fc8,ffff800022bb7010) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800022bb7090) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022bb7090) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,76ddb281010) at Xsyscall+0x128 end of kernel end trace frame: 0x7700b573020, count: -14 ddb{0}> show registers rdi 0xffffffff81e07517 db_enter+0x17 rsi 0x2765 __ALIGN_SIZE+0x1765 rbp 0xffff800022bb68e0 rbx 0xffff800022bb6990 rdx 0x2766 __ALIGN_SIZE+0x1766 rcx 0xffff80002176a000 rax 0xffff80002176a000 r8 0xffffffff817fb7bf kprintf+0x16f r9 0x1 r10 0x25 r11 0xf12dd554876660da r12 0x3000000008 r13 0xffff800022bb68f0 r14 0x100 r15 0x1 rip 0xffffffff81e07518 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022bb68d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=34469 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020abfb40,0xffffffff826286b0 process=0xffff800020a8a710 user=0xffff800022bb2000, vmspace=0xfffffd807f00ab80 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 40037 497467 14432 0 7 0 syz-executor.1 *40037 34469 14432 0 7 0x4000000 syz-executor.1 35845 259680 62081 0 3 0x80 nanosleep syz-executor.0 35845 232959 62081 0 3 0x4000080 poll syz-executor.0 14432 251889 71040 0 3 0x82 nanosleep syz-executor.1 62081 130911 71040 0 3 0x82 nanosleep syz-executor.0 99867 66015 0 0 3 0x14200 acct acct 34836 349645 1 0 3 0x100083 ttyopn getty 65025 47739 0 0 3 0x14200 bored sosplice 71040 389415 44657 0 3 0x82 thrsleep syz-fuzzer 71040 515610 44657 0 3 0x4000082 nanosleep syz-fuzzer 71040 289332 44657 0 3 0x4000082 thrsleep syz-fuzzer 71040 252968 44657 0 3 0x4000082 thrsleep syz-fuzzer 71040 358059 44657 0 3 0x4000082 kqread syz-fuzzer 71040 102771 44657 0 3 0x4000082 thrsleep syz-fuzzer 71040 130571 44657 0 3 0x4000082 thrsleep syz-fuzzer 71040 376440 44657 0 3 0x4000082 thrsleep syz-fuzzer 71040 441428 44657 0 3 0x4000082 thrsleep syz-fuzzer 71040 195904 44657 0 3 0x4000082 nanosleep syz-fuzzer 44657 157393 69993 0 3 0x10008a pause ksh 69993 345965 14847 0 3 0x92 select sshd 14847 445378 1 0 3 0x80 select sshd 9559 304686 90239 74 3 0x100092 bpf pflogd 90239 291762 1 0 3 0x80 netio pflogd 71625 210654 32428 73 3 0x100090 kqread syslogd 32428 386379 1 0 3 0x100082 netio syslogd 29569 185242 1 77 3 0x100090 poll dhclient 86446 225498 1 0 3 0x80 poll dhclient 7082 463770 0 0 3 0x14200 pgzero zerothread 7909 178080 0 0 3 0x14200 aiodoned aiodoned 17260 4496 0 0 3 0x14200 syncer update 17341 152373 0 0 3 0x14200 cleaner cleaner 83080 483639 0 0 3 0x14200 reaper reaper 73688 29364 0 0 3 0x14200 pgdaemon pagedaemon 93766 480256 0 0 3 0x14200 bored crynlk 55816 56452 0 0 3 0x14200 bored crypto 69713 59086 0 0 3 0x40014200 acpi0 acpi0 67561 247280 0 0 3 0x40014200 idle1 67658 406229 0 0 3 0x14200 bored softnet 73577 71730 0 0 3 0x14200 bored systqmp 264 240661 0 0 3 0x14200 bored systq 69810 137046 0 0 3 0x40014200 bored softclock 35449 21108 0 0 3 0x40014200 idle0 15530 293801 0 0 3 0x14200 bored smr 1 16689 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 40037 (syz-executor.1) thread 0xffff800020abe290 (34469) exclusive rwlock netlock r = 0 (0xffffffff82485b08) #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 (0xffffffff826408b0) #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 9629 6475K 7430K 78643K 27796 0 0 pcb 13 12K 14K 78643K 1163 0 0 rtable 110 13K 14K 78643K 3727 0 0 ifaddr 99 25K 29K 78643K 1153 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1760 0 0 iov 0 0K 28K 78643K 1122 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1212 76K 77K 78643K 7127 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 95 0 0 VM map 2 1K 1K 78643K 27 0 0 sem 11 1K 1K 78643K 11 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 5909 0 0 sigio 0 0K 0K 78643K 417 0 0 proc 65 75K 95K 78643K 2451 0 0 subproc 32 2K 2K 78643K 552 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 329 0 0 in_multi 21 1K 2K 78643K 606 0 0 ether_multi 1 0K 0K 78643K 27 0 0 mrt 0 0K 0K 78643K 27 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 1185 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 131 23K 33K 78643K 21416 0 0 UVM aobj 130 6K 6K 78643K 138 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 1871 0 0 NDP 25 0K 1K 78643K 368 0 0 temp 264 3557K 4197K 78643K 137553 0 0 kqueue 0 0K 0K 78643K 39 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 138 0 132 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 368 0 366 1 0 1 1 0 8 0 rtentry 112 621 0 582 2 0 2 2 0 8 0 unpcb 120 2259 0 2246 5 4 1 2 0 8 0 syncache 264 21 0 21 10 10 0 1 0 8 0 sackhl 24 4 0 4 3 3 0 1 0 8 0 tcpqe 32 6592 0 6592 1 1 0 1 0 8 0 tcpcb 544 5225 0 5220 20 19 1 11 0 8 0 inpcb 280 14703 0 14695 57 56 1 13 0 8 0 rttmr 72 8 0 7 1 0 1 1 0 8 0 ip6q 72 2 0 2 2 2 0 1 0 8 0 ip6af 40 1 0 1 1 1 0 1 0 8 0 nd6 48 85 0 84 1 0 1 1 0 8 0 pkpcb 40 30 0 30 10 10 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 168 0 168 16 15 1 1 0 8 1 pffrag 232 74 0 74 17 17 0 1 0 482 0 pffrnode 88 74 0 74 17 17 0 1 0 8 0 pffrent 40 163 0 163 17 17 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 392 0 328 1 0 1 1 0 8 0 pfstkey 112 392 0 328 3 0 3 3 0 8 0 pfstate 328 392 0 327 9 2 7 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 18 0 17 10 9 1 3 0 8 0 art_heap4 256 2697 0 2471 35 17 18 19 0 8 0 art_table 32 2715 0 2488 7 4 3 3 0 8 0 art_node 16 616 0 579 1 0 1 1 0 8 0 sysvmsgpl 40 46 0 40 2 1 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 9 0 0 1 0 1 1 0 8 0 shmpl 112 136 0 8 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 10496 0 9071 49 3 46 47 0 8 0 ffsino 272 10496 0 9071 97 1 96 96 0 8 0 nchpl 144 19206 0 18734 61 40 21 61 0 8 0 uvmvnodes 72 6556 0 0 120 0 120 120 0 8 0 vnodes 208 6556 0 0 346 0 346 346 0 8 0 namei 1024 66241 0 66241 6 5 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 25 0 25 10 9 1 1 0 8 1 scsiplug 64 2 0 2 2 2 0 1 0 8 0 scxspl 192 64794 0 64794 47 46 1 7 0 8 1 plimitpl 152 548 0 540 1 0 1 1 0 8 0 sigapl 432 6024 0 6008 3 1 2 3 0 8 0 futexpl 56 126879 0 126879 1 0 1 1 0 8 1 knotepl 112 1407 0 1388 1 0 1 1 0 8 0 kqueuepl 104 1525 0 1523 4 3 1 4 0 8 0 pipepl 112 4342 0 4323 16 14 2 2 0 8 0 fdescpl 488 6025 0 6008 3 0 3 3 0 8 0 filepl 152 52042 0 51940 46 41 5 14 0 8 0 lockfpl 104 2130 0 2129 1 0 1 1 0 8 0 lockfspl 48 691 0 690 1 0 1 1 0 8 0 sessionpl 112 53 0 42 1 0 1 1 0 8 0 pgrppl 48 109 0 98 1 0 1 1 0 8 0 ucredpl 96 7652 0 7642 1 0 1 1 0 8 0 zombiepl 144 6011 0 6011 5 4 1 1 0 8 1 processpl 896 6045 0 6011 4 0 4 4 0 8 0 procpl 632 19035 0 18990 9 4 5 5 0 8 1 srpgc 64 39 0 39 15 14 1 1 0 8 1 sosppl 128 79 0 79 16 16 0 1 0 8 0 sockpl 384 17390 0 17367 83 80 3 22 0 8 0 mcl64k 65536 679 0 0 80 17 63 65 0 8 1 mcl16k 16384 25 0 0 4 1 3 3 0 8 0 mcl12k 12288 29 0 0 2 0 2 2 0 8 0 mcl9k 9216 37 0 0 2 0 2 2 0 8 0 mcl8k 8192 27 0 0 4 1 3 3 0 8 0 mcl4k 4096 28 0 0 3 0 3 3 0 8 0 mcl2k2 2112 12 0 0 1 0 1 1 0 8 0 mcl2k 2048 178 0 0 18 3 15 18 0 8 0 mtagpl 80 101 0 0 1 0 1 1 0 8 0 mbufpl 256 998 0 0 42 1 41 41 0 8 0 bufpl 256 26999 0 19951 441 0 441 441 0 8 0 anonpl 16 682899 0 666648 191 118 73 85 0 124 0 amapchunkpl 152 42221 0 42076 79 72 7 20 0 158 0 amappl16 192 32503 0 31587 195 142 53 59 0 8 5 amappl15 184 1201 0 1199 5 4 1 1 0 8 0 amappl14 176 1090 0 1087 2 1 1 1 0 8 0 amappl13 168 1479 0 1479 4 4 0 1 0 8 0 amappl12 160 452 0 448 1 0 1 1 0 8 0 amappl11 152 678 0 660 1 0 1 1 0 8 0 amappl10 144 905 0 901 1 0 1 1 0 8 0 amappl9 136 1368 0 1362 1 0 1 1 0 8 0 amappl8 128 962 0 921 3 1 2 2 0 8 0 amappl7 120 1064 0 1054 1 0 1 1 0 8 0 amappl6 112 641 0 624 1 0 1 1 0 8 0 amappl5 104 817 0 802 1 0 1 1 0 8 0 amappl4 96 6245 0 6210 1 0 1 1 0 8 0 amappl3 88 1532 0 1527 1 0 1 1 0 8 0 amappl2 80 47791 0 47706 3 1 2 3 0 8 0 amappl1 72 142877 0 142421 26 16 10 20 0 8 0 amappl 80 19835 0 19786 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 137 0 8 3 0 3 3 0 8 0 uaddrrnd 24 6050 0 6008 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6050 0 6008 1 0 1 1 0 8 0 vmmpekpl 168 53961 0 53925 2 0 2 2 0 8 0 vmmpepl 168 765467 0 763271 331 210 121 133 0 357 19 vmsppl 368 6024 0 6008 2 0 2 2 0 8 0 pdppl 4096 12107 0 12066 7 1 6 6 0 8 0 pvpl 32 1806038 0 1786470 396 209 187 201 0 265 22 pmappl 232 6049 0 6033 12 10 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 776 0 78 22 1 21 21 0 8 0