panic: kernel diagnostic assertion "sin6tosa(&ro->ro_dst)->sa_family == AF_INET6" failed: file "/syzkaller/managers/multicore/kernel/sys/netinet6/in6_src.c", line 328 Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *361684 40169 0 0 0x4000000 0 syz-executor.5 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828755a4) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff828f8e2c,ffffffff828ceecb,148,ffffffff8294715e) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff8000359c7e10,0,fffffd8064dd6368,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd8067e1a300,0,fffffd8064dd6368,0,0,fffffd8064dd6428) at ip6_output+0xc6a sys/netinet6/ip6_output.c:467 tcp_output(ffff800000fb6638) at tcp_output+0x2877 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd8070b1eda0,fffffd80667dd600) at tcp_connect+0x33a sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a18e560,ffff8000359c82b0,ffff8000359c8200) at sys_connect+0x207 sys/kern/uipc_syscalls.c:422 syscall(ffff8000359c82b0) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff8000359c82b0) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x67fc075e090, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: kernel diagnostic assertion "sin6tosa(&ro->ro_dst)->sa_family == AF_INET6" failed: file "/syzkaller/managers/multicore/kernel/sys/netinet6/in6_src.c", line 328 ddb{0}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828755a4) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff828f8e2c,ffffffff828ceecb,148,ffffffff8294715e) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff8000359c7e10,0,fffffd8064dd6368,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd8067e1a300,0,fffffd8064dd6368,0,0,fffffd8064dd6428) at ip6_output+0xc6a sys/netinet6/ip6_output.c:467 tcp_output(ffff800000fb6638) at tcp_output+0x2877 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd8070b1eda0,fffffd80667dd600) at tcp_connect+0x33a sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a18e560,ffff8000359c82b0,ffff8000359c8200) at sys_connect+0x207 sys/kern/uipc_syscalls.c:422 syscall(ffff8000359c82b0) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff8000359c82b0) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x67fc075e090, count: -10 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff8000359c7c50 rbx 0xffffffff82d15ca7 cpu_info_full_primary+0x2ca7 rdx 0xffff800000e0ad00 rcx 0xffff80002a18e560 rax 0xffffffff82d14ff0 cpu_info_full_primary+0x1ff0 r8 0 r9 0x8080808080808080 r10 0x7bac02d4854d2c70 r11 0x8f04c5dd64ccc1f0 r12 0xffffffff82d15aa8 cpu_info_full_primary+0x2aa8 r13 0 r14 0 r15 0x1 rip 0xffffffff82440f6c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff8000359c7c40 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.5) tid=361684 pid=40169 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=0xffff80002a18e010,0xffff80002a18d030 process=0xffff8000359dd658 user=0xffff8000359c3000, vmspace=0xfffffd80644c3730 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 84130 376053 24137 0 2 0 syz-executor.6 66162 433301 66803 0 2 0 syz-executor.3 66162 508238 66803 0 3 0x4000080 fsleep syz-executor.3 66162 438250 66803 0 3 0x4000080 fsleep syz-executor.3 90908 424770 21692 0 2 0 syz-executor.4 90908 235626 21692 0 3 0x4000080 fsleep syz-executor.4 40169 53035 31971 0 2 0 syz-executor.5 *40169 361684 31971 0 7 0x4000000 syz-executor.5 4003 464890 79825 0 2 0x480 syz-executor.7 4003 459511 79825 0 2 0x4000480 syz-executor.7 4003 139395 79825 0 3 0x4000080 fsleep syz-executor.7 38214 142819 54281 0 2 0x480 syz-executor.0 38214 242139 54281 0 3 0x4000080 rest syz-executor.0 38214 448990 54281 0 3 0x4000080 fsleep syz-executor.0 94487 292515 13931 0 2 0x480 syz-executor.2 94487 133391 13931 0 3 0x4000080 netcon2 syz-executor.2 24137 506342 76717 0 3 0x82 nanoslp syz-executor.6 44391 98671 1 0 3 0x100083 ttyin getty 66803 279669 76717 0 3 0x82 nanoslp syz-executor.3 16854 419264 76717 0 2 0x2 syz-executor.1 54281 447464 76717 0 2 0x482 syz-executor.0 79825 482431 76717 0 2 0x482 syz-executor.7 31971 367774 76717 0 2 0x482 syz-executor.5 54798 380437 0 0 3 0x14280 nfsidl nfsio 36152 400376 0 0 3 0x14280 nfsidl nfsio 41860 264798 0 0 3 0x14280 nfsidl nfsio 12910 228863 0 0 3 0x14280 nfsidl nfsio 95523 415738 0 0 3 0x14280 nfsidl nfsio 1086 231628 0 0 3 0x14280 nfsidl nfsio 29280 520093 0 0 3 0x14280 nfsidl nfsio 45036 240341 0 0 3 0x14280 nfsidl nfsio 26852 362022 0 0 3 0x14280 nfsidl nfsio 37980 176741 0 0 3 0x14280 nfsidl nfsio 36006 147729 0 0 3 0x14280 nfsidl nfsio 90753 369960 0 0 3 0x14280 nfsidl nfsio 78930 243687 0 0 3 0x14280 nfsidl nfsio 16509 504747 0 0 3 0x14280 nfsidl nfsio 95168 20011 0 0 3 0x14280 nfsidl nfsio 14341 121444 0 0 3 0x14280 nfsidl nfsio 3733 395802 0 0 3 0x14280 nfsidl nfsio 41022 37766 0 0 3 0x14280 nfsidl nfsio 44635 270646 0 0 3 0x14280 nfsidl nfsio 60601 24602 0 0 3 0x14280 nfsidl nfsio 21692 505209 76717 0 2 0x482 syz-executor.4 13931 227896 76717 0 2 0x482 syz-executor.2 5186 203467 0 0 3 0x14200 acct acct 81943 89899 0 0 3 0x14200 bored sosplice 76717 206505 36661 0 3 0x2000082 wait syz-fuzzer 76717 85317 36661 0 2 0x6000482 syz-fuzzer 76717 19084 36661 0 3 0x6000082 thrsleep syz-fuzzer 76717 66737 36661 0 3 0x6000082 wait syz-fuzzer 76717 63117 36661 0 3 0x6000082 thrsleep syz-fuzzer 76717 275981 36661 0 3 0x6000082 wait syz-fuzzer 76717 417722 36661 0 3 0x6000082 thrsleep syz-fuzzer 76717 455464 36661 0 3 0x6000082 thrsleep syz-fuzzer 76717 519098 36661 0 3 0x6000082 wait syz-fuzzer 76717 185184 36661 0 3 0x6000082 wait syz-fuzzer 76717 181507 36661 0 3 0x6000082 thrsleep syz-fuzzer 76717 98448 36661 0 3 0x6000082 kqread syz-fuzzer 76717 323152 36661 0 3 0x6000082 wait syz-fuzzer 76717 121371 36661 0 3 0x6000082 wait syz-fuzzer 76717 77610 36661 0 3 0x6000082 wait syz-fuzzer 76717 4798 36661 0 3 0x6000082 thrsleep syz-fuzzer 36661 339784 65698 0 3 0x10008a sigsusp ksh 65698 334937 96019 0 3 0x9a kqread sshd 96019 461359 1 0 3 0x88 kqread sshd 73348 305118 33713 74 3 0x1100092 bpf pflogd 33713 458150 1 0 3 0x80 netio pflogd 57501 322480 38610 73 3 0x1100090 kqread syslogd 38610 343916 1 0 3 0x100082 netio syslogd 93330 389956 1 0 3 0x100080 kqread resolvd 94446 329262 22916 77 3 0x100092 kqread dhcpleased 68943 150906 22916 77 3 0x100092 kqread dhcpleased 22916 380881 1 0 3 0x80 kqread dhcpleased 1637 218755 0 0 3 0x14200 bored smr 15579 489110 0 0 2 0x14200 zerothread 94717 209707 0 0 3 0x14200 aiodoned aiodoned 32118 309495 0 0 3 0x14200 syncer update 89088 7053 0 0 3 0x14200 cleaner cleaner 19129 304314 0 0 3 0x14200 reaper reaper 44785 79901 0 0 3 0x14200 pgdaemon pagedaemon 67775 506228 0 0 3 0x14200 bored viomb 61040 159865 0 0 3 0x40014200 acpi0 acpi0 49654 417370 0 0 7 0x40014200 idle1 75909 380766 0 0 3 0x14200 bored softnet3 59684 326894 0 0 3 0x14200 bored softnet2 24298 163821 0 0 3 0x14200 bored softnet1 31229 4604 0 0 3 0x14200 bored softnet0 27047 197252 0 0 3 0x14200 bored systqmp 67399 338985 0 0 3 0x14200 bored systq 64511 457251 0 0 3 0x14200 tmoslp softclockmp 7068 190500 0 0 2 0x40014200 softclock 50414 378901 0 0 3 0x40014200 idle0 1 452328 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 40169 (syz-executor.5) thread 0xffff80002a18e560 (361684) Process 16854 (syz-executor.1) thread 0xffff80002a181560 (419264) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10223 6505K 10906K 166960K 39461 0 pcb 15 20K 22K 166960K 1073 0 rtable 188 6K 8K 166960K 1882 0 pf 31 9K 10K 166960K 229 0 ifaddr 37 14K 16K 166960K 237 0 ifgroup 52 2K 2K 166960K 373 0 sysctl 3 0K 0K 166960K 3 0 counters 62 36K 37K 166960K 242 0 ioctlops 0 0K 4K 166960K 2326 0 iov 0 0K 28K 166960K 1295 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1544 97K 97K 166960K 9138 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 186 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 1299 0 dirhash 12 2K 2K 166960K 69 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 17 61K 81K 166960K 12804 0 sigio 0 0K 0K 166960K 631 0 proc 70 91K 127K 166960K 1940 0 subproc 104 6K 10K 166960K 592 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 1101 0 in_multi 66 4K 7K 166960K 569 0 ether_multi 1 0K 0K 166960K 8 0 mrt 1 0K 0K 166960K 5 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 253 1129K 1129K 166960K 253 0 exec 0 0K 1K 166960K 2367 0 pfkey data 0 0K 0K 166960K 13 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 572 691K 694K 166960K 119499 0 UVM aobj 131 6K 6K 166960K 143 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 1K 166960K 612 0 NDP 11 0K 1K 166960K 179 0 temp 74 6712K 6840K 166960K 137306 0 kqueue 12 18K 28K 166960K 1041 0 SYN cache 2 56K 64K 166960K 4 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 24 0 0 1 0 1 1 0 8 0 rtpcb 120 872 0 869 15 11 4 4 0 8 3 rtentry 112 571 0 487 5 1 4 4 0 8 0 unpcb 144 10511 0 10496 110 105 5 8 0 8 4 syncache 320 129 0 129 25 24 1 1 0 8 1 tcpqe 32 350 0 350 23 22 1 1 0 8 1 tcpcb 808 4433 0 4414 145 137 8 14 0 8 5 arp 120 116 0 102 1 0 1 1 0 8 0 inpcb 376 11188 0 11166 208 195 13 15 0 8 7 nd6 136 125 0 109 1 0 1 1 0 8 0 pkpcb 40 97 0 97 8 8 0 1 0 8 0 kcovpl 48 39 0 31 1 0 1 1 0 8 0 ppxss 1168 23 0 23 7 7 0 1 0 8 0 pffrag 232 143 0 139 6 5 1 1 0 482 0 pffrnode 88 143 0 139 6 5 1 1 0 8 0 pffrent 40 405 0 401 6 5 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 381 0 366 1 0 1 1 0 8 0 pfstkey 128 384 0 369 3 2 1 2 0 8 0 pfstate 376 384 0 369 11 9 2 6 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1979 0 1644 50 22 28 31 0 8 0 art_table 32 1980 0 1644 4 0 4 4 0 8 0 art_node 16 558 0 485 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 1296 0 1286 1 0 1 1 0 8 0 shmpl 112 140 0 12 4 0 4 4 0 8 0 dirhash 1024 55 0 38 3 0 3 3 0 8 0 dino2pl 256 17913 0 16420 94 0 94 94 0 8 0 ffsino 272 17913 0 16420 100 0 100 100 0 8 0 nchpl 144 34911 0 33258 63 0 63 63 0 8 0 uvmvnodes 80 6666 0 0 137 0 137 137 0 8 0 vnodes 216 6666 0 0 371 0 371 371 0 8 0 namei 1024 118107 0 118107 13 12 1 3 0 8 1 percpumem 16 135 0 90 1 0 1 1 0 8 0 vcpupl 2048 261 0 0 33 0 33 33 0 8 0 vmpool 696 278 0 17 26 2 24 24 0 8 0 kstatmem 264 202 0 180 6 4 2 3 0 8 0 scxspl 216 115026 0 115026 17 16 1 8 1 8 1 plimitpl 152 1437 0 1420 1 0 1 1 0 8 0 sigapl 424 13321 0 13251 13 4 9 9 0 8 0 futexpl 64 113103 0 113098 4 3 1 1 0 8 0 knotepl 120 1125 0 0 18 4 14 16 0 8 0 kqueuepl 216 2730 0 2722 52 50 2 8 0 8 1 pipepl 320 2186 0 2158 66 60 6 11 0 8 3 fdescpl 496 13061 0 13031 11 6 5 5 0 8 0 filepl 152 78382 0 78137 146 127 19 27 0 8 8 lockfpl 104 3218 0 3216 5 4 1 2 0 8 0 lockfspl 48 1159 0 1157 1 0 1 1 0 8 0 sessionpl 144 63 0 46 1 0 1 1 0 8 0 pgrppl 48 323 0 306 1 0 1 1 0 8 0 ucredpl 104 9934 0 9915 1 0 1 1 0 8 0 zombiepl 144 13251 0 13251 3 2 1 1 0 8 1 processpl 1136 13321 0 13251 6 0 6 6 0 8 0 procpl 680 31790 0 31696 13 4 9 10 0 8 0 srpgc 96 52 0 52 20 19 1 1 0 8 1 sosppl 168 210 0 204 14 13 1 1 0 8 0 sockpl 488 22678 0 22638 571 557 14 39 0 8 7 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl16k 16384 8 0 0 1 0 1 1 0 8 0 mcl12k 12288 14 0 0 2 0 2 2 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 14 0 0 2 0 2 2 0 8 0 mcl4k 4096 19 0 0 3 0 3 3 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 372 0 0 35 7 28 35 0 8 2 mtagpl 96 636 0 0 10 0 10 10 0 8 0 mbufpl 256 1670 0 0 75 0 75 75 0 8 0 bufpl 288 24290 0 17621 477 0 477 477 0 8 0 anonpl 24 1373851 0 1358542 228 105 123 164 0 186 0 amapchunkpl 152 381861 0 380863 126 84 42 68 0 158 1 amappl16 200 28431 0 27774 162 122 40 49 0 8 2 amappl15 192 22 0 20 1 0 1 1 0 8 0 amappl14 184 268 0 255 2 1 1 2 0 8 0 amappl13 176 61 0 59 1 0 1 1 0 8 0 amappl12 168 14208 0 14176 3 1 2 2 0 8 0 amappl11 160 59 0 44 1 0 1 1 0 8 0 amappl10 152 77 0 62 1 0 1 1 0 8 0 amappl9 144 303 0 303 15 14 1 1 0 8 1 amappl8 136 667 0 519 6 0 6 6 0 8 0 amappl7 128 309 0 279 3 1 2 3 0 8 0 amappl6 120 836 0 820 1 0 1 1 0 8 0 amappl5 112 312 0 301 1 0 1 1 0 8 0 amappl4 104 870 0 831 7 5 2 2 0 8 0 amappl3 96 74381 0 74281 4 1 3 3 0 8 0 amappl2 88 14146 0 14063 3 1 2 3 0 8 0 amappl1 80 57256 0 56698 24 11 13 23 0 8 0 amappl 88 118314 0 117996 11 3 8 8 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 142 0 12 3 0 3 3 0 8 0 uaddrrnd 24 13339 0 13048 2 0 2 2 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 13339 0 13048 2 0 2 2 0 8 0 vmmpekpl 168 87612 0 87518 5 0 5 5 0 8 0 vmmpepl 168 774397 0 771376 585 424 161 175 0 357 19 vmsppl 448 13338 0 13048 34 1 33 33 0 8 0 rwobjpl 56 186652 0 177926 136 10 126 127 0 8 0 pdppl 4096 26685 0 26357 900 570 330 330 0 8 2 pvpl 32 45638 0 0 369 0 369 369 0 265 0 pmappl 248 13338 0 13048 19 0 19 19 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1990 0 762 36 0 36 36 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff828755a4) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff828f8e2c,ffffffff828ceecb,148,ffffffff8294715e) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff8000359c7e10,0,fffffd8064dd6368,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd8067e1a300,0,fffffd8064dd6368,0,0,fffffd8064dd6428) at ip6_output+0xc6a sys/netinet6/ip6_output.c:467 tcp_output(ffff800000fb6638) at tcp_output+0x2877 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd8070b1eda0,fffffd80667dd600) at tcp_connect+0x33a sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002a18e560,ffff8000359c82b0,ffff8000359c8200) at sys_connect+0x207 sys/kern/uipc_syscalls.c:422 syscall(ffff8000359c82b0) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff8000359c82b0) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x67fc075e090, count: -10 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp x86_ipi_db(ffff800029cfbff0) at x86_ipi_db+0x1e sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800029cfbff0) at sched_idle+0x41e sys/kern/kern_sched.c:183 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800029cfbff0) at x86_ipi_db+0x1e sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800029cfbff0) at sched_idle+0x41e sys/kern/kern_sched.c:183 end trace frame: 0x0, count: -5