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 518081 54806 0 0 0 0 syz-executor.0 * 94769 54806 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(ffffffff82209b2a,ffffffff82201692,3b3,ffffffff821c38e6) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000c64800,1,fffffd8066def4e0) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800024bdad68,1,ffff800024bdae38,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000b3c500,240404,ffff800000b3c558,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000b3c500) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000c64800,ffff800000b3c500,ffff800024bdb160,0) at in_ifinit+0x1cf sys/netinet/in.c:645 in_ioctl_sifaddr(8020690c,ffff800024bdb150,ffff800000c64800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:372 in_ioctl(8020690c,ffff800024bdb150,ffff800000c64800,1) at in_ioctl+0x1e7 sys/netinet/in.c:243 ifioctl(fffffd8067848330,8020690c,ffff800024bdb150,ffff800020a88c80) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020a88c80,ffff800024bdb268,ffff800024bdb2b0) at sys_ioctl+0x5b9 syscall(ffff800024bdb330) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024bdb330) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,419456a8010) at Xsyscall+0x128 end of kernel end trace frame: 0x41b4c1f4010, 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(ffffffff82209b2a,ffffffff82201692,3b3,ffffffff821c38e6) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000c64800,1,fffffd8066def4e0) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800024bdad68,1,ffff800024bdae38,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000b3c500,240404,ffff800000b3c558,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000b3c500) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000c64800,ffff800000b3c500,ffff800024bdb160,0) at in_ifinit+0x1cf sys/netinet/in.c:645 in_ioctl_sifaddr(8020690c,ffff800024bdb150,ffff800000c64800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:372 in_ioctl(8020690c,ffff800024bdb150,ffff800000c64800,1) at in_ioctl+0x1e7 sys/netinet/in.c:243 ifioctl(fffffd8067848330,8020690c,ffff800024bdb150,ffff800020a88c80) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020a88c80,ffff800024bdb268,ffff800024bdb2b0) at sys_ioctl+0x5b9 syscall(ffff800024bdb330) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800024bdb330) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,419456a8010) at Xsyscall+0x128 end of kernel end trace frame: 0x41b4c1f4010, count: -14 ddb{1}> show registers rdi 0xffffffff8185a0c7 db_enter+0x17 rsi 0x9c85 __ALIGN_SIZE+0x8c85 rbp 0xffff800024bdaaa0 rbx 0xffff800024bdab50 rdx 0x9c86 __ALIGN_SIZE+0x8c86 rcx 0xffff80002236e000 rax 0xffff80002236e000 r8 0xffffffff8125e62f kprintf+0x16f r9 0x1 r10 0x25 r11 0xb806ebe97aaea253 r12 0x3000000008 r13 0xffff800024bdaab0 r14 0x100 r15 0x1 rip 0xffffffff8185a0c8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800024bdaa90 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=94769 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020a88518,0xffffffff82629478 process=0xffff800020add880 user=0xffff800024bd6000, vmspace=0xfffffd807f00a000 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 54806 518081 99940 0 7 0 syz-executor.0 *54806 94769 99940 0 7 0x4000000 syz-executor.0 84785 485756 47513 0 2 0 syz-executor.1 84785 285459 47513 0 3 0x4000080 netio syz-executor.1 47513 161746 91715 0 3 0x82 nanosleep syz-executor.1 99940 437962 91715 0 3 0x82 nanosleep syz-executor.0 80756 287261 1 0 3 0x100083 ttyin getty 3356 374790 0 0 3 0x14200 acct acct 93976 237224 0 0 3 0x14200 bored sosplice 91715 211589 83538 0 3 0x82 kqread syz-fuzzer 91715 33700 83538 0 3 0x4000082 thrsleep syz-fuzzer 91715 165666 83538 0 3 0x4000082 thrsleep syz-fuzzer 91715 375148 83538 0 3 0x4000082 thrsleep syz-fuzzer 91715 17505 83538 0 3 0x4000082 thrsleep syz-fuzzer 91715 300624 83538 0 3 0x4000082 thrsleep syz-fuzzer 91715 45130 83538 0 3 0x4000082 thrsleep syz-fuzzer 91715 351646 83538 0 3 0x4000082 thrsleep syz-fuzzer 91715 393676 83538 0 3 0x4000082 thrsleep syz-fuzzer 91715 332709 83538 0 3 0x4000082 thrsleep syz-fuzzer 83538 485493 22208 0 3 0x10008a pause ksh 22208 142495 11463 0 3 0x92 select sshd 11463 242766 1 0 3 0x80 select sshd 35142 43078 31000 74 3 0x100092 bpf pflogd 31000 115867 1 0 3 0x80 netio pflogd 73647 55538 6446 73 3 0x100090 kqread syslogd 6446 448926 1 0 3 0x100082 netio syslogd 16208 479045 1 77 3 0x100090 poll dhclient 50239 193146 1 0 3 0x80 poll dhclient 18362 492767 0 0 2 0x14200 zerothread 97551 169057 0 0 3 0x14200 aiodoned aiodoned 30622 469500 0 0 3 0x14200 syncer update 40547 40383 0 0 3 0x14200 cleaner cleaner 32715 516022 0 0 3 0x14200 reaper reaper 45935 248336 0 0 3 0x14200 pgdaemon pagedaemon 79728 115272 0 0 3 0x14200 bored crynlk 78761 61119 0 0 3 0x14200 bored crypto 27252 360095 0 0 3 0x40014200 acpi0 acpi0 30208 291980 0 0 3 0x40014200 idle1 90342 521379 0 0 3 0x14200 bored softnet 8731 14102 0 0 2 0x14200 systqmp 24016 83252 0 0 3 0x14200 bored systq 77797 13104 0 0 3 0x40014200 bored softclock 42307 489145 0 0 3 0x40014200 idle0 76885 517803 0 0 3 0x14200 bored smr 1 338154 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 54806 (syz-executor.0) thread 0xffff800020a88c80 (94769) exclusive rwlock netlock r = 0 (0xffffffff8251cb48) #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 (0xffffffff82629028) #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 9620 6470K 8859K 78643K 31828 0 0 pcb 13 10K 12K 78643K 1196 0 0 rtable 200 19K 19K 78643K 4199 0 0 ifaddr 117 30K 34K 78643K 1180 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1864 0 0 iov 1 12K 24K 78643K 1240 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1242 78K 78K 78643K 8522 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 80 0 0 VM map 62 31K 31K 78643K 77 0 0 sem 12 0K 1K 78643K 1398 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 5599 0 0 sigio 0 0K 0K 78643K 64 0 0 proc 62 63K 95K 78643K 2662 0 0 subproc 32 2K 2K 78643K 671 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 452 0 0 in_multi 42 2K 3K 78643K 813 0 0 ether_multi 1 0K 0K 78643K 53 0 0 mrt 1 0K 0K 78643K 32 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 150 662K 662K 78643K 150 0 0 exec 0 0K 1K 78643K 1281 0 0 pfkey data 0 0K 0K 78643K 1 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 212 475K 475K 78643K 22681 0 0 UVM aobj 130 8K 8K 78643K 133 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 1259 0 0 NDP 23 0K 1K 78643K 385 0 0 temp 250 3565K 4205K 78643K 172353 0 0 kqueue 0 0K 0K 78643K 33 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 119 0 113 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 499 0 497 1 0 1 1 0 8 0 rtentry 112 824 0 742 3 0 3 3 0 8 0 unpcb 120 3362 0 3341 4 3 1 2 0 8 0 syncache 264 25 0 25 12 12 0 1 0 8 0 tcpqe 32 46 0 46 6 6 0 1 0 8 0 tcpcb 544 2812 0 2808 36 35 1 14 0 8 0 inpcb 280 7703 0 7695 45 44 1 9 0 8 0 rttmr 72 9 0 9 8 8 0 1 0 8 0 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 4 0 4 1 1 0 1 0 8 0 nd6 48 119 0 115 1 0 1 1 0 8 0 pkpcb 40 43 0 43 19 18 1 1 0 8 1 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 143 0 143 30 29 1 1 0 8 1 pffrag 232 119 0 119 34 33 1 1 0 482 1 pffrnode 88 119 0 119 34 33 1 1 0 8 1 pffrent 40 4007 0 4007 34 33 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 617 0 578 1 0 1 1 0 8 0 pfstkey 112 617 0 578 3 1 2 3 0 8 0 pfstate 328 617 0 578 9 3 6 9 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 10 0 4 8 2 6 6 0 8 0 art_heap4 256 3271 0 2970 43 22 21 21 0 8 0 art_table 32 3281 0 2974 3 0 3 3 0 8 0 art_node 16 814 0 754 1 0 1 1 0 8 0 sysvmsgpl 40 46 0 31 1 0 1 1 0 8 0 semapl 112 1392 0 1382 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 10557 0 9139 46 0 46 46 0 8 0 ffsino 272 10557 0 9139 96 1 95 96 0 8 0 nchpl 144 18987 0 18490 61 40 21 61 0 8 0 uvmvnodes 72 6408 0 0 117 0 117 117 0 8 0 vnodes 208 6408 0 0 338 0 338 338 0 8 0 namei 1024 78338 0 78338 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 60 0 0 8 0 8 8 0 8 0 vmpool 552 75 0 15 6 1 5 5 0 8 0 scsiplug 64 11 0 11 8 8 0 1 0 8 0 scxspl 192 61196 0 61196 48 45 3 7 0 8 3 plimitpl 152 470 0 462 1 0 1 1 0 8 0 sigapl 432 5691 0 5675 3 1 2 3 0 8 0 futexpl 56 142249 0 142249 1 0 1 1 0 8 1 knotepl 112 1370 0 1351 1 0 1 1 0 8 0 kqueuepl 104 1489 0 1487 4 3 1 4 0 8 0 pipepl 112 11848 0 11829 33 32 1 2 0 8 0 fdescpl 488 5692 0 5675 3 0 3 3 0 8 0 filepl 152 63968 0 63865 47 41 6 13 0 8 2 lockfpl 104 1870 0 1869 1 0 1 1 0 8 0 lockfspl 48 654 0 653 1 0 1 1 0 8 0 sessionpl 112 58 0 47 1 0 1 1 0 8 0 pgrppl 48 107 0 96 1 0 1 1 0 8 0 ucredpl 96 15636 0 15627 1 0 1 1 0 8 0 zombiepl 144 5676 0 5676 2 1 1 1 0 8 1 processpl 896 5710 0 5676 4 0 4 4 0 8 0 procpl 632 19922 0 19877 6 1 5 5 0 8 0 srpgc 64 73 0 73 24 24 0 1 0 8 0 sosppl 128 182 0 182 23 22 1 1 0 8 1 sockpl 384 11740 0 11709 75 71 4 14 0 8 0 mcl64k 65536 288 0 0 35 32 3 35 0 8 0 mcl16k 16384 25 0 0 4 2 2 3 0 8 0 mcl12k 12288 33 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 41 0 0 5 2 3 3 0 8 0 mcl4k 4096 25 0 0 3 0 3 3 0 8 0 mcl2k2 2112 14 0 0 1 0 1 1 0 8 0 mcl2k 2048 224 0 0 23 2 21 23 0 8 0 mtagpl 80 490 0 0 5 1 4 4 0 8 0 mbufpl 256 1120 0 0 37 0 37 37 0 8 0 bufpl 256 24782 0 17734 441 0 441 441 0 8 0 anonpl 16 732743 0 711130 250 161 89 104 0 124 0 amapchunkpl 152 46681 0 46546 105 92 13 19 0 158 7 amappl16 192 31417 0 30168 247 182 65 75 0 8 0 amappl15 184 357 0 357 2 2 0 1 0 8 0 amappl14 176 1333 0 1329 1 0 1 1 0 8 0 amappl13 168 276 0 276 6 6 0 1 0 8 0 amappl12 160 974 0 968 1 0 1 1 0 8 0 amappl11 152 584 0 569 1 0 1 1 0 8 0 amappl10 144 714 0 706 1 0 1 1 0 8 0 amappl9 136 2103 0 2095 1 0 1 1 0 8 0 amappl8 128 1735 0 1681 3 1 2 2 0 8 0 amappl7 120 816 0 806 1 0 1 1 0 8 0 amappl6 112 523 0 507 1 0 1 1 0 8 0 amappl5 104 1359 0 1345 1 0 1 1 0 8 0 amappl4 96 5695 0 5662 1 0 1 1 0 8 0 amappl3 88 1653 0 1642 1 0 1 1 0 8 0 amappl2 80 42802 0 42718 3 1 2 3 0 8 0 amappl1 72 142261 0 141810 26 16 10 20 0 8 0 amappl 80 20899 0 20827 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 132 0 3 3 0 3 3 0 8 0 uaddrrnd 24 5767 0 5675 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5767 0 5675 1 0 1 1 0 8 0 vmmpekpl 168 67676 0 67623 3 0 3 3 0 8 0 vmmpepl 168 748248 0 745613 554 419 135 157 0 357 18 vmsppl 368 5691 0 5675 2 0 2 2 0 8 0 pdppl 4096 11541 0 11440 16 3 13 13 0 8 0 pvpl 32 1888048 0 1864277 545 340 205 230 0 265 9 pmappl 232 5766 0 5690 6 1 5 5 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 758 0 105 20 0 20 20 0 8 0