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 *480767 51107 0 0 0x4000000 0 syz-executor.4 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8285182e) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828d4fce,ffffffff8282b90f,148,ffffffff82921058) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff80002d971958,0,fffffd80658408f8,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd806bc2a400,0,fffffd80658408f8,0,0,fffffd8065840998) at ip6_output+0xc9b sys/netinet6/ip6_output.c:467 tcp_output(ffff800000db0618) at tcp_output+0x27b7 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd80074ab248,fffffd806bc2bf00) at tcp_connect+0x318 sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a60f560,ffff80002d971e00,ffff80002d971d50) at sys_connect+0x206 sys/kern/uipc_syscalls.c:422 syscall(ffff80002d971e00) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x93dca198ac0, 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> 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(ffffffff8285182e) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828d4fce,ffffffff8282b90f,148,ffffffff82921058) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff80002d971958,0,fffffd80658408f8,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd806bc2a400,0,fffffd80658408f8,0,0,fffffd8065840998) at ip6_output+0xc9b sys/netinet6/ip6_output.c:467 tcp_output(ffff800000db0618) at tcp_output+0x27b7 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd80074ab248,fffffd806bc2bf00) at tcp_connect+0x318 sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a60f560,ffff80002d971e00,ffff80002d971d50) at sys_connect+0x206 sys/kern/uipc_syscalls.c:422 syscall(ffff80002d971e00) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x93dca198ac0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002d9717b0 rbx 0x2 rdx 0xffff800000e0b9c0 rcx 0 rax 0xffff80002a60f560 r8 0 r9 0x8080808080808080 r10 0x6cf44b4b4db61e95 r11 0xcbac5b9fcc70e9c9 r12 0 r13 0xffff80002d971958 r14 0 r15 0x1 rip 0xffffffff81c11dcc db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002d9717a0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb> show proc PROC (syz-executor.4) tid=480767 pid=51107 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=86, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a60e570,0xffff80002a60f818 process=0xffff8000378a0880 user=0xffff80002d96c000, vmspace=0xfffffd8060f568a0 estcpu=36, cpticks=20, pctcpu=0.0, user=0, sys=20, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 92238 92962 4136 0 2 0 syz-executor.0 92238 86357 4136 0 3 0x4000080 piperd syz-executor.0 56540 261875 26812 0 2 0 syz-executor.7 56540 419924 26812 0 3 0x4000080 fsleep syz-executor.7 51107 181244 83370 0 2 0 syz-executor.4 *51107 480767 83370 0 7 0x4000000 syz-executor.4 72744 162620 57057 0 2 0 syz-executor.6 72744 511366 57057 0 2 0x4000000 syz-executor.6 40316 63962 30795 0 2 0x480 syz-executor.1 40316 42660 30795 0 3 0x4000080 ttyout syz-executor.1 40316 195130 30795 0 3 0x4000080 fsleep syz-executor.1 57057 222635 44117 0 2 0x482 syz-executor.6 88839 470754 44117 0 2 0x2 syz-executor.3 17535 446425 1 0 3 0x100083 ttyin getty 48761 215116 44117 0 2 0x482 syz-executor.2 40123 327589 44117 0 2 0x482 syz-executor.5 26812 451759 44117 0 2 0x482 syz-executor.7 35781 24538 0 0 3 0x14280 nfsidl nfsio 14137 88150 0 0 3 0x14280 nfsidl nfsio 46520 250537 0 0 3 0x14280 nfsidl nfsio 47210 456875 0 0 3 0x14280 nfsidl nfsio 7198 119854 0 0 3 0x14280 nfsidl nfsio 37079 36085 0 0 3 0x14280 nfsidl nfsio 57987 68208 0 0 3 0x14280 nfsidl nfsio 72193 328897 0 0 3 0x14280 nfsidl nfsio 77586 117609 0 0 3 0x14280 nfsidl nfsio 22456 417884 0 0 3 0x14280 nfsidl nfsio 28875 152749 0 0 3 0x14280 nfsidl nfsio 4228 392699 0 0 3 0x14280 nfsidl nfsio 75928 362334 0 0 3 0x14280 nfsidl nfsio 88398 100724 0 0 3 0x14280 nfsidl nfsio 97191 137295 0 0 3 0x14280 nfsidl nfsio 57421 462752 0 0 3 0x14280 nfsidl nfsio 46206 337428 0 0 3 0x14280 nfsidl nfsio 28257 63800 0 0 3 0x14280 nfsidl nfsio 8013 330813 0 0 3 0x14280 nfsidl nfsio 39576 146646 0 0 3 0x14280 nfsidl nfsio 30795 247487 44117 0 2 0x482 syz-executor.1 83370 176938 44117 0 2 0x482 syz-executor.4 4136 246802 44117 0 2 0x482 syz-executor.0 15862 383060 98814 0 3 0x100082 netio ndp 98814 445504 1 0 3 0x10008a sigsusp sh 37568 152277 0 0 3 0x14200 bored sosplice 44117 524039 70263 0 3 0x2000082 wait syz-fuzzer 44117 413506 70263 0 2 0x6000482 syz-fuzzer 44117 495866 70263 0 3 0x6000082 wait syz-fuzzer 44117 67915 70263 0 3 0x6000082 thrsleep syz-fuzzer 44117 511908 70263 0 3 0x6000082 wait syz-fuzzer 44117 398332 70263 0 3 0x6000082 wait syz-fuzzer 44117 53188 70263 0 3 0x6000082 wait syz-fuzzer 44117 120901 70263 0 3 0x6000082 thrsleep syz-fuzzer 44117 178246 70263 0 3 0x6000082 kqread syz-fuzzer 44117 258632 70263 0 3 0x6000082 wait syz-fuzzer 44117 93649 70263 0 3 0x6000082 thrsleep syz-fuzzer 44117 71917 70263 0 3 0x6000082 wait syz-fuzzer 44117 445736 70263 0 3 0x6000082 wait syz-fuzzer 44117 190688 70263 0 3 0x6000082 thrsleep syz-fuzzer 70263 522086 70692 0 3 0x10008a sigsusp ksh 70692 149413 66716 0 3 0x9a kqread sshd 66716 163762 1 0 3 0x88 kqread sshd 97827 388759 5900 73 3 0x1100090 kqread syslogd 5900 313518 1 0 3 0x100082 netio syslogd 16718 94796 1 0 3 0x100080 kqread resolvd 55677 8449 0 0 3 0x14200 bored smr 31282 35398 0 0 2 0x14200 zerothread 18271 23052 0 0 3 0x14200 aiodoned aiodoned 10757 167711 0 0 2 0x14600 update 50442 50746 0 0 3 0x14200 cleaner cleaner 38795 398090 0 0 3 0x14200 reaper reaper 95681 201226 0 0 3 0x14200 pgdaemon pagedaemon 22264 116350 0 0 3 0x14200 bored viomb 651 307985 0 0 3 0x40014200 acpi0 acpi0 71853 216342 0 0 3 0x14200 bored softnet3 85803 253499 0 0 3 0x14200 bored softnet2 57829 81973 0 0 3 0x14200 bored softnet1 99090 83256 0 0 3 0x14200 bored softnet0 34123 377431 0 0 3 0x14200 bored systqmp 40234 302036 0 0 3 0x14200 bored systq 41429 389169 0 0 2 0x40014200 softclock 87815 381275 0 0 3 0x40014200 idle0 1 441359 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 10200 6425K 14670K 166960K 31513 0 pcb 15 18K 20K 166960K 1166 0 rtable 212 14K 16K 166960K 2957 0 pf 31 9K 10K 166960K 403 0 ifaddr 39 12K 13K 166960K 404 0 ifgroup 54 2K 2K 166960K 650 0 sysctl 4 1K 1K 166960K 6 0 counters 31 17K 17K 166960K 197 0 ioctlops 0 0K 2K 166960K 847 0 iov 1 16K 26K 166960K 1259 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1492 93K 94K 166960K 7810 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 9 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 1365 0 dirhash 12 2K 2K 166960K 42 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 17 61K 81K 166960K 13905 0 sigio 0 0K 0K 166960K 230 0 proc 52 42K 83K 166960K 2521 0 subproc 117 7K 8K 166960K 1014 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 673 0 in_multi 83 6K 7K 166960K 896 0 ether_multi 2 0K 0K 166960K 11 0 mrt 6 0K 0K 166960K 9 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 247 1102K 1102K 166960K 247 0 exec 0 0K 1K 166960K 2739 0 pfkey data 0 0K 0K 166960K 7 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 452 680K 681K 166960K 127815 0 UVM aobj 131 4K 4K 166960K 134 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 456 0 NDP 12 0K 1K 166960K 317 0 temp 74 6704K 7024K 166960K 103675 0 kqueue 6 10K 28K 166960K 742 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 866 0 864 5 4 1 3 0 8 0 rtentry 112 1010 0 916 7 4 3 4 0 8 0 unpcb 144 13094 0 13086 131 130 1 11 0 8 0 syncache 320 116 0 116 25 25 0 1 0 8 0 sackhl 24 3 0 3 3 3 0 1 0 8 0 tcpqe 32 363 0 363 19 19 0 1 0 8 0 tcpcb 808 3384 0 3376 129 126 3 15 0 8 2 arp 88 212 0 197 1 0 1 1 0 8 0 ipq 40 3 0 3 3 3 0 1 0 8 0 ipqe 40 7 0 7 3 3 0 1 0 8 0 inpcb 344 11691 0 11679 213 207 6 22 0 8 4 nd6 104 214 0 194 1 0 1 1 0 8 0 pkpcb 40 70 0 70 9 9 0 1 0 8 0 kcovpl 48 78 0 69 1 0 1 1 0 8 0 ppxss 1072 54 0 54 15 15 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 3437 0 3019 82 55 27 30 0 8 0 art_table 32 3438 0 3019 6 2 4 4 0 8 0 art_node 16 937 0 851 1 0 1 1 0 8 0 sysvmsgpl 40 26 0 6 1 0 1 1 0 8 0 semapl 112 1362 0 1352 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 37 0 20 3 0 3 3 0 8 0 dino2pl 256 19885 0 18405 93 0 93 93 0 8 0 ffsino 240 19885 0 18405 88 0 88 88 0 8 0 nchpl 144 38728 0 37078 63 1 62 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 131778 0 131778 11 10 1 3 0 8 1 vcpupl 2048 268 0 0 34 0 34 34 0 8 0 vmpool 664 279 0 11 23 0 23 23 0 8 0 kstatmem 264 356 0 332 2 0 2 2 0 8 0 scxspl 216 123005 0 123005 47 45 2 8 1 8 2 plimitpl 152 2224 0 2208 1 0 1 1 0 8 0 sigapl 424 14454 0 14390 10 2 8 8 0 8 0 futexpl 64 143549 0 143547 7 6 1 1 0 8 0 knotepl 120 113239 0 113173 11 8 3 7 0 8 0 kqueuepl 184 2288 0 2283 36 35 1 4 0 8 0 pipepl 288 2491 0 2458 60 55 5 10 0 8 2 fdescpl 432 14036 0 14011 7 3 4 4 0 8 0 filepl 120 89730 0 89479 147 137 10 18 0 8 0 lockfpl 104 3990 0 3989 7 6 1 2 0 8 0 lockfspl 48 1404 0 1403 1 0 1 1 0 8 0 sessionpl 144 88 0 72 1 0 1 1 0 8 0 pgrppl 48 370 0 354 1 0 1 1 0 8 0 ucredpl 104 14591 0 14584 1 0 1 1 0 8 0 zombiepl 144 14392 0 14390 1 0 1 1 0 8 0 processpl 1072 14454 0 14390 5 0 5 5 0 8 0 procpl 680 34493 0 34410 21 12 9 9 0 8 1 sosppl 168 88 0 88 15 15 0 1 0 8 0 sockpl 456 25740 0 25718 629 621 8 37 0 8 3 mcl64k 65536 1195 0 1195 19 18 1 1 0 8 1 mcl16k 16384 994 0 994 24 23 1 1 0 8 1 mcl12k 12288 642 0 642 37 37 0 1 0 8 0 mcl9k 9216 185 0 185 36 36 0 1 0 8 0 mcl8k 8192 764 0 764 27 26 1 1 0 8 1 mcl4k 4096 1389 0 1389 19 18 1 2 0 8 1 mcl2k2 2112 89 0 89 36 36 0 1 0 8 0 mcl2k 2048 101475 0 101430 82 74 8 32 0 8 1 mtagpl 96 864 0 864 21 21 0 8 0 8 0 mbufpl 256 352857 0 352708 1550 1507 43 134 0 8 16 bufpl 288 29238 0 22842 458 0 458 458 0 8 0 anonpl 24 1422206 0 1409499 243 139 104 160 0 188 0 amapchunkpl 152 409451 0 408621 113 72 41 67 0 158 0 amappl16 200 28360 0 27915 156 132 24 36 0 8 0 amappl15 192 14 0 14 1 1 0 1 0 8 0 amappl14 184 361 0 350 2 1 1 2 0 8 0 amappl13 176 108 0 106 1 0 1 1 0 8 0 amappl12 168 15571 0 15541 3 1 2 2 0 8 0 amappl11 160 49 0 45 1 0 1 1 0 8 0 amappl10 152 104 0 94 1 0 1 1 0 8 0 amappl9 144 304 0 302 1 0 1 1 0 8 0 amappl8 136 559 0 462 4 0 4 4 0 8 0 amappl7 128 341 0 317 2 0 2 2 0 8 0 amappl6 120 1264 0 1251 1 0 1 1 0 8 0 amappl5 112 936 0 930 1 0 1 1 0 8 0 amappl4 104 1527 0 1500 2 1 1 2 0 8 0 amappl3 96 79657 0 79578 3 0 3 3 0 8 0 amappl2 88 15114 0 15049 3 1 2 3 0 8 0 amappl1 80 61629 0 61189 23 11 12 22 0 8 0 amappl 88 126588 0 126335 9 2 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 133 0 3 3 0 3 3 0 8 0 uaddrrnd 24 14315 0 14022 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 14315 0 14022 2 0 2 2 0 8 0 vmmpekpl 168 96875 0 96775 5 0 5 5 0 8 0 vmmpepl 168 851322 0 849000 372 240 132 137 0 357 11 vmsppl 352 14314 0 14022 28 1 27 27 0 8 0 rwobjpl 24 199965 0 192480 50 2 48 48 0 8 0 pdppl 4096 28636 0 28312 1073 744 329 329 0 8 5 pvpl 32 4159900 0 4141688 540 362 178 361 0 265 0 pmappl 216 14314 0 14022 19 2 17 17 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 3777 0 2670 36 2 34 34 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(ffffffff8285182e) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828d4fce,ffffffff8282b90f,148,ffffffff82921058) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff80002d971958,0,fffffd80658408f8,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd806bc2a400,0,fffffd80658408f8,0,0,fffffd8065840998) at ip6_output+0xc9b sys/netinet6/ip6_output.c:467 tcp_output(ffff800000db0618) at tcp_output+0x27b7 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd80074ab248,fffffd806bc2bf00) at tcp_connect+0x318 sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a60f560,ffff80002d971e00,ffff80002d971d50) at sys_connect+0x206 sys/kern/uipc_syscalls.c:422 syscall(ffff80002d971e00) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x93dca198ac0, 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(ffffffff8285182e) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828d4fce,ffffffff8282b90f,148,ffffffff82921058) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff80002d971958,0,fffffd80658408f8,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd806bc2a400,0,fffffd80658408f8,0,0,fffffd8065840998) at ip6_output+0xc9b sys/netinet6/ip6_output.c:467 tcp_output(ffff800000db0618) at tcp_output+0x27b7 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd80074ab248,fffffd806bc2bf00) at tcp_connect+0x318 sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a60f560,ffff80002d971e00,ffff80002d971d50) at sys_connect+0x206 sys/kern/uipc_syscalls.c:422 syscall(ffff80002d971e00) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x93dca198ac0, count: -10