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 *322615 26378 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(ffffffff821e55b9,ffffffff821c9419,3b3,ffffffff821a0fc4) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000a9b000,1,fffffd802e91fee8) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800017765c68,1,ffff800017765d38,0) at rtrequest+0x9be sys/net/route.c:973 rt_ifa_add(ffff800000a96200,240404,ffff800000a96258,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000a96200) at rt_ifa_addlocal+0x149 sys/net/route.c:1242 in_ifinit(ffff800000a9b000,ffff800000a96200,ffff800017766060,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800017766050,ffff800000a9b000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800017766050,ffff800000a9b000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd802c7e87b8,8020690c,ffff800017766050,ffff8000ffff3650) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff3650,ffff800017766168,ffff8000177661b0) at sys_ioctl+0x5b9 syscall(ffff800017766230) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,17bd4de6010) at Xsyscall+0x128 end of kernel end trace frame: 0x17e82b7e8e0, 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(ffffffff821e55b9,ffffffff821c9419,3b3,ffffffff821a0fc4) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000a9b000,1,fffffd802e91fee8) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800017765c68,1,ffff800017765d38,0) at rtrequest+0x9be sys/net/route.c:973 rt_ifa_add(ffff800000a96200,240404,ffff800000a96258,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000a96200) at rt_ifa_addlocal+0x149 sys/net/route.c:1242 in_ifinit(ffff800000a9b000,ffff800000a96200,ffff800017766060,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800017766050,ffff800000a9b000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800017766050,ffff800000a9b000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd802c7e87b8,8020690c,ffff800017766050,ffff8000ffff3650) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff3650,ffff800017766168,ffff8000177661b0) at sys_ioctl+0x5b9 syscall(ffff800017766230) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,17bd4de6010) at Xsyscall+0x128 end of kernel end trace frame: 0x17e82b7e8e0, count: -14 ddb> show registers rdi 0xffffffff81295cd7 db_enter+0x17 rsi 0x47e6 __ALIGN_SIZE+0x37e6 rbp 0xffff8000177659a0 rbx 0xffff800017765a50 rdx 0x47e7 __ALIGN_SIZE+0x37e7 rcx 0xffff80001573b000 rax 0xffff80001573b000 r8 0xffff800017765960 r9 0x1 r10 0xffff800000a64940 r11 0xd180654ed91fd493 r12 0x3000000008 r13 0xffff8000177659b0 r14 0x100 r15 0x1 rip 0xffffffff81295cd8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800017765990 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=322615 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff33d8,0xffffffff82557510 process=0xffff8000148a30f8 user=0xffff800017761000, vmspace=0xfffffd803f014cc0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 26378 417741 27472 0 2 0 syz-executor.0 *26378 322615 27472 0 7 0x4000000 syz-executor.0 30955 155673 64367 0 2 0 syz-executor.1 30955 40531 64367 0 3 0x4000080 piperd syz-executor.1 27472 315227 96694 0 3 0x82 nanosleep syz-executor.0 64367 90266 96694 0 2 0x482 syz-executor.1 4503 413421 0 0 3 0x14200 bored sosplice 9431 145420 1 0 3 0x100083 ttyin getty 96694 146712 17801 0 3 0x82 thrsleep syz-fuzzer 96694 370939 17801 0 3 0x4000082 thrsleep syz-fuzzer 96694 491060 17801 0 3 0x4000082 thrsleep syz-fuzzer 96694 106450 17801 0 3 0x4000082 thrsleep syz-fuzzer 96694 487221 17801 0 3 0x4000082 thrsleep syz-fuzzer 96694 202944 17801 0 3 0x4000082 kqread syz-fuzzer 96694 183063 17801 0 3 0x4000082 thrsleep syz-fuzzer 17801 446206 10927 0 3 0x10008a pause ksh 10927 206492 72138 0 3 0x92 select sshd 72138 8011 1 0 3 0x80 select sshd 79857 178881 4896 73 3 0x100090 kqread syslogd 4896 170343 1 0 3 0x100082 netio syslogd 31472 143081 1 77 3 0x100090 poll dhclient 65321 266360 1 0 3 0x80 poll dhclient 82448 221243 0 0 2 0x14200 zerothread 95103 256362 0 0 3 0x14200 aiodoned aiodoned 17732 213898 0 0 3 0x14200 syncer update 54290 115299 0 0 3 0x14200 cleaner cleaner 67033 428643 0 0 3 0x14200 reaper reaper 6848 67417 0 0 3 0x14200 pgdaemon pagedaemon 93868 418681 0 0 3 0x14200 bored crynlk 1445 220608 0 0 3 0x14200 bored crypto 34609 507633 0 0 3 0x40014200 acpi0 acpi0 77804 432444 0 0 3 0x14200 bored softnet 79472 166932 0 0 3 0x14200 bored systqmp 42674 359869 0 0 3 0x14200 bored systq 69480 264611 0 0 3 0x40014200 bored softclock 94421 365034 0 0 3 0x40014200 idle0 46420 170873 0 0 3 0x14200 bored smr 1 224368 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 6496K 7972K 78643K 21162 0 0 pcb 13 8K 8K 78643K 543 0 0 rtable 103 6K 6K 78643K 1431 0 0 ifaddr 76 16K 17K 78643K 403 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 121 0 0 iov 0 0K 32K 78643K 550 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1217 76K 77K 78643K 4694 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 36 0 0 VM map 2 0K 0K 78643K 14 0 0 sem 12 1K 1K 78643K 183 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 2211 0 0 sigio 0 0K 0K 78643K 25 0 0 proc 49 38K 62K 78643K 1014 0 0 subproc 32 2K 2K 78643K 204 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 923 0 0 in_multi 22 1K 2K 78643K 233 0 0 ether_multi 1 0K 0K 78643K 19 0 0 mrt 0 0K 0K 78643K 17 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 595 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 22K 39K 78643K 6388 0 0 UVM aobj 87 3K 3K 78643K 92 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 563 0 0 NDP 18 0K 0K 78643K 125 0 0 temp 212 3540K 4174K 78643K 68469 0 0 kqueue 0 0K 0K 78643K 11 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 53 0 49 1 0 1 1 0 8 0 rtpcb 80 179 0 177 1 0 1 1 0 8 0 rtentry 112 253 0 216 2 0 2 2 0 8 0 unpcb 120 1580 0 1569 3 2 1 2 0 8 0 syncache 264 14 0 14 7 7 0 1 0 8 0 tcpqe 32 8339 0 8339 4 4 0 2 0 8 0 tcpcb 544 1759 0 1755 2 1 1 2 0 8 0 ipq 40 19 0 18 8 7 1 1 0 8 0 ipqe 40 43 0 42 8 7 1 1 0 8 0 inpcb 280 4219 0 4210 7 5 2 2 0 8 1 rttmr 72 5 0 5 4 4 0 1 0 8 0 ip6q 72 1 0 0 1 0 1 1 0 8 0 nd6 48 31 0 27 4 3 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 45 0 45 11 10 1 1 0 8 1 art_heap8 4096 3 0 2 3 2 1 3 0 8 0 art_heap4 256 1028 0 825 30 17 13 15 0 8 0 art_table 32 1031 0 827 2 0 2 2 0 8 0 art_node 16 249 0 216 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 8 2 1 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 181 0 171 1 0 1 1 0 8 0 shmpl 112 90 0 5 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5168 0 3770 46 0 46 46 0 8 0 ffsino 240 5168 0 3770 83 0 83 83 0 8 0 nchpl 144 8626 0 7031 61 0 61 61 0 8 0 uvmvnodes 72 6359 0 0 116 0 116 116 0 8 0 vnodes 208 6359 0 0 335 0 335 335 0 8 0 namei 1024 30586 0 30586 4 3 1 1 0 8 1 vmpool 520 12 0 12 4 4 0 1 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 30600 0 30600 21 19 2 7 0 8 2 plimitpl 152 210 0 203 1 0 1 1 0 8 0 sigapl 432 2353 0 2339 2 0 2 2 0 8 0 futexpl 56 63968 0 63968 2 1 1 1 0 8 1 knotepl 112 584 0 565 1 0 1 1 0 8 0 kqueuepl 104 533 0 531 1 0 1 1 0 8 0 pipepl 112 1228 0 1207 6 5 1 2 0 8 0 fdescpl 424 2354 0 2339 2 0 2 2 0 8 0 filepl 120 21228 0 21128 10 6 4 5 0 8 0 lockfpl 104 834 0 833 1 0 1 1 0 8 0 lockfspl 48 285 0 284 1 0 1 1 0 8 0 sessionpl 112 28 0 18 1 0 1 1 0 8 0 pgrppl 48 48 0 38 1 0 1 1 0 8 0 ucredpl 96 2472 0 2465 1 0 1 1 0 8 0 zombiepl 144 2340 0 2340 3 2 1 1 0 8 1 processpl 864 2370 0 2340 4 0 4 4 0 8 0 procpl 632 5093 0 5055 4 0 4 4 0 8 0 sosppl 128 26 0 26 6 6 0 1 0 8 0 sockpl 384 5996 0 5974 16 13 3 6 0 8 0 mcl64k 65536 445 0 445 3 2 1 1 0 8 1 mcl16k 16384 66 0 66 9 8 1 1 0 8 1 mcl12k 12288 73 0 73 5 4 1 1 0 8 1 mcl9k 9216 41 0 41 14 13 1 1 0 8 1 mcl8k 8192 108 0 108 7 6 1 1 0 8 1 mcl4k 4096 259 0 259 3 2 1 1 0 8 1 mcl2k2 2112 26 0 26 8 8 0 1 0 8 0 mcl2k 2048 58003 0 57955 30 23 7 23 0 8 0 mtagpl 80 71 0 63 5 4 1 1 0 8 0 mbufpl 256 119903 0 119812 65 57 8 33 0 8 0 bufpl 256 15329 0 8965 398 0 398 398 0 8 0 anonpl 16 329530 0 314060 144 65 79 81 0 62 13 amapchunkpl 152 12316 0 12209 46 40 6 18 0 158 1 amappl16 192 16465 0 15559 163 109 54 58 0 8 8 amappl15 184 111 0 111 2 2 0 1 0 8 0 amappl14 176 372 0 369 2 1 1 1 0 8 0 amappl13 168 67 0 67 2 2 0 1 0 8 0 amappl12 160 621 0 616 1 0 1 1 0 8 0 amappl11 152 615 0 604 1 0 1 1 0 8 0 amappl10 144 337 0 333 1 0 1 1 0 8 0 amappl9 136 716 0 709 1 0 1 1 0 8 0 amappl8 128 273 0 233 4 2 2 2 0 8 0 amappl7 120 396 0 388 1 0 1 1 0 8 0 amappl6 112 595 0 581 1 0 1 1 0 8 0 amappl5 104 1119 0 1108 1 0 1 1 0 8 0 amappl4 96 2587 0 2556 1 0 1 1 0 8 0 amappl3 88 453 0 448 1 0 1 1 0 8 0 amappl2 80 17500 0 17427 4 2 2 3 0 8 0 amappl1 72 51928 0 51491 26 16 10 20 0 8 0 amappl 80 5517 0 5480 1 0 1 1 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 91 0 5 2 0 2 2 0 8 0 uaddrrnd 24 2366 0 2339 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2366 0 2339 1 0 1 1 0 8 0 vmmpekpl 168 17466 0 17443 2 0 2 2 0 8 0 vmmpepl 168 293207 0 291114 255 151 104 124 0 357 12 vmsppl 272 2353 0 2339 3 2 1 2 0 8 0 pdppl 4096 4738 0 4702 6 1 5 6 0 8 0 pvpl 32 855998 0 837269 365 176 189 290 0 265 31 pmappl 200 2365 0 2351 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 651 0 126 16 0 16 16 0 8 0