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 *283789 54424 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(ffffffff821e6642,ffffffff821c7c9c,3b3,ffffffff821a1824) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000ae3800,1,fffffd8039ce88c8) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800017bb4e78,1,ffff800017bb4f48,0) at rtrequest+0x9be sys/net/route.c:973 rt_ifa_add(ffff800000b8a300,240404,ffff800000b8a358,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000b8a300) at rt_ifa_addlocal+0x149 sys/net/route.c:1242 in_ifinit(ffff800000ae3800,ffff800000b8a300,ffff800017bb5270,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800017bb5260,ffff800000ae3800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800017bb5260,ffff800000ae3800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd8038bf31b8,8020690c,ffff800017bb5260,ffff800015953160) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff800015953160,ffff800017bb5378,ffff800017bb53c0) at sys_ioctl+0x5b9 syscall(ffff800017bb5440) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,61f8d722010) at Xsyscall+0x128 end of kernel end trace frame: 0x62286c67cb0, 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(ffffffff821e6642,ffffffff821c7c9c,3b3,ffffffff821a1824) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000ae3800,1,fffffd8039ce88c8) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800017bb4e78,1,ffff800017bb4f48,0) at rtrequest+0x9be sys/net/route.c:973 rt_ifa_add(ffff800000b8a300,240404,ffff800000b8a358,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000b8a300) at rt_ifa_addlocal+0x149 sys/net/route.c:1242 in_ifinit(ffff800000ae3800,ffff800000b8a300,ffff800017bb5270,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800017bb5260,ffff800000ae3800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800017bb5260,ffff800000ae3800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd8038bf31b8,8020690c,ffff800017bb5260,ffff800015953160) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff800015953160,ffff800017bb5378,ffff800017bb53c0) at sys_ioctl+0x5b9 syscall(ffff800017bb5440) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,61f8d722010) at Xsyscall+0x128 end of kernel end trace frame: 0x62286c67cb0, count: -14 ddb> show registers rdi 0xffffffff81939467 db_enter+0x17 rsi 0x4f3b __ALIGN_SIZE+0x3f3b rbp 0xffff800017bb4bb0 rbx 0xffff800017bb4c60 rdx 0x4f3c __ALIGN_SIZE+0x3f3c rcx 0xffff800017bcc000 rax 0xffff800017bcc000 r8 0xffff800017bb4b70 r9 0x1 r10 0xffff800000ad7940 r11 0xbdbfeb490c4e78c9 r12 0x3000000008 r13 0xffff800017bb4bc0 r14 0x100 r15 0x1 rip 0xffffffff81939468 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800017bb4ba0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=283789 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000159538c8,0xffffffff82561488 process=0xffff8000148a26d8 user=0xffff800017bb0000, vmspace=0xfffffd803f013cc0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 54424 123074 1518 0 2 0 syz-executor.0 *54424 283789 1518 0 7 0x4000000 syz-executor.0 92829 70155 37267 0 2 0x2 syz-executor.1 16406 205262 0 0 3 0x14200 acct acct 1518 300915 37267 0 3 0x82 nanosleep syz-executor.0 34394 315744 1 0 3 0x100083 ttyin getty 2827 10402 0 0 3 0x14200 bored sosplice 37267 513843 96455 0 3 0x82 kqread syz-fuzzer 37267 103123 96455 0 3 0x4000082 thrsleep syz-fuzzer 37267 476335 96455 0 3 0x4000082 thrsleep syz-fuzzer 37267 87097 96455 0 3 0x4000082 thrsleep syz-fuzzer 37267 115009 96455 0 3 0x4000082 thrsleep syz-fuzzer 37267 250062 96455 0 3 0x4000082 thrsleep syz-fuzzer 37267 295408 96455 0 3 0x4000082 thrsleep syz-fuzzer 37267 235853 96455 0 3 0x4000082 thrsleep syz-fuzzer 96455 231556 12156 0 3 0x10008a pause ksh 12156 396174 58821 0 3 0x92 select sshd 58821 169470 1 0 3 0x80 select sshd 55510 302738 8760 73 3 0x100090 kqread syslogd 8760 47804 1 0 3 0x100082 netio syslogd 72756 451414 1 77 3 0x100090 poll dhclient 13907 388158 1 0 3 0x80 poll dhclient 35767 10307 0 0 2 0x14200 zerothread 45527 307808 0 0 3 0x14200 aiodoned aiodoned 66623 142277 0 0 3 0x14200 syncer update 25681 256330 0 0 3 0x14200 cleaner cleaner 93394 374593 0 0 3 0x14200 reaper reaper 1301 280329 0 0 3 0x14200 pgdaemon pagedaemon 33831 46034 0 0 3 0x14200 bored crynlk 7143 272452 0 0 3 0x14200 bored crypto 71297 101061 0 0 3 0x40014200 acpi0 acpi0 77810 29203 0 0 3 0x14200 bored softnet 63836 330499 0 0 2 0x14200 systqmp 20689 5335 0 0 3 0x14200 bored systq 23810 476049 0 0 3 0x40014200 bored softclock 21299 227505 0 0 3 0x40014200 idle0 2571 354725 0 0 3 0x14200 bored smr 1 346269 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 9572 7003K 7893K 78643K 19695 0 0 pcb 13 10K 12K 78643K 862 0 0 rtable 123 12K 12K 78643K 1870 0 0 ifaddr 88 18K 19K 78643K 428 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 260 0 0 iov 0 0K 20K 78643K 795 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1214 76K 77K 78643K 4301 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 35 0 0 VM map 84 21K 21K 78643K 93 0 0 sem 12 0K 1K 78643K 975 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 3263 0 0 sigio 0 0K 0K 78643K 51 0 0 proc 49 38K 63K 78643K 1254 0 0 subproc 32 2K 2K 78643K 306 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 262 0 0 in_multi 37 2K 2K 78643K 313 0 0 ether_multi 1 0K 0K 78643K 25 0 0 mrt 0 0K 0K 78643K 27 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 78 344K 344K 78643K 78 0 0 exec 0 0K 1K 78643K 708 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 193 631K 632K 78643K 9129 0 0 UVM aobj 130 4K 4K 78643K 130 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 530 0 0 NDP 20 0K 0K 78643K 137 0 0 temp 226 3544K 4189K 78643K 88000 0 0 kqueue 0 0K 0K 78643K 16 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 70 0 63 1 0 1 1 0 8 0 rtpcb 80 513 0 511 1 0 1 1 0 8 0 rtentry 112 381 0 334 2 0 2 2 0 8 0 unpcb 120 3206 0 3194 9 8 1 2 0 8 0 syncache 264 23 0 23 8 8 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 147 0 147 3 3 0 1 0 8 0 tcpcb 544 1584 0 1580 31 30 1 15 0 8 0 ipq 40 28 0 28 10 10 0 1 0 8 0 ipqe 40 712 0 712 10 10 0 1 0 8 0 inpcb 280 6737 0 6720 26 24 2 9 0 8 0 rttmr 72 10 0 10 6 6 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 44 0 38 2 1 1 1 0 8 0 pkpcb 40 14 0 14 5 5 0 1 0 8 0 swfcl 56 5 0 0 1 0 1 1 0 8 0 ppxss 1128 42 0 42 15 15 0 1 0 8 0 art_heap8 4096 15 0 14 6 5 1 3 0 8 0 art_heap4 256 1496 0 1244 28 11 17 17 0 8 0 art_table 32 1511 0 1258 4 1 3 3 0 8 0 art_node 16 379 0 336 1 0 1 1 0 8 0 sysvmsgpl 40 98 0 58 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 973 0 963 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 dino1pl 128 6137 0 4743 46 0 46 46 0 8 0 ffsino 240 6137 0 4743 83 0 83 83 0 8 0 nchpl 144 10770 0 10349 60 41 19 60 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 37228 0 37228 3 2 1 1 0 8 1 vcpupl 1984 83 0 1 11 0 11 11 0 8 0 vmpool 520 91 0 9 6 0 6 6 0 8 0 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 36209 0 36209 19 18 1 7 0 8 1 plimitpl 152 255 0 248 1 0 1 1 0 8 0 sigapl 432 3387 0 3374 2 0 2 2 0 8 0 futexpl 56 108833 0 108833 3 2 1 1 0 8 1 knotepl 112 678 0 659 1 0 1 1 0 8 0 kqueuepl 104 916 0 914 7 6 1 4 0 8 0 pipepl 112 1620 0 1601 7 6 1 2 0 8 0 fdescpl 424 3388 0 3374 2 0 2 2 0 8 0 filepl 120 29584 0 29481 27 23 4 11 0 8 0 lockfpl 104 950 0 949 1 0 1 1 0 8 0 lockfspl 48 302 0 301 1 0 1 1 0 8 0 sessionpl 112 34 0 24 1 0 1 1 0 8 0 pgrppl 48 59 0 49 1 0 1 1 0 8 0 ucredpl 96 4867 0 4860 1 0 1 1 0 8 0 zombiepl 144 3376 0 3376 1 0 1 1 0 8 1 processpl 864 3406 0 3376 4 0 4 4 0 8 0 procpl 632 7517 0 7479 5 1 4 5 0 8 0 sosppl 128 38 0 38 11 11 0 1 0 8 0 sockpl 384 10504 0 10479 51 47 4 14 0 8 1 mcl64k 65536 1326 0 1326 130 108 22 64 0 8 22 mcl16k 16384 49 0 49 13 12 1 1 0 8 1 mcl12k 12288 92 0 92 10 10 0 1 0 8 0 mcl9k 9216 43 0 43 9 8 1 1 0 8 1 mcl8k 8192 160 0 160 6 5 1 1 0 8 1 mcl4k 4096 328 0 328 6 5 1 1 0 8 1 mcl2k2 2112 33 0 33 12 12 0 1 0 8 0 mcl2k 2048 76250 0 76198 16 9 7 15 0 8 0 mtagpl 80 190 0 177 3 2 1 1 0 8 0 mbufpl 256 159555 0 159387 151 136 15 41 0 8 0 bufpl 256 16081 0 10773 333 0 333 333 0 8 0 anonpl 16 477968 0 458735 198 109 89 102 0 62 4 amapchunkpl 152 17374 0 17257 41 34 7 15 0 158 0 amappl16 192 24000 0 22815 214 142 72 72 0 8 12 amappl15 184 344 0 344 2 2 0 1 0 8 0 amappl14 176 1517 0 1511 1 0 1 1 0 8 0 amappl13 168 125 0 125 1 1 0 1 0 8 0 amappl12 160 113 0 110 2 1 1 1 0 8 0 amappl11 152 255 0 244 1 0 1 1 0 8 0 amappl10 144 409 0 405 1 0 1 1 0 8 0 amappl9 136 1293 0 1287 1 0 1 1 0 8 0 amappl8 128 859 0 818 2 0 2 2 0 8 0 amappl7 120 499 0 492 1 0 1 1 0 8 0 amappl6 112 247 0 230 1 0 1 1 0 8 0 amappl5 104 417 0 406 1 0 1 1 0 8 0 amappl4 96 3653 0 3629 1 0 1 1 0 8 0 amappl3 88 1318 0 1311 1 0 1 1 0 8 0 amappl2 80 25799 0 25731 3 1 2 3 0 8 0 amappl1 72 71773 0 71373 27 18 9 20 0 8 0 amappl 80 8063 0 7986 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 129 0 0 3 0 3 3 0 8 0 uaddrrnd 24 3479 0 3374 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3479 0 3374 1 0 1 1 0 8 0 vmmpekpl 168 20824 0 20774 3 0 3 3 0 8 0 vmmpepl 168 419862 0 417481 318 179 139 151 0 357 29 vmsppl 272 3387 0 3374 4 3 1 2 0 8 0 pdppl 4096 6964 0 6848 17 2 15 15 0 8 0 pvpl 32 1073383 0 1052313 337 141 196 223 0 265 9 pmappl 200 3478 0 3383 7 1 6 6 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 832 0 330 17 0 17 17 0 8 0