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 *523772 74081 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(ffffffff821e5822,ffffffff821c6feb,3b3,ffffffff821a0236) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000a82800,1,fffffd803cfddaf8) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800017951fc8,1,ffff800017952098,0) at rtrequest+0x9be sys/net/route.c:973 rt_ifa_add(ffff800000af0d00,240404,ffff800000af0d58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000af0d00) at rt_ifa_addlocal+0x149 sys/net/route.c:1242 in_ifinit(ffff800000a82800,ffff800000af0d00,ffff8000179523c0,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff8000179523b0,ffff800000a82800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff8000179523b0,ffff800000a82800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd803784fc30,8020690c,ffff8000179523b0,ffff8000ffff3b40) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff3b40,ffff8000179524c8,ffff800017952510) at sys_ioctl+0x5b9 syscall(ffff800017952590) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,11cb920d010) at Xsyscall+0x128 end of kernel end trace frame: 0x11f4d245400, 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(ffffffff821e5822,ffffffff821c6feb,3b3,ffffffff821a0236) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000a82800,1,fffffd803cfddaf8) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800017951fc8,1,ffff800017952098,0) at rtrequest+0x9be sys/net/route.c:973 rt_ifa_add(ffff800000af0d00,240404,ffff800000af0d58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000af0d00) at rt_ifa_addlocal+0x149 sys/net/route.c:1242 in_ifinit(ffff800000a82800,ffff800000af0d00,ffff8000179523c0,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff8000179523b0,ffff800000a82800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff8000179523b0,ffff800000a82800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd803784fc30,8020690c,ffff8000179523b0,ffff8000ffff3b40) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff3b40,ffff8000179524c8,ffff800017952510) at sys_ioctl+0x5b9 syscall(ffff800017952590) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,11cb920d010) at Xsyscall+0x128 end of kernel end trace frame: 0x11f4d245400, count: -14 ddb> show registers rdi 0xffffffff81605487 db_enter+0x17 rsi 0x4a06 __ALIGN_SIZE+0x3a06 rbp 0xffff800017951d00 rbx 0xffff800017951db0 rdx 0x4a07 __ALIGN_SIZE+0x3a07 rcx 0xffff80001797f000 rax 0xffff80001797f000 r8 0xffff800017951cc0 r9 0x1 r10 0xffff800000a60bc0 r11 0x861479a6c71265c2 r12 0x3000000008 r13 0xffff800017951d10 r14 0x100 r15 0x1 rip 0xffffffff81605488 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800017951cf0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=523772 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff3160,0xffffffff8255d430 process=0xffff8000ffff66d0 user=0xffff80001794d000, vmspace=0xfffffd803f013880 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 74081 384884 82329 0 2 0 syz-executor.0 *74081 523772 82329 0 7 0x4000000 syz-executor.0 82499 175653 92263 0 3 0x82 nanosleep syz-executor.1 82329 53448 92263 0 2 0x482 syz-executor.0 3743 147229 0 0 3 0x14200 bored sosplice 92263 465015 89095 0 3 0x82 thrsleep syz-fuzzer 92263 297649 89095 0 3 0x4000082 thrsleep syz-fuzzer 92263 302751 89095 0 3 0x4000082 thrsleep syz-fuzzer 92263 256171 89095 0 3 0x4000082 thrsleep syz-fuzzer 92263 517900 89095 0 3 0x4000082 thrsleep syz-fuzzer 92263 505751 89095 0 3 0x4000082 thrsleep syz-fuzzer 92263 48111 89095 0 3 0x4000082 thrsleep syz-fuzzer 92263 37162 89095 0 3 0x4000082 kqread syz-fuzzer 89095 338901 70057 0 3 0x10008a pause ksh 70057 307222 56916 0 3 0x92 select sshd 81953 462883 1 0 3 0x100083 ttyin getty 56916 400931 1 0 3 0x80 select sshd 41284 291462 47143 73 3 0x100090 kqread syslogd 47143 141315 1 0 3 0x100082 netio syslogd 60059 132727 1 77 3 0x100090 poll dhclient 65587 186384 1 0 3 0x80 poll dhclient 65182 445527 0 0 2 0x14200 zerothread 29534 254627 0 0 3 0x14200 aiodoned aiodoned 78818 307365 0 0 3 0x14200 syncer update 66612 17806 0 0 3 0x14200 cleaner cleaner 68280 67845 0 0 3 0x14200 reaper reaper 67121 126049 0 0 3 0x14200 pgdaemon pagedaemon 82731 28631 0 0 3 0x14200 bored crynlk 88900 494210 0 0 3 0x14200 bored crypto 99098 320435 0 0 3 0x40014200 acpi0 acpi0 46916 88086 0 0 3 0x14200 bored softnet 19115 448247 0 0 2 0x14200 systqmp 50194 410356 0 0 3 0x14200 bored systq 78392 447421 0 0 3 0x40014200 bored softclock 36141 156004 0 0 3 0x40014200 idle0 90434 326613 0 0 3 0x14200 bored smr 1 138364 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 9569 6376K 7062K 78643K 13678 0 0 pcb 13 8K 9K 78643K 371 0 0 rtable 122 9K 9K 78643K 1514 0 0 ifaddr 83 17K 18K 78643K 330 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 1597 0 0 iov 0 0K 24K 78643K 415 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1222 77K 78K 78643K 5548 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 14 0 0 VM map 8 2K 2K 78643K 12 0 0 sem 12 0K 1K 78643K 367 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 3270 0 0 sigio 1 0K 0K 78643K 25 0 0 proc 49 38K 55K 78643K 1073 0 0 subproc 32 2K 2K 78643K 289 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 100 0 0 in_multi 25 1K 2K 78643K 322 0 0 ether_multi 1 0K 0K 78643K 15 0 0 mrt 0 0K 0K 78643K 12 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 550 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 126 71K 73K 78643K 8389 0 0 UVM aobj 57 5K 5K 78643K 75 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 377 0 0 NDP 20 0K 0K 78643K 118 0 0 temp 226 3544K 4183K 78643K 30870 0 0 kqueue 0 0K 0K 78643K 14 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 60 0 54 1 0 1 1 0 8 0 rtpcb 80 306 0 304 1 0 1 1 0 8 0 rtentry 112 338 0 293 2 0 2 2 0 8 0 unpcb 120 4213 0 4203 3 2 1 2 0 8 0 syncache 264 23 0 23 7 6 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 109 0 109 3 2 1 1 0 8 1 tcpcb 544 2200 0 2196 3 2 1 2 0 8 0 ipq 40 8 0 8 4 3 1 1 0 8 1 ipqe 40 274 0 274 4 3 1 1 0 8 1 inpcb 280 11576 0 11566 13 11 2 4 0 8 1 rttmr 72 4 0 4 3 2 1 1 0 8 1 nd6 48 50 0 46 1 0 1 1 0 8 0 pkpcb 40 6 0 6 2 1 1 1 0 8 1 ppxss 1128 27 0 27 10 9 1 1 0 8 1 art_heap8 4096 4 0 3 4 3 1 3 0 8 0 art_heap4 256 1452 0 1227 25 10 15 15 0 8 0 art_table 32 1456 0 1230 2 0 2 2 0 8 0 art_node 16 332 0 290 1 0 1 1 0 8 0 sysvmsgpl 40 78 0 39 2 1 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 365 0 355 1 0 1 1 0 8 0 shmpl 112 73 0 18 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 9804 0 8405 46 0 46 46 0 8 0 ffsino 240 9804 0 8405 83 0 83 83 0 8 0 nchpl 144 13994 0 13544 60 41 19 60 0 8 0 uvmvnodes 72 6457 0 0 118 0 118 118 0 8 0 vnodes 208 6457 0 0 340 0 340 340 0 8 0 namei 1024 57704 0 57704 2 1 1 1 0 8 1 vcpupl 1984 6 0 0 1 0 1 1 0 8 0 vmpool 520 10 0 4 2 1 1 1 0 8 0 scsiplug 64 3 0 3 3 3 0 1 0 8 0 scxspl 192 39550 0 39550 20 18 2 7 0 8 2 plimitpl 152 186 0 179 1 0 1 1 0 8 0 sigapl 432 3396 0 3383 2 0 2 2 0 8 0 futexpl 56 151621 0 151621 2 1 1 1 0 8 1 knotepl 112 3356 0 3337 3 2 1 3 0 8 0 kqueuepl 104 7893 0 7891 1 0 1 1 0 8 0 pipepl 112 4220 0 4201 5 4 1 2 0 8 0 fdescpl 424 3397 0 3383 2 0 2 2 0 8 0 filepl 120 57538 0 57440 14 10 4 6 0 8 0 lockfpl 104 839 0 838 1 0 1 1 0 8 0 lockfspl 48 336 0 335 1 0 1 1 0 8 0 sessionpl 112 32 0 22 1 0 1 1 0 8 0 pgrppl 48 46 0 36 1 0 1 1 0 8 0 ucredpl 96 19593 0 19585 1 0 1 1 0 8 0 zombiepl 144 3384 0 3383 1 0 1 1 0 8 0 processpl 864 3413 0 3383 4 0 4 4 0 8 0 procpl 632 6963 0 6925 4 0 4 4 0 8 0 sosppl 128 932 0 932 2 1 1 1 0 8 1 sockpl 384 16116 0 16094 30 26 4 8 0 8 1 mcl64k 65536 345 0 345 4 3 1 1 0 8 1 mcl16k 16384 1427 0 1427 3 2 1 1 0 8 1 mcl12k 12288 46 0 46 7 6 1 1 0 8 1 mcl9k 9216 23 0 23 10 9 1 1 0 8 1 mcl8k 8192 100 0 100 4 3 1 1 0 8 1 mcl4k 4096 158 0 158 3 2 1 1 0 8 1 mcl2k2 2112 15 0 15 7 6 1 1 0 8 1 mcl2k 2048 83519 0 83470 24 16 8 14 0 8 0 mtagpl 80 56 0 47 7 6 1 1 0 8 0 mbufpl 256 185259 0 185096 50 29 21 21 0 8 3 bufpl 256 15173 0 8668 407 0 407 407 0 8 0 anonpl 16 359365 0 340727 140 54 86 94 0 62 8 amapchunkpl 152 14926 0 14806 41 35 6 16 0 158 0 amappl16 192 17520 0 16443 138 76 62 66 0 8 7 amappl15 184 2 0 2 2 2 0 1 0 8 0 amappl14 176 1276 0 1271 1 0 1 1 0 8 0 amappl13 168 306 0 304 1 0 1 1 0 8 0 amappl12 160 771 0 770 2 1 1 1 0 8 0 amappl11 152 375 0 364 1 0 1 1 0 8 0 amappl10 144 55 0 52 1 0 1 1 0 8 0 amappl9 136 1312 0 1306 1 0 1 1 0 8 0 amappl8 128 838 0 804 3 1 2 2 0 8 0 amappl7 120 123 0 116 1 0 1 1 0 8 0 amappl6 112 344 0 334 1 0 1 1 0 8 0 amappl5 104 1218 0 1209 1 0 1 1 0 8 0 amappl4 96 4785 0 4759 1 0 1 1 0 8 0 amappl3 88 1230 0 1220 1 0 1 1 0 8 0 amappl2 80 25611 0 25540 3 1 2 3 0 8 0 amappl1 72 72360 0 71955 27 18 9 20 0 8 0 amappl 80 7435 0 7392 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 74 0 18 1 0 1 1 0 8 0 uaddrrnd 24 3407 0 3383 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3407 0 3383 1 0 1 1 0 8 0 vmmpekpl 168 25876 0 25844 2 0 2 2 0 8 0 vmmpepl 168 412784 0 410632 238 104 134 161 0 357 33 vmsppl 272 3396 0 3383 2 1 1 2 0 8 0 pdppl 4096 6820 0 6780 7 1 6 6 0 8 0 pvpl 32 1035555 0 1013721 357 150 207 306 0 265 25 pmappl 200 3406 0 3387 3 1 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 626 0 75 16 0 16 16 0 8 0