panic: kernel diagnostic assertion "ifa == rt->rt_ifa" failed: file "/syzkaller/managers/multicore/kernel/sys/netinet6/nd6.c", line 947 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *468544 78228 0 0 0x4000000 0 syz-executor.0 146538 36645 0 0 0x480 1 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(ffffffff822085d0,ffffffff82200bdf,3b3,ffffffff821c2eb0) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000b92000,1,fffffd80647d5238) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800022b9b608,1,ffff800022b9b6d8,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000ba7d00,240404,ffff800000ba7d58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000ba7d00) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000b92000,ffff800000ba7d00,ffff800022b9ba00,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800022b9b9f0,ffff800000b92000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800022b9b9f0,ffff800000b92000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd8061b52640,8020690c,ffff800022b9b9f0,ffff800020acec78) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020acec78,ffff800022b9bb08,ffff800022b9bb50) at sys_ioctl+0x5b9 syscall(ffff800022b9bbd0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022b9bbd0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,7b7ed5f8010) at Xsyscall+0x128 end of kernel end trace frame: 0x7ba7aae3850, 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic kernel diagnostic assertion "ifa == rt->rt_ifa" failed: file "/syzkaller/managers/multicore/kernel/sys/netinet6/nd6.c", line 947 ddb{0}> 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(ffffffff822085d0,ffffffff82200bdf,3b3,ffffffff821c2eb0) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000b92000,1,fffffd80647d5238) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800022b9b608,1,ffff800022b9b6d8,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000ba7d00,240404,ffff800000ba7d58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000ba7d00) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000b92000,ffff800000ba7d00,ffff800022b9ba00,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800022b9b9f0,ffff800000b92000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800022b9b9f0,ffff800000b92000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd8061b52640,8020690c,ffff800022b9b9f0,ffff800020acec78) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020acec78,ffff800022b9bb08,ffff800022b9bb50) at sys_ioctl+0x5b9 syscall(ffff800022b9bbd0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022b9bbd0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,7b7ed5f8010) at Xsyscall+0x128 end of kernel end trace frame: 0x7ba7aae3850, count: -14 ddb{0}> show registers rdi 0xffffffff81397877 db_enter+0x17 rsi 0x457e __ALIGN_SIZE+0x357e rbp 0xffff800022b9b340 rbx 0xffff800022b9b3f0 rdx 0x457f __ALIGN_SIZE+0x357f rcx 0xffff8000231fa000 rax 0xffff8000231fa000 r8 0xffffffff821776bf kprintf+0x16f r9 0x1 r10 0x25 r11 0x5d1df0c80ecc4b7a r12 0x3000000008 r13 0xffff800022b9b350 r14 0x100 r15 0x1 rip 0xffffffff81397878 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022b9b330 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=468544 stat=onproc flags process=0 proc=4000000 pri=74, usrpri=74, nice=20 forw=0xffffffffffffffff, list=0xffff800020acea00,0xffff800020acef00 process=0xffff800020a8b510 user=0xffff800022b96000, vmspace=0xfffffd807f00b000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 78228 367831 18269 0 2 0 syz-executor.0 *78228 468544 18269 0 7 0x4000000 syz-executor.0 78228 504953 18269 0 2 0x4000080 syz-executor.0 78228 51113 18269 0 3 0x4000080 fsleep syz-executor.0 78228 438939 18269 0 3 0x4000080 fsleep syz-executor.0 36645 146538 30947 0 7 0x480 syz-executor.1 36645 460046 30947 0 3 0x4000080 fsleep syz-executor.1 36645 265675 30947 0 3 0x4000080 lockf syz-executor.1 36645 438128 30947 0 3 0x4000080 fsleep syz-executor.1 30947 409885 30418 0 3 0x82 nanosleep syz-executor.1 37726 500297 1 0 3 0x100083 ttyin getty 18269 4498 30418 0 2 0x482 syz-executor.0 4794 335273 0 0 3 0x14200 acct acct 82853 322817 0 0 3 0x14200 bored sosplice 30418 474307 41535 0 3 0x82 thrsleep syz-fuzzer 30418 269443 41535 0 2 0x4000002 syz-fuzzer 30418 476584 41535 0 3 0x4000082 thrsleep syz-fuzzer 30418 434274 41535 0 3 0x4000082 thrsleep syz-fuzzer 30418 71242 41535 0 3 0x4000082 kqread syz-fuzzer 30418 66010 41535 0 3 0x4000082 thrsleep syz-fuzzer 30418 317074 41535 0 3 0x4000082 thrsleep syz-fuzzer 30418 74513 41535 0 3 0x4000082 thrsleep syz-fuzzer 30418 406641 41535 0 3 0x4000082 thrsleep syz-fuzzer 30418 255490 41535 0 2 0x4000482 syz-fuzzer 41535 504487 97138 0 3 0x10008a pause ksh 97138 83068 10177 0 3 0x92 select sshd 10177 312037 1 0 3 0x80 select sshd 18052 32749 5474 74 3 0x100092 bpf pflogd 5474 197992 1 0 3 0x80 netio pflogd 51991 27359 22533 73 3 0x100090 kqread syslogd 22533 285253 1 0 3 0x100082 netio syslogd 17053 340520 1 77 3 0x100090 poll dhclient 84653 218135 1 0 3 0x80 poll dhclient 64909 231428 0 0 2 0x14200 zerothread 46471 3753 0 0 3 0x14200 aiodoned aiodoned 63158 94660 0 0 3 0x14200 syncer update 21506 466343 0 0 3 0x14200 cleaner cleaner 45978 427397 0 0 3 0x14200 reaper reaper 52481 21519 0 0 3 0x14200 pgdaemon pagedaemon 11966 191654 0 0 3 0x14200 bored crynlk 20733 239179 0 0 3 0x14200 bored crypto 54659 47970 0 0 3 0x40014200 acpi0 acpi0 87350 175282 0 0 3 0x40014200 idle1 84618 182545 0 0 3 0x14200 bored softnet 82222 231605 0 0 3 0x14200 bored systqmp 90848 517788 0 0 3 0x14200 bored systq 43671 70001 0 0 3 0x40014200 bored softclock 26991 368177 0 0 3 0x40014200 idle0 13075 472637 0 0 3 0x14200 bored smr 1 340434 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 78228 (syz-executor.0) thread 0xffff800020acec78 (468544) exclusive rwlock netlock r = 0 (0xffffffff824d2b38) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 in_ioctl_sifaddr+0x69 #2 in_ioctl+0x1e7 sys/netinet/in.c:231 #3 ifioctl+0xb64 sys/net/if.c:2202 #4 sys_ioctl+0x5b9 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #6 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82672458) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:83 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:555 #2 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9601 6458K 11255K 78643K 22243 0 0 pcb 13 12K 14K 78643K 1032 0 0 rtable 129 14K 16K 78643K 3318 0 0 ifaddr 95 25K 29K 78643K 1099 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1757 0 0 iov 0 0K 32K 78643K 1088 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1212 76K 77K 78643K 5532 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 62 0 0 VM map 42 21K 21K 78643K 67 0 0 sem 12 0K 0K 78643K 3197 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 5151 0 0 sigio 0 0K 0K 78643K 58 0 0 proc 62 63K 83K 78643K 1984 0 0 subproc 32 2K 2K 78643K 459 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 1K 78643K 1215 0 0 in_multi 28 1K 2K 78643K 610 0 0 ether_multi 1 0K 0K 78643K 72 0 0 mrt 0 0K 0K 78643K 23 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 84 371K 371K 78643K 84 0 0 exec 0 0K 1K 78643K 1072 0 0 pfkey data 0 0K 0K 78643K 2 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 182 340K 341K 78643K 22520 0 0 UVM aobj 130 4K 4K 78643K 130 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 2K 78643K 1122 0 0 NDP 22 0K 0K 78643K 335 0 0 temp 244 3567K 4205K 78643K 189370 0 0 kqueue 0 0K 0K 78643K 57 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 100 0 91 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 461 0 459 1 0 1 1 0 8 0 rtentry 112 491 0 444 2 0 2 2 0 8 0 unpcb 120 3659 0 3644 4 2 2 2 0 8 1 syncache 264 27 0 27 12 12 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 55 0 55 9 9 0 1 0 8 0 tcpcb 544 2715 0 2711 22 21 1 14 0 8 0 inpcb 280 8289 0 8277 46 37 9 13 0 8 8 rttmr 72 6 0 6 5 4 1 1 0 8 1 ip6q 72 2 0 2 2 2 0 1 0 8 0 ip6af 40 5 0 5 2 2 0 1 0 8 0 nd6 48 73 0 69 1 0 1 1 0 8 0 pkpcb 40 31 0 31 10 10 0 1 0 8 0 swfcl 56 6 0 0 1 0 1 1 0 8 0 ppxss 1128 182 0 182 32 31 1 1 0 8 1 pffrag 232 188 0 187 30 29 1 1 0 482 0 pffrnode 88 187 0 186 30 29 1 1 0 8 0 pffrent 40 6249 0 6223 30 29 1 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 480 0 434 1 0 1 1 0 8 0 pfstkey 112 481 0 435 2 0 2 2 0 8 0 pfstate 328 481 0 435 7 2 5 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 10 0 8 9 7 2 4 0 8 0 art_heap4 256 2065 0 1813 39 23 16 17 0 8 0 art_table 32 2075 0 1821 3 0 3 3 0 8 0 art_node 16 487 0 443 1 0 1 1 0 8 0 sysvmsgpl 40 34 0 16 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 3195 0 3185 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 9347 0 7918 48 1 47 47 0 8 0 ffsino 272 9347 0 7918 96 0 96 96 0 8 0 nchpl 144 17285 0 16785 61 41 20 61 0 8 0 uvmvnodes 72 6649 0 0 121 0 121 121 0 8 0 vnodes 208 6649 0 0 350 0 350 350 0 8 0 namei 1024 64546 0 64546 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 40 0 0 5 0 5 5 0 8 0 vmpool 552 65 0 25 5 2 3 3 0 8 0 scsiplug 64 5 0 5 4 4 0 1 0 8 0 scxspl 192 61276 0 61276 47 46 1 7 0 8 1 plimitpl 152 511 0 503 1 0 1 1 0 8 0 sigapl 432 5279 0 5263 3 1 2 3 0 8 0 futexpl 56 127135 0 127131 2 1 1 1 0 8 0 knotepl 112 1370 0 1350 9 8 1 3 0 8 0 kqueuepl 104 1342 0 1339 5 4 1 4 0 8 0 pipepl 112 2970 0 2951 2 0 2 2 0 8 0 fdescpl 488 5280 0 5263 3 0 3 3 0 8 0 filepl 152 48080 0 47972 54 41 13 14 0 8 8 lockfpl 104 13154 0 13151 1 0 1 1 0 8 0 lockfspl 48 1818 0 1816 1 0 1 1 0 8 0 sessionpl 112 46 0 35 1 0 1 1 0 8 0 pgrppl 48 103 0 92 1 0 1 1 0 8 0 ucredpl 96 5137 0 5128 1 0 1 1 0 8 0 zombiepl 144 5264 0 5264 1 0 1 1 0 8 1 processpl 896 5298 0 5264 4 0 4 4 0 8 0 procpl 632 20391 0 20341 11 6 5 6 0 8 0 srpgc 64 33 0 33 17 17 0 1 0 8 0 sosppl 128 79 0 77 23 22 1 1 0 8 0 sockpl 384 12511 0 12483 61 49 12 22 0 8 8 mcl64k 65536 278 0 0 32 28 4 32 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 41 0 0 2 0 2 2 0 8 0 mcl9k 9216 29 0 0 2 1 1 2 0 8 0 mcl8k 8192 24 0 0 3 1 2 3 0 8 0 mcl4k 4096 34 0 0 4 1 3 3 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 190 0 0 22 4 18 22 0 8 0 mtagpl 80 94 0 0 2 1 1 2 0 8 0 mbufpl 256 1348 0 0 49 0 49 49 0 8 0 bufpl 256 25166 0 18118 441 0 441 441 0 8 0 anonpl 16 664470 0 643397 261 171 90 101 0 124 1 amapchunkpl 152 45718 0 45558 93 86 7 20 0 158 0 amappl16 192 31091 0 29858 282 219 63 75 0 8 1 amappl15 184 640 0 638 5 4 1 1 0 8 0 amappl14 176 729 0 725 1 0 1 1 0 8 0 amappl13 168 422 0 422 9 9 0 1 0 8 0 amappl12 160 604 0 601 1 0 1 1 0 8 0 amappl11 152 473 0 458 1 0 1 1 0 8 0 amappl10 144 663 0 657 1 0 1 1 0 8 0 amappl9 136 2654 0 2646 1 0 1 1 0 8 0 amappl8 128 2223 0 2180 3 1 2 2 0 8 0 amappl7 120 801 0 792 1 0 1 1 0 8 0 amappl6 112 461 0 446 1 0 1 1 0 8 0 amappl5 104 986 0 971 1 0 1 1 0 8 0 amappl4 96 5165 0 5130 1 0 1 1 0 8 0 amappl3 88 1241 0 1232 1 0 1 1 0 8 0 amappl2 80 40814 0 40726 3 1 2 3 0 8 0 amappl1 72 133337 0 132875 25 15 10 20 0 8 0 amappl 80 21093 0 21024 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 129 0 0 3 0 3 3 0 8 0 uaddrrnd 24 5345 0 5263 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5345 0 5263 1 0 1 1 0 8 0 vmmpekpl 168 50709 0 50666 3 0 3 3 0 8 0 vmmpepl 168 696972 0 694330 570 435 135 158 0 357 17 vmsppl 368 5279 0 5263 2 0 2 2 0 8 0 pdppl 4096 10697 0 10616 14 3 11 11 0 8 0 pvpl 32 1781882 0 1759582 537 331 206 222 0 265 17 pmappl 232 5344 0 5288 6 2 4 4 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 745 0 92 19 0 19 19 0 8 0