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 *115408 25716 0 0 0x4000000 0 syz-executor.7 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8285300a) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828d4920,ffffffff8282cbbd,148,ffffffff829229b7) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff800037835718,ffff800000def000,fffffd80659dace8,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd806266bf00,ffff800000def000,fffffd80659dace8,0,0,fffffd80659dad88) at ip6_output+0xc9b sys/netinet6/ip6_output.c:467 tcp_output(ffff800000e3d6c0) at tcp_output+0x27b7 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd807d4ebdb8,fffffd80659fd900) at tcp_connect+0x318 sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a679560,ffff800037835bc0,ffff800037835b10) at sys_connect+0x206 sys/kern/uipc_syscalls.c:422 syscall(ffff800037835bc0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2c992432fd0, 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(ffffffff8285300a) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828d4920,ffffffff8282cbbd,148,ffffffff829229b7) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff800037835718,ffff800000def000,fffffd80659dace8,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd806266bf00,ffff800000def000,fffffd80659dace8,0,0,fffffd80659dad88) at ip6_output+0xc9b sys/netinet6/ip6_output.c:467 tcp_output(ffff800000e3d6c0) at tcp_output+0x27b7 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd807d4ebdb8,fffffd80659fd900) at tcp_connect+0x318 sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a679560,ffff800037835bc0,ffff800037835b10) at sys_connect+0x206 sys/kern/uipc_syscalls.c:422 syscall(ffff800037835bc0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2c992432fd0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800037835570 rbx 0x2 rdx 0xffff800000dbd040 rcx 0 rax 0xffff80002a679560 r8 0x101010101010101 r9 0x8080808080808080 r10 0xa7c92ef63e002f4f r11 0x97ad9ce68ef5711c r12 0 r13 0xffff800037835718 r14 0 r15 0x1 rip 0xffffffff813c0b6c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff800037835560 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb> show proc PROC (syz-executor.7) tid=115408 pid=25716 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=76, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a678818,0xffff80002a6782d8 process=0xffff80002a6390e0 user=0xffff800037830000, vmspace=0xfffffd806b4ac868 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 75898 84931 34076 0 2 0 syz-executor.2 75898 518845 34076 0 3 0x4000080 fsleep syz-executor.2 25716 146371 1467 0 2 0 syz-executor.7 *25716 115408 1467 0 7 0x4000000 syz-executor.7 33360 186488 29033 60928 2 0x10 syz-executor.3 33360 204817 29033 60928 3 0x4000090 fsleep syz-executor.3 33360 260972 29033 60928 3 0x4000090 fsleep syz-executor.3 26223 100606 24045 0 3 0x90 nanoslp syz-executor.5 26223 423820 24045 0 3 0x4000090 fsleep syz-executor.5 26223 336954 24045 0 3 0x4000090 fsleep syz-executor.5 26223 385564 24045 0 3 0x4000090 fsleep syz-executor.5 21464 481080 84070 0 3 0x80 nanoslp syz-executor.0 21464 126750 84070 0 3 0x4000080 kqread syz-executor.0 21464 672 84070 0 3 0x4000080 kqread syz-executor.0 24789 505815 39502 0 3 0x80 nanoslp syz-executor.1 24789 8556 39502 0 3 0x4000080 fsleep syz-executor.1 24789 408293 39502 0 3 0x4000080 netio syz-executor.1 24789 479816 39502 0 3 0x4000080 fsleep syz-executor.1 75653 189912 0 0 3 0x14280 nfsidl nfsio 74696 296702 0 0 3 0x14280 nfsidl nfsio 33703 411512 0 0 3 0x14280 nfsidl nfsio 46916 138507 0 0 3 0x14280 nfsidl nfsio 74438 42553 0 0 3 0x14280 nfsidl nfsio 81309 405534 0 0 3 0x14280 nfsidl nfsio 77714 55929 0 0 3 0x14280 nfsidl nfsio 47952 150580 0 0 3 0x14280 nfsidl nfsio 42341 497315 0 0 3 0x14280 nfsidl nfsio 99646 424081 0 0 3 0x14280 nfsidl nfsio 18189 147370 0 0 3 0x14280 nfsidl nfsio 42626 93131 0 0 3 0x14280 nfsidl nfsio 94927 293692 0 0 3 0x14280 nfsidl nfsio 51196 419117 0 0 3 0x14280 nfsidl nfsio 51929 52926 0 0 3 0x14280 nfsidl nfsio 34760 186857 0 0 3 0x14280 nfsidl nfsio 34672 320610 0 0 3 0x14280 nfsidl nfsio 45459 78435 0 0 3 0x14280 nfsidl nfsio 49490 459981 0 0 3 0x14280 nfsidl nfsio 62878 202169 0 0 3 0x14280 nfsidl nfsio 34076 115781 27848 0 3 0x82 nanoslp syz-executor.2 22656 190527 27848 0 2 0x2 syz-executor.4 24045 430010 27848 0 3 0x82 nanoslp syz-executor.5 47786 268771 1 0 3 0x100083 ttyin getty 34188 484985 27848 0 3 0x82 nanoslp syz-executor.6 81065 207955 0 0 3 0x14200 acct acct 84070 40325 27848 0 3 0x82 nanoslp syz-executor.0 1467 396284 27848 0 3 0x82 nanoslp syz-executor.7 29033 510609 27848 0 3 0x82 nanoslp syz-executor.3 39502 257129 27848 0 3 0x82 nanoslp syz-executor.1 65060 436069 0 0 3 0x14200 bored sosplice 27848 48660 22105 0 3 0x2000082 wait syz-fuzzer 27848 366683 22105 0 3 0x6000082 nanoslp syz-fuzzer 27848 485811 22105 0 3 0x6000082 thrsleep syz-fuzzer 27848 118494 22105 0 3 0x6000082 thrsleep syz-fuzzer 27848 255499 22105 0 3 0x6000082 wait syz-fuzzer 27848 185510 22105 0 3 0x6000082 wait syz-fuzzer 27848 311601 22105 0 3 0x6000082 thrsleep syz-fuzzer 27848 222238 22105 0 3 0x6000082 wait syz-fuzzer 27848 242881 22105 0 3 0x6000082 wait syz-fuzzer 27848 367741 22105 0 3 0x6000082 wait syz-fuzzer 27848 151006 22105 0 3 0x6000082 thrsleep syz-fuzzer 27848 369038 22105 0 3 0x6000082 kqread syz-fuzzer 27848 74414 22105 0 3 0x6000082 wait syz-fuzzer 27848 213217 22105 0 3 0x6000082 wait syz-fuzzer 22105 2976 24601 0 3 0x10008a sigsusp ksh 24601 44155 80295 0 3 0x9a kqread sshd 80295 475105 1 0 3 0x88 kqread sshd 40529 125943 1117 73 3 0x1100090 kqread syslogd 1117 252945 1 0 3 0x100082 netio syslogd 6480 45520 1 0 3 0x100080 kqread resolvd 87464 473780 67303 77 3 0x100092 kqread dhcpleased 47926 152828 67303 77 3 0x100092 kqread dhcpleased 67303 83762 1 0 3 0x80 kqread dhcpleased 94365 267200 0 0 3 0x14200 bored smr 45909 233896 0 0 2 0x14200 zerothread 45997 376303 0 0 3 0x14200 aiodoned aiodoned 78332 201675 0 0 3 0x14200 syncer update 45177 87285 0 0 3 0x14200 cleaner cleaner 69756 380771 0 0 3 0x14200 reaper reaper 24811 130279 0 0 3 0x14200 pgdaemon pagedaemon 64794 496013 0 0 3 0x14200 bored viomb 17408 368500 0 0 3 0x40014200 acpi0 acpi0 88106 156286 0 0 3 0x14200 bored softnet3 31317 59929 0 0 3 0x14200 bored softnet2 6215 40691 0 0 3 0x14200 bored softnet1 74669 484062 0 0 2 0x14200 softnet0 18041 460045 0 0 3 0x14200 bored systqmp 26779 166528 0 0 3 0x14200 bored systq 14997 441211 0 0 3 0x40014200 tmoslp softclock 40267 473758 0 0 3 0x40014200 idle0 1 121022 0 0 3 0x80082 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 10220 6435K 8054K 166960K 28277 0 pcb 17 22K 27K 166960K 581 0 rtable 221 15K 16K 166960K 2467 0 pf 36 10K 10K 166960K 362 0 ifaddr 42 12K 13K 166960K 348 0 ifgroup 63 2K 2K 166960K 609 0 sysctl 4 1K 1K 166960K 4 0 counters 33 17K 18K 166960K 176 0 ioctlops 0 0K 2K 166960K 867 0 iov 0 0K 18K 166960K 609 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1600 100K 100K 166960K 7380 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 3 5K 9K 166960K 82 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 981 0 dirhash 12 2K 2K 166960K 36 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 16 57K 81K 166960K 8451 0 sigio 0 0K 0K 166960K 214 0 proc 58 59K 83K 166960K 2175 0 subproc 104 6K 6K 166960K 715 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 289 0 in_multi 86 6K 7K 166960K 704 0 ether_multi 1 0K 0K 166960K 19 0 mrt 0 0K 0K 166960K 7 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 259 1155K 1155K 166960K 259 0 exec 0 0K 1K 166960K 1881 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 462 280K 280K 166960K 77761 0 UVM aobj 131 4K 4K 166960K 144 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 0K 166960K 182 0 NDP 14 0K 1K 166960K 274 0 temp 74 6704K 7092K 166960K 75512 0 kqueue 14 20K 28K 166960K 560 0 SYN cache 2 1236K 1244K 166960K 3 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 498 0 495 4 3 1 2 0 8 0 rtentry 112 842 0 743 5 1 4 4 0 8 0 unpcb 144 6206 0 6187 65 62 3 6 0 8 1 syncache 320 75 0 75 21 20 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 466 0 466 12 12 0 1 0 8 0 tcpcb 808 2491 0 2478 78 76 2 12 0 8 0 arp 88 172 0 154 1 0 1 1 0 8 0 ipq 40 17 0 15 5 4 1 1 0 8 0 ipqe 40 40 0 38 5 4 1 1 0 8 0 inpcb 344 6357 0 6333 144 140 4 18 0 8 1 nd6 104 177 0 159 1 0 1 1 0 8 0 pkpcb 40 40 0 40 9 9 0 1 0 8 0 kcovpl 48 55 0 47 1 0 1 1 0 8 0 ppxss 1072 33 0 33 11 10 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2899 0 2446 61 32 29 30 0 8 0 art_table 32 2900 0 2446 4 0 4 4 0 8 0 art_node 16 790 0 698 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 6 1 1 0 1 0 8 0 semapl 112 979 0 969 1 0 1 1 0 8 0 shmpl 112 141 0 13 4 0 4 4 0 8 0 dirhash 1024 33 0 16 3 0 3 3 0 8 0 dino2pl 256 12408 0 10910 94 0 94 94 0 8 0 ffsino 240 12408 0 10910 90 1 89 89 0 8 0 nchpl 144 23349 0 21694 63 0 63 63 0 8 0 uvmvnodes 80 6624 0 0 136 0 136 136 0 8 0 vnodes 216 6624 0 0 368 0 368 368 0 8 0 namei 1024 81707 0 81706 11 10 1 3 0 8 0 vcpupl 2048 183 0 0 23 0 23 23 0 8 0 vmpool 664 196 0 13 17 1 16 16 0 8 0 kstatmem 264 314 0 286 5 2 3 3 0 8 1 scxspl 216 83452 0 83452 35 34 1 8 1 8 1 plimitpl 152 1194 0 1179 1 0 1 1 0 8 0 sigapl 424 9125 0 9059 9 1 8 8 0 8 0 futexpl 64 71575 0 71567 8 7 1 1 0 8 0 knotepl 120 73202 0 73118 28 24 4 11 0 8 0 kqueuepl 184 1546 0 1536 24 23 1 6 0 8 0 pipepl 288 1804 0 1774 50 47 3 7 0 8 0 fdescpl 432 8627 0 8600 6 2 4 4 0 8 0 filepl 120 50902 0 50644 105 93 12 19 0 8 3 lockfpl 104 2553 0 2551 7 6 1 2 0 8 0 lockfspl 48 828 0 826 1 0 1 1 0 8 0 sessionpl 144 71 0 55 1 0 1 1 0 8 0 pgrppl 48 151 0 135 1 0 1 1 0 8 0 ucredpl 104 7784 0 7771 1 0 1 1 0 8 0 zombiepl 144 9060 0 9059 2 1 1 1 0 8 0 processpl 1072 9125 0 9059 5 0 5 5 0 8 0 procpl 680 20912 0 20821 19 11 8 9 0 8 0 sosppl 168 104 0 104 11 11 0 1 0 8 0 sockpl 456 13123 0 13082 338 325 13 31 0 8 5 mcl64k 65536 394 0 394 18 18 0 1 0 8 0 mcl16k 16384 167 0 167 24 24 0 1 0 8 0 mcl12k 12288 350 0 350 22 21 1 1 0 8 1 mcl9k 9216 200 0 200 27 26 1 1 0 8 1 mcl8k 8192 579 0 579 24 23 1 2 0 8 1 mcl4k 4096 871 0 871 16 15 1 1 0 8 1 mcl2k2 2112 76 0 76 27 26 1 1 0 8 1 mcl2k 2048 86488 0 86427 78 68 10 29 0 8 2 mtagpl 96 1246 0 1173 15 13 2 7 0 8 0 mbufpl 256 229207 0 228893 752 728 24 131 0 8 0 bufpl 288 21547 0 14922 474 0 474 474 0 8 0 anonpl 24 947298 0 933345 137 27 110 116 0 188 0 amapchunkpl 152 254965 0 254036 121 84 37 50 0 158 0 amappl16 200 18689 0 18163 88 56 32 41 0 8 2 amappl15 192 9 0 9 1 1 0 1 0 8 0 amappl14 184 291 0 279 2 1 1 2 0 8 0 amappl13 176 82 0 80 1 0 1 1 0 8 0 amappl12 168 9955 0 9927 2 0 2 2 0 8 0 amappl11 160 50 0 39 1 0 1 1 0 8 0 amappl10 152 85 0 76 2 1 1 1 0 8 0 amappl9 144 180 0 180 21 21 0 1 0 8 0 amappl8 136 500 0 410 5 1 4 4 0 8 0 amappl7 128 292 0 268 2 0 2 2 0 8 0 amappl6 120 1027 0 1017 1 0 1 1 0 8 0 amappl5 112 299 0 290 1 0 1 1 0 8 0 amappl4 104 754 0 731 2 1 1 2 0 8 0 amappl3 96 48415 0 48311 3 0 3 3 0 8 0 amappl2 88 9528 0 9456 3 1 2 3 0 8 0 amappl1 80 42175 0 41665 23 10 13 22 0 8 0 amappl 88 76653 0 76386 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 143 0 13 3 0 3 3 0 8 0 uaddrrnd 24 8823 0 8613 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8823 0 8613 2 0 2 2 0 8 0 vmmpekpl 168 64498 0 64419 4 0 4 4 0 8 0 vmmpepl 168 539009 0 536467 402 259 143 144 0 357 20 vmsppl 352 8822 0 8613 21 1 20 20 0 8 0 rwobjpl 24 130593 0 122223 54 2 52 52 0 8 0 pdppl 4096 17652 0 17409 710 463 247 247 0 8 4 pvpl 32 2695508 0 2675740 457 259 198 361 0 265 9 pmappl 216 8822 0 8613 13 1 12 12 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2529 0 1518 32 2 30 31 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(ffffffff8285300a) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828d4920,ffffffff8282cbbd,148,ffffffff829229b7) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff800037835718,ffff800000def000,fffffd80659dace8,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd806266bf00,ffff800000def000,fffffd80659dace8,0,0,fffffd80659dad88) at ip6_output+0xc9b sys/netinet6/ip6_output.c:467 tcp_output(ffff800000e3d6c0) at tcp_output+0x27b7 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd807d4ebdb8,fffffd80659fd900) at tcp_connect+0x318 sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a679560,ffff800037835bc0,ffff800037835b10) at sys_connect+0x206 sys/kern/uipc_syscalls.c:422 syscall(ffff800037835bc0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2c992432fd0, 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(ffffffff8285300a) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828d4920,ffffffff8282cbbd,148,ffffffff829229b7) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff800037835718,ffff800000def000,fffffd80659dace8,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd806266bf00,ffff800000def000,fffffd80659dace8,0,0,fffffd80659dad88) at ip6_output+0xc9b sys/netinet6/ip6_output.c:467 tcp_output(ffff800000e3d6c0) at tcp_output+0x27b7 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd807d4ebdb8,fffffd80659fd900) at tcp_connect+0x318 sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a679560,ffff800037835bc0,ffff800037835b10) at sys_connect+0x206 sys/kern/uipc_syscalls.c:422 syscall(ffff800037835bc0) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x2c992432fd0, count: -10