Warning: Permanently added '10.128.1.34' (ED25519) to the list of known hosts. executing program panic: kernel diagnostic assertion "sin6tosa(&ro->ro_dst)->sa_family == AF_INET6" failed: file "/syzkaller/managers/multicore/kernel/sys/netinet6/in6_src.c", line 328 Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND * 81770 19594 0 0x2 0x4000000 1 syz-executor4239919571 63556 12665 0 0x14000 0x200 0 softclockmp db_enter() at db_enter+0x1c panic(ffffffff82874911) at panic+0x17b __assert(ffffffff828fb0d0,ffffffff828d068e,148,ffffffff82948cdc) at __assert+0x29 in6_selectroute(ffff80002a1fc0c0,ffff800000da3380,fffffd806f4887d0,0) at in6_selectroute+0x228 ip6_output(fffffd807e867100,ffff800000da3380,fffffd806f4887d0,0,0,fffffd806f488890) at ip6_output+0xc6a tcp_output(ffff800000dbf000) at tcp_output+0x2877 tcp_connect(fffffd806e0399a0,fffffd806ec08b00) at tcp_connect+0x33a sys_connect(ffff80002a195018,ffff80002a1fc560,ffff80002a1fc4b0) at sys_connect+0x207 syscall(ffff80002a1fc560) at syscall+0x5ae Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x53902d2d8b0, count: 5 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 *cpu1: kernel diagnostic assertion "sin6tosa(&ro->ro_dst)->sa_family == AF_INET6" failed: file "/syzkaller/managers/multicore/kernel/sys/netinet6/in6_src.c", line 328 ddb{1}> trace db_enter() at db_enter+0x1c panic(ffffffff82874911) at panic+0x17b __assert(ffffffff828fb0d0,ffffffff828d068e,148,ffffffff82948cdc) at __assert+0x29 in6_selectroute(ffff80002a1fc0c0,ffff800000da3380,fffffd806f4887d0,0) at in6_selectroute+0x228 ip6_output(fffffd807e867100,ffff800000da3380,fffffd806f4887d0,0,0,fffffd806f488890) at ip6_output+0xc6a tcp_output(ffff800000dbf000) at tcp_output+0x2877 tcp_connect(fffffd806e0399a0,fffffd806ec08b00) at tcp_connect+0x33a sys_connect(ffff80002a195018,ffff80002a1fc560,ffff80002a1fc4b0) at sys_connect+0x207 syscall(ffff80002a1fc560) at syscall+0x5ae Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x53902d2d8b0, count: -10 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a1fbf00 rbx 0xffff800029cfcca7 rdx 0x3fd rcx 0 rax 0xa7 r8 0x101010101010101 r9 0x8080808080808080 r10 0xecd9be967232931d r11 0x431068dda71e8689 r12 0xffff800029cfcaa8 r13 0 r14 0 r15 0x1 rip 0xffffffff8155202c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002a1fbef0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor4239919571) tid=81770 pid=19594 tcnt=2 stat=onproc flags process=2 proc=4000000 runpri=54, usrpri=54, slppri=24, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a1962b0,0xffffffff82e7ce00 process=0xffff8000ffff5640 user=0xffff80002a1f7000, vmspace=0xfffffd807eff91c0 estcpu=4, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 19594 186617 95958 0 2 0x2 syz-executor4239919571 *19594 81770 95958 0 7 0x4000002 syz-executor4239919571 95958 395714 89677 0 3 0x10008a sigsusp ksh 89677 388943 65150 0 3 0x9a kqread sshd 4136 69172 1 0 3 0x100083 ttyin getty 65150 147076 1 0 3 0x88 kqread sshd 74719 473701 81478 74 3 0x1100092 bpf pflogd 81478 36276 1 0 3 0x80 netio pflogd 46626 492018 4278 73 3 0x1100090 kqread syslogd 4278 323524 1 0 3 0x100082 netio syslogd 8924 258483 1 0 3 0x100080 kqread resolvd 24055 417842 84334 77 3 0x100092 kqread dhcpleased 62695 442209 84334 77 3 0x100092 kqread dhcpleased 84334 395432 1 0 3 0x80 kqread dhcpleased 44390 324206 0 0 3 0x14200 bored smr 69295 307588 0 0 2 0x14200 zerothread 60196 240151 0 0 3 0x14200 aiodoned aiodoned 49228 43770 0 0 3 0x14200 syncer update 71333 99196 0 0 3 0x14200 cleaner cleaner 75934 205507 0 0 3 0x14200 reaper reaper 56014 384218 0 0 3 0x14200 pgdaemon pagedaemon 17129 107679 0 0 3 0x14200 bored viomb 42076 17186 0 0 3 0x40014200 acpi0 acpi0 40425 401735 0 0 3 0x40014200 idle1 88883 150327 0 0 3 0x14200 bored softnet3 91239 108587 0 0 3 0x14200 bored softnet2 28928 317910 0 0 3 0x14200 bored softnet1 89176 270382 0 0 3 0x14200 bored softnet0 99090 95241 0 0 3 0x14200 bored systqmp 70922 470842 0 0 3 0x14200 bored systq 12665 63556 0 0 7 0x14200 softclockmp 93163 209891 0 0 3 0x40014200 tmoslp softclock 4018 223600 0 0 3 0x40014200 idle0 1 328281 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 19594 (syz-executor4239919571) thread 0xffff80002a195018 (81770) exclusive rwlock netlock r = 0 (0xffffffff82cba070) #0 witness_lock+0x447 #1 sys_connect+0x1be #2 syscall+0x5ae #3 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10155 6455K 6456K 166960K 11233 0 pcb 15 10K 10K 166960K 15 0 rtable 58 1K 2K 166960K 116 0 pf 15 6K 10K 166960K 26 0 ifaddr 13 9K 9K 166960K 13 0 ifgroup 22 1K 1K 166960K 22 0 counters 48 34K 34K 166960K 48 0 ioctlops 0 0K 4K 166960K 1475 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1176 74K 74K 166960K 1192 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 1K 166960K 2 0 VM map 2 1K 1K 166960K 2 0 sem 2 0K 0K 166960K 2 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 1 0K 0K 166960K 1 0 proc 67 91K 91K 166960K 302 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 in_multi 11 0K 0K 166960K 11 0 ether_multi 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 25 122K 122K 166960K 25 0 exec 0 0K 1K 166960K 272 0 tdb 3 0K 0K 166960K 3 0 pagedep 1 8K 8K 166960K 1 0 inodedep 1 32K 32K 166960K 1 0 newblk 1 0K 0K 166960K 1 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 105 4K 6K 166960K 2623 0 UVM aobj 3 2K 2K 166960K 3 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 0K 166960K 2 0 NDP 4 0K 0K 166960K 4 0 temp 1 6696K 6760K 166960K 3135 0 kqueue 11 16K 18K 166960K 24 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 21 0 18 1 0 1 1 0 8 0 rtentry 112 23 0 1 1 0 1 1 0 8 0 unpcb 144 35 0 20 1 0 1 1 0 8 0 syncache 320 5 0 5 1 0 1 1 0 8 1 tcpqe 32 112 0 112 1 0 1 1 0 8 1 tcpcb 808 10 0 6 1 0 1 1 0 8 0 arp 120 2 0 0 1 0 1 1 0 8 0 inpcb 376 35 0 28 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 9 0 0 1 0 1 1 0 8 0 pfstkey 128 9 0 0 1 0 1 1 0 8 0 pfstate 376 9 0 0 1 0 1 1 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 97 0 0 7 0 7 7 0 8 0 art_table 32 98 0 0 1 0 1 1 0 8 0 art_node 16 22 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1432 0 38 88 0 88 88 0 8 0 ffsino 272 1432 0 38 93 0 93 93 0 8 0 nchpl 144 1618 0 49 59 0 59 59 0 8 0 uvmvnodes 80 1446 0 0 30 0 30 30 0 8 0 vnodes 216 1446 0 0 81 0 81 81 0 8 0 namei 1024 4576 0 4576 1 0 1 1 0 8 1 percpumem 16 38 0 0 1 0 1 1 0 8 0 kstatmem 264 8 0 0 1 0 1 1 0 8 0 scxspl 216 5143 0 5143 3 1 2 2 1 8 2 plimitpl 152 17 0 10 1 0 1 1 0 8 0 sigapl 424 341 0 308 5 0 5 5 0 8 0 knotepl 120 41 0 0 2 0 2 2 0 8 0 kqueuepl 216 20 0 13 1 0 1 1 0 8 0 pipepl 320 95 0 92 1 0 1 1 0 8 0 fdescpl 496 323 0 308 3 0 3 3 0 8 0 filepl 152 1283 0 1224 3 0 3 3 0 8 0 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 18 0 9 1 0 1 1 0 8 0 pgrppl 48 18 0 9 1 0 1 1 0 8 0 ucredpl 104 71 0 59 1 0 1 1 0 8 0 zombiepl 144 308 0 308 1 0 1 1 0 8 1 processpl 1136 341 0 308 3 0 3 3 0 8 0 procpl 680 342 0 308 4 0 4 4 0 8 0 sockpl 488 91 0 66 4 0 4 4 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 285 0 0 36 0 36 36 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 298 0 0 19 0 19 19 0 8 0 bufpl 288 2474 0 91 171 0 171 171 0 8 0 anonpl 24 212906 0 210848 27 2 25 25 0 186 12 amapchunkpl 152 9450 0 9276 8 0 8 8 0 158 1 amappl16 200 6577 0 6576 5 0 5 5 0 8 4 amappl15 192 15 0 15 1 1 0 1 0 8 0 amappl14 184 118 0 107 1 0 1 1 0 8 0 amappl13 176 29 0 29 1 0 1 1 0 8 1 amappl12 168 884 0 869 2 1 1 2 0 8 0 amappl11 160 78 0 64 1 0 1 1 0 8 0 amappl10 152 18 0 18 1 0 1 1 0 8 1 amappl9 144 215 0 215 1 0 1 1 0 8 1 amappl8 136 45 0 43 1 0 1 1 0 8 0 amappl7 128 106 0 93 1 0 1 1 0 8 0 amappl6 120 143 0 137 1 0 1 1 0 8 0 amappl5 112 99 0 88 1 0 1 1 0 8 0 amappl4 104 366 0 344 1 0 1 1 0 8 0 amappl3 96 1980 0 1938 3 1 2 2 0 8 0 amappl2 88 635 0 579 2 0 2 2 0 8 0 amappl1 80 9254 0 8776 12 0 12 12 0 8 0 amappl 88 2316 0 2256 2 0 2 2 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 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 18 0 17 1 0 1 1 0 8 0 aobjpl 72 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 323 0 308 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 323 0 308 1 0 1 1 0 8 0 vmmpekpl 168 7315 0 7301 1 0 1 1 0 8 0 vmmpepl 168 36507 0 35446 52 0 52 52 0 357 4 vmsppl 448 322 0 308 3 1 2 3 0 8 0 rwobjpl 56 20298 0 18134 33 0 33 33 0 8 2 pdppl 4096 653 0 616 55 18 37 45 0 8 0 pvpl 32 7044 0 0 57 0 57 57 0 265 0 pmappl 248 322 0 308 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 487 0 21 14 0 14 14 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp x86_ipi_db(ffffffff82cf5ff0) at x86_ipi_db+0x1e x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xf softclock_thread_mp(ffff80002a10c540) at softclock_thread_mp+0x80 end trace frame: 0x0, count: 10 ddb{0}> trace x86_ipi_db(ffffffff82cf5ff0) at x86_ipi_db+0x1e x86_ipi_handler() at x86_ipi_handler+0xb7 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xf softclock_thread_mp(ffff80002a10c540) at softclock_thread_mp+0x80 end trace frame: 0x0, count: -5 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x1c: addq $0x8,%rsp db_enter() at db_enter+0x1c panic(ffffffff82874911) at panic+0x17b __assert(ffffffff828fb0d0,ffffffff828d068e,148,ffffffff82948cdc) at __assert+0x29 in6_selectroute(ffff80002a1fc0c0,ffff800000da3380,fffffd806f4887d0,0) at in6_selectroute+0x228 ip6_output(fffffd807e867100,ffff800000da3380,fffffd806f4887d0,0,0,fffffd806f488890) at ip6_output+0xc6a tcp_output(ffff800000dbf000) at tcp_output+0x2877 tcp_connect(fffffd806e0399a0,fffffd806ec08b00) at tcp_connect+0x33a sys_connect(ffff80002a195018,ffff80002a1fc560,ffff80002a1fc4b0) at sys_connect+0x207 syscall(ffff80002a1fc560) at syscall+0x5ae Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x53902d2d8b0, count: 5 ddb{1}> trace db_enter() at db_enter+0x1c panic(ffffffff82874911) at panic+0x17b __assert(ffffffff828fb0d0,ffffffff828d068e,148,ffffffff82948cdc) at __assert+0x29 in6_selectroute(ffff80002a1fc0c0,ffff800000da3380,fffffd806f4887d0,0) at in6_selectroute+0x228 ip6_output(fffffd807e867100,ffff800000da3380,fffffd806f4887d0,0,0,fffffd806f488890) at ip6_output+0xc6a tcp_output(ffff800000dbf000) at tcp_output+0x2877 tcp_connect(fffffd806e0399a0,fffffd806ec08b00) at tcp_connect+0x33a sys_connect(ffff80002a195018,ffff80002a1fc560,ffff80002a1fc4b0) at sys_connect+0x207 syscall(ffff80002a1fc560) at syscall+0x5ae Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x53902d2d8b0, count: -10 ddb{1}>