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 *270109 25003 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(ffffffff821e4d3c,ffffffff821c6a0f,3b3,ffffffff8219f4b8) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000aa9800,1,fffffd803eb539a8) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800016946558,1,ffff800016946628,0) at rtrequest+0x9be sys/net/route.c:973 rt_ifa_add(ffff800000ab4a00,240404,ffff800000ab4a58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000ab4a00) at rt_ifa_addlocal+0x149 sys/net/route.c:1242 in_ifinit(ffff800000aa9800,ffff800000ab4a00,ffff800016946950,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800016946940,ffff800000aa9800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800016946940,ffff800000aa9800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd803ea75010,8020690c,ffff800016946940,ffff8000ffff2018) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff2018,ffff800016946a58,ffff800016946aa0) at sys_ioctl+0x5b9 syscall(ffff800016946b20) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,f32e42ec010) at Xsyscall+0x128 end of kernel end trace frame: 0xf35625e5a30, 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(ffffffff821e4d3c,ffffffff821c6a0f,3b3,ffffffff8219f4b8) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000aa9800,1,fffffd803eb539a8) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800016946558,1,ffff800016946628,0) at rtrequest+0x9be sys/net/route.c:973 rt_ifa_add(ffff800000ab4a00,240404,ffff800000ab4a58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000ab4a00) at rt_ifa_addlocal+0x149 sys/net/route.c:1242 in_ifinit(ffff800000aa9800,ffff800000ab4a00,ffff800016946950,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800016946940,ffff800000aa9800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800016946940,ffff800000aa9800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd803ea75010,8020690c,ffff800016946940,ffff8000ffff2018) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff2018,ffff800016946a58,ffff800016946aa0) at sys_ioctl+0x5b9 syscall(ffff800016946b20) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,f32e42ec010) at Xsyscall+0x128 end of kernel end trace frame: 0xf35625e5a30, count: -14 ddb> show registers rdi 0xffffffff815c9927 db_enter+0x17 rsi 0x4bdf __ALIGN_SIZE+0x3bdf rbp 0xffff800016946290 rbx 0xffff800016946340 rdx 0x4be0 __ALIGN_SIZE+0x3be0 rcx 0xffff800015941000 rax 0xffff800015941000 r8 0xffff800016946250 r9 0x1 r10 0xffff800000a8eb00 r11 0xe0e987de26385a7f r12 0x3000000008 r13 0xffff8000169462a0 r14 0x100 r15 0x1 rip 0xffffffff815c9928 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800016946280 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=270109 stat=onproc flags process=0 proc=4000000 pri=74, usrpri=74, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff2780,0xffffffff82563c58 process=0xffff8000ffff7450 user=0xffff800016941000, vmspace=0xfffffd803f014770 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 25003 247948 27440 0 2 0 syz-executor.0 *25003 270109 27440 0 7 0x4000000 syz-executor.0 79070 315753 60963 0 2 0x2 syz-executor.1 27440 72855 60963 0 2 0x482 syz-executor.0 97173 207085 1 0 3 0x100083 ttyin getty 18619 61040 0 0 3 0x14200 bored sosplice 60963 348069 48013 0 3 0x82 thrsleep syz-fuzzer 60963 521786 48013 0 3 0x4000082 thrsleep syz-fuzzer 60963 432803 48013 0 3 0x4000082 kqread syz-fuzzer 60963 312024 48013 0 3 0x4000082 thrsleep syz-fuzzer 60963 246152 48013 0 3 0x4000082 thrsleep syz-fuzzer 60963 244539 48013 0 3 0x4000082 thrsleep syz-fuzzer 60963 204963 48013 0 3 0x4000082 thrsleep syz-fuzzer 48013 338876 16570 0 3 0x10008a pause ksh 16570 180751 5841 0 3 0x92 select sshd 5841 238453 1 0 3 0x80 select sshd 93517 343266 95728 73 3 0x100090 kqread syslogd 95728 425350 1 0 3 0x100082 netio syslogd 23134 349209 1 77 3 0x100090 poll dhclient 29017 93326 1 0 3 0x80 poll dhclient 39337 368918 0 0 2 0x14200 zerothread 78003 509243 0 0 3 0x14200 aiodoned aiodoned 7152 269887 0 0 3 0x14200 syncer update 2486 370265 0 0 3 0x14200 cleaner cleaner 24403 203285 0 0 3 0x14200 reaper reaper 65424 198983 0 0 3 0x14200 pgdaemon pagedaemon 66873 17193 0 0 3 0x14200 bored crynlk 27251 326915 0 0 3 0x14200 bored crypto 29601 254097 0 0 3 0x40014200 acpi0 acpi0 57140 320898 0 0 3 0x14200 bored softnet 11568 456145 0 0 2 0x14200 systqmp 13482 355862 0 0 3 0x14200 bored systq 8486 119211 0 0 3 0x40014200 bored softclock 82330 252050 0 0 3 0x40014200 idle0 19193 241885 0 0 3 0x14200 bored smr 1 367490 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 9521 6473K 10631K 78643K 11925 0 0 pcb 13 8K 9K 78643K 153 0 0 rtable 117 4K 5K 78643K 598 0 0 ifaddr 60 13K 13K 78643K 121 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 40 0 0 iov 0 0K 16K 78643K 134 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1224 77K 77K 78643K 1773 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 11 0 0 VM map 14 3K 3K 78643K 14 0 0 sem 12 0K 0K 78643K 142 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 603 0 0 sigio 0 0K 0K 78643K 16 0 0 proc 48 38K 54K 78643K 567 0 0 subproc 32 2K 2K 78643K 102 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 59 0 0 in_multi 29 1K 2K 78643K 115 0 0 ether_multi 1 0K 0K 78643K 8 0 0 mrt 0 0K 0K 78643K 7 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 66 291K 291K 78643K 66 0 0 exec 0 0K 1K 78643K 289 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 110 119K 120K 78643K 2393 0 0 UVM aobj 25 2K 2K 78643K 25 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 124 0 0 NDP 14 0K 0K 78643K 40 0 0 temp 177 3539K 3608K 78643K 37685 0 0 kqueue 0 0K 0K 78643K 9 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 28 0 21 1 0 1 1 0 8 0 rtpcb 80 65 0 63 1 0 1 1 0 8 0 rtentry 112 133 0 86 2 0 2 2 0 8 0 unpcb 120 289 0 277 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 95 0 95 1 1 0 1 0 8 0 tcpcb 544 242 0 238 2 0 2 2 0 8 1 ipq 40 2 0 2 1 1 0 1 0 8 0 ipqe 40 8 0 8 1 1 0 1 0 8 0 inpcb 280 721 0 711 5 1 4 4 0 8 3 rttmr 72 2 0 2 1 1 0 1 0 8 0 nd6 48 16 0 11 1 0 1 1 0 8 0 ppxss 1128 7 0 7 2 2 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 540 0 297 18 2 16 16 0 8 0 art_table 32 541 0 297 3 0 3 3 0 8 0 art_node 16 132 0 87 1 0 1 1 0 8 0 sysvmsgpl 40 22 0 14 1 0 1 1 0 8 0 semapl 112 140 0 130 1 0 1 1 0 8 0 shmpl 112 23 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2277 0 882 46 0 46 46 0 8 0 ffsino 240 2277 0 882 83 0 83 83 0 8 0 nchpl 144 3635 0 2033 61 0 61 61 0 8 0 uvmvnodes 72 2726 0 0 50 0 50 50 0 8 0 vnodes 208 2726 0 0 144 0 144 144 0 8 0 namei 1024 10697 0 10697 1 0 1 1 0 8 1 vcpupl 1984 12 0 0 2 0 2 2 0 8 0 vmpool 520 12 0 0 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 10544 0 10544 13 10 3 7 0 8 3 plimitpl 152 57 0 50 1 0 1 1 0 8 0 sigapl 432 763 0 750 2 0 2 2 0 8 0 futexpl 56 15220 0 15220 1 0 1 1 0 8 1 knotepl 112 177 0 158 1 0 1 1 0 8 0 kqueuepl 104 175 0 173 1 0 1 1 0 8 0 pipepl 112 484 0 465 4 3 1 2 0 8 0 fdescpl 424 764 0 750 2 0 2 2 0 8 0 filepl 120 6126 0 6029 7 2 5 5 0 8 2 lockfpl 104 226 0 225 1 0 1 1 0 8 0 lockfspl 48 77 0 76 1 0 1 1 0 8 0 sessionpl 112 22 0 12 1 0 1 1 0 8 0 pgrppl 48 24 0 14 1 0 1 1 0 8 0 ucredpl 96 639 0 631 1 0 1 1 0 8 0 zombiepl 144 750 0 750 1 0 1 1 0 8 1 processpl 864 779 0 750 4 0 4 4 0 8 0 procpl 632 1460 0 1424 4 0 4 4 0 8 0 sosppl 128 11 0 11 2 2 0 1 0 8 0 sockpl 384 1084 0 1061 10 3 7 7 0 8 4 mcl64k 65536 52 0 52 3 2 1 1 0 8 1 mcl16k 16384 8 0 8 3 2 1 1 0 8 1 mcl12k 12288 17 0 17 4 3 1 1 0 8 1 mcl9k 9216 9 0 9 2 2 0 1 0 8 0 mcl8k 8192 19 0 19 2 2 0 1 0 8 0 mcl4k 4096 58 0 58 3 2 1 1 0 8 1 mcl2k2 2112 2 0 2 1 1 0 1 0 8 0 mcl2k 2048 66443 0 66397 17 10 7 13 0 8 0 mtagpl 80 43 0 28 3 2 1 1 0 8 0 mbufpl 256 109802 0 109677 20 9 11 13 0 8 0 bufpl 256 9326 0 3370 373 0 373 373 0 8 0 anonpl 16 143906 0 127991 112 26 86 102 0 62 11 amapchunkpl 152 4641 0 4527 21 11 10 11 0 158 2 amappl16 192 6202 0 5143 106 44 62 72 0 8 8 amappl14 176 107 0 102 1 0 1 1 0 8 0 amappl13 168 120 0 118 1 0 1 1 0 8 0 amappl12 160 146 0 143 1 0 1 1 0 8 0 amappl11 152 227 0 215 1 0 1 1 0 8 0 amappl10 144 8 0 8 1 1 0 1 0 8 0 amappl9 136 651 0 645 1 0 1 1 0 8 0 amappl8 128 236 0 212 1 0 1 1 0 8 0 amappl7 120 50 0 45 1 0 1 1 0 8 0 amappl6 112 231 0 222 1 0 1 1 0 8 0 amappl5 104 351 0 340 1 0 1 1 0 8 0 amappl4 96 858 0 829 1 0 1 1 0 8 0 amappl3 88 306 0 299 1 0 1 1 0 8 0 amappl2 80 5159 0 5092 3 1 2 3 0 8 0 amappl1 72 23783 0 23371 26 16 10 20 0 8 0 amappl 80 1793 0 1748 2 0 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 24 0 0 1 0 1 1 0 8 0 uaddrrnd 24 776 0 750 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 776 0 750 1 0 1 1 0 8 0 vmmpekpl 168 8777 0 8745 2 0 2 2 0 8 0 vmmpepl 168 102755 0 100628 157 27 130 134 0 357 34 vmsppl 272 763 0 750 2 1 1 2 0 8 0 pdppl 4096 1558 0 1512 8 1 7 7 0 8 0 pvpl 32 332746 0 313806 241 35 206 236 0 265 31 pmappl 200 775 0 750 2 0 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 541 0 33 15 0 15 15 0 8 0