panic: kernel diagnostic assertion "ifa == rt->rt_ifa" failed: file "/syzkaller/managers/main/kernel/sys/netinet6/nd6.c", line 947 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *205415 32766 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff821e49ce,ffffffff821c70b3,3b3,ffffffff821a05f0) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000b13000,1,fffffd802ecc99a8) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800017b2fb18,1,ffff800017b2fbe8,0) at rtrequest+0x9be sys/net/route.c:973 rt_ifa_add(ffff800000aed900,240404,ffff800000aed958,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000aed900) at rt_ifa_addlocal+0x149 sys/net/route.c:1242 in_ifinit(ffff800000b13000,ffff800000aed900,ffff800017b2ff10,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800017b2ff00,ffff800000b13000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800017b2ff00,ffff800000b13000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd803703aa80,8020690c,ffff800017b2ff00,ffff8000ffff2c70) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff2c70,ffff800017b30018,ffff800017b30060) at sys_ioctl+0x5b9 syscall(ffff800017b300e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,f4413000010) at Xsyscall+0x128 end of kernel end trace frame: 0xf46700cb6a0, count: 1 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 kernel diagnostic assertion "ifa == rt->rt_ifa" failed: file "/syzkaller/managers/main/kernel/sys/netinet6/nd6.c", line 947 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff821e49ce,ffffffff821c70b3,3b3,ffffffff821a05f0) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000b13000,1,fffffd802ecc99a8) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800017b2fb18,1,ffff800017b2fbe8,0) at rtrequest+0x9be sys/net/route.c:973 rt_ifa_add(ffff800000aed900,240404,ffff800000aed958,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000aed900) at rt_ifa_addlocal+0x149 sys/net/route.c:1242 in_ifinit(ffff800000b13000,ffff800000aed900,ffff800017b2ff10,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800017b2ff00,ffff800000b13000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800017b2ff00,ffff800000b13000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd803703aa80,8020690c,ffff800017b2ff00,ffff8000ffff2c70) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff2c70,ffff800017b30018,ffff800017b30060) at sys_ioctl+0x5b9 syscall(ffff800017b300e0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,f4413000010) at Xsyscall+0x128 end of kernel end trace frame: 0xf46700cb6a0, count: -14 ddb> show registers rdi 0xffffffff8191b2f7 db_enter+0x17 rsi 0x483a __ALIGN_SIZE+0x383a rbp 0xffff800017b2f850 rbx 0xffff800017b2f900 rdx 0x483b __ALIGN_SIZE+0x383b rcx 0xffff800015911000 rax 0xffff800015911000 r8 0xffff800017b2f810 r9 0x1 r10 0xffff800000a6c800 r11 0x8f40cc2fb2ea66b r12 0x3000000008 r13 0xffff800017b2f860 r14 0x100 r15 0x1 rip 0xffffffff8191b2f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800017b2f840 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=205415 stat=onproc flags process=0 proc=4000000 pri=83, usrpri=83, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff38c8,0xffffffff825602a0 process=0xffff8000ffff66d0 user=0xffff800017b2b000, vmspace=0xfffffd803f013ee0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 32766 26707 16126 0 2 0 syz-executor.0 *32766 205415 16126 0 7 0x4000000 syz-executor.0 16126 193436 96168 0 3 0x82 nanosleep syz-executor.0 19461 35974 1 0 3 0x100083 ttyin getty 58031 353287 96168 0 2 0x2 syz-executor.1 13557 191849 0 0 3 0x14200 acct acct 33570 264083 0 0 3 0x14200 bored sosplice 96168 134987 80484 0 3 0x82 thrsleep syz-fuzzer 96168 154899 80484 0 3 0x4000082 nanosleep syz-fuzzer 96168 508591 80484 0 3 0x4000082 thrsleep syz-fuzzer 96168 459433 80484 0 3 0x4000082 thrsleep syz-fuzzer 96168 84321 80484 0 3 0x4000082 thrsleep syz-fuzzer 96168 308786 80484 0 3 0x4000082 kqread syz-fuzzer 96168 145642 80484 0 3 0x4000082 thrsleep syz-fuzzer 96168 385883 80484 0 3 0x4000082 thrsleep syz-fuzzer 80484 419543 42828 0 3 0x10008a pause ksh 42828 6943 25137 0 3 0x92 select sshd 25137 143669 1 0 3 0x80 select sshd 77003 229467 94229 73 3 0x100090 kqread syslogd 94229 440044 1 0 3 0x100082 netio syslogd 12420 208690 0 0 2 0x14200 zerothread 91843 227957 0 0 3 0x14200 aiodoned aiodoned 37934 103696 0 0 3 0x14200 syncer update 65195 395670 0 0 3 0x14200 cleaner cleaner 34975 229926 0 0 3 0x14200 reaper reaper 21750 26155 0 0 3 0x14200 pgdaemon pagedaemon 98417 136080 0 0 3 0x14200 bored crynlk 89394 155309 0 0 3 0x14200 bored crypto 34416 225411 0 0 3 0x40014200 acpi0 acpi0 92359 138246 0 0 3 0x14200 bored softnet 77044 395424 0 0 2 0x14200 systqmp 40824 108406 0 0 3 0x14200 bored systq 62696 93524 0 0 3 0x40014200 bored softclock 37803 181829 0 0 3 0x40014200 idle0 79260 256095 0 0 3 0x14200 bored smr 1 318724 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 Kern Lim devbuf 9580 6310K 7265K 78643K 22576 0 0 pcb 13 10K 12K 78643K 845 0 0 rtable 124 13K 13K 78643K 2024 0 0 ifaddr 94 21K 22K 78643K 731 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 185 0 0 iov 0 0K 24K 78643K 960 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1215 76K 77K 78643K 6437 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 80 0 0 VM map 2 0K 0K 78643K 19 0 0 sem 12 0K 0K 78643K 850 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 4721 0 0 sigio 0 0K 0K 78643K 36 0 0 proc 44 30K 55K 78643K 1885 0 0 subproc 32 2K 2K 78643K 510 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 247 0 0 in_multi 32 2K 2K 78643K 504 0 0 ether_multi 1 0K 0K 78643K 29 0 0 mrt 0 0K 0K 78643K 16 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 120 530K 530K 78643K 120 0 0 exec 0 0K 1K 78643K 976 0 0 pfkey data 0 0K 4K 78643K 2 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 106 22K 39K 78643K 12586 0 0 UVM aobj 130 4K 4K 78643K 152 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 838 0 0 NDP 23 0K 1K 78643K 234 0 0 temp 240 3541K 3616K 78643K 116383 0 0 kqueue 0 0K 0K 78643K 20 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 85 0 80 1 0 1 1 0 8 0 rtpcb 80 343 0 343 11 10 1 1 0 8 1 rtentry 112 476 0 432 2 0 2 2 0 8 0 unpcb 120 1673 0 1657 2 1 1 2 0 8 0 syncache 264 22 0 22 12 12 0 1 0 8 0 tcpqe 32 5071 0 5071 3 3 0 1 0 8 0 tcpcb 544 2980 0 2976 15 14 1 12 0 8 0 ipq 40 21 0 21 10 9 1 1 0 8 1 ipqe 40 54 0 54 10 9 1 1 0 8 1 inpcb 280 8022 0 8016 28 26 2 9 0 8 1 rttmr 72 4 0 4 4 4 0 1 0 8 0 nd6 48 70 0 65 4 3 1 1 0 8 0 pkpcb 40 6 0 6 3 2 1 1 0 8 1 swfcl 56 8 0 0 1 0 1 1 0 8 0 ppxss 1128 85 0 85 20 19 1 1 0 8 1 art_heap8 4096 16 0 15 10 9 1 3 0 8 0 art_heap4 256 2138 0 1907 51 35 16 17 0 8 0 art_table 32 2154 0 1922 5 3 2 3 0 8 0 art_node 16 470 0 428 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 9 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 848 0 838 1 0 1 1 0 8 0 shmpl 112 150 0 22 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 8868 0 7458 46 0 46 46 0 8 0 ffsino 240 8868 0 7458 84 0 84 84 0 8 0 nchpl 144 16094 0 14480 61 0 61 61 0 8 0 uvmvnodes 72 8682 0 0 158 0 158 158 0 8 0 vnodes 208 8682 0 0 457 0 457 457 0 8 0 namei 1024 63842 0 63842 8 7 1 1 0 8 1 vmpool 520 17 0 17 7 7 0 1 0 8 0 scsiplug 64 4 0 4 1 1 0 1 0 8 0 scxspl 192 70458 0 70458 30 29 1 7 0 8 1 plimitpl 152 443 0 437 1 0 1 1 0 8 0 sigapl 432 4815 0 4804 2 0 2 2 0 8 0 futexpl 56 112415 0 112415 8 7 1 1 0 8 1 knotepl 112 1587 0 1568 1 0 1 1 0 8 0 kqueuepl 104 1959 0 1957 4 3 1 4 0 8 0 pipepl 112 2356 0 2337 7 6 1 2 0 8 0 fdescpl 424 4816 0 4804 2 0 2 2 0 8 0 filepl 120 46656 0 46570 20 16 4 10 0 8 1 lockfpl 104 1953 0 1953 8 7 1 1 0 8 1 lockfspl 48 696 0 696 8 7 1 1 0 8 1 sessionpl 112 52 0 44 1 0 1 1 0 8 0 pgrppl 48 114 0 106 1 0 1 1 0 8 0 ucredpl 96 14329 0 14322 1 0 1 1 0 8 0 zombiepl 144 4805 0 4805 4 3 1 1 0 8 1 processpl 864 4833 0 4805 4 0 4 4 0 8 0 procpl 632 10414 0 10378 4 0 4 4 0 8 0 sosppl 128 48 0 48 12 11 1 1 0 8 1 sockpl 384 10074 0 10052 27 23 4 14 0 8 0 mcl64k 65536 2119 0 2119 190 189 1 33 0 8 1 mcl16k 16384 37 0 37 19 18 1 1 0 8 1 mcl12k 12288 107 0 107 18 17 1 1 0 8 1 mcl9k 9216 80 0 80 17 16 1 1 0 8 1 mcl8k 8192 141 0 141 15 14 1 1 0 8 1 mcl4k 4096 444 0 444 13 12 1 1 0 8 1 mcl2k2 2112 40 0 40 16 15 1 1 0 8 1 mcl2k 2048 65030 0 64991 15 9 6 13 0 8 0 mtagpl 80 207 0 201 8 7 1 1 0 8 0 mbufpl 256 145183 0 145069 150 142 8 29 0 8 0 bufpl 256 24303 0 15622 543 0 543 543 0 8 0 anonpl 16 632509 0 616470 192 118 74 96 0 62 0 amapchunkpl 152 27222 0 27124 117 103 14 18 0 158 9 amappl16 192 30747 0 29830 243 196 47 70 0 8 0 amappl15 184 1564 0 1564 4 4 0 1 0 8 0 amappl14 176 748 0 745 2 1 1 1 0 8 0 amappl13 168 730 0 730 7 6 1 1 0 8 1 amappl12 160 328 0 325 1 0 1 1 0 8 0 amappl11 152 399 0 393 1 0 1 1 0 8 0 amappl10 144 709 0 708 1 0 1 1 0 8 0 amappl9 136 1370 0 1363 1 0 1 1 0 8 0 amappl8 128 847 0 806 4 2 2 2 0 8 0 amappl7 120 845 0 838 1 0 1 1 0 8 0 amappl6 112 361 0 353 1 0 1 1 0 8 0 amappl5 104 674 0 667 1 0 1 1 0 8 0 amappl4 96 5279 0 5255 1 0 1 1 0 8 0 amappl3 88 921 0 915 1 0 1 1 0 8 0 amappl2 80 36809 0 36747 4 2 2 3 0 8 0 amappl1 72 98216 0 97841 28 19 9 20 0 8 0 amappl 80 11161 0 11130 1 0 1 1 0 84 0 dma4096 4096 1 0 1 1 1 0 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 151 0 22 3 0 3 3 0 8 0 uaddrrnd 24 4833 0 4804 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4833 0 4804 1 0 1 1 0 8 0 vmmpekpl 168 31050 0 31028 2 0 2 2 0 8 0 vmmpepl 168 588278 0 586382 403 287 116 124 0 357 23 vmsppl 272 4815 0 4804 2 1 1 2 0 8 0 pdppl 4096 9672 0 9642 9 4 5 6 0 8 0 pvpl 32 1821443 0 1802363 588 339 249 297 0 265 81 pmappl 200 4832 0 4821 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1129 0 456 21 0 21 21 0 8 0