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 *229022 7799 0 0 0x4000000 1K syz-executor.0 36435 85139 0 0x14000 0x200 0 reaper 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(ffffffff822092b2,ffffffff82200f5e,3b3,ffffffff821c2a59) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000a99000,1,fffffd8065ac0858) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff8000229c9008,1,ffff8000229c90d8,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000b22800,240404,ffff800000b22858,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000b22800) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000a99000,ffff800000b22800,ffff8000229c9400,0) at in_ifinit+0x1cf sys/netinet/in.c:645 in_ioctl_sifaddr(8020690c,ffff8000229c93f0,ffff800000a99000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:372 in_ioctl(8020690c,ffff8000229c93f0,ffff800000a99000,1) at in_ioctl+0x1e7 sys/netinet/in.c:243 ifioctl(fffffd806f6d7900,8020690c,ffff8000229c93f0,ffff800020ab0c70) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0c70,ffff8000229c9508,ffff8000229c9550) at sys_ioctl+0x5b9 syscall(ffff8000229c95d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000229c95d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,1788b883010) at Xsyscall+0x128 end of kernel end trace frame: 0x17afc188720, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic kernel diagnostic assertion "ifa == rt->rt_ifa" failed: file "/syzkaller/managers/multicore/kernel/sys/netinet6/nd6.c", line 947 ddb{1}> 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(ffffffff822092b2,ffffffff82200f5e,3b3,ffffffff821c2a59) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000a99000,1,fffffd8065ac0858) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff8000229c9008,1,ffff8000229c90d8,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000b22800,240404,ffff800000b22858,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000b22800) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000a99000,ffff800000b22800,ffff8000229c9400,0) at in_ifinit+0x1cf sys/netinet/in.c:645 in_ioctl_sifaddr(8020690c,ffff8000229c93f0,ffff800000a99000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:372 in_ioctl(8020690c,ffff8000229c93f0,ffff800000a99000,1) at in_ioctl+0x1e7 sys/netinet/in.c:243 ifioctl(fffffd806f6d7900,8020690c,ffff8000229c93f0,ffff800020ab0c70) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0c70,ffff8000229c9508,ffff8000229c9550) at sys_ioctl+0x5b9 syscall(ffff8000229c95d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000229c95d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,1788b883010) at Xsyscall+0x128 end of kernel end trace frame: 0x17afc188720, count: -14 ddb{1}> show registers rdi 0xffffffff815a92f7 db_enter+0x17 rsi 0x81fa __ALIGN_SIZE+0x71fa rbp 0xffff8000229c8d40 rbx 0xffff8000229c8df0 rdx 0x81fb __ALIGN_SIZE+0x71fb rcx 0xffff80002138a000 rax 0xffff80002138a000 r8 0xffffffff821269af kprintf+0x16f r9 0x1 r10 0x25 r11 0x59494f641d4387a2 r12 0x3000000008 r13 0xffff8000229c8d50 r14 0x100 r15 0x1 rip 0xffffffff815a92f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000229c8d30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=229022 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0ee8,0xffffffff8266aad8 process=0xffff800020adc700 user=0xffff8000229c4000, vmspace=0xfffffd807f00ab80 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 7799 405975 76196 0 2 0 syz-executor.0 * 7799 229022 76196 0 7 0x4000000 syz-executor.0 65093 498913 62709 0 3 0x82 nanosleep syz-executor.1 83078 429139 1 0 3 0x100083 ttyin getty 76196 405271 62709 0 3 0x82 nanosleep syz-executor.0 1934 472103 0 0 3 0x14200 bored sosplice 62709 239824 28387 0 3 0x82 thrsleep syz-fuzzer 62709 217588 28387 0 3 0x4000082 nanosleep syz-fuzzer 62709 318607 28387 0 3 0x4000082 thrsleep syz-fuzzer 62709 161796 28387 0 3 0x4000082 thrsleep syz-fuzzer 62709 248994 28387 0 3 0x4000082 thrsleep syz-fuzzer 62709 338971 28387 0 3 0x4000082 kqread syz-fuzzer 62709 426010 28387 0 3 0x4000082 thrsleep syz-fuzzer 62709 270209 28387 0 3 0x4000082 thrsleep syz-fuzzer 62709 318199 28387 0 3 0x4000082 thrsleep syz-fuzzer 62709 479537 28387 0 3 0x4000082 thrsleep syz-fuzzer 62709 25921 28387 0 3 0x4000082 thrsleep syz-fuzzer 28387 13502 29690 0 3 0x10008a pause ksh 29690 242982 68745 0 3 0x92 select sshd 68745 502258 1 0 3 0x80 select sshd 31433 13204 52310 74 3 0x100092 bpf pflogd 52310 116850 1 0 3 0x80 netio pflogd 21292 48742 34082 73 3 0x100090 kqread syslogd 34082 232165 1 0 3 0x100082 netio syslogd 23057 41284 1 77 3 0x100090 poll dhclient 8646 154753 1 0 3 0x80 poll dhclient 53250 297810 0 0 2 0x14200 zerothread 32193 73837 0 0 3 0x14200 aiodoned aiodoned 38121 380415 0 0 3 0x14200 syncer update 75302 67029 0 0 3 0x14200 cleaner cleaner 85139 36435 0 0 7 0x14200 reaper 13544 305778 0 0 3 0x14200 pgdaemon pagedaemon 35878 30031 0 0 3 0x14200 bored crynlk 29946 345252 0 0 3 0x14200 bored crypto 30053 361552 0 0 3 0x40014200 acpi0 acpi0 73581 224721 0 0 3 0x40014200 idle1 61399 407546 0 0 3 0x14200 bored softnet 32744 490502 0 0 2 0x14200 systqmp 94383 165660 0 0 3 0x14200 bored systq 35038 9532 0 0 3 0x40014200 bored softclock 68561 290592 0 0 3 0x40014200 idle0 24055 327596 0 0 3 0x14200 bored smr 1 384179 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 7799 (syz-executor.0) thread 0xffff800020ab0c70 (229022) exclusive rwlock netlock r = 0 (0xffffffff824895c8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 in_ioctl_sifaddr+0x69 #2 in_ioctl+0x1e7 sys/netinet/in.c:243 #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 (0xffffffff82663580) #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{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9595 7327K 7846K 78643K 14308 0 0 pcb 13 8K 8K 78643K 378 0 0 rtable 101 4K 4K 78643K 1231 0 0 ifaddr 80 17K 18K 78643K 404 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1564 0 0 iov 0 0K 32K 78643K 367 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1220 77K 77K 78643K 3115 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 23 0 0 VM map 26 13K 13K 78643K 28 0 0 sem 12 0K 0K 78643K 449 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 1495 0 0 sigio 0 0K 0K 78643K 8 0 0 proc 61 63K 95K 78643K 966 0 0 subproc 32 2K 2K 78643K 187 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 158 0 0 in_multi 31 2K 2K 78643K 224 0 0 ether_multi 1 0K 0K 78643K 18 0 0 mrt 0 0K 0K 78643K 10 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 120 530K 530K 78643K 120 0 0 exec 0 0K 1K 78643K 488 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 170 211K 215K 78643K 6524 0 0 UVM aobj 130 9K 9K 78643K 136 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 345 0 0 NDP 19 0K 0K 78643K 124 0 0 temp 214 3564K 4200K 78643K 65873 0 0 kqueue 0 0K 0K 78643K 23 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 32 0 28 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 193 0 191 1 0 1 1 0 8 0 rtentry 112 200 0 161 2 0 2 2 0 8 0 unpcb 120 877 0 865 4 3 1 2 0 8 0 syncache 264 13 0 13 5 5 0 1 0 8 0 tcpqe 32 65 0 65 4 4 0 1 0 8 0 tcpcb 544 680 0 676 5 4 1 2 0 8 0 inpcb 280 3114 0 3106 6 4 2 3 0 8 0 rttmr 72 3 0 2 3 2 1 1 0 8 0 nd6 48 30 0 25 1 0 1 1 0 8 0 pkpcb 40 8 0 8 5 4 1 1 0 8 1 ppxss 1128 55 0 55 7 6 1 1 0 8 1 pffrag 232 31 0 31 8 7 1 1 0 482 1 pffrnode 88 31 0 31 8 7 1 1 0 8 1 pffrent 40 655 0 655 8 7 1 1 0 8 1 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 122 0 76 1 0 1 1 0 8 0 pfstkey 112 122 0 76 2 0 2 2 0 8 0 pfstate 328 122 0 76 5 0 5 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 901 0 650 21 3 18 18 0 8 1 art_table 32 902 0 650 3 0 3 3 0 8 0 art_node 16 199 0 161 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 5 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 447 0 437 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 4372 0 2960 46 0 46 46 0 8 0 ffsino 272 4372 0 2960 95 0 95 95 0 8 0 nchpl 144 6887 0 5290 61 0 61 61 0 8 0 uvmvnodes 72 5421 0 0 99 0 99 99 0 8 0 vnodes 208 5421 0 0 286 0 286 286 0 8 0 namei 1024 28095 0 28095 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 24 0 0 3 0 3 3 0 8 0 vmpool 552 26 0 2 2 0 2 2 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 20034 0 20034 16 15 1 5 0 8 1 plimitpl 152 155 0 147 1 0 1 1 0 8 0 sigapl 432 1667 0 1652 3 1 2 3 0 8 0 futexpl 56 39626 0 39626 1 0 1 1 0 8 1 knotepl 112 383 0 364 3 2 1 2 0 8 0 kqueuepl 104 442 0 440 1 0 1 1 0 8 0 pipepl 112 1102 0 1083 4 3 1 2 0 8 0 fdescpl 488 1668 0 1652 3 0 3 3 0 8 0 filepl 152 19303 0 19202 13 7 6 8 0 8 2 lockfpl 104 779 0 778 1 0 1 1 0 8 0 lockfspl 48 238 0 237 1 0 1 1 0 8 0 sessionpl 112 28 0 17 1 0 1 1 0 8 0 pgrppl 48 50 0 39 1 0 1 1 0 8 0 ucredpl 96 5601 0 5592 1 0 1 1 0 8 0 zombiepl 144 1652 0 1651 1 0 1 1 0 8 0 processpl 896 1684 0 1651 4 0 4 4 0 8 0 procpl 632 5221 0 5177 5 0 5 5 0 8 1 srpgc 64 15 0 15 7 7 0 1 0 8 0 sosppl 128 30 0 30 5 4 1 1 0 8 1 sockpl 384 4247 0 4225 20 16 4 8 0 8 1 mcl64k 65536 22 0 0 3 0 3 3 0 8 0 mcl16k 16384 9 0 0 2 0 2 2 0 8 0 mcl12k 12288 16 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 18 0 0 3 1 2 3 0 8 0 mcl4k 4096 15 0 0 2 0 2 2 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 184 0 0 22 0 22 22 0 8 0 mtagpl 80 38 0 0 1 0 1 1 0 8 0 mbufpl 256 468 0 0 29 0 29 29 0 8 0 bufpl 256 10328 0 3270 442 0 442 442 0 8 0 anonpl 16 234494 0 213533 134 41 93 100 0 124 6 amapchunkpl 152 12575 0 12401 34 26 8 14 0 158 0 amappl16 192 9744 0 8585 118 51 67 80 0 8 8 amappl15 184 62 0 62 2 2 0 1 0 8 0 amappl14 176 210 0 201 1 0 1 1 0 8 0 amappl13 168 489 0 486 1 0 1 1 0 8 0 amappl12 160 162 0 162 3 3 0 1 0 8 0 amappl11 152 249 0 234 1 0 1 1 0 8 0 amappl10 144 369 0 362 1 0 1 1 0 8 0 amappl9 136 766 0 759 1 0 1 1 0 8 0 amappl8 128 344 0 297 2 0 2 2 0 8 0 amappl7 120 429 0 422 1 0 1 1 0 8 0 amappl6 112 236 0 226 1 0 1 1 0 8 0 amappl5 104 377 0 363 1 0 1 1 0 8 0 amappl4 96 2365 0 2324 3 1 2 2 0 8 0 amappl3 88 176 0 169 1 0 1 1 0 8 0 amappl2 80 12052 0 11970 3 1 2 3 0 8 0 amappl1 72 47653 0 47197 25 15 10 20 0 8 0 amappl 80 5670 0 5605 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 135 0 6 3 0 3 3 0 8 0 uaddrrnd 24 1694 0 1652 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1694 0 1652 1 0 1 1 0 8 0 vmmpekpl 168 18447 0 18411 3 0 3 3 0 8 0 vmmpepl 168 222680 0 220205 227 79 148 152 0 357 36 vmsppl 368 1667 0 1651 2 0 2 2 0 8 0 pdppl 4096 3395 0 3330 10 1 9 9 0 8 0 pvpl 32 632281 0 608913 293 73 220 231 0 265 27 pmappl 232 1693 0 1653 4 1 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 645 0 12 19 0 19 19 0 8 0