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 * 26981 75861 0 0 0x4000000 0 syz-executor.1 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(ffffffff821e8d7c,ffffffff821cbe8e,3b3,ffffffff821a384d) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000af8000,1,fffffd802bc19e78) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800016591598,1,ffff800016591668,6) at rtrequest+0x9be sys/net/route.c:973 rt_ifa_add(ffff800000b3d000,240404,ffff800000b3d058,6) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000b3d000) at rt_ifa_addlocal+0x149 sys/net/route.c:1242 in_ifinit(ffff800000af8000,ffff800000b3d000,ffff800016591990,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800016591980,ffff800000af8000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800016591980,ffff800000af8000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd8029fbd800,8020690c,ffff800016591980,ffff8000ffff2ee8) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff2ee8,ffff800016591a98,ffff800016591ae0) at sys_ioctl+0x5b9 syscall(ffff800016591b60) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,ec33f8d010) at Xsyscall+0x128 end of kernel end trace frame: 0xee5d2fb2f0, 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(ffffffff821e8d7c,ffffffff821cbe8e,3b3,ffffffff821a384d) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000af8000,1,fffffd802bc19e78) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800016591598,1,ffff800016591668,6) at rtrequest+0x9be sys/net/route.c:973 rt_ifa_add(ffff800000b3d000,240404,ffff800000b3d058,6) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000b3d000) at rt_ifa_addlocal+0x149 sys/net/route.c:1242 in_ifinit(ffff800000af8000,ffff800000b3d000,ffff800016591990,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800016591980,ffff800000af8000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800016591980,ffff800000af8000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd8029fbd800,8020690c,ffff800016591980,ffff8000ffff2ee8) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff2ee8,ffff800016591a98,ffff800016591ae0) at sys_ioctl+0x5b9 syscall(ffff800016591b60) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,ec33f8d010) at Xsyscall+0x128 end of kernel end trace frame: 0xee5d2fb2f0, count: -14 ddb> show registers rdi 0xffffffff81863bd7 db_enter+0x17 rsi 0x469c __ALIGN_SIZE+0x369c rbp 0xffff8000165912d0 rbx 0xffff800016591380 rdx 0x469d __ALIGN_SIZE+0x369d rcx 0xffff800014b0b000 rax 0xffff800014b0b000 r8 0xffff800016591290 r9 0x1 r10 0xffff800000adab00 r11 0xda532682b8d8b11b r12 0x3000000008 r13 0xffff8000165912e0 r14 0x100 r15 0x1 rip 0xffffffff81863bd8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000165912c0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=26981 stat=onproc flags process=0 proc=4000000 pri=69, usrpri=69, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2018,0xffffffff82569d40 process=0xffff8000ffff70f0 user=0xffff80001658c000, 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 33998 222225 87276 0 2 0x40 syz-executor.0 75861 310764 24973 0 2 0 syz-executor.1 *75861 26981 24973 0 7 0x4000000 syz-executor.1 87276 52408 94718 0 3 0x82 ppwait syz-executor.0 24973 301918 94718 0 2 0x482 syz-executor.1 53052 432925 1 0 3 0x100083 ttyopn getty 2396 209996 0 0 3 0x14200 bored sosplice 94718 378885 70270 0 3 0x82 thrsleep syz-fuzzer 94718 59322 70270 0 3 0x4000082 thrsleep syz-fuzzer 94718 184354 70270 0 2 0x4000002 syz-fuzzer 94718 221265 70270 0 3 0x4000082 thrsleep syz-fuzzer 94718 52136 70270 0 3 0x4000082 thrsleep syz-fuzzer 94718 401549 70270 0 3 0x4000082 thrsleep syz-fuzzer 94718 53783 70270 0 3 0x4000082 thrsleep syz-fuzzer 94718 400743 70270 0 3 0x4000082 thrsleep syz-fuzzer 70270 416794 20859 0 3 0x10008a pause ksh 20859 91324 84545 0 3 0x92 select sshd 84545 459728 1 0 3 0x80 select sshd 78132 30157 46017 73 3 0x100090 kqread syslogd 46017 285323 1 0 3 0x100082 netio syslogd 18604 134063 1 77 3 0x100090 poll dhclient 88394 220528 1 0 3 0x80 poll dhclient 60775 91982 0 0 2 0x14200 zerothread 21958 311568 0 0 3 0x14200 aiodoned aiodoned 55543 59788 0 0 3 0x14200 syncer update 30082 68198 0 0 3 0x14200 cleaner cleaner 11157 190381 0 0 3 0x14200 reaper reaper 62204 427773 0 0 3 0x14200 pgdaemon pagedaemon 55708 473757 0 0 3 0x14200 bored crynlk 23854 66942 0 0 3 0x14200 bored crypto 39258 446183 0 0 3 0x40014200 acpi0 acpi0 82660 167537 0 0 3 0x14200 bored softnet 4324 490996 0 0 3 0x14200 bored systqmp 79229 313488 0 0 3 0x14200 bored systq 8048 403659 0 0 3 0x40014200 bored softclock 93474 424779 0 0 3 0x40014200 idle0 84307 394737 0 0 3 0x14200 bored smr 1 275278 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 9581 6400K 7418K 78643K 30254 0 0 pcb 13 11K 12K 78643K 1404 0 0 rtable 115 8K 9K 78643K 3936 0 0 ifaddr 91 20K 22K 78643K 1056 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 389 0 0 iov 0 0K 28K 78643K 2804 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1214 76K 77K 78643K 8330 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 104 0 0 VM map 55 13K 13K 78643K 85 0 0 sem 12 1K 1K 78643K 495 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 6642 0 0 sigio 0 0K 0K 78643K 106 0 0 proc 50 38K 63K 78643K 2360 0 0 subproc 33 2K 2K 78643K 682 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 597 0 0 in_multi 21 1K 2K 78643K 789 0 0 ether_multi 1 0K 0K 78643K 53 0 0 mrt 0 0K 0K 78643K 39 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 1398 0 0 pfkey data 0 0K 4K 78643K 4 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 172 413K 413K 78643K 17577 0 0 UVM aobj 130 4K 4K 78643K 151 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 1418 0 0 NDP 21 0K 1K 78643K 354 0 0 temp 234 3545K 4185K 78643K 246609 0 0 kqueue 0 0K 0K 78643K 52 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 123 0 117 1 0 1 1 0 8 0 rtpcb 80 747 0 745 1 0 1 1 0 8 0 rtentry 112 739 0 698 2 0 2 2 0 8 0 unpcb 120 3263 0 3251 2 1 1 2 0 8 0 syncache 264 41 0 41 17 17 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 107 0 107 9 9 0 1 0 8 0 tcpcb 544 3450 0 3445 69 68 1 15 0 8 0 ipq 40 69 0 69 21 21 0 1 0 8 0 ipqe 40 966 0 966 21 21 0 1 0 8 0 inpcb 280 14545 0 14536 55 53 2 9 0 8 1 rttmr 72 14 0 13 7 6 1 1 0 8 0 ip6q 72 3 0 2 2 1 1 1 0 8 0 ip6af 40 6 0 6 1 1 0 1 0 8 0 nd6 48 104 0 100 6 5 1 1 0 8 0 pkpcb 40 35 0 35 12 12 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 113 0 113 31 31 0 1 0 8 0 art_heap8 4096 22 0 20 11 9 2 3 0 8 0 art_heap4 256 3497 0 3238 52 33 19 20 0 8 0 art_table 32 3519 0 3258 5 2 3 3 0 8 0 art_node 16 737 0 698 1 0 1 1 0 8 0 sysvmsgpl 40 29 0 18 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 493 0 483 1 0 1 1 0 8 0 shmpl 112 149 0 21 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 11765 0 10360 46 0 46 46 0 8 0 ffsino 240 11765 0 10360 84 0 84 84 0 8 0 nchpl 144 23476 0 23020 60 41 19 60 0 8 0 uvmvnodes 72 8105 0 0 148 0 148 148 0 8 0 vnodes 208 8105 0 0 427 0 427 427 0 8 0 namei 1024 78984 0 78984 4 3 1 1 0 8 1 vcpupl 1984 53 0 0 7 0 7 7 0 8 0 vmpool 520 83 0 30 6 2 4 4 0 8 0 scsiplug 64 8 0 8 5 5 0 1 0 8 0 scxspl 192 87330 0 87330 49 48 1 7 0 8 1 plimitpl 152 624 0 617 1 0 1 1 0 8 0 sigapl 432 6701 0 6687 2 0 2 2 0 8 0 futexpl 56 186505 0 186505 4 3 1 1 0 8 1 knotepl 112 1868 0 1847 4 3 1 2 0 8 0 kqueuepl 104 2447 0 2445 16 15 1 4 0 8 0 pipepl 112 4090 0 4071 17 16 1 2 0 8 0 fdescpl 424 6702 0 6687 2 0 2 2 0 8 0 filepl 120 63970 0 63874 58 53 5 11 0 8 2 lockfpl 104 2844 0 2843 1 0 1 1 0 8 0 lockfspl 48 893 0 892 1 0 1 1 0 8 0 sessionpl 112 57 0 47 1 0 1 1 0 8 0 pgrppl 48 155 0 145 1 0 1 1 0 8 0 ucredpl 96 7415 0 7406 1 0 1 1 0 8 0 zombiepl 144 6692 0 6692 1 0 1 1 0 8 1 processpl 864 6722 0 6692 4 0 4 4 0 8 0 procpl 632 14880 0 14842 6 2 4 5 0 8 0 sosppl 128 121 0 121 30 29 1 1 0 8 1 sockpl 384 18817 0 18794 87 82 5 14 0 8 2 mcl64k 65536 1579 0 1579 130 129 1 33 0 8 1 mcl16k 16384 80 0 80 26 26 0 1 0 8 0 mcl12k 12288 180 0 180 22 21 1 1 0 8 1 mcl9k 9216 138 0 138 21 21 0 1 0 8 0 mcl8k 8192 301 0 301 9 8 1 1 0 8 1 mcl4k 4096 725 0 725 8 7 1 1 0 8 1 mcl2k2 2112 50 0 50 32 32 0 1 0 8 0 mcl2k 2048 80535 0 80495 17 11 6 13 0 8 0 mtagpl 80 343 0 314 7 6 1 1 0 8 0 mbufpl 256 190745 0 190605 174 159 15 24 0 8 0 bufpl 256 33966 0 25573 525 0 525 525 0 8 0 anonpl 16 818559 0 801710 293 206 87 99 0 62 0 amapchunkpl 152 35648 0 35511 112 105 7 19 0 158 0 amappl16 192 40252 0 39096 321 262 59 71 0 8 0 amappl15 184 1694 0 1694 9 9 0 1 0 8 0 amappl14 176 1284 0 1277 1 0 1 1 0 8 0 amappl13 168 334 0 334 6 6 0 1 0 8 0 amappl12 160 1142 0 1140 1 0 1 1 0 8 0 amappl11 152 747 0 736 1 0 1 1 0 8 0 amappl10 144 597 0 596 1 0 1 1 0 8 0 amappl9 136 2154 0 2148 1 0 1 1 0 8 0 amappl8 128 1643 0 1600 2 0 2 2 0 8 0 amappl7 120 795 0 788 1 0 1 1 0 8 0 amappl6 112 686 0 671 1 0 1 1 0 8 0 amappl5 104 1606 0 1595 1 0 1 1 0 8 0 amappl4 96 5409 0 5382 1 0 1 1 0 8 0 amappl3 88 3020 0 3007 1 0 1 1 0 8 0 amappl2 80 51866 0 51788 3 1 2 3 0 8 0 amappl1 72 132426 0 132020 27 18 9 20 0 8 0 amappl 80 15753 0 15692 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 150 0 21 3 0 3 3 0 8 0 uaddrrnd 24 6785 0 6687 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6785 0 6687 1 0 1 1 0 8 0 vmmpekpl 168 43747 0 43710 2 0 2 2 0 8 0 vmmpepl 168 822677 0 820220 494 346 148 148 0 357 34 vmsppl 272 6701 0 6687 5 4 1 2 0 8 0 pdppl 4096 13576 0 13487 18 6 12 12 0 8 0 pvpl 32 2219396 0 2200963 680 487 193 325 0 265 9 pmappl 200 6784 0 6717 4 0 4 4 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1137 0 465 22 2 20 20 0 8 0