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 * 24856 29443 0 0 0x4000000 0 syz-executor.2 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(ffff80002d9557c8,0,fffffd80622ece00,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd806d34c300,0,fffffd80622ece00,0,0,fffffd80622ecea0) at ip6_output+0xc9b sys/netinet6/ip6_output.c:467 tcp_output(ffff800000e80308) at tcp_output+0x27b7 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd806b0f84b0,fffffd806d34cb00) at tcp_connect+0x318 sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a679010,ffff80002d955c70,ffff80002d955bc0) at sys_connect+0x206 sys/kern/uipc_syscalls.c:422 syscall(ffff80002d955c70) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x742cda6f620, 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(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(ffff80002d9557c8,0,fffffd80622ece00,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd806d34c300,0,fffffd80622ece00,0,0,fffffd80622ecea0) at ip6_output+0xc9b sys/netinet6/ip6_output.c:467 tcp_output(ffff800000e80308) at tcp_output+0x27b7 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd806b0f84b0,fffffd806d34cb00) at tcp_connect+0x318 sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a679010,ffff80002d955c70,ffff80002d955bc0) at sys_connect+0x206 sys/kern/uipc_syscalls.c:422 syscall(ffff80002d955c70) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x742cda6f620, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80002d955620 rbx 0x2 rdx 0xffff800000daee80 rcx 0 rax 0xffff80002a679010 r8 0 r9 0x8080808080808080 r10 0x7d584259b011984b r11 0xd0e27a7f00b893cf r12 0 r13 0xffff80002d9557c8 r14 0 r15 0x1 rip 0xffffffff82075c5c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002d955610 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb> show proc PROC (syz-executor.2) tid=24856 pid=29443 tcnt=2 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=82, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a679808,0xffffffff82d39a20 process=0xffff800035de3688 user=0xffff80002d950000, vmspace=0xfffffd805ac12320 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 77969 451461 74249 0 3 0x80 fsleep syz-executor.3 77969 81287 74249 0 3 0x4000080 netio syz-executor.3 29443 506103 33864 0 2 0 syz-executor.2 *29443 24856 33864 0 7 0x4000000 syz-executor.2 19596 77367 76708 0 3 0x80 fsleep syz-executor.6 19596 137888 76708 0 3 0x4000080 bell syz-executor.6 19596 156727 76708 0 3 0x4000080 bell syz-executor.6 32939 210460 39680 0 3 0x80 fsleep syz-executor.1 32939 243066 39680 0 3 0x4000080 lockf syz-executor.1 33864 425451 78884 0 3 0x82 nanoslp syz-executor.2 34038 27048 0 0 3 0x14280 nfsidl nfsio 23171 28915 0 0 3 0x14280 nfsidl nfsio 51570 461658 0 0 3 0x14280 nfsidl nfsio 38805 180083 0 0 3 0x14280 nfsidl nfsio 94894 426239 0 0 3 0x14280 nfsidl nfsio 95244 114868 0 0 3 0x14280 nfsidl nfsio 24252 301068 0 0 3 0x14280 nfsidl nfsio 13261 522167 0 0 3 0x14280 nfsidl nfsio 28615 447309 0 0 3 0x14280 nfsidl nfsio 71382 91911 0 0 3 0x14280 nfsidl nfsio 29226 450074 0 0 3 0x14280 nfsidl nfsio 51234 117594 0 0 3 0x14280 nfsidl nfsio 68560 417930 0 0 3 0x14280 nfsidl nfsio 37164 460205 0 0 3 0x14280 nfsidl nfsio 63614 32971 0 0 3 0x14280 nfsidl nfsio 78962 365724 0 0 3 0x14280 nfsidl nfsio 69076 462149 0 0 3 0x14280 nfsidl nfsio 44911 257685 0 0 3 0x14280 nfsidl nfsio 50702 323679 0 0 3 0x14280 nfsidl nfsio 984 322537 0 0 3 0x14280 nfsidl nfsio 21916 370725 78884 0 2 0x482 syz-executor.5 50046 218265 78884 0 2 0x2 syz-executor.4 74249 110064 78884 0 2 0x482 syz-executor.3 76708 384958 78884 0 3 0x82 nanoslp syz-executor.6 39680 271712 78884 0 2 0x482 syz-executor.1 23885 421195 78884 0 3 0x82 nanoslp syz-executor.7 23796 102785 78884 0 2 0x482 syz-executor.0 64039 381036 0 0 3 0x14200 bored sosplice 78884 190509 37795 0 3 0x2000082 wait syz-fuzzer 78884 409763 37795 0 3 0x6000082 nanoslp syz-fuzzer 78884 72539 37795 0 3 0x6000082 wait syz-fuzzer 78884 519613 37795 0 3 0x6000082 wait syz-fuzzer 78884 400333 37795 0 3 0x6000082 wait syz-fuzzer 78884 31834 37795 0 3 0x6000082 wait syz-fuzzer 78884 153313 37795 0 3 0x6000082 wait syz-fuzzer 78884 123393 37795 0 3 0x6000082 thrsleep syz-fuzzer 78884 347607 37795 0 3 0x6000082 wait syz-fuzzer 78884 121646 37795 0 3 0x6000082 thrsleep syz-fuzzer 78884 293070 37795 0 3 0x6000082 thrsleep syz-fuzzer 78884 97858 37795 0 3 0x6000082 kqread syz-fuzzer 78884 150509 37795 0 3 0x6000082 thrsleep syz-fuzzer 78884 288211 37795 0 3 0x6000082 wait syz-fuzzer 37795 436403 91327 0 3 0x10008a sigsusp ksh 91327 105275 1683 0 3 0x9a kqread sshd 76499 447453 1 0 3 0x100083 ttyin getty 1683 70428 1 0 3 0x88 kqread sshd 68565 465957 84584 73 3 0x1100090 kqread syslogd 84584 365065 1 0 3 0x100082 netio syslogd 92920 19875 1 0 3 0x100080 kqread resolvd 58286 496386 11747 77 3 0x100092 kqread dhcpleased 99262 327652 11747 77 3 0x100092 kqread dhcpleased 11747 200844 1 0 3 0x80 kqread dhcpleased 8700 367404 0 0 3 0x14200 bored smr 30611 354778 0 0 2 0x14200 zerothread 85149 387751 0 0 3 0x14200 aiodoned aiodoned 39460 206409 0 0 3 0x14200 syncer update 6284 201799 0 0 3 0x14200 cleaner cleaner 19066 511188 0 0 3 0x14200 reaper reaper 97968 412461 0 0 3 0x14200 pgdaemon pagedaemon 35658 489889 0 0 3 0x14200 bored viomb 69189 180328 0 0 3 0x40014200 acpi0 acpi0 88215 498041 0 0 3 0x14200 bored softnet3 56025 259979 0 0 3 0x14200 bored softnet2 86 191674 0 0 3 0x14200 bored softnet1 39686 177791 0 0 3 0x14200 bored softnet0 30383 106590 0 0 3 0x14200 bored systqmp 61517 514690 0 0 3 0x14200 bored systq 83806 388507 0 0 3 0x40014200 tmoslp softclock 25789 413238 0 0 3 0x40014200 idle0 1 228231 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 10210 6427K 7127K 166960K 22513 0 pcb 15 22K 26K 166960K 589 0 rtable 199 14K 15K 166960K 1663 0 pf 34 9K 10K 166960K 239 0 ifaddr 39 11K 12K 166960K 219 0 ifgroup 59 2K 2K 166960K 398 0 sysctl 4 1K 1K 166960K 10 0 counters 32 17K 18K 166960K 120 0 ioctlops 0 0K 2K 166960K 1671 0 iov 0 0K 26K 166960K 913 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1521 95K 95K 166960K 5097 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 118 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 500 0 dirhash 12 2K 2K 166960K 57 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 16 57K 69K 166960K 7011 0 sigio 0 0K 0K 166960K 72 0 proc 61 59K 75K 166960K 1362 0 subproc 104 6K 7K 166960K 403 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 700 0 in_multi 77 5K 7K 166960K 476 0 ether_multi 1 0K 0K 166960K 10 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 229 1023K 1023K 166960K 229 0 exec 0 0K 1K 166960K 1738 0 pfkey data 0 0K 0K 166960K 4 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 400 275K 277K 166960K 69842 0 UVM aobj 131 4K 4K 166960K 142 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 201 0 NDP 13 0K 1K 166960K 172 0 temp 74 6704K 6792K 166960K 74770 0 kqueue 12 18K 28K 166960K 509 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 528 0 525 5 4 1 4 0 8 0 rtentry 112 462 0 374 4 1 3 4 0 8 0 unpcb 144 4392 0 4374 61 57 4 10 0 8 3 syncache 320 80 0 80 14 13 1 1 0 8 1 tcpqe 32 338 0 338 14 13 1 1 0 8 1 tcpcb 808 2662 0 2639 91 88 3 16 0 8 0 arp 88 70 0 56 1 0 1 1 0 8 0 ipq 40 7 0 7 3 3 0 1 0 8 0 ipqe 40 24 0 24 3 3 0 1 0 8 0 inpcb 344 6251 0 6224 127 119 8 21 0 8 5 nd6 104 108 0 90 1 0 1 1 0 8 0 pkpcb 40 25 0 25 6 6 0 1 0 8 0 kcovpl 48 31 0 23 1 0 1 1 0 8 0 ppxss 1072 21 0 21 7 7 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1780 0 1404 40 16 24 30 0 8 0 art_table 32 1781 0 1404 5 1 4 4 0 8 0 art_node 16 423 0 343 1 0 1 1 0 8 0 sysvmsgpl 40 72 0 71 2 1 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 493 0 483 1 0 1 1 0 8 0 shmpl 112 139 0 11 5 1 4 4 0 8 0 dirhash 1024 47 0 30 3 0 3 3 0 8 0 dino2pl 256 10391 0 8890 94 0 94 94 0 8 0 ffsino 240 10391 0 8890 89 0 89 89 0 8 0 nchpl 144 19702 0 18055 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 68507 0 68506 8 7 1 3 0 8 0 vcpupl 2048 99 0 1 13 0 13 13 0 8 0 vmpool 664 100 0 2 9 0 9 9 0 8 0 kstatmem 264 202 0 176 3 1 2 3 0 8 0 scxspl 216 70687 0 70687 24 23 1 8 1 8 1 plimitpl 152 937 0 922 1 0 1 1 0 8 0 sigapl 424 7583 0 7518 8 0 8 8 0 8 0 futexpl 64 59668 0 59665 1 0 1 1 0 8 0 knotepl 120 62832 0 62750 20 9 11 11 0 8 7 kqueuepl 184 1104 0 1096 16 15 1 4 0 8 0 pipepl 288 949 0 921 15 12 3 7 0 8 0 fdescpl 432 7246 0 7219 4 0 4 4 0 8 0 filepl 120 41941 0 41689 89 79 10 16 0 8 0 lockfpl 104 2947 0 2943 7 6 1 2 0 8 0 lockfspl 48 1063 0 1060 1 0 1 1 0 8 0 sessionpl 144 46 0 30 1 0 1 1 0 8 0 pgrppl 48 223 0 207 1 0 1 1 0 8 0 ucredpl 104 4935 0 4919 1 0 1 1 0 8 0 zombiepl 144 7521 0 7518 1 0 1 1 0 8 0 processpl 1072 7583 0 7518 5 0 5 5 0 8 0 procpl 680 20205 0 20122 27 18 9 10 0 8 1 sosppl 168 62 0 62 11 11 0 1 0 8 0 sockpl 456 11283 0 11235 263 248 15 35 0 8 8 mcl64k 65536 354 0 354 19 18 1 1 0 8 1 mcl16k 16384 145 0 145 21 20 1 1 0 8 1 mcl12k 12288 302 0 302 20 19 1 1 0 8 1 mcl9k 9216 141 0 141 23 22 1 1 0 8 1 mcl8k 8192 638 0 638 16 15 1 1 0 8 1 mcl4k 4096 987 0 987 10 9 1 3 0 8 1 mcl2k2 2112 61 0 61 22 22 0 1 0 8 0 mcl2k 2048 81281 0 81235 54 47 7 29 0 8 0 mtagpl 96 737 0 678 9 6 3 7 0 8 0 mbufpl 256 199660 0 199443 232 213 19 67 0 8 3 bufpl 288 20744 0 14351 457 0 457 457 0 8 0 anonpl 24 903934 0 890642 172 73 99 109 0 188 0 amapchunkpl 152 222675 0 221824 96 61 35 43 0 158 0 amappl16 200 21010 0 20564 131 100 31 36 0 8 6 amappl15 192 16 0 16 1 1 0 1 0 8 0 amappl14 184 227 0 214 2 1 1 2 0 8 0 amappl13 176 61 0 60 1 0 1 1 0 8 0 amappl12 168 8208 0 8178 2 0 2 2 0 8 0 amappl11 160 87 0 77 1 0 1 1 0 8 0 amappl10 152 120 0 108 1 0 1 1 0 8 0 amappl9 144 195 0 194 1 0 1 1 0 8 0 amappl8 136 413 0 332 4 0 4 4 0 8 1 amappl7 128 249 0 223 2 0 2 2 0 8 0 amappl6 120 655 0 644 1 0 1 1 0 8 0 amappl5 112 269 0 261 1 0 1 1 0 8 0 amappl4 104 603 0 578 2 1 1 2 0 8 0 amappl3 96 43746 0 43653 3 0 3 3 0 8 0 amappl2 88 8123 0 8046 3 1 2 3 0 8 0 amappl1 80 35584 0 35073 22 10 12 22 0 8 0 amappl 88 68968 0 68731 6 0 6 6 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 141 0 11 3 0 3 3 0 8 0 uaddrrnd 24 7346 0 7221 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7346 0 7221 1 0 1 1 0 8 0 vmmpekpl 168 57543 0 57463 4 0 4 4 0 8 0 vmmpepl 168 458331 0 455972 344 214 130 131 0 357 14 vmsppl 352 7345 0 7221 13 1 12 12 0 8 0 rwobjpl 24 122693 0 115136 47 0 47 47 0 8 0 pdppl 4096 14698 0 14540 651 489 162 162 0 8 4 pvpl 32 2281784 0 2262844 463 286 177 334 0 265 0 pmappl 216 7345 0 7221 8 0 8 8 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1844 0 954 27 0 27 27 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(ffff80002d9557c8,0,fffffd80622ece00,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd806d34c300,0,fffffd80622ece00,0,0,fffffd80622ecea0) at ip6_output+0xc9b sys/netinet6/ip6_output.c:467 tcp_output(ffff800000e80308) at tcp_output+0x27b7 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd806b0f84b0,fffffd806d34cb00) at tcp_connect+0x318 sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a679010,ffff80002d955c70,ffff80002d955bc0) at sys_connect+0x206 sys/kern/uipc_syscalls.c:422 syscall(ffff80002d955c70) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x742cda6f620, 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(ffff80002d9557c8,0,fffffd80622ece00,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd806d34c300,0,fffffd80622ece00,0,0,fffffd80622ecea0) at ip6_output+0xc9b sys/netinet6/ip6_output.c:467 tcp_output(ffff800000e80308) at tcp_output+0x27b7 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd806b0f84b0,fffffd806d34cb00) at tcp_connect+0x318 sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a679010,ffff80002d955c70,ffff80002d955bc0) at sys_connect+0x206 sys/kern/uipc_syscalls.c:422 syscall(ffff80002d955c70) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x742cda6f620, count: -10