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 *411078 27586 0 0 0x4000000 0 syz-executor.2 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8284c796) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828d3b2f,ffffffff828306f8,148,ffffffff8292603e) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff8000378b0f78,0,fffffd807a2d08b8,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd8074c1fb00,0,fffffd807a2d08b8,0,0,fffffd807a2d0958) at ip6_output+0xc9b sys/netinet6/ip6_output.c:467 tcp_output(ffff800000e54070) at tcp_output+0x27b7 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd807619aab0,fffffd8074c20f00) at tcp_connect+0x318 sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a64d7f8,ffff8000378b1420,ffff8000378b1370) at sys_connect+0x206 sys/kern/uipc_syscalls.c:422 syscall(ffff8000378b1420) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5799811b220, 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(ffffffff8284c796) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828d3b2f,ffffffff828306f8,148,ffffffff8292603e) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff8000378b0f78,0,fffffd807a2d08b8,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd8074c1fb00,0,fffffd807a2d08b8,0,0,fffffd807a2d0958) at ip6_output+0xc9b sys/netinet6/ip6_output.c:467 tcp_output(ffff800000e54070) at tcp_output+0x27b7 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd807619aab0,fffffd8074c20f00) at tcp_connect+0x318 sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a64d7f8,ffff8000378b1420,ffff8000378b1370) at sys_connect+0x206 sys/kern/uipc_syscalls.c:422 syscall(ffff8000378b1420) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5799811b220, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000378b0dd0 rbx 0x2 rdx 0xffff800000dbea00 rcx 0 rax 0xffff80002a64d7f8 r8 0 r9 0x8080808080808080 r10 0xa935956c3f343a06 r11 0xde8e17518d763a8f r12 0 r13 0xffff8000378b0f78 r14 0 r15 0x1 rip 0xffffffff81e5430c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff8000378b0dc0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb> show proc PROC (syz-executor.2) tid=411078 pid=27586 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=0xffff80002a68cd48,0xffffffff82e42fe0 process=0xffff8000ffff4870 user=0xffff8000378ac000, vmspace=0xfffffd8069a3a430 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 27586 425104 31802 0 2 0 syz-executor.2 *27586 411078 31802 0 7 0x4000000 syz-executor.2 63602 331080 75783 0 2 0 syz-executor.0 63602 520920 75783 0 3 0x4000080 fsleep syz-executor.0 95794 485420 26183 0 2 0 syz-executor.7 95794 210610 26183 0 3 0x4000080 fsleep syz-executor.7 72539 20675 73075 0 2 0x82000 syz-executor.1 72539 62457 73075 0 2 0x4082000 syz-executor.1 72539 173518 73075 0 3 0x4002000 suspend syz-executor.1 15958 201787 93954 0 2 0x480 syz-executor.3 15958 283803 93954 0 3 0x4000080 bell syz-executor.3 15958 355976 93954 0 3 0x4000080 fsleep syz-executor.3 48232 147854 54066 0 2 0x480 syz-executor.5 48232 476338 54066 0 3 0x4000080 fsleep syz-executor.5 48232 12138 54066 0 3 0x4000080 kqread syz-executor.5 48232 223482 54066 0 3 0x4000080 fsleep syz-executor.5 26730 359706 60394 0 2 0x2 syz-executor.6 30448 342792 0 0 3 0x14200 acct acct 68679 250450 60394 0 2 0x482 syz-executor.4 54066 457562 60394 0 2 0x482 syz-executor.5 90445 369880 0 0 3 0x14200 bored sosplice 75783 5276 60394 0 2 0x482 syz-executor.0 85353 445398 0 0 3 0x14280 nfsidl nfsio 36992 315350 0 0 3 0x14280 nfsidl nfsio 65175 488238 0 0 3 0x14280 nfsidl nfsio 51369 322956 0 0 3 0x14280 nfsidl nfsio 65928 18612 0 0 3 0x14280 nfsidl nfsio 38060 236364 0 0 3 0x14280 nfsidl nfsio 82164 308274 0 0 3 0x14280 nfsidl nfsio 89420 44286 0 0 3 0x14280 nfsidl nfsio 27137 450201 0 0 3 0x14280 nfsidl nfsio 412 118892 0 0 3 0x14280 nfsidl nfsio 24251 48760 0 0 3 0x14280 nfsidl nfsio 23588 358600 0 0 3 0x14280 nfsidl nfsio 5342 268693 0 0 3 0x14280 nfsidl nfsio 34587 176458 0 0 3 0x14280 nfsidl nfsio 2506 186425 0 0 3 0x14280 nfsidl nfsio 67457 261779 0 0 3 0x14280 nfsidl nfsio 52019 208820 0 0 3 0x14280 nfsidl nfsio 25784 493942 0 0 3 0x14280 nfsidl nfsio 34503 230372 0 0 3 0x14280 nfsidl nfsio 41030 130125 0 0 3 0x14280 nfsidl nfsio 26183 58887 60394 0 2 0x482 syz-executor.7 93954 468454 60394 0 2 0x482 syz-executor.3 31802 131891 60394 0 2 0x482 syz-executor.2 73075 419817 60394 0 2 0x482 syz-executor.1 60394 57735 2508 0 3 0x2000082 wait syz-fuzzer 60394 140149 2508 0 2 0x6000482 syz-fuzzer 60394 406183 2508 0 3 0x6000082 wait syz-fuzzer 60394 391625 2508 0 3 0x6000082 thrsleep syz-fuzzer 60394 211760 2508 0 3 0x6000082 wait syz-fuzzer 60394 401037 2508 0 3 0x6000082 wait syz-fuzzer 60394 3793 2508 0 3 0x6000082 wait syz-fuzzer 60394 375282 2508 0 3 0x6000082 thrsleep syz-fuzzer 60394 481006 2508 0 3 0x6000082 wait syz-fuzzer 60394 6418 2508 0 3 0x6000082 thrsleep syz-fuzzer 60394 209406 2508 0 3 0x6000082 wait syz-fuzzer 60394 447485 2508 0 3 0x6000082 thrsleep syz-fuzzer 60394 345571 2508 0 3 0x6000082 kqread syz-fuzzer 60394 38995 2508 0 3 0x6000082 wait syz-fuzzer 2508 13490 30894 0 3 0x10008a sigsusp ksh 30894 480200 32020 0 3 0x9a kqread sshd 22623 248808 1 0 3 0x100083 ttyin getty 32020 522575 1 0 3 0x88 kqread sshd 5761 104696 59398 73 3 0x1100090 kqread syslogd 59398 261634 1 0 3 0x100082 netio syslogd 26809 430803 1 0 3 0x100080 kqread resolvd 70327 95820 59326 77 3 0x100092 kqread dhcpleased 76494 379810 59326 77 3 0x100092 kqread dhcpleased 59326 480417 1 0 3 0x80 kqread dhcpleased 95552 176109 0 0 3 0x14200 bored smr 53368 37242 0 0 2 0x14200 zerothread 7178 252485 0 0 3 0x14200 aiodoned aiodoned 58163 356012 0 0 3 0x14200 syncer update 38640 249868 0 0 3 0x14200 cleaner cleaner 14348 253249 0 0 3 0x14200 reaper reaper 26980 390115 0 0 3 0x14200 pgdaemon pagedaemon 24407 34342 0 0 3 0x14200 bored viomb 87553 502689 0 0 3 0x40014200 acpi0 acpi0 96344 80776 0 0 3 0x14200 bored softnet3 17507 153961 0 0 3 0x14200 bored softnet2 32596 311421 0 0 3 0x14200 bored softnet1 12249 76427 0 0 3 0x14200 bored softnet0 7944 488764 0 0 3 0x14200 bored systqmp 16926 274503 0 0 3 0x14200 bored systq 93348 69372 0 0 2 0x40014200 softclock 69645 235973 0 0 3 0x40014200 idle0 1 490901 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 10176 6479K 6995K 166960K 13681 0 pcb 15 13K 15K 166960K 315 0 rtable 220 7K 8K 166960K 630 0 pf 29 8K 9K 166960K 101 0 ifaddr 40 11K 12K 166960K 97 0 ifgroup 50 2K 2K 166960K 152 0 sysctl 2 0K 0K 166960K 2 0 counters 30 17K 17K 166960K 63 0 ioctlops 0 0K 2K 166960K 217 0 iov 0 0K 18K 166960K 262 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1442 90K 90K 166960K 2460 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 23 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 298 0 dirhash 12 2K 2K 166960K 24 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 16 57K 77K 166960K 1937 0 sigio 0 0K 0K 166960K 81 0 proc 58 59K 91K 166960K 684 0 subproc 104 6K 6K 166960K 169 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 41 0 in_multi 88 6K 7K 166960K 181 0 ether_multi 1 0K 0K 166960K 3 0 mrt 1 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 55 254K 254K 166960K 55 0 exec 0 0K 1K 166960K 809 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 373 215K 219K 166960K 19953 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 6 0 NDP 11 0K 1K 166960K 70 0 temp 74 6708K 6780K 166960K 9937 0 kqueue 14 20K 30K 166960K 183 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 182 0 179 3 2 1 2 0 8 0 rtentry 112 203 0 103 4 0 4 4 0 8 0 unpcb 144 1976 0 1764 19 11 8 8 0 8 0 syncache 320 15 0 15 4 4 0 1 0 8 0 tcpqe 32 273 0 273 4 4 0 1 0 8 0 tcpcb 808 882 0 860 15 12 3 9 0 8 0 arp 88 38 0 22 1 0 1 1 0 8 0 ipq 40 3 0 3 1 1 0 1 0 8 0 ipqe 40 6 0 6 1 1 0 1 0 8 0 inpcb 344 1990 0 1965 12 9 3 8 0 8 0 nd6 104 41 0 19 1 0 1 1 0 8 0 pkpcb 40 108 0 108 2 2 0 1 0 8 0 kcovpl 48 13 0 5 1 0 1 1 0 8 0 ppxss 1072 18 0 18 3 3 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 737 0 319 33 5 28 30 0 8 0 art_table 32 738 0 319 4 0 4 4 0 8 0 art_node 16 193 0 102 1 0 1 1 0 8 0 sysvmsgpl 40 49 0 9 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 296 0 286 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 25 0 8 3 0 3 3 0 8 0 dino2pl 256 4198 0 2749 91 0 91 91 0 8 0 ffsino 240 4198 0 2749 86 0 86 86 0 8 0 nchpl 144 6976 0 5329 63 0 63 63 0 8 0 uvmvnodes 80 4986 0 0 102 0 102 102 0 8 0 vnodes 216 4986 0 0 277 0 277 277 0 8 0 namei 1024 24053 0 24052 5 4 1 3 0 8 0 vcpupl 2048 114 0 0 15 0 15 15 0 8 0 vmpool 664 154 0 40 10 0 10 10 0 8 0 kstatmem 264 88 0 66 2 0 2 2 0 8 0 scxspl 216 21435 0 21435 14 13 1 8 1 8 1 plimitpl 152 198 0 182 1 0 1 1 0 8 0 sigapl 424 2245 0 2179 8 0 8 8 0 8 0 futexpl 64 19997 0 19992 1 0 1 1 0 8 0 knotepl 120 19266 0 19181 4 0 4 4 0 8 0 kqueuepl 184 652 0 642 10 9 1 4 0 8 0 pipepl 288 405 0 375 9 6 3 7 0 8 0 fdescpl 432 2207 0 2180 4 0 4 4 0 8 0 filepl 120 14305 0 13860 32 16 16 16 0 8 2 lockfpl 104 528 0 525 2 0 2 2 0 8 1 lockfspl 48 245 0 242 1 0 1 1 0 8 0 sessionpl 144 28 0 12 1 0 1 1 0 8 0 pgrppl 48 66 0 50 1 0 1 1 0 8 0 ucredpl 104 2024 0 2014 1 0 1 1 0 8 0 zombiepl 144 2180 0 2179 1 0 1 1 0 8 0 processpl 1072 2245 0 2179 5 0 5 5 0 8 0 procpl 680 5107 0 5018 10 2 8 9 0 8 0 sosppl 168 18 0 15 2 1 1 1 0 8 0 sockpl 456 4268 0 4028 87 56 31 31 0 8 0 mcl64k 65536 56 0 56 5 4 1 1 0 8 1 mcl16k 16384 28 0 28 4 3 1 1 0 8 1 mcl12k 12288 73 0 73 3 2 1 1 0 8 1 mcl9k 9216 25 0 25 4 3 1 1 0 8 1 mcl8k 8192 204 0 204 4 3 1 1 0 8 1 mcl4k 4096 218 0 218 3 2 1 1 0 8 1 mcl2k2 2112 14 0 14 3 2 1 1 0 8 1 mcl2k 2048 68868 0 68816 39 31 8 26 0 8 0 mtagpl 96 356 0 140 7 1 6 6 0 8 0 mbufpl 256 130664 0 129526 250 178 72 72 0 8 0 bufpl 288 7173 0 783 457 0 457 457 0 8 0 anonpl 24 394882 0 381807 122 24 98 107 0 188 8 amapchunkpl 152 63848 0 62995 43 7 36 39 0 158 0 amappl16 200 10713 0 10265 52 23 29 37 0 8 3 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 161 0 150 2 1 1 2 0 8 0 amappl13 176 45 0 43 1 0 1 1 0 8 0 amappl12 168 2906 0 2875 2 0 2 2 0 8 0 amappl11 160 51 0 41 1 0 1 1 0 8 0 amappl10 152 71 0 62 1 0 1 1 0 8 0 amappl9 144 158 0 156 1 0 1 1 0 8 0 amappl8 136 229 0 169 3 0 3 3 0 8 0 amappl7 128 224 0 202 2 0 2 2 0 8 0 amappl6 120 318 0 311 1 0 1 1 0 8 0 amappl5 112 140 0 132 1 0 1 1 0 8 0 amappl4 104 451 0 426 2 1 1 2 0 8 0 amappl3 96 13088 0 13001 3 0 3 3 0 8 0 amappl2 88 2818 0 2748 3 1 2 3 0 8 0 amappl1 80 16397 0 15893 22 11 11 22 0 8 0 amappl 88 19349 0 19108 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 133 0 3 3 0 3 3 0 8 0 uaddrrnd 24 2361 0 2220 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2361 0 2220 1 0 1 1 0 8 0 vmmpekpl 168 20272 0 20194 4 0 4 4 0 8 0 vmmpepl 168 154721 0 152376 149 36 113 125 0 357 5 vmsppl 352 2360 0 2220 13 0 13 13 0 8 0 rwobjpl 24 50113 0 43532 41 1 40 40 0 8 0 pdppl 4096 4728 0 4554 283 105 178 178 0 8 4 pvpl 32 884649 0 866030 382 204 178 361 0 265 13 pmappl 216 2360 0 2220 8 0 8 8 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1316 0 357 28 0 28 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(ffffffff8284c796) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828d3b2f,ffffffff828306f8,148,ffffffff8292603e) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff8000378b0f78,0,fffffd807a2d08b8,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd8074c1fb00,0,fffffd807a2d08b8,0,0,fffffd807a2d0958) at ip6_output+0xc9b sys/netinet6/ip6_output.c:467 tcp_output(ffff800000e54070) at tcp_output+0x27b7 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd807619aab0,fffffd8074c20f00) at tcp_connect+0x318 sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a64d7f8,ffff8000378b1420,ffff8000378b1370) at sys_connect+0x206 sys/kern/uipc_syscalls.c:422 syscall(ffff8000378b1420) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5799811b220, 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(ffffffff8284c796) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff828d3b2f,ffffffff828306f8,148,ffffffff8292603e) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff8000378b0f78,0,fffffd807a2d08b8,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd8074c1fb00,0,fffffd807a2d08b8,0,0,fffffd807a2d0958) at ip6_output+0xc9b sys/netinet6/ip6_output.c:467 tcp_output(ffff800000e54070) at tcp_output+0x27b7 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd807619aab0,fffffd8074c20f00) at tcp_connect+0x318 sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a64d7f8,ffff8000378b1420,ffff8000378b1370) at sys_connect+0x206 sys/kern/uipc_syscalls.c:422 syscall(ffff8000378b1420) at syscall+0x751 sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5799811b220, count: -10