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 229213 81655 0 0 0 0 syz-executor.1 *290505 81655 0 0 0x4000000 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(ffff800023e0b8c0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800021b66000,fffffd8071815e00,10,ffff80000005bc60,ffff800023e0bb28) at alltraps_kern_meltdown+0x7b 0(b,ffff800023e0ba88,83,ffff800023e0bb28,0,b) at 0 rt_clone(ffff800023e0bb98,fffffd806f6d4b70,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d4b70,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d4b70,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023e0bc70,fffffd806606b620,fffffd806f6d4af0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d4af0,fffffd806606b600) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8061450e10,4,0,fffffd806606b600,0,ffff800020acef18) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020acef18,ffff800023e0be18,ffff800023e0be60) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023e0bee0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023e0bee0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,2ca86044010) at Xsyscall+0x128 end of kernel end trace frame: 0x2cd4be3e8f0, 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(ffff800023e0b8c0) at kerntrap+0xec sys/arch/amd64/amd64/trap.c:287 alltraps_kern_meltdown(6,ffff800021b66000,fffffd8071815e00,10,ffff80000005bc60,ffff800023e0bb28) at alltraps_kern_meltdown+0x7b 0(b,ffff800023e0ba88,83,ffff800023e0bb28,0,b) at 0 rt_clone(ffff800023e0bb98,fffffd806f6d4b70,0) at rt_clone+0x78 sys/net/route.c:266 rtalloc_mpath(fffffd806f6d4b70,0,0) at rtalloc_mpath+0xba rt_match sys/net/route.c:244 [inline] rtalloc_mpath(fffffd806f6d4b70,0,0) at rtalloc_mpath+0xba sys/net/route.c:359 in_pcbselsrc(ffff800023e0bc70,fffffd806606b620,fffffd806f6d4af0) at in_pcbselsrc+0x219 sys/netinet/in_pcb.c:934 in_pcbconnect(fffffd806f6d4af0,fffffd806606b600) at in_pcbconnect+0x107 sys/netinet/in_pcb.c:492 tcp_usrreq(fffffd8061450e10,4,0,fffffd806606b600,0,ffff800020acef18) at tcp_usrreq+0xacb sys/netinet/tcp_usrreq.c:228 sys_connect(ffff800020acef18,ffff800023e0be18,ffff800023e0be60) at sys_connect+0x3df sys/kern/uipc_syscalls.c:388 syscall(ffff800023e0bee0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023e0bee0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,fffffffffffffed2,0,3,2ca86044010) at Xsyscall+0x128 end of kernel end trace frame: 0x2cd4be3e8f0, count: -14 ddb{1}> show registers rdi 0xffffffff814c4807 db_enter+0x17 rsi 0x23a4 __ALIGN_SIZE+0x13a4 rbp 0xffff800023e0b730 rbx 0xffff800023e0b7e0 rdx 0x23a5 __ALIGN_SIZE+0x13a5 rcx 0xffff800021b66000 rax 0xffff800021b66000 r8 0xffffffff8141f94f kprintf+0x16f r9 0x1 r10 0x25 r11 0x542044d275df6592 r12 0x3000000008 r13 0xffff800023e0b740 r14 0x100 r15 0x1 rip 0xffffffff814c4808 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023e0b720 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=290505 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020acf8f8,0xffffffff8265b7c8 process=0xffff800020adc380 user=0xffff800023e06000, vmspace=0xfffffd807f00a450 estcpu=30, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 81655 229213 24032 0 7 0 syz-executor.1 *81655 290505 24032 0 7 0x4000000 syz-executor.1 24032 112162 68347 0 3 0x82 nanosleep syz-executor.1 24602 1321 68347 0 3 0x2 biowait syz-executor.0 99889 350304 1 0 3 0x100083 ttyin getty 88588 330041 0 0 3 0x14200 acct acct 35473 482014 0 0 3 0x14200 bored sosplice 68347 118539 26304 0 3 0x82 thrsleep syz-fuzzer 68347 165938 26304 0 3 0x4000082 nanosleep syz-fuzzer 68347 127704 26304 0 3 0x4000082 thrsleep syz-fuzzer 68347 439304 26304 0 3 0x4000082 nanosleep syz-fuzzer 68347 310867 26304 0 3 0x4000082 thrsleep syz-fuzzer 68347 322997 26304 0 3 0x4000082 thrsleep syz-fuzzer 68347 145105 26304 0 3 0x4000082 kqread syz-fuzzer 68347 78293 26304 0 3 0x4000082 thrsleep syz-fuzzer 68347 397492 26304 0 3 0x4000082 thrsleep syz-fuzzer 68347 278928 26304 0 3 0x4000082 thrsleep syz-fuzzer 26304 349926 28364 0 3 0x10008a pause ksh 28364 181626 19256 0 3 0x92 select sshd 19256 522267 1 0 3 0x80 select sshd 58431 155964 34790 74 3 0x100092 bpf pflogd 34790 151180 1 0 3 0x80 netio pflogd 56754 3559 41349 73 3 0x100090 kqread syslogd 41349 104268 1 0 3 0x100082 netio syslogd 2275 501812 1 77 3 0x100090 poll dhclient 62083 28812 1 0 3 0x80 poll dhclient 73963 309777 0 0 3 0x14200 pgzero zerothread 55295 449339 0 0 3 0x14200 aiodoned aiodoned 68333 188218 0 0 3 0x14200 syncer update 37070 439607 0 0 3 0x14200 cleaner cleaner 3469 39766 0 0 3 0x14200 reaper reaper 99606 151359 0 0 3 0x14200 pgdaemon pagedaemon 41942 449615 0 0 3 0x14200 bored crynlk 3366 388720 0 0 3 0x14200 bored crypto 82879 486946 0 0 3 0x40014200 acpi0 acpi0 40583 449925 0 0 3 0x40014200 idle1 65185 27055 0 0 3 0x14200 bored softnet 94076 257064 0 0 3 0x14200 bored systqmp 15371 464669 0 0 3 0x14200 bored systq 25525 370236 0 0 3 0x40014200 bored softclock 79849 428419 0 0 3 0x40014200 idle0 64045 406959 0 0 3 0x14200 bored smr 1 417383 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 81655 (syz-executor.1) thread 0xffff800020acef18 (290505) exclusive rwlock netlock r = 0 (0xffffffff824dc718) #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 (0xffffffff82648ec0) #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 Process 24602 (syz-executor.0) thread 0xffff800020acf408 (1321) exclusive rrwlock inode r = 0 (0xfffffd80749b5708) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140 #4 ffs_vget+0x13e sys/ufs/ffs/ffs_vfsops.c:1352 #5 ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392 #6 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1164 #7 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #8 domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 #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 rrwlock inode r = 0 (0xfffffd8073d03f78) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:574 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:2968 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9616 6458K 8012K 78643K 26071 0 0 pcb 13 10K 12K 78643K 1399 0 0 rtable 164 17K 17K 78643K 3901 0 0 ifaddr 108 24K 25K 78643K 1083 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1908 0 0 iov 0 0K 28K 78643K 1399 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1234 78K 78K 78643K 8007 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 83 0 0 VM map 72 36K 36K 78643K 99 0 0 sem 12 0K 1K 78643K 1670 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 6664 0 0 sigio 0 0K 0K 78643K 91 0 0 proc 62 63K 95K 78643K 2782 0 0 subproc 32 2K 2K 78643K 684 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 633 0 0 in_multi 34 2K 3K 78643K 787 0 0 ether_multi 1 0K 0K 78643K 77 0 0 mrt 1 0K 0K 78643K 52 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 132 583K 583K 78643K 132 0 0 exec 0 0K 1K 78643K 1473 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 246 558K 567K 78643K 24229 0 0 UVM aobj 130 8K 8K 78643K 134 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 1343 0 0 NDP 23 0K 1K 78643K 345 0 0 temp 249 3561K 3650K 78643K 251779 0 0 kqueue 0 0K 0K 78643K 54 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 128 0 121 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 528 0 526 1 0 1 1 0 8 0 rtentry 112 711 0 647 2 0 2 2 0 8 0 unpcb 120 4339 0 4323 14 12 2 2 0 8 1 syncache 264 24 0 24 14 14 0 1 0 8 0 tcpqe 32 8 0 8 8 8 0 1 0 8 0 tcpcb 544 4203 0 4198 90 83 7 14 0 8 6 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 2 0 2 1 1 0 1 0 8 0 inpcb 280 11031 0 11023 68 61 7 9 0 8 6 rttmr 72 15 0 14 7 6 1 1 0 8 0 ip6q 72 3 0 3 2 2 0 1 0 8 0 ip6af 40 9 0 9 2 2 0 1 0 8 0 nd6 48 98 0 95 1 0 1 1 0 8 0 pkpcb 40 17 0 17 6 6 0 1 0 8 0 ppxss 1128 154 0 154 22 21 1 1 0 8 1 pffrag 232 172 0 172 19 18 1 1 0 482 1 pffrnode 88 172 0 172 19 18 1 1 0 8 1 pffrent 40 5460 0 5460 19 18 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 530 0 447 2 0 2 2 0 8 0 pfstkey 112 530 0 447 6 0 6 6 0 8 0 pfstate 328 530 0 447 16 0 16 16 0 8 3 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 17 0 12 12 7 5 6 0 8 0 art_heap4 256 2784 0 2507 38 19 19 22 0 8 0 art_table 32 2801 0 2519 5 2 3 3 0 8 0 art_node 16 703 0 653 1 0 1 1 0 8 0 sysvmsgpl 40 54 0 44 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 1664 0 1654 1 0 1 1 0 8 0 shmpl 112 132 0 4 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 12682 0 11224 49 1 48 48 0 8 0 ffsino 272 12682 0 11224 100 2 98 98 0 8 0 nchpl 144 25584 0 25097 60 40 20 60 0 8 0 uvmvnodes 72 6878 0 0 126 0 126 126 0 8 0 vnodes 208 6878 0 0 362 0 362 362 0 8 0 namei 1024 94293 0 94292 5 4 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 70 0 0 9 0 9 9 0 8 0 vmpool 552 97 0 27 7 1 6 6 0 8 1 scsiplug 64 7 0 7 6 5 1 1 0 8 1 scxspl 192 75173 0 75172 56 53 3 7 0 8 2 plimitpl 152 555 0 547 1 0 1 1 0 8 0 sigapl 432 6757 0 6742 4 2 2 3 0 8 0 futexpl 56 161031 0 161031 1 0 1 1 0 8 1 knotepl 112 1481 0 1462 7 6 1 3 0 8 0 kqueuepl 104 2567 0 2565 23 21 2 4 0 8 1 pipepl 112 4034 0 4015 9 8 1 2 0 8 0 fdescpl 488 6758 0 6742 3 0 3 3 0 8 0 filepl 152 69155 0 69054 81 71 10 14 0 8 6 lockfpl 104 2422 0 2421 1 0 1 1 0 8 0 lockfspl 48 823 0 822 1 0 1 1 0 8 0 sessionpl 112 65 0 54 1 0 1 1 0 8 0 pgrppl 48 163 0 152 1 0 1 1 0 8 0 ucredpl 96 14643 0 14634 1 0 1 1 0 8 0 zombiepl 144 6742 0 6742 2 1 1 1 0 8 1 processpl 896 6775 0 6742 5 1 4 5 0 8 0 procpl 632 21204 0 21161 10 5 5 5 0 8 0 srpgc 64 68 0 68 21 20 1 1 0 8 1 sosppl 128 251 0 251 22 22 0 1 0 8 0 sockpl 384 16016 0 15990 109 99 10 15 0 8 6 mcl64k 65536 769 0 0 88 33 55 65 0 8 2 mcl16k 16384 20 0 0 3 1 2 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 19 0 0 2 0 2 2 0 8 0 mcl8k 8192 18 0 0 3 0 3 3 0 8 0 mcl4k 4096 33 0 0 3 0 3 3 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 243 0 0 27 10 17 27 0 8 0 mtagpl 80 145 0 0 2 0 2 2 0 8 0 mbufpl 256 824 0 0 37 0 37 37 0 8 0 bufpl 256 31767 0 24233 472 0 472 472 0 8 0 anonpl 16 833814 0 806520 278 155 123 127 0 124 11 amapchunkpl 152 52121 0 51675 109 86 23 30 0 158 3 amappl16 192 35784 0 34447 245 168 77 79 0 8 8 amappl15 184 818 0 818 6 6 0 1 0 8 0 amappl14 176 2275 0 2269 1 0 1 1 0 8 0 amappl13 168 973 0 971 1 0 1 1 0 8 0 amappl12 160 484 0 480 1 0 1 1 0 8 0 amappl11 152 376 0 361 1 0 1 1 0 8 0 amappl10 144 608 0 603 1 0 1 1 0 8 0 amappl9 136 2517 0 2513 1 0 1 1 0 8 0 amappl8 128 2179 0 2115 3 0 3 3 0 8 0 amappl7 120 773 0 765 1 0 1 1 0 8 0 amappl6 112 304 0 285 1 0 1 1 0 8 0 amappl5 104 922 0 906 1 0 1 1 0 8 0 amappl4 96 7154 0 7120 1 0 1 1 0 8 0 amappl3 88 1907 0 1900 1 0 1 1 0 8 0 amappl2 80 52128 0 52036 5 2 3 3 0 8 0 amappl1 72 160907 0 160462 26 15 11 20 0 8 0 amappl 80 22280 0 22196 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 133 0 4 3 0 3 3 0 8 0 uaddrrnd 24 6855 0 6742 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6855 0 6742 1 0 1 1 0 8 0 vmmpekpl 168 55739 0 55689 3 0 3 3 0 8 0 vmmpepl 168 866264 0 863470 361 197 164 169 0 357 34 vmsppl 368 6757 0 6742 2 0 2 2 0 8 0 pdppl 4096 13717 0 13608 22 7 15 15 0 8 1 pvpl 32 2126504 0 2103111 487 267 220 231 0 265 23 pmappl 232 6854 0 6769 7 1 6 6 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 909 0 169 22 0 22 22 0 8 0