panic: kernel diagnostic assertion "sin6tosa(&ro->ro_dst)->sa_family == AF_INET6" failed: file "/syzkaller/managers/main/kernel/sys/netinet6/in6_src.c", line 328 Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *310851 63537 60928 0x10 0x4000000 0 syz-executor.7 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828522c7) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828d59a6,ffffffff8282d822,148,ffffffff82922daf) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff800034182f98,0,fffffd8069136498,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd807f01fb00,0,fffffd8069136498,0,0,fffffd8069136538) at ip6_output+0xc9b sys/netinet6/ip6_output.c:467 tcp_output(ffff800000e6f370) at tcp_output+0x27b7 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd8060515238,fffffd807f01fc00) at tcp_connect+0x318 sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a679010,ffff800034183440,ffff800034183390) at sys_connect+0x206 sys/kern/uipc_syscalls.c:422 syscall(ffff800034183440) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x36424753190, 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> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: kernel diagnostic assertion "sin6tosa(&ro->ro_dst)->sa_family == AF_INET6" failed: file "/syzkaller/managers/main/kernel/sys/netinet6/in6_src.c", line 328 ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828522c7) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828d59a6,ffffffff8282d822,148,ffffffff82922daf) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff800034182f98,0,fffffd8069136498,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd807f01fb00,0,fffffd8069136498,0,0,fffffd8069136538) at ip6_output+0xc9b sys/netinet6/ip6_output.c:467 tcp_output(ffff800000e6f370) at tcp_output+0x27b7 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd8060515238,fffffd807f01fc00) at tcp_connect+0x318 sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a679010,ffff800034183440,ffff800034183390) at sys_connect+0x206 sys/kern/uipc_syscalls.c:422 syscall(ffff800034183440) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x36424753190, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800034182df0 rbx 0x2 rdx 0xffff800000e1f700 rcx 0xffff800000e1f700 rax 0xffff80002a679010 r8 0 r9 0x8080808080808080 r10 0xffff800034182ae0 r11 0x1a78deea4a9eb811 r12 0 r13 0xffff800034182f98 r14 0 r15 0x1 rip 0xffffffff82075c5c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff800034182de0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb> show proc PROC (syz-executor.7) tid=310851 pid=63537 tcnt=2 stat=onproc flags process=10 proc=4000000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a678570,0xffff80002db142b8 process=0xffff8000ffff2e28 user=0xffff80003417e000, vmspace=0xfffffd80701211b0 estcpu=36, cpticks=20, pctcpu=0.0, user=0, sys=20, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 7680 464276 24473 0 2 0 syz-executor.2 7680 499066 24473 0 2 0x4000000 syz-executor.2 7680 389464 24473 0 2 0x4000000 syz-executor.2 77368 313493 26641 0 2 0 syz-executor.6 77368 383203 26641 0 3 0x4000080 fsleep syz-executor.6 63537 90274 85823 60928 2 0x10 syz-executor.7 *63537 310851 85823 60928 7 0x4000010 syz-executor.7 7012 216081 81610 0 2 0x480 syz-executor.3 7012 463123 81610 0 3 0x4000080 fsleep syz-executor.3 81610 203592 97630 0 2 0x482 syz-executor.3 15950 523197 97630 0 2 0x482 syz-executor.0 85823 84998 97630 0 2 0x482 syz-executor.7 52325 64820 97630 0 2 0x482 syz-executor.4 24473 179949 97630 0 2 0x482 syz-executor.2 26641 478122 97630 0 2 0x482 syz-executor.6 37832 343756 97630 0 2 0x482 syz-executor.5 77621 376251 0 0 3 0x14200 bored sosplice 44263 302465 97630 0 2 0x2 syz-executor.1 97630 273755 2057 0 3 0x2000082 wait syz-fuzzer 97630 197791 2057 0 2 0x6000482 syz-fuzzer 97630 392910 2057 0 3 0x6000082 thrsleep syz-fuzzer 97630 442806 2057 0 3 0x6000082 thrsleep syz-fuzzer 97630 512363 2057 0 2 0x6000482 syz-fuzzer 97630 409222 2057 0 3 0x6000082 wait syz-fuzzer 97630 54619 2057 0 3 0x6000082 thrsleep syz-fuzzer 97630 114367 2057 0 3 0x6000082 wait syz-fuzzer 97630 243457 2057 0 3 0x6000082 wait syz-fuzzer 97630 53254 2057 0 3 0x6000082 thrsleep syz-fuzzer 97630 218185 2057 0 3 0x6000082 wait syz-fuzzer 97630 387725 2057 0 3 0x6000082 wait syz-fuzzer 97630 286754 2057 0 3 0x6000082 wait syz-fuzzer 97630 381828 2057 0 3 0x6000082 wait syz-fuzzer 2057 9888 27896 0 3 0x10008a sigsusp ksh 27896 393559 68817 0 3 0x9a kqread sshd 37493 443482 1 0 2 0x100083 getty 68817 163180 1 0 3 0x88 kqread sshd 71383 377295 47419 73 3 0x1100090 kqread syslogd 47419 35911 1 0 3 0x100082 netio syslogd 54069 259706 1 0 3 0x100080 kqread resolvd 3604 63687 52593 77 3 0x100092 kqread dhcpleased 61930 211616 52593 77 3 0x100092 kqread dhcpleased 52593 26397 1 0 3 0x80 kqread dhcpleased 58061 523970 0 0 3 0x14200 bored smr 2727 100865 0 0 2 0x14200 zerothread 27829 9825 0 0 3 0x14200 aiodoned aiodoned 64346 78690 0 0 3 0x14200 syncer update 74085 181774 0 0 3 0x14200 cleaner cleaner 20031 487895 0 0 3 0x14200 reaper reaper 52471 353791 0 0 3 0x14200 pgdaemon pagedaemon 9691 299093 0 0 3 0x14200 bored viomb 29044 295178 0 0 3 0x40014200 acpi0 acpi0 26745 510010 0 0 3 0x14200 bored softnet3 86106 451438 0 0 3 0x14200 bored softnet2 20415 451525 0 0 3 0x14200 bored softnet1 76884 457751 0 0 2 0x14200 softnet0 35697 67604 0 0 3 0x14200 bored systqmp 96437 199507 0 0 3 0x14200 bored systq 54854 394312 0 0 2 0x40014200 softclock 23445 176332 0 0 3 0x40014200 idle0 1 354924 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10199 6431K 6887K 166960K 20192 0 pcb 15 16K 18K 166960K 763 0 rtable 183 14K 16K 166960K 1279 0 pf 30 9K 10K 166960K 224 0 ifaddr 35 10K 12K 166960K 201 0 ifgroup 51 2K 2K 166960K 353 0 sysctl 3 1K 1K 166960K 8 0 counters 30 17K 17K 166960K 114 0 ioctlops 0 0K 2K 166960K 518 0 iov 0 0K 24K 166960K 648 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1378 86K 87K 166960K 4828 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 107 0 VM map 2 1K 1K 166960K 2 0 sem 12 1K 1K 166960K 378 0 dirhash 12 2K 2K 166960K 63 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 14 49K 73K 166960K 5693 0 sigio 0 0K 0K 166960K 218 0 proc 60 59K 83K 166960K 1383 0 subproc 104 6K 6K 166960K 367 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 354 0 in_multi 66 4K 7K 166960K 403 0 ether_multi 1 0K 0K 166960K 7 0 mrt 1 0K 0K 166960K 10 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 217 970K 970K 166960K 217 0 exec 0 0K 1K 166960K 1454 0 pfkey data 0 0K 0K 166960K 3 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 391 391K 397K 166960K 54475 0 UVM aobj 131 4K 4K 166960K 137 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 170 0 NDP 11 0K 2K 166960K 156 0 temp 74 6704K 6832K 166960K 33711 0 kqueue 12 18K 28K 166960K 463 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 298 0 295 2 1 1 2 0 8 0 rtentry 112 401 0 321 5 2 3 4 0 8 0 unpcb 144 5088 0 5075 58 57 1 7 0 8 0 syncache 320 63 0 63 12 12 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 180 0 180 9 9 0 1 0 8 0 tcpcb 808 1792 0 1774 53 49 4 9 0 8 1 arp 88 73 0 60 1 0 1 1 0 8 0 ipq 40 37 0 37 3 3 0 1 0 8 0 ipqe 40 112 0 112 3 3 0 1 0 8 0 inpcb 344 5193 0 5171 88 80 8 14 0 8 4 nd6 104 96 0 81 1 0 1 1 0 8 0 pkpcb 40 158 0 158 7 7 0 1 0 8 0 kcovpl 48 28 0 20 1 0 1 1 0 8 0 ppxss 1072 30 0 30 9 9 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1564 0 1231 47 25 22 30 0 8 0 art_table 32 1565 0 1231 4 1 3 4 0 8 0 art_node 16 396 0 324 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 1 1 0 1 1 0 8 0 semapl 112 376 0 366 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 51 0 34 3 0 3 3 0 8 0 dino2pl 256 9107 0 7654 92 0 92 92 0 8 0 ffsino 240 9107 0 7654 86 0 86 86 0 8 0 nchpl 144 17240 0 15611 63 0 63 63 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 60216 0 60215 6 5 1 3 0 8 0 vcpupl 2048 98 0 0 13 0 13 13 0 8 0 vmpool 664 114 0 16 9 0 9 9 0 8 0 kstatmem 264 190 0 168 2 0 2 2 0 8 0 scxspl 216 55888 0 55888 23 22 1 8 1 8 1 plimitpl 152 736 0 721 1 0 1 1 0 8 0 sigapl 424 5974 0 5929 8 1 7 8 0 8 0 futexpl 64 55536 0 55534 3 2 1 1 0 8 0 knotepl 120 51593 0 51511 11 8 3 5 0 8 0 kqueuepl 184 1197 0 1189 21 20 1 6 0 8 0 pipepl 288 1033 0 1005 31 28 3 12 0 8 0 fdescpl 432 5936 0 5911 4 0 4 4 0 8 0 filepl 120 37412 0 37176 71 60 11 18 0 8 0 lockfpl 104 1494 0 1492 3 1 2 2 0 8 1 lockfspl 48 670 0 668 1 0 1 1 0 8 0 sessionpl 144 43 0 27 1 0 1 1 0 8 0 pgrppl 48 265 0 249 1 0 1 1 0 8 0 ucredpl 104 4686 0 4671 1 0 1 1 0 8 0 zombiepl 144 5932 0 5929 2 1 1 1 0 8 0 processpl 1072 5974 0 5929 5 0 5 5 0 8 0 procpl 680 14602 0 14539 16 9 7 9 0 8 0 sosppl 168 69 0 69 10 9 1 1 0 8 1 sockpl 456 10741 0 10703 226 212 14 30 0 8 7 mcl64k 65536 323 0 323 19 18 1 1 0 8 1 mcl16k 16384 145 0 145 15 15 0 1 0 8 0 mcl12k 12288 250 0 250 16 15 1 1 0 8 1 mcl9k 9216 70 0 70 16 15 1 1 0 8 1 mcl8k 8192 536 0 536 14 13 1 1 0 8 1 mcl4k 4096 753 0 753 17 16 1 6 0 8 1 mcl2k2 2112 41 0 41 16 16 0 1 0 8 0 mcl2k 2048 78834 0 78784 49 41 8 29 0 8 0 mtagpl 96 806 0 686 11 6 5 8 0 8 0 mbufpl 256 197702 0 197456 501 466 35 125 0 8 0 bufpl 288 14968 0 8573 457 0 457 457 0 8 0 anonpl 24 781128 0 768028 194 95 99 150 0 188 0 amapchunkpl 152 175257 0 174488 106 71 35 64 0 158 1 amappl16 200 18310 0 17882 112 87 25 45 0 8 0 amappl15 192 12 0 10 1 0 1 1 0 8 0 amappl14 184 213 0 203 2 1 1 2 0 8 0 amappl13 176 61 0 60 1 0 1 1 0 8 0 amappl12 168 6873 0 6842 2 0 2 2 0 8 0 amappl11 160 57 0 46 1 0 1 1 0 8 0 amappl10 152 41 0 31 1 0 1 1 0 8 0 amappl9 144 199 0 198 1 0 1 1 0 8 0 amappl8 136 352 0 270 4 0 4 4 0 8 0 amappl7 128 224 0 200 2 0 2 2 0 8 0 amappl6 120 571 0 561 1 0 1 1 0 8 0 amappl5 112 235 0 227 1 0 1 1 0 8 0 amappl4 104 593 0 567 2 1 1 2 0 8 0 amappl3 96 34371 0 34297 3 0 3 3 0 8 0 amappl2 88 6689 0 6619 3 1 2 3 0 8 0 amappl1 80 30804 0 30300 22 10 12 22 0 8 0 amappl 88 53652 0 53428 7 0 7 7 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 136 0 6 3 0 3 3 0 8 0 uaddrrnd 24 6050 0 5927 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6050 0 5927 1 0 1 1 0 8 0 vmmpekpl 168 46354 0 46287 4 0 4 4 0 8 0 vmmpepl 168 375024 0 372799 242 121 121 130 0 357 8 vmsppl 352 6049 0 5927 14 2 12 12 0 8 0 rwobjpl 24 100490 0 92977 49 2 47 47 0 8 0 pdppl 4096 12106 0 11952 436 274 162 164 0 8 8 pvpl 32 1958996 0 1940373 429 248 181 361 0 265 0 pmappl 216 6049 0 5927 9 1 8 8 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1859 0 961 28 1 27 28 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828522c7) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828d59a6,ffffffff8282d822,148,ffffffff82922daf) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff800034182f98,0,fffffd8069136498,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd807f01fb00,0,fffffd8069136498,0,0,fffffd8069136538) at ip6_output+0xc9b sys/netinet6/ip6_output.c:467 tcp_output(ffff800000e6f370) at tcp_output+0x27b7 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd8060515238,fffffd807f01fc00) at tcp_connect+0x318 sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a679010,ffff800034183440,ffff800034183390) at sys_connect+0x206 sys/kern/uipc_syscalls.c:422 syscall(ffff800034183440) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x36424753190, count: -10 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828522c7) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828d59a6,ffffffff8282d822,148,ffffffff82922daf) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff800034182f98,0,fffffd8069136498,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd807f01fb00,0,fffffd8069136498,0,0,fffffd8069136538) at ip6_output+0xc9b sys/netinet6/ip6_output.c:467 tcp_output(ffff800000e6f370) at tcp_output+0x27b7 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd8060515238,fffffd807f01fc00) at tcp_connect+0x318 sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a679010,ffff800034183440,ffff800034183390) at sys_connect+0x206 sys/kern/uipc_syscalls.c:422 syscall(ffff800034183440) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x36424753190, count: -10