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 *358646 93245 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(ffffffff821e4bdd,ffffffff821c796a,3b3,ffffffff8219e2c1) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000ac9800,1,fffffd803e1a7698) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800016984328,1,ffff8000169843f8,0) at rtrequest+0x9be sys/net/route.c:973 rt_ifa_add(ffff800000ae4a00,240404,ffff800000ae4a58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000ae4a00) at rt_ifa_addlocal+0x149 sys/net/route.c:1242 in_ifinit(ffff800000ac9800,ffff800000ae4a00,ffff800016984720,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800016984710,ffff800000ac9800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800016984710,ffff800000ac9800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd80363e2c08,8020690c,ffff800016984710,ffff800016b338c8) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff800016b338c8,ffff800016984828,ffff800016984870) at sys_ioctl+0x5b9 syscall(ffff8000169848f0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,3e4da7b010) at Xsyscall+0x128 end of kernel end trace frame: 0x406c6cb480, 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(ffffffff821e4bdd,ffffffff821c796a,3b3,ffffffff8219e2c1) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000ac9800,1,fffffd803e1a7698) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800016984328,1,ffff8000169843f8,0) at rtrequest+0x9be sys/net/route.c:973 rt_ifa_add(ffff800000ae4a00,240404,ffff800000ae4a58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000ae4a00) at rt_ifa_addlocal+0x149 sys/net/route.c:1242 in_ifinit(ffff800000ac9800,ffff800000ae4a00,ffff800016984720,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800016984710,ffff800000ac9800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800016984710,ffff800000ac9800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd80363e2c08,8020690c,ffff800016984710,ffff800016b338c8) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff800016b338c8,ffff800016984828,ffff800016984870) at sys_ioctl+0x5b9 syscall(ffff8000169848f0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,3e4da7b010) at Xsyscall+0x128 end of kernel end trace frame: 0x406c6cb480, count: -14 ddb> show registers rdi 0xffffffff81548b67 db_enter+0x17 rsi 0x4a12 __ALIGN_SIZE+0x3a12 rbp 0xffff800016984060 rbx 0xffff800016984110 rdx 0x4a13 __ALIGN_SIZE+0x3a13 rcx 0xffff800016b34000 rax 0xffff800016b34000 r8 0xffff800016984020 r9 0x1 r10 0xffff800000a56a00 r11 0x9735eed0af2b1ed7 r12 0x3000000008 r13 0xffff800016984070 r14 0x100 r15 0x1 rip 0xffffffff81548b68 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800016984050 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=358646 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff800016b329f8,0xffffffff8259f378 process=0xffff8000ffff7450 user=0xffff80001697f000, vmspace=0xfffffd803f014bb0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 93245 434624 50080 0 2 0 syz-executor.0 *93245 358646 50080 0 7 0x4000000 syz-executor.0 33172 58482 61221 0 2 0 syz-executor.1 33172 371122 61221 0 3 0x4000080 fsleep syz-executor.1 34252 237449 0 0 3 0x14200 acct acct 50080 100820 76798 0 3 0x82 nanosleep syz-executor.0 61221 446341 76798 0 2 0x482 syz-executor.1 15517 479818 0 0 3 0x14200 bored sosplice 839 41876 1 0 3 0x100083 ttyopn getty 76798 295721 2116 0 3 0x82 thrsleep syz-fuzzer 76798 158471 2116 0 3 0x4000082 thrsleep syz-fuzzer 76798 68395 2116 0 3 0x4000082 thrsleep syz-fuzzer 76798 68405 2116 0 3 0x4000082 thrsleep syz-fuzzer 76798 128706 2116 0 3 0x4000082 thrsleep syz-fuzzer 76798 431384 2116 0 3 0x4000082 kqread syz-fuzzer 76798 379597 2116 0 3 0x4000082 thrsleep syz-fuzzer 76798 333276 2116 0 3 0x4000082 thrsleep syz-fuzzer 2116 98982 19621 0 3 0x10008a pause ksh 19621 418219 93333 0 3 0x92 select sshd 93333 361919 1 0 3 0x80 select sshd 67634 177307 67553 73 3 0x100090 kqread syslogd 67553 413572 1 0 3 0x100082 netio syslogd 72827 510333 1 77 3 0x100090 poll dhclient 28469 65436 1 0 3 0x80 poll dhclient 93954 72094 0 0 2 0x14200 zerothread 81552 454870 0 0 3 0x14200 aiodoned aiodoned 63945 237086 0 0 3 0x14200 syncer update 43426 100597 0 0 3 0x14200 cleaner cleaner 39333 60923 0 0 3 0x14200 reaper reaper 93438 268483 0 0 3 0x14200 pgdaemon pagedaemon 58903 78388 0 0 3 0x14200 bored crynlk 58207 14954 0 0 3 0x14200 bored crypto 91944 158580 0 0 3 0x40014200 acpi0 acpi0 59798 438666 0 0 3 0x14200 bored softnet 98491 363874 0 0 2 0x14200 systqmp 37883 306108 0 0 3 0x14200 bored systq 543 200739 0 0 3 0x40014200 bored softclock 23946 223192 0 0 3 0x40014200 idle0 1302 71069 0 0 3 0x14200 bored smr 1 134281 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 9574 7019K 8629K 78643K 28301 0 0 pcb 13 10K 12K 78643K 605 0 0 rtable 117 8K 8K 78643K 2205 0 0 ifaddr 92 21K 22K 78643K 654 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 3353 0 0 iov 0 0K 20K 78643K 705 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1233 77K 78K 78643K 6171 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 2 0K 0K 78643K 23 0 0 sem 12 0K 1K 78643K 426 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 4706 0 0 sigio 0 0K 0K 78643K 136 0 0 proc 50 38K 63K 78643K 1456 0 0 subproc 32 2K 2K 78643K 391 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 211 0 0 in_multi 25 1K 2K 78643K 325 0 0 ether_multi 1 0K 0K 78643K 9 0 0 mrt 0 0K 0K 78643K 15 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 800 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 130 23K 31K 78643K 11843 0 0 UVM aobj 130 4K 5K 78643K 145 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 534 0 0 NDP 21 0K 1K 78643K 204 0 0 temp 234 3545K 4185K 78643K 79825 0 0 kqueue 0 0K 0K 78643K 28 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 77 0 72 1 0 1 1 0 8 0 rtpcb 80 280 0 269 1 0 1 1 0 8 0 rtentry 112 379 0 338 2 0 2 2 0 8 0 unpcb 120 1266 0 1256 2 1 1 2 0 8 0 syncache 264 20 0 20 9 9 0 1 0 8 0 tcpqe 32 6873 0 6873 4 4 0 1 0 8 0 tcpcb 544 896 0 892 2 1 1 2 0 8 0 ipq 40 20 0 19 8 7 1 1 0 8 0 ipqe 40 44 0 43 8 7 1 1 0 8 0 inpcb 280 3151 0 3142 32 30 2 13 0 8 1 rttmr 72 6 0 5 1 0 1 1 0 8 0 nd6 48 48 0 44 1 0 1 1 0 8 0 pkpcb 40 18 0 18 7 7 0 1 0 8 0 swfcl 56 8 0 0 1 0 1 1 0 8 0 ppxss 1128 77 0 77 12 11 1 1 0 8 1 art_heap8 4096 5 0 3 5 3 2 3 0 8 0 art_heap4 256 1590 0 1354 26 11 15 17 0 8 0 art_table 32 1595 0 1357 6 3 3 3 0 8 0 art_node 16 377 0 339 1 0 1 1 0 8 0 sysvmsgpl 40 20 0 7 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 424 0 414 1 0 1 1 0 8 0 shmpl 112 143 0 15 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 7641 0 6230 46 0 46 46 0 8 0 ffsino 240 7641 0 6230 84 0 84 84 0 8 0 nchpl 144 14891 0 13280 61 0 61 61 0 8 0 uvmvnodes 72 8679 0 0 158 0 158 158 0 8 0 vnodes 208 8679 0 0 457 0 457 457 0 8 0 namei 1024 51351 0 51351 4 3 1 1 0 8 1 vmpool 520 21 0 21 6 6 0 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 50181 0 50181 25 24 1 7 0 8 1 plimitpl 152 312 0 305 1 0 1 1 0 8 0 sigapl 432 4815 0 4801 2 0 2 2 0 8 0 futexpl 56 98373 0 98372 2 1 1 1 0 8 0 knotepl 112 806 0 787 1 0 1 1 0 8 0 kqueuepl 104 707 0 705 1 0 1 1 0 8 0 pipepl 112 3976 0 3953 18 16 2 2 0 8 0 fdescpl 424 4816 0 4801 2 0 2 2 0 8 0 filepl 120 34937 0 34819 30 25 5 11 0 8 1 lockfpl 104 1406 0 1402 1 0 1 1 0 8 0 lockfspl 48 517 0 513 1 0 1 1 0 8 0 sessionpl 112 39 0 29 1 0 1 1 0 8 0 pgrppl 48 67 0 57 1 0 1 1 0 8 0 ucredpl 96 3032 0 3025 1 0 1 1 0 8 0 zombiepl 144 4801 0 4801 3 2 1 1 0 8 1 processpl 864 4832 0 4801 4 0 4 4 0 8 0 procpl 632 10053 0 10013 4 0 4 4 0 8 0 sosppl 128 41 0 41 11 11 0 1 0 8 0 sockpl 384 4764 0 4734 42 38 4 21 0 8 1 mcl64k 65536 2512 0 2512 176 171 5 33 0 8 5 mcl16k 16384 36 0 36 13 13 0 1 0 8 0 mcl12k 12288 74 0 74 12 11 1 1 0 8 1 mcl9k 9216 51 0 51 12 11 1 1 0 8 1 mcl8k 8192 136 0 136 8 7 1 1 0 8 1 mcl4k 4096 328 0 328 5 4 1 1 0 8 1 mcl2k2 2112 33 0 33 15 14 1 1 0 8 1 mcl2k 2048 60393 0 60345 19 12 7 16 0 8 0 mtagpl 80 179 0 159 6 5 1 1 0 8 0 mbufpl 256 130673 0 130534 113 101 12 26 0 8 0 bufpl 256 23665 0 14986 543 0 543 543 0 8 0 anonpl 16 517860 0 501985 167 87 80 82 0 62 12 amapchunkpl 152 22166 0 22053 57 50 7 15 0 158 0 amappl16 192 27179 0 26259 188 134 54 58 0 8 8 amappl15 184 116 0 115 1 0 1 1 0 8 0 amappl14 176 1299 0 1296 2 1 1 1 0 8 0 amappl13 168 446 0 445 1 0 1 1 0 8 0 amappl12 160 709 0 704 1 0 1 1 0 8 0 amappl11 152 831 0 820 1 0 1 1 0 8 0 amappl10 144 331 0 329 3 2 1 1 0 8 0 amappl9 136 1382 0 1376 1 0 1 1 0 8 0 amappl8 128 907 0 866 2 0 2 2 0 8 0 amappl7 120 450 0 442 1 0 1 1 0 8 0 amappl6 112 790 0 779 1 0 1 1 0 8 0 amappl5 104 1016 0 1004 1 0 1 1 0 8 0 amappl4 96 4086 0 4061 1 0 1 1 0 8 0 amappl3 88 2475 0 2468 1 0 1 1 0 8 0 amappl2 80 36586 0 36511 4 2 2 3 0 8 0 amappl1 72 91232 0 90803 28 19 9 20 0 8 0 amappl 80 10646 0 10607 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 144 0 15 3 0 3 3 0 8 0 uaddrrnd 24 4837 0 4801 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4837 0 4801 1 0 1 1 0 8 0 vmmpekpl 168 32799 0 32774 2 0 2 2 0 8 0 vmmpepl 168 568348 0 566244 288 180 108 125 0 357 16 vmsppl 272 4815 0 4801 5 4 1 2 0 8 0 pdppl 4096 9680 0 9644 6 1 5 6 0 8 0 pvpl 32 1410269 0 1390786 473 229 244 293 0 265 83 pmappl 200 4836 0 4822 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1014 0 333 21 1 20 21 0 8 0