panic: kernel diagnostic assertion "sin6tosa(&ro->ro_dst)->sa_family == AF_INET6" failed: file "/syzkaller/managers/setuid/kernel/sys/netinet6/in6_src.c", line 328 Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *517041 1708 32767 0x10 0x4000000 1 syz-executor.7 279592 66464 0 0x14000 0x200 0 reaper db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8287457c) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff828f9f6b,ffffffff82869f8f,148,ffffffff8294a280) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff80002e6cbbd0,ffff800000e30100,fffffd807d852200,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd807ad3ac00,ffff800000e30100,fffffd807d852200,0,0,fffffd807d8522c0) at ip6_output+0xc6a sys/netinet6/ip6_output.c:467 tcp_output(ffff800000e91328) at tcp_output+0x2877 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd806860bd98,fffffd807d4ae100) at tcp_connect+0x33a sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002bc972b0,ffff80002e6cc070,ffff80002e6cbfc0) at sys_connect+0x207 sys/kern/uipc_syscalls.c:422 syscall(ffff80002e6cc070) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002e6cc070) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6c12255c250, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: kernel diagnostic assertion "sin6tosa(&ro->ro_dst)->sa_family == AF_INET6" failed: file "/syzkaller/managers/setuid/kernel/sys/netinet6/in6_src.c", line 328 ddb{1}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8287457c) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff828f9f6b,ffffffff82869f8f,148,ffffffff8294a280) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff80002e6cbbd0,ffff800000e30100,fffffd807d852200,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd807ad3ac00,ffff800000e30100,fffffd807d852200,0,0,fffffd807d8522c0) at ip6_output+0xc6a sys/netinet6/ip6_output.c:467 tcp_output(ffff800000e91328) at tcp_output+0x2877 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd806860bd98,fffffd807d4ae100) at tcp_connect+0x33a sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002bc972b0,ffff80002e6cc070,ffff80002e6cbfc0) at sys_connect+0x207 sys/kern/uipc_syscalls.c:422 syscall(ffff80002e6cc070) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002e6cc070) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6c12255c250, count: -10 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002e6cba10 rbx 0xffff800029cfcca7 rdx 0xffff800000dc93c0 rcx 0xffff80002bc972b0 rax 0xffff800029cfbff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x5203a49edf5d62b5 r11 0x5b9092f3e17524d3 r12 0xffff800029cfcaa8 r13 0 r14 0 r15 0x1 rip 0xffffffff81ae72ac db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002e6cba00 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.7) tid=517041 pid=1708 tcnt=2 stat=onproc flags process=10 proc=4000000 runpri=32, usrpri=53, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff80002a2132c8,0xffff80002bc97ab8 process=0xffff8000ffffa388 user=0xffff80002e6c7000, vmspace=0xfffffd807effaa80 estcpu=6, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 2676 407687 70057 32767 2 0x10 syz-executor.0 2676 39822 70057 32767 3 0x4000090 fsleep syz-executor.0 2676 169127 70057 32767 3 0x4000090 fsleep syz-executor.0 1708 61934 89519 32767 2 0x10 syz-executor.7 * 1708 517041 89519 32767 7 0x4000010 syz-executor.7 99570 332916 38641 32767 3 0x90 nanoslp syz-executor.2 38641 128446 97960 0 3 0x82 wait syz-executor.2 86628 185171 61926 32767 3 0x10 biowait syz-executor.3 61926 212126 97960 0 3 0x82 wait syz-executor.3 39079 114436 18711 32767 3 0x90 nanoslp syz-executor.5 18711 498123 97960 0 3 0x82 wait syz-executor.5 70057 388006 36871 32767 3 0x90 nanoslp syz-executor.0 36871 20590 97960 0 3 0x82 wait syz-executor.0 76659 97572 15206 32767 3 0x90 nanoslp syz-executor.6 15206 264269 97960 0 3 0x82 wait syz-executor.6 34457 294446 93863 32767 3 0x90 nanoslp syz-executor.1 93863 31593 97960 0 3 0x82 wait syz-executor.1 65119 311979 12882 32767 3 0x90 nanoslp syz-executor.4 12882 47295 97960 0 3 0x82 wait syz-executor.4 89519 47020 85600 32767 3 0x90 nanoslp syz-executor.7 85600 181209 97960 0 3 0x82 wait syz-executor.7 90287 419142 0 0 3 0x14200 bored sosplice 97960 125173 5382 0 2 0x2000002 syz-fuzzer 97960 311866 5382 0 3 0x6000082 nanoslp syz-fuzzer 97960 61542 5382 0 3 0x6000082 kqread syz-fuzzer 97960 266199 5382 0 3 0x6000082 wait syz-fuzzer 97960 282251 5382 0 3 0x6000082 thrsleep syz-fuzzer 97960 167540 5382 0 3 0x6000082 wait syz-fuzzer 97960 421589 5382 0 3 0x6000082 thrsleep syz-fuzzer 97960 212111 5382 0 3 0x6000082 thrsleep syz-fuzzer 97960 43405 5382 0 3 0x6000082 wait syz-fuzzer 97960 334034 5382 0 3 0x6000082 wait syz-fuzzer 97960 139205 5382 0 3 0x6000082 thrsleep syz-fuzzer 97960 520807 5382 0 3 0x6000082 wait syz-fuzzer 97960 140556 5382 0 3 0x6000082 thrsleep syz-fuzzer 97960 126917 5382 0 3 0x6000082 wait syz-fuzzer 97960 355504 5382 0 3 0x6000082 wait syz-fuzzer 97960 410399 5382 0 3 0x6000082 wait syz-fuzzer 5382 198656 28161 0 3 0x10008a sigsusp ksh 28161 197607 23325 0 3 0x9a kqread sshd 69358 84627 1 0 3 0x100083 ttyin getty 23325 200282 1 0 3 0x88 kqread sshd 78432 415690 875 73 3 0x1100090 kqread syslogd 875 218810 1 0 3 0x100082 netio syslogd 61867 290884 1 0 3 0x100080 kqread resolvd 62756 68387 61015 77 3 0x100092 kqread dhcpleased 40844 50196 61015 77 3 0x100092 kqread dhcpleased 61015 308188 1 0 3 0x80 kqread dhcpleased 47083 473981 0 0 3 0x14200 bored smr 20182 500069 0 0 2 0x14200 zerothread 54639 17507 0 0 3 0x14200 aiodoned aiodoned 28519 46980 0 0 3 0x14200 syncer update 6326 282436 0 0 3 0x14200 cleaner cleaner 66464 279592 0 0 7 0x14200 reaper 3101 467345 0 0 3 0x14200 pgdaemon pagedaemon 8411 120481 0 0 3 0x14200 bored viomb 52846 320140 0 0 3 0x40014200 acpi0 acpi0 9366 22810 0 0 3 0x40014200 idle1 68547 32638 0 0 3 0x14200 bored softnet3 46758 348060 0 0 3 0x14200 bored softnet2 24020 243498 0 0 3 0x14200 bored softnet1 45413 500398 0 0 3 0x14200 bored softnet0 54879 475696 0 0 3 0x14200 bored systqmp 524 40945 0 0 3 0x14200 bored systq 76600 457964 0 0 3 0x14200 tmoslp softclockmp 93075 256443 0 0 3 0x40014200 tmoslp softclock 24004 375967 0 0 3 0x40014200 idle0 1 72673 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 0: exclusive mutex &(curpg)->mdpage.pv_mtx r = 0 (0xfffffd8007553498) #0 witness_lock+0x447 #1 mtx_enter_try+0x104 #2 mtx_enter+0x4f sys/kern/kern_lock.c:266 #3 pmap_remove_ptes+0x218 pmap_remove_pv sys/arch/amd64/amd64/pmap.c:1091 [inline] #3 pmap_remove_ptes+0x218 sys/arch/amd64/amd64/pmap.c:1689 #4 pmap_do_remove+0x426 sys/arch/amd64/amd64/pmap.c:1896 #5 uvm_unmap_kill_entry_withlock+0x1b0 sys/uvm/uvm_map.c:1928 #6 uvm_map_teardown+0x1c7 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:176 [inline] #6 uvm_map_teardown+0x1c7 sys/uvm/uvm_map.c:2565 #7 uvmspace_free+0xa6 sys/uvm/uvm_map.c:3497 #8 reaper+0x19a sys/kern/kern_exit.c:463 #9 proc_trampoline+0x10 kernel: protection fault trap, code=0 Faulted in DDB; continuing... ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10190 6409K 6419K 166960K 11337 0 pcb 15 20K 24K 166960K 23 0 rtable 244 6K 7K 166960K 2047 0 pf 29 8K 8K 166960K 75 0 ifaddr 44 15K 16K 166960K 142 0 ifgroup 50 2K 2K 166960K 142 0 sysctl 3 0K 1K 166960K 7 0 counters 64 36K 36K 166960K 110 0 ioctlops 0 0K 2K 166960K 248 0 iov 0 0K 24K 166960K 1802 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1279 80K 80K 166960K 4223 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 193 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 1K 166960K 3623 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1697 195K 286K 166960K 12548 0 file desc 20 73K 117K 166960K 13670 0 sigio 0 0K 0K 166960K 365 0 proc 56 78K 103K 166960K 1835 0 subproc 104 6K 6K 166960K 403 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 1 0K 0K 166960K 1597 0 in_multi 99 7K 7K 166960K 499 0 ether_multi 1 0K 0K 166960K 15 0 mrt 1 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 121 546K 546K 166960K 121 0 exec 0 0K 1K 166960K 2112 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 406 87K 101K 166960K 136252 0 UVM aobj 131 6K 6K 166960K 131 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 2 0K 0K 166960K 465 0 NDP 11 0K 2K 166960K 96 0 temp 74 6712K 6792K 166960K 36258 0 kqueue 12 18K 28K 166960K 1233 0 SYN cache 2 16K 16K 166960K 2 0 ddb{1}> 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 878 0 875 9 8 1 3 0 8 0 rtentry 112 396 0 281 4 0 4 4 0 8 0 unpcb 144 11990 0 11975 86 83 3 10 0 8 2 syncache 320 160 0 160 26 25 1 1 0 8 1 tcpqe 32 249 0 249 23 23 0 1 0 8 0 tcpcb 808 6430 0 6392 136 129 7 24 0 8 2 arp 120 66 0 48 1 0 1 1 0 8 0 ipq 40 21 0 21 5 5 0 1 0 8 0 ipqe 40 68 0 68 5 5 0 1 0 8 0 inpcb 376 13647 0 13608 199 188 11 25 0 8 5 nd6 136 123 0 94 2 0 2 2 0 8 0 kcovpl 48 31 0 23 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1608 0 1129 38 7 31 33 0 8 0 art_table 32 1609 0 1129 5 0 5 5 0 8 0 art_node 16 395 0 290 1 0 1 1 0 8 0 sysvmsgpl 40 20 0 7 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 3620 0 3610 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 19648 0 18196 92 0 92 92 0 8 0 ffsino 272 19648 0 18196 98 0 98 98 0 8 0 nchpl 144 37851 0 36209 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 124162 0 124162 2 1 1 2 0 8 1 percpumem 16 69 0 23 1 0 1 1 0 8 0 kstatmem 264 68 0 46 2 0 2 2 0 8 0 scxspl 216 127282 0 127281 47 44 3 8 1 8 2 plimitpl 152 2073 0 2050 16 15 1 2 0 8 0 sigapl 424 13923 0 13868 7 0 7 7 0 8 0 futexpl 64 111809 0 111807 4 3 1 1 0 8 0 knotepl 120 706 0 0 11 0 11 11 0 8 0 kqueuepl 216 3811 0 3802 68 67 1 8 0 8 0 pipepl 320 2717 0 2689 49 45 4 8 0 8 1 fdescpl 496 13904 0 13873 7 2 5 6 0 8 0 filepl 152 90503 0 90261 125 111 14 20 0 8 4 lockfpl 104 2376 0 2374 1 0 1 1 0 8 0 lockfspl 48 600 0 598 1 0 1 1 0 8 0 sessionpl 144 46 0 30 1 0 1 1 0 8 0 pgrppl 48 247 0 231 1 0 1 1 0 8 0 ucredpl 104 14397 0 14379 1 0 1 1 0 8 0 zombiepl 144 13873 0 13868 1 0 1 1 0 8 0 processpl 1136 13923 0 13868 5 0 5 5 0 8 0 procpl 680 38331 0 38258 22 14 8 8 0 8 1 sosppl 168 233 0 230 7 6 1 1 0 8 0 sockpl 488 27782 0 27725 447 431 16 34 0 8 7 mcl64k 65536 23 0 0 3 0 3 3 0 8 0 mcl16k 16384 26 0 0 3 0 3 3 0 8 0 mcl12k 12288 33 0 0 2 0 2 2 0 8 0 mcl9k 9216 31 0 0 2 0 2 2 0 8 0 mcl8k 8192 28 0 0 4 2 2 3 0 8 0 mcl4k 4096 49 0 0 3 0 3 3 0 8 0 mcl2k2 2112 14 0 0 1 0 1 1 0 8 0 mcl2k 2048 397 0 0 31 12 19 31 0 8 0 mtagpl 96 17 0 0 1 0 1 1 0 8 0 mbufpl 256 1462 0 0 76 0 76 76 0 8 0 bufpl 288 30976 0 24655 452 0 452 452 0 8 0 anonpl 24 1549974 0 1538764 164 63 101 106 0 186 0 amapchunkpl 152 444766 0 443950 124 84 40 52 0 158 2 amappl16 200 35820 0 35491 192 169 23 32 0 8 3 amappl15 192 10 0 10 2 2 0 1 0 8 0 amappl14 184 279 0 259 3 1 2 2 0 8 0 amappl13 176 95 0 94 1 0 1 1 0 8 0 amappl12 168 14874 0 14836 2 0 2 2 0 8 0 amappl11 160 59 0 48 1 0 1 1 0 8 0 amappl10 152 83 0 68 1 0 1 1 0 8 0 amappl9 144 302 0 302 4 3 1 1 0 8 1 amappl8 136 741 0 592 7 1 6 6 0 8 0 amappl7 128 280 0 252 2 0 2 2 0 8 0 amappl6 120 701 0 687 1 0 1 1 0 8 0 amappl5 112 379 0 370 1 0 1 1 0 8 0 amappl4 104 873 0 841 2 1 1 2 0 8 0 amappl3 96 84120 0 84037 26 22 4 4 0 8 1 amappl2 88 15116 0 15030 10 7 3 3 0 8 0 amappl1 80 58119 0 57603 23 10 13 22 0 8 0 amappl 88 135043 0 134799 10 2 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 130 0 0 3 0 3 3 0 8 0 uaddrrnd 24 13904 0 13873 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 13904 0 13873 1 0 1 1 0 8 0 vmmpekpl 168 113096 0 113033 4 0 4 4 0 8 0 vmmpepl 168 820363 0 818029 283 147 136 141 0 357 16 vmsppl 448 13903 0 13873 5 0 5 5 0 8 0 rwobjpl 56 213659 0 206169 121 11 110 110 0 8 0 pdppl 4096 27815 0 27746 422 341 81 93 0 8 12 pvpl 32 43923 0 0 356 1 355 355 0 265 0 pmappl 248 13903 0 13873 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1394 0 508 26 0 26 26 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp x86_ipi_db(ffffffff82c5aff0) 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 mtx_enter(ffffffff82e7a3c0) at mtx_enter reaper(ffff80002a156548) at reaper+0xdb sys/kern/kern_exit.c:434 end trace frame: 0x0, count: 10 ddb{0}> trace x86_ipi_db(ffffffff82c5aff0) 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 mtx_enter(ffffffff82e7a3c0) at mtx_enter reaper(ffff80002a156548) at reaper+0xdb sys/kern/kern_exit.c:434 end trace frame: 0x0, count: -5 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x1c: addq $0x8,%rsp db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8287457c) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff828f9f6b,ffffffff82869f8f,148,ffffffff8294a280) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff80002e6cbbd0,ffff800000e30100,fffffd807d852200,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd807ad3ac00,ffff800000e30100,fffffd807d852200,0,0,fffffd807d8522c0) at ip6_output+0xc6a sys/netinet6/ip6_output.c:467 tcp_output(ffff800000e91328) at tcp_output+0x2877 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd806860bd98,fffffd807d4ae100) at tcp_connect+0x33a sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002bc972b0,ffff80002e6cc070,ffff80002e6cbfc0) at sys_connect+0x207 sys/kern/uipc_syscalls.c:422 syscall(ffff80002e6cc070) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002e6cc070) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6c12255c250, count: 5 ddb{1}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8287457c) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff828f9f6b,ffffffff82869f8f,148,ffffffff8294a280) at __assert+0x29 sys/kern/subr_prf.c:157 in6_selectroute(ffff80002e6cbbd0,ffff800000e30100,fffffd807d852200,0) at in6_selectroute+0x228 sys/netinet6/in6_src.c:328 ip6_output(fffffd807ad3ac00,ffff800000e30100,fffffd807d852200,0,0,fffffd807d8522c0) at ip6_output+0xc6a sys/netinet6/ip6_output.c:467 tcp_output(ffff800000e91328) at tcp_output+0x2877 sys/netinet/tcp_output.c:1110 tcp_connect(fffffd806860bd98,fffffd807d4ae100) at tcp_connect+0x33a sys/netinet/tcp_usrreq.c:670 sys_connect(ffff80002bc972b0,ffff80002e6cc070,ffff80002e6cbfc0) at sys_connect+0x207 sys/kern/uipc_syscalls.c:422 syscall(ffff80002e6cc070) at syscall+0x5ae mi_syscall sys/sys/syscall_mi.h:183 [inline] syscall(ffff80002e6cc070) at syscall+0x5ae sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6c12255c250, count: -10