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 449295 18768 0 0 0 0 syz-executor.0 * 55898 18768 0 0 0x4000000 1K 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(ffffffff82207051,ffffffff821fd613,3b3,ffffffff821bf6fb) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000a67000,1,fffffd80628dccb8) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800023b6d1a8,1,ffff800023b6d278,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000aed900,240404,ffff800000aed958,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000aed900) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000a67000,ffff800000aed900,ffff800023b6d5a0,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800023b6d590,ffff800000a67000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800023b6d590,ffff800000a67000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806237b020,8020690c,ffff800023b6d590,ffff800020b34c78) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020b34c78,ffff800023b6d6a8,ffff800023b6d6f0) at sys_ioctl+0x5b9 syscall(ffff800023b6d770) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b6d770) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,93e677cb010) at Xsyscall+0x128 end of kernel end trace frame: 0x941388689b0, 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(ffffffff82207051,ffffffff821fd613,3b3,ffffffff821bf6fb) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000a67000,1,fffffd80628dccb8) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800023b6d1a8,1,ffff800023b6d278,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000aed900,240404,ffff800000aed958,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000aed900) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000a67000,ffff800000aed900,ffff800023b6d5a0,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800023b6d590,ffff800000a67000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800023b6d590,ffff800000a67000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806237b020,8020690c,ffff800023b6d590,ffff800020b34c78) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020b34c78,ffff800023b6d6a8,ffff800023b6d6f0) at sys_ioctl+0x5b9 syscall(ffff800023b6d770) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b6d770) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,93e677cb010) at Xsyscall+0x128 end of kernel end trace frame: 0x941388689b0, count: -14 ddb{1}> show registers rdi 0xffffffff8101a1f7 db_enter+0x17 rsi 0x8dc4 __ALIGN_SIZE+0x7dc4 rbp 0xffff800023b6cee0 rbx 0xffff800023b6cf90 rdx 0x8dc5 __ALIGN_SIZE+0x7dc5 rcx 0xffff800020b68000 rax 0xffff800020b68000 r8 0xffffffff812be63f kprintf+0x16f r9 0x1 r10 0x25 r11 0xaa0c07748c7afa89 r12 0x3000000008 r13 0xffff800023b6cef0 r14 0x100 r15 0x1 rip 0xffffffff8101a1f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023b6ced0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=55898 stat=onproc flags process=0 proc=4000000 pri=76, usrpri=76, nice=20 forw=0xffffffffffffffff, list=0xffff800020b35168,0xffffffff8262b978 process=0xffff800020a8ae10 user=0xffff800023b68000, vmspace=0xfffffd807f00bcf0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 18768 449295 13626 0 7 0 syz-executor.0 *18768 55898 13626 0 7 0x4000000 syz-executor.0 64583 449213 4285 0 3 0x80 nanosleep syz-executor.1 64583 398638 4285 0 3 0x4000080 kqread syz-executor.1 64583 157916 4285 0 3 0x4000080 fsleep syz-executor.1 50652 173056 0 0 3 0x14200 acct acct 4285 345401 53220 0 3 0x82 nanosleep syz-executor.1 22113 283209 1 0 3 0x100083 ttyin getty 32157 59268 0 0 3 0x14200 bored sosplice 13626 442760 53220 0 3 0x82 nanosleep syz-executor.0 53220 348656 1007 0 3 0x82 nanosleep syz-fuzzer 53220 79087 1007 0 3 0x4000082 nanosleep syz-fuzzer 53220 265731 1007 0 3 0x4000082 thrsleep syz-fuzzer 53220 459634 1007 0 3 0x4000082 thrsleep syz-fuzzer 53220 184389 1007 0 3 0x4000082 thrsleep syz-fuzzer 53220 364454 1007 0 3 0x4000082 kqread syz-fuzzer 53220 26647 1007 0 3 0x4000082 thrsleep syz-fuzzer 53220 268027 1007 0 3 0x4000082 thrsleep syz-fuzzer 53220 80313 1007 0 3 0x4000082 thrsleep syz-fuzzer 53220 61743 1007 0 3 0x4000082 thrsleep syz-fuzzer 1007 165583 39005 0 3 0x10008a pause ksh 39005 346894 90424 0 3 0x92 select sshd 90424 188922 1 0 3 0x80 select sshd 89429 80748 6876 74 3 0x100092 bpf pflogd 6876 418774 1 0 3 0x80 netio pflogd 51127 401140 26667 73 3 0x100090 kqread syslogd 26667 486844 1 0 3 0x100082 netio syslogd 82695 75209 1 77 3 0x100090 poll dhclient 81399 262545 1 0 3 0x80 poll dhclient 10682 111850 0 0 3 0x14200 pgzero zerothread 3432 270185 0 0 3 0x14200 aiodoned aiodoned 53699 83446 0 0 3 0x14200 syncer update 18356 271966 0 0 3 0x14200 cleaner cleaner 36901 342444 0 0 3 0x14200 reaper reaper 3951 522544 0 0 3 0x14200 pgdaemon pagedaemon 9625 224015 0 0 3 0x14200 bored crynlk 99825 268558 0 0 3 0x14200 bored crypto 89043 117547 0 0 3 0x40014200 acpi0 acpi0 42314 240350 0 0 3 0x40014200 idle1 38856 191713 0 0 3 0x14200 bored softnet 94499 273416 0 0 2 0x14200 systqmp 83865 273136 0 0 3 0x14200 bored systq 50474 401655 0 0 3 0x40014200 bored softclock 81425 369464 0 0 3 0x40014200 idle0 71747 113311 0 0 3 0x14200 bored smr 1 112145 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 18768 (syz-executor.0) thread 0xffff800020b34c78 (55898) exclusive rwlock netlock r = 0 (0xffffffff824b9ff8) #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 (0xffffffff82646968) #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 9567 7184K 8020K 78643K 13403 0 0 pcb 13 12K 14K 78643K 259 0 0 rtable 101 3K 4K 78643K 823 0 0 ifaddr 73 16K 17K 78643K 292 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1501 0 0 iov 0 0K 28K 78643K 264 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1232 77K 78K 78643K 2209 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 13 0 0 VM map 10 5K 5K 78643K 11 0 0 sem 12 1K 1K 78643K 12 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 1075 0 0 sigio 0 0K 0K 78643K 20 0 0 proc 61 63K 95K 78643K 698 0 0 subproc 32 2K 2K 78643K 85 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 117 0 0 in_multi 19 1K 2K 78643K 133 0 0 ether_multi 1 0K 0K 78643K 13 0 0 mrt 1 0K 0K 78643K 11 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 342 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 139 108K 108K 78643K 4788 0 0 UVM aobj 69 4K 4K 78643K 69 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 234 0 0 NDP 16 0K 0K 78643K 82 0 0 temp 203 3560K 4200K 78643K 40411 0 0 kqueue 0 0K 0K 78643K 6 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 22 0 15 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 93 0 91 1 0 1 1 0 8 0 rtentry 112 132 0 92 2 0 2 2 0 8 0 unpcb 120 2516 0 2499 7 6 1 3 0 8 0 syncache 264 7 0 7 3 3 0 1 0 8 0 tcpcb 544 741 0 737 11 10 1 11 0 8 0 inpcb 280 1953 0 1945 20 19 1 13 0 8 0 rttmr 72 2 0 2 2 2 0 1 0 8 0 nd6 48 19 0 16 1 0 1 1 0 8 0 pkpcb 40 6 0 6 3 3 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 42 0 42 3 3 0 1 0 8 0 pffrag 232 33 0 33 5 5 0 1 0 482 0 pffrnode 88 33 0 33 5 5 0 1 0 8 0 pffrent 40 1172 0 1172 5 5 0 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 83 0 47 1 0 1 1 0 8 0 pfstkey 112 83 0 47 2 0 2 2 0 8 0 pfstate 328 83 0 47 6 0 6 6 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 570 0 371 16 2 14 15 0 8 0 art_table 32 571 0 371 2 0 2 2 0 8 0 art_node 16 130 0 91 1 0 1 1 0 8 0 sysvmsgpl 40 56 0 40 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 67 0 0 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3287 0 1885 46 0 46 46 0 8 0 ffsino 272 3287 0 1885 95 0 95 95 0 8 0 nchpl 144 5349 0 3741 61 0 61 61 0 8 0 uvmvnodes 72 3987 0 0 73 0 73 73 0 8 0 vnodes 208 3987 0 0 210 0 210 210 0 8 0 namei 1024 18833 0 18833 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 8 0 0 1 0 1 1 0 8 0 vmpool 552 9 0 1 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 15449 0 15449 14 13 1 7 0 8 1 plimitpl 152 108 0 100 1 0 1 1 0 8 0 sigapl 432 1267 0 1251 3 1 2 3 0 8 0 futexpl 56 29045 0 29044 1 0 1 1 0 8 0 knotepl 112 250 0 231 1 0 1 1 0 8 0 kqueuepl 104 381 0 376 4 3 1 4 0 8 0 pipepl 112 926 0 907 3 2 1 2 0 8 0 fdescpl 488 1268 0 1251 3 0 3 3 0 8 0 filepl 152 13723 0 13614 24 19 5 14 0 8 0 lockfpl 104 461 0 460 1 0 1 1 0 8 0 lockfspl 48 150 0 149 1 0 1 1 0 8 0 sessionpl 112 22 0 11 1 0 1 1 0 8 0 pgrppl 48 32 0 21 1 0 1 1 0 8 0 ucredpl 96 2633 0 2624 1 0 1 1 0 8 0 zombiepl 144 1251 0 1251 1 0 1 1 0 8 1 processpl 896 1285 0 1251 4 0 4 4 0 8 0 procpl 632 3805 0 3759 5 0 5 5 0 8 0 srpgc 64 7 0 7 2 2 0 1 0 8 0 sosppl 128 20 0 20 4 4 0 1 0 8 0 sockpl 384 4595 0 4568 34 30 4 22 0 8 1 mcl64k 65536 18 0 0 3 0 3 3 0 8 0 mcl16k 16384 12 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 7 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 159 0 0 19 0 19 19 0 8 0 mtagpl 80 54 0 0 2 0 2 2 0 8 0 mbufpl 256 468 0 0 26 0 26 26 0 8 0 bufpl 256 9566 0 2518 441 0 441 441 0 8 0 anonpl 16 162567 0 139983 112 17 95 95 0 124 3 amapchunkpl 152 8957 0 8755 36 25 11 14 0 158 2 amappl16 192 7296 0 6073 93 27 66 66 0 8 4 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 104 0 101 1 0 1 1 0 8 0 amappl13 168 43 0 43 1 1 0 1 0 8 0 amappl12 160 693 0 688 2 1 1 1 0 8 0 amappl11 152 277 0 262 1 0 1 1 0 8 0 amappl10 144 15 0 10 1 0 1 1 0 8 0 amappl9 136 666 0 659 1 0 1 1 0 8 0 amappl8 128 232 0 195 2 0 2 2 0 8 0 amappl7 120 55 0 47 1 0 1 1 0 8 0 amappl6 112 283 0 273 1 0 1 1 0 8 0 amappl5 104 864 0 846 1 0 1 1 0 8 0 amappl4 96 859 0 828 2 1 1 2 0 8 0 amappl3 88 966 0 958 1 0 1 1 0 8 0 amappl2 80 9085 0 9003 3 1 2 3 0 8 0 amappl1 72 38552 0 38103 25 15 10 20 0 8 0 amappl 80 4134 0 4077 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 68 0 0 2 0 2 2 0 8 0 uaddrrnd 24 1277 0 1251 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1277 0 1251 1 0 1 1 0 8 0 vmmpekpl 168 14665 0 14628 2 0 2 2 0 8 0 vmmpepl 168 166321 0 163811 162 45 117 138 0 357 7 vmsppl 368 1267 0 1251 2 0 2 2 0 8 0 pdppl 4096 2561 0 2512 8 1 7 7 0 8 0 pvpl 32 439063 0 412187 252 30 222 222 0 265 4 pmappl 232 1276 0 1252 2 0 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 638 0 16 18 0 18 18 0 8 0