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 *145740 26782 0 0 0x4000000 0K syz-executor.0 132281 49081 0 0x14000 0x200 1 systqmp 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(ffffffff822084c3,ffffffff8220115d,3b3,ffffffff821c05b6) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000b6f000,1,fffffd80645d1d28) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800022b997a8,1,ffff800022b99878,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000b6e400,240404,ffff800000b6e458,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000b6e400) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000b6f000,ffff800000b6e400,ffff800022b99ba0,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800022b99b90,ffff800000b6f000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800022b99b90,ffff800000b6f000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd807ba95790,8020690c,ffff800022b99b90,ffff800020ab0508) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0508,ffff800022b99ca8,ffff800022b99cf0) at sys_ioctl+0x5b9 syscall(ffff800022b99d70) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022b99d70) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,f1a7f51f0e0) at Xsyscall+0x128 end of kernel end trace frame: 0xf1d771a6b10, 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(ffffffff822084c3,ffffffff8220115d,3b3,ffffffff821c05b6) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000b6f000,1,fffffd80645d1d28) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800022b997a8,1,ffff800022b99878,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000b6e400,240404,ffff800000b6e458,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000b6e400) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000b6f000,ffff800000b6e400,ffff800022b99ba0,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800022b99b90,ffff800000b6f000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800022b99b90,ffff800000b6f000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd807ba95790,8020690c,ffff800022b99b90,ffff800020ab0508) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0508,ffff800022b99ca8,ffff800022b99cf0) at sys_ioctl+0x5b9 syscall(ffff800022b99d70) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800022b99d70) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,f1a7f51f0e0) at Xsyscall+0x128 end of kernel end trace frame: 0xf1d771a6b10, count: -14 ddb{0}> show registers rdi 0xffffffff82030057 db_enter+0x17 rsi 0x4fda __ALIGN_SIZE+0x3fda rbp 0xffff800022b994e0 rbx 0xffff800022b99590 rdx 0x4fdb __ALIGN_SIZE+0x3fdb rcx 0xffff80002215a000 rax 0xffff80002215a000 r8 0xffffffff81f4bdef kprintf+0x16f r9 0x1 r10 0x25 r11 0x95cefff63520a049 r12 0x3000000008 r13 0xffff800022b994f0 r14 0x100 r15 0x1 rip 0xffffffff82030058 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800022b994d0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=145740 stat=onproc flags process=0 proc=4000000 pri=73, usrpri=73, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab18c8,0xffff800020ab02a0 process=0xffff800020a8b890 user=0xffff800022b94000, vmspace=0xfffffd807f00ab80 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 26782 46225 9721 0 2 0 syz-executor.0 26782 114364 9721 0 3 0x4000080 fsleep syz-executor.0 *26782 145740 9721 0 7 0x4000000 syz-executor.0 26782 184382 9721 0 3 0x4000080 fsleep syz-executor.0 33396 227917 5631 60929 2 0x10 syz-executor.1 33396 330427 5631 60929 3 0x4000090 kqread syz-executor.1 33396 164049 5631 60929 3 0x4000090 fsleep syz-executor.1 9721 25500 23940 0 3 0x82 nanosleep syz-executor.0 5631 390626 23940 0 3 0x82 nanosleep syz-executor.1 14179 426731 1 0 3 0x100083 ttyin getty 86214 226513 0 0 3 0x14200 acct acct 60318 509995 0 0 3 0x14200 bored sosplice 23940 321458 88321 0 3 0x82 thrsleep syz-fuzzer 23940 90804 88321 0 3 0x4000082 thrsleep syz-fuzzer 23940 361335 88321 0 3 0x4000082 thrsleep syz-fuzzer 23940 52363 88321 0 3 0x4000082 thrsleep syz-fuzzer 23940 99312 88321 0 3 0x4000082 thrsleep syz-fuzzer 23940 351192 88321 0 3 0x4000082 kqread syz-fuzzer 23940 323544 88321 0 3 0x4000082 thrsleep syz-fuzzer 23940 348277 88321 0 3 0x4000082 thrsleep syz-fuzzer 23940 229352 88321 0 3 0x4000082 thrsleep syz-fuzzer 23940 33845 88321 0 3 0x4000082 thrsleep syz-fuzzer 88321 492841 43130 0 3 0x10008a pause ksh 43130 2034 56813 0 3 0x92 select sshd 56813 114293 1 0 3 0x80 select sshd 38717 464471 60587 74 3 0x100092 bpf pflogd 60587 252279 1 0 3 0x80 netio pflogd 67759 77110 86951 73 3 0x100090 kqread syslogd 86951 179137 1 0 3 0x100082 netio syslogd 60816 453646 1 77 3 0x100090 poll dhclient 74691 335140 1 0 3 0x80 poll dhclient 70109 178246 0 0 2 0x14200 zerothread 24964 279805 0 0 3 0x14200 aiodoned aiodoned 32739 439656 0 0 3 0x14200 syncer update 31009 150154 0 0 3 0x14200 cleaner cleaner 60210 372855 0 0 3 0x14200 reaper reaper 68406 97521 0 0 3 0x14200 pgdaemon pagedaemon 37247 60056 0 0 3 0x14200 bored crynlk 32178 15234 0 0 3 0x14200 bored crypto 18598 110097 0 0 3 0x40014200 acpi0 acpi0 96746 49713 0 0 3 0x40014200 idle1 65643 483458 0 0 3 0x14200 bored softnet 49081 132281 0 0 7 0x14200 systqmp 18321 422200 0 0 3 0x14200 bored systq 78516 462807 0 0 3 0x40014200 bored softclock 60025 139779 0 0 3 0x40014200 idle0 56060 209927 0 0 3 0x14200 bored smr 1 204285 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 26782 (syz-executor.0) thread 0xffff800020ab0508 (145740) exclusive rwlock netlock r = 0 (0xffffffff8248fc78) #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 (0xffffffff82649290) #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 9606 7103K 8098K 78643K 18946 0 0 pcb 13 12K 14K 78643K 788 0 0 rtable 120 13K 13K 78643K 2529 0 0 ifaddr 94 21K 22K 78643K 734 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1677 0 0 iov 0 0K 24K 78643K 770 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1208 76K 77K 78643K 4498 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 54 0 0 VM map 31 15K 16K 78643K 46 0 0 sem 12 0K 1K 78643K 1568 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 3666 0 0 sigio 0 0K 0K 78643K 54 0 0 proc 62 63K 95K 78643K 1747 0 0 subproc 32 2K 2K 78643K 425 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 372 0 0 in_multi 33 2K 2K 78643K 490 0 0 ether_multi 1 0K 0K 78643K 39 0 0 mrt 0 0K 0K 78643K 24 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 138 609K 609K 78643K 138 0 0 exec 0 0K 1K 78643K 866 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 170 300K 309K 78643K 17049 0 0 UVM aobj 130 7K 7K 78643K 140 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 696 0 0 NDP 21 0K 0K 78643K 233 0 0 temp 235 3565K 4205K 78643K 160828 0 0 kqueue 0 0K 0K 78643K 56 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 94 0 88 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 306 0 304 1 0 1 1 0 8 0 rtentry 112 457 0 412 2 0 2 2 0 8 0 unpcb 120 12718 0 12698 18 16 2 2 0 8 0 syncache 264 21 0 21 11 10 1 1 0 8 1 tcpqe 32 8 0 8 6 6 0 1 0 8 0 tcpcb 544 1832 0 1827 30 29 1 14 0 8 0 inpcb 280 5298 0 5286 59 57 2 13 0 8 0 rttmr 72 8 0 8 5 5 0 1 0 8 0 ip6q 72 6 0 6 4 4 0 1 0 8 0 ip6af 40 14 0 14 4 4 0 1 0 8 0 nd6 48 67 0 62 3 2 1 1 0 8 0 pkpcb 40 45 0 45 16 16 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 103 0 103 36 35 1 1 0 8 1 pffrag 232 97 0 97 33 33 0 1 0 482 0 pffrnode 88 97 0 97 33 33 0 1 0 8 0 pffrent 40 2891 0 2891 34 34 0 1 0 8 0 pfosfp 40 846 0 846 5 5 0 5 0 8 0 pfosfpen 112 1428 0 1428 21 21 0 21 0 8 0 pfstitem 24 340 0 315 1 0 1 1 0 8 0 pfstkey 112 340 0 315 2 0 2 2 0 8 0 pfstate 328 340 0 315 7 3 4 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 8 0 7 6 5 1 3 0 8 0 art_heap4 256 1969 0 1738 32 16 16 17 0 8 0 art_table 32 1977 0 1745 3 1 2 3 0 8 0 art_node 16 453 0 411 1 0 1 1 0 8 0 sysvmsgpl 40 22 0 13 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 1564 0 1554 1 0 1 1 0 8 0 shmpl 112 138 0 10 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 7129 0 5726 46 0 46 46 0 8 0 ffsino 272 7129 0 5726 96 1 95 95 0 8 0 nchpl 144 13033 0 12559 61 41 20 61 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 61215 0 61215 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 29 0 0 4 0 4 4 0 8 0 vmpool 552 44 0 15 5 2 3 3 0 8 0 scsiplug 64 3 0 3 3 3 0 1 0 8 0 scxspl 192 43730 0 43730 35 34 1 4 0 8 1 plimitpl 152 310 0 302 1 0 1 1 0 8 0 sigapl 432 3798 0 3782 3 1 2 3 0 8 0 futexpl 56 94401 0 94398 1 0 1 1 0 8 0 knotepl 112 1698 0 1679 7 6 1 3 0 8 0 kqueuepl 104 4180 0 4177 7 6 1 4 0 8 0 pipepl 112 2212 0 2193 10 9 1 2 0 8 0 fdescpl 488 3799 0 3782 3 0 3 3 0 8 0 filepl 152 56429 0 56320 61 55 6 14 0 8 1 lockfpl 104 1347 0 1346 1 0 1 1 0 8 0 lockfspl 48 450 0 449 1 0 1 1 0 8 0 sessionpl 112 42 0 31 1 0 1 1 0 8 0 pgrppl 48 84 0 73 1 0 1 1 0 8 0 ucredpl 96 16936 0 16926 1 0 1 1 0 8 0 zombiepl 144 3783 0 3783 1 0 1 1 0 8 1 processpl 896 3817 0 3783 4 0 4 4 0 8 0 procpl 632 15108 0 15060 6 1 5 6 0 8 0 srpgc 64 32 0 32 10 10 0 1 0 8 0 sosppl 128 93 0 93 22 22 0 1 0 8 0 sockpl 384 18436 0 18403 75 69 6 22 0 8 0 mcl64k 65536 27 0 0 3 0 3 3 0 8 0 mcl16k 16384 33 0 0 5 2 3 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 18 0 0 2 0 2 2 0 8 0 mcl8k 8192 20 0 0 3 1 2 3 0 8 0 mcl4k 4096 33 0 0 4 1 3 3 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 195 0 0 20 2 18 20 0 8 2 mtagpl 80 58 0 0 1 0 1 1 0 8 0 mbufpl 256 919 0 0 29 1 28 29 0 8 0 bufpl 256 18434 0 11386 441 0 441 441 0 8 0 anonpl 16 480316 0 459182 254 160 94 103 0 124 7 amapchunkpl 152 33494 0 33321 62 50 12 14 0 158 4 amappl16 192 20763 0 19571 212 152 60 71 0 8 0 amappl15 184 203 0 203 3 3 0 1 0 8 0 amappl14 176 1069 0 1065 1 0 1 1 0 8 0 amappl13 168 241 0 238 1 0 1 1 0 8 0 amappl12 160 759 0 759 4 4 0 1 0 8 0 amappl11 152 617 0 602 1 0 1 1 0 8 0 amappl10 144 181 0 177 1 0 1 1 0 8 0 amappl9 136 1451 0 1444 1 0 1 1 0 8 0 amappl8 128 1017 0 977 3 1 2 2 0 8 0 amappl7 120 297 0 287 1 0 1 1 0 8 0 amappl6 112 589 0 574 1 0 1 1 0 8 0 amappl5 104 1124 0 1109 1 0 1 1 0 8 0 amappl4 96 3493 0 3456 2 1 1 2 0 8 0 amappl3 88 1876 0 1865 1 0 1 1 0 8 0 amappl2 80 28639 0 28557 3 1 2 3 0 8 0 amappl1 72 101435 0 100955 26 16 10 20 0 8 0 amappl 80 15756 0 15688 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 139 0 10 3 0 3 3 0 8 0 uaddrrnd 24 3843 0 3782 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3843 0 3782 1 0 1 1 0 8 0 vmmpekpl 168 40764 0 40716 3 0 3 3 0 8 0 vmmpepl 168 507202 0 504627 577 456 121 153 0 357 8 vmsppl 368 3798 0 3782 2 0 2 2 0 8 0 pdppl 4096 7693 0 7623 13 4 9 10 0 8 0 pvpl 32 1289806 0 1267233 540 338 202 222 0 265 16 pmappl 232 3842 0 3797 4 1 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 692 0 65 20 1 19 19 0 8 0