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 *431403 44738 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(ffffffff821e690c,ffffffff821c9f25,3b3,ffffffff821a07f6) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000adf800,1,fffffd802a9f8c48) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800017993408,1,ffff8000179934d8,0) at rtrequest+0x9be sys/net/route.c:973 rt_ifa_add(ffff800000ace100,240404,ffff800000ace158,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000ace100) at rt_ifa_addlocal+0x149 sys/net/route.c:1242 in_ifinit(ffff800000adf800,ffff800000ace100,ffff800017993800,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff8000179937f0,ffff800000adf800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff8000179937f0,ffff800000adf800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd802923f318,8020690c,ffff8000179937f0,ffff800014914c70) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff800014914c70,ffff800017993908,ffff800017993950) at sys_ioctl+0x5b9 syscall(ffff8000179939d0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,ffca35ea010) at Xsyscall+0x128 end of kernel end trace frame: 0xfff939a0a50, 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(ffffffff821e690c,ffffffff821c9f25,3b3,ffffffff821a07f6) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000adf800,1,fffffd802a9f8c48) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800017993408,1,ffff8000179934d8,0) at rtrequest+0x9be sys/net/route.c:973 rt_ifa_add(ffff800000ace100,240404,ffff800000ace158,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000ace100) at rt_ifa_addlocal+0x149 sys/net/route.c:1242 in_ifinit(ffff800000adf800,ffff800000ace100,ffff800017993800,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff8000179937f0,ffff800000adf800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff8000179937f0,ffff800000adf800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd802923f318,8020690c,ffff8000179937f0,ffff800014914c70) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff800014914c70,ffff800017993908,ffff800017993950) at sys_ioctl+0x5b9 syscall(ffff8000179939d0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,ffca35ea010) at Xsyscall+0x128 end of kernel end trace frame: 0xfff939a0a50, count: -14 ddb> show registers rdi 0xffffffff82060497 db_enter+0x17 rsi 0x4acd __ALIGN_SIZE+0x3acd rbp 0xffff800017993140 rbx 0xffff8000179931f0 rdx 0x4ace __ALIGN_SIZE+0x3ace rcx 0xffff800014916000 rax 0xffff800014916000 r8 0xffff800017993100 r9 0x1 r10 0xffff800000a6cac0 r11 0x3471b43fa0d258ec r12 0x3000000008 r13 0xffff800017993150 r14 0x100 r15 0x1 rip 0xffffffff82060498 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800017993130 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=431403 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800014914290,0xffffffff82573380 process=0xffff8000148a26d8 user=0xffff80001798e000, vmspace=0xfffffd803f013dd0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 44738 204200 37729 0 2 0 syz-executor.0 *44738 431403 37729 0 7 0x4000000 syz-executor.0 8529 423975 29149 0 2 0x2 syz-executor.1 54780 477295 0 0 3 0x14200 acct acct 37729 238587 29149 0 2 0x482 syz-executor.0 84786 320706 1 0 3 0x100083 ttyin getty 34425 423446 0 0 3 0x14200 bored sosplice 29149 182594 82263 0 3 0x82 thrsleep syz-fuzzer 29149 131302 82263 0 3 0x4000082 nanosleep syz-fuzzer 29149 394214 82263 0 3 0x4000082 thrsleep syz-fuzzer 29149 519680 82263 0 3 0x4000082 thrsleep syz-fuzzer 29149 304732 82263 0 3 0x4000082 thrsleep syz-fuzzer 29149 42965 82263 0 3 0x4000082 kqread syz-fuzzer 29149 86376 82263 0 3 0x4000082 thrsleep syz-fuzzer 29149 145473 82263 0 3 0x4000082 thrsleep syz-fuzzer 82263 151619 53153 0 3 0x10008a pause ksh 53153 239501 61713 0 3 0x92 select sshd 61713 362132 1 0 3 0x80 select sshd 82097 117296 35929 73 3 0x100090 kqread syslogd 35929 335372 1 0 3 0x100082 netio syslogd 45520 316237 1 77 3 0x100090 poll dhclient 65013 521912 1 0 3 0x80 poll dhclient 88565 4428 0 0 2 0x14200 zerothread 3467 13204 0 0 3 0x14200 aiodoned aiodoned 86542 385034 0 0 3 0x14200 syncer update 33492 169414 0 0 3 0x14200 cleaner cleaner 60299 316561 0 0 3 0x14200 reaper reaper 70703 387824 0 0 3 0x14200 pgdaemon pagedaemon 88282 16829 0 0 3 0x14200 bored crynlk 70155 69084 0 0 3 0x14200 bored crypto 68757 249963 0 0 3 0x40014200 acpi0 acpi0 93480 411612 0 0 3 0x14200 bored softnet 42139 496540 0 0 2 0x14200 systqmp 78369 359856 0 0 3 0x14200 bored systq 3567 214817 0 0 3 0x40014200 bored softclock 97574 246782 0 0 3 0x40014200 idle0 56541 261392 0 0 3 0x14200 bored smr 1 294691 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 9584 6617K 6993K 78643K 13659 0 0 pcb 13 8K 8K 78643K 1083 0 0 rtable 100 6K 6K 78643K 1139 0 0 ifaddr 75 16K 17K 78643K 277 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 102 0 0 iov 0 0K 24K 78643K 479 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1220 77K 77K 78643K 2383 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 24 0 0 VM map 15 3K 3K 78643K 24 0 0 sem 11 1K 1K 78643K 14 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 1355 0 0 sigio 0 0K 0K 78643K 16 0 0 proc 48 38K 63K 78643K 725 0 0 subproc 32 2K 2K 78643K 136 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 113 0 0 in_multi 19 1K 2K 78643K 201 0 0 ether_multi 1 0K 0K 78643K 14 0 0 mrt 0 0K 0K 78643K 4 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 162 715K 715K 78643K 162 0 0 exec 0 0K 1K 78643K 417 0 0 pfkey data 0 0K 0K 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 117 119K 119K 78643K 4629 0 0 UVM aobj 60 3K 3K 78643K 72 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 295 0 0 NDP 18 0K 0K 78643K 90 0 0 temp 212 3540K 4180K 78643K 123918 0 0 kqueue 0 0K 0K 78643K 2 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 51 0 47 1 0 1 1 0 8 0 rtpcb 80 173 0 171 1 0 1 1 0 8 0 rtentry 112 231 0 194 2 0 2 2 0 8 0 unpcb 120 683 0 672 1 0 1 1 0 8 0 syncache 264 18 0 18 8 8 0 1 0 8 0 tcpqe 32 104 0 104 3 3 0 1 0 8 0 tcpcb 544 503 0 499 3 1 2 2 0 8 1 ipq 40 10 0 10 3 2 1 1 0 8 1 ipqe 40 114 0 114 3 2 1 1 0 8 1 inpcb 280 2321 0 2311 11 8 3 3 0 8 2 rttmr 72 1 0 1 1 1 0 1 0 8 0 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 6 0 6 1 1 0 1 0 8 0 nd6 48 27 0 24 1 0 1 1 0 8 0 pkpcb 40 6 0 6 3 3 0 1 0 8 0 ppxss 1128 27 0 27 9 8 1 1 0 8 1 art_heap8 4096 5 0 4 5 4 1 3 0 8 0 art_heap4 256 925 0 731 23 10 13 15 0 8 0 art_table 32 930 0 735 2 0 2 2 0 8 0 art_node 16 230 0 195 1 0 1 1 0 8 0 sysvmsgpl 40 68 0 42 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 10 0 1 1 0 1 1 0 8 0 shmpl 112 70 0 12 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3587 0 2191 46 0 46 46 0 8 0 ffsino 240 3587 0 2191 83 0 83 83 0 8 0 nchpl 144 5947 0 5467 60 41 19 60 0 8 0 uvmvnodes 72 4422 0 0 81 0 81 81 0 8 0 vnodes 208 4422 0 0 233 0 233 233 0 8 0 namei 1024 22773 0 22773 2 1 1 1 0 8 1 vcpupl 1984 14 0 1 2 0 2 2 0 8 0 vmpool 520 22 0 9 2 1 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 20464 0 20464 14 13 1 7 0 8 1 plimitpl 152 110 0 103 1 0 1 1 0 8 0 sigapl 432 1509 0 1496 2 0 2 2 0 8 0 futexpl 56 42595 0 42595 2 1 1 1 0 8 1 knotepl 112 1183 0 1164 6 4 2 2 0 8 1 kqueuepl 104 1754 0 1752 1 0 1 1 0 8 0 pipepl 112 1714 0 1693 10 8 2 2 0 8 1 fdescpl 424 1510 0 1496 2 0 2 2 0 8 0 filepl 120 17598 0 17499 13 7 6 6 0 8 3 lockfpl 104 600 0 599 1 0 1 1 0 8 0 lockfspl 48 178 0 177 1 0 1 1 0 8 0 sessionpl 112 24 0 14 1 0 1 1 0 8 0 pgrppl 48 42 0 32 1 0 1 1 0 8 0 ucredpl 96 4694 0 4687 1 0 1 1 0 8 0 zombiepl 144 1496 0 1496 1 0 1 1 0 8 1 processpl 864 1526 0 1496 4 0 4 4 0 8 0 procpl 632 3504 0 3466 9 5 4 5 0 8 0 sosppl 128 27 0 27 8 7 1 1 0 8 1 sockpl 384 3223 0 3201 16 10 6 6 0 8 3 mcl64k 65536 170 0 170 7 6 1 1 0 8 1 mcl16k 16384 13 0 13 6 5 1 1 0 8 1 mcl12k 12288 51 0 51 8 7 1 1 0 8 1 mcl9k 9216 24 0 24 9 8 1 1 0 8 1 mcl8k 8192 77 0 77 2 1 1 1 0 8 1 mcl4k 4096 170 0 168 3 2 1 1 0 8 0 mcl2k2 2112 14 0 14 8 7 1 1 0 8 1 mcl2k 2048 69334 0 69283 17 10 7 14 0 8 0 mtagpl 80 74 0 36 3 2 1 1 0 8 0 mbufpl 256 122397 0 122112 65 43 22 29 0 8 1 bufpl 256 14439 0 8323 384 1 383 383 0 8 0 anonpl 16 256555 0 236952 158 63 95 95 0 62 9 amapchunkpl 152 9634 0 9505 38 32 6 15 0 158 0 amappl16 192 11842 0 10734 139 75 64 68 0 8 8 amappl15 184 223 0 222 1 0 1 1 0 8 0 amappl14 176 350 0 346 1 0 1 1 0 8 0 amappl13 168 4 0 4 4 3 1 1 0 8 1 amappl12 160 163 0 159 1 0 1 1 0 8 0 amappl11 152 555 0 542 1 0 1 1 0 8 0 amappl10 144 103 0 102 2 1 1 1 0 8 0 amappl9 136 651 0 644 1 0 1 1 0 8 0 amappl8 128 233 0 203 3 1 2 2 0 8 0 amappl7 120 154 0 148 1 0 1 1 0 8 0 amappl6 112 566 0 555 1 0 1 1 0 8 0 amappl5 104 352 0 342 1 0 1 1 0 8 0 amappl4 96 1682 0 1659 1 0 1 1 0 8 0 amappl3 88 400 0 395 1 0 1 1 0 8 0 amappl2 80 11113 0 11045 3 1 2 3 0 8 0 amappl1 72 37834 0 37428 26 16 10 20 0 8 0 amappl 80 3868 0 3825 3 1 2 2 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 71 0 12 1 0 1 1 0 8 0 uaddrrnd 24 1532 0 1496 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1532 0 1496 1 0 1 1 0 8 0 vmmpekpl 168 15647 0 15620 2 0 2 2 0 8 0 vmmpepl 168 193208 0 190998 227 116 111 139 0 357 7 vmsppl 272 1509 0 1496 3 2 1 2 0 8 0 pdppl 4096 3070 0 3023 8 1 7 7 0 8 0 pvpl 32 717447 0 695506 318 105 213 264 0 265 28 pmappl 200 1531 0 1505 2 0 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 616 0 89 16 0 16 16 0 8 0