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 131385 5396 0 0 0 0 syz-executor.1 * 6661 5396 0 0 0x4000000 1K 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(ffffffff82205f9e,ffffffff821fddf3,3b3,ffffffff821c0602) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000a44800,1,fffffd807d62d008) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800020b371f8,1,ffff800020b372c8,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000b1d500,240404,ffff800000b1d558,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000b1d500) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000a44800,ffff800000b1d500,ffff800020b375f0,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800020b375e0,ffff800000a44800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800020b375e0,ffff800000a44800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806f6d0180,8020690c,ffff800020b375e0,ffff800020a5f150) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020a5f150,ffff800020b376f8,ffff800020b37740) at sys_ioctl+0x5b9 syscall(ffff800020b377c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b377c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,2c16abef0e0) at Xsyscall+0x128 end of kernel end trace frame: 0x2c3b20fc4b0, 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(ffffffff82205f9e,ffffffff821fddf3,3b3,ffffffff821c0602) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000a44800,1,fffffd807d62d008) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800020b371f8,1,ffff800020b372c8,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000b1d500,240404,ffff800000b1d558,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000b1d500) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000a44800,ffff800000b1d500,ffff800020b375f0,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800020b375e0,ffff800000a44800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800020b375e0,ffff800000a44800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806f6d0180,8020690c,ffff800020b375e0,ffff800020a5f150) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020a5f150,ffff800020b376f8,ffff800020b37740) at sys_ioctl+0x5b9 syscall(ffff800020b377c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b377c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,2c16abef0e0) at Xsyscall+0x128 end of kernel end trace frame: 0x2c3b20fc4b0, count: -14 ddb{1}> show registers rdi 0xffffffff81c952f7 db_enter+0x17 rsi 0x4c79 __ALIGN_SIZE+0x3c79 rbp 0xffff800020b36f30 rbx 0xffff800020b36fe0 rdx 0x4c7a __ALIGN_SIZE+0x3c7a rcx 0xffff800022d82000 rax 0xffff800022d82000 r8 0xffffffff8199ba8f kprintf+0x16f r9 0x1 r10 0x25 r11 0x68b82c1cdf2a4389 r12 0x3000000008 r13 0xffff800020b36f40 r14 0x100 r15 0x1 rip 0xffffffff81c952f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b36f20 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=6661 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020a5e770,0xffff800020a5fb40 process=0xffff800020add880 user=0xffff800020b32000, vmspace=0xfffffd807f00ba10 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 5396 131385 9814 0 7 0 syz-executor.1 5396 169599 9814 0 2 0x4000000 syz-executor.1 * 5396 6661 9814 0 7 0x4000000 syz-executor.1 5396 232399 9814 0 3 0x4000080 fsleep syz-executor.1 37028 225768 35535 0 3 0x82 nanosleep syz-executor.0 73654 271149 0 0 3 0x14200 acct acct 9814 357765 35535 0 3 0x82 nanosleep syz-executor.1 59176 502629 0 0 3 0x14200 bored sosplice 35535 121342 10529 0 3 0x82 thrsleep syz-fuzzer 35535 232110 10529 0 3 0x4000082 thrsleep syz-fuzzer 35535 18749 10529 0 3 0x4000082 thrsleep syz-fuzzer 35535 330018 10529 0 3 0x4000082 thrsleep syz-fuzzer 35535 154731 10529 0 3 0x4000082 thrsleep syz-fuzzer 35535 151716 10529 0 3 0x4000082 thrsleep syz-fuzzer 35535 380261 10529 0 3 0x4000082 thrsleep syz-fuzzer 35535 485923 10529 0 3 0x4000082 thrsleep syz-fuzzer 35535 139174 10529 0 3 0x4000082 thrsleep syz-fuzzer 35535 327229 10529 0 3 0x4000082 kqread syz-fuzzer 10529 149172 74439 0 3 0x10008a pause ksh 74439 155914 6854 0 3 0x92 select sshd 83376 330182 1 0 3 0x100083 ttyopn getty 6854 379892 1 0 3 0x80 select sshd 99454 138698 45836 74 3 0x100092 bpf pflogd 45836 516138 1 0 3 0x80 netio pflogd 45733 424903 17243 73 3 0x100090 kqread syslogd 17243 360684 1 0 3 0x100082 netio syslogd 95794 171466 0 0 3 0x14200 pgzero zerothread 82122 34262 0 0 3 0x14200 aiodoned aiodoned 55388 178649 0 0 3 0x14200 syncer update 2419 458850 0 0 3 0x14200 cleaner cleaner 8498 110180 0 0 3 0x14200 reaper reaper 46641 325003 0 0 3 0x14200 pgdaemon pagedaemon 18583 271548 0 0 3 0x14200 bored crynlk 50719 313424 0 0 3 0x14200 bored crypto 21928 306677 0 0 3 0x40014200 acpi0 acpi0 33797 319799 0 0 3 0x40014200 idle1 79350 356820 0 0 3 0x14200 bored softnet 31759 20383 0 0 2 0x14200 systqmp 84311 246888 0 0 3 0x14200 bored systq 61329 166765 0 0 3 0x40014200 bored softclock 20035 17513 0 0 3 0x40014200 idle0 5653 184688 0 0 3 0x14200 bored smr 1 313161 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 5396 (syz-executor.1) thread 0xffff800020a5f150 (6661) exclusive rwlock netlock r = 0 (0xffffffff824d0138) #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 (0xffffffff82668f60) #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 9517 6352K 7490K 78643K 12248 0 0 pcb 13 8K 8K 78643K 195 0 0 rtable 109 5K 5K 78643K 513 0 0 ifaddr 62 14K 14K 78643K 233 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1529 0 0 iov 0 0K 16K 78643K 142 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1210 76K 77K 78643K 1847 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 10 0 0 VM map 7 3K 3K 78643K 7 0 0 sem 12 0K 0K 78643K 354 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 789 0 0 sigio 0 0K 0K 78643K 15 0 0 proc 55 51K 95K 78643K 619 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 74 0 0 in_multi 29 1K 2K 78643K 116 0 0 ether_multi 1 0K 0K 78643K 13 0 0 mrt 0 0K 0K 78643K 5 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 60 265K 265K 78643K 60 0 0 exec 0 0K 1K 78643K 329 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 110 54K 54K 78643K 3689 0 0 UVM aobj 39 4K 4K 78643K 39 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 165 0 0 NDP 13 0K 0K 78643K 67 0 0 temp 179 3563K 4190K 78643K 29665 0 0 kqueue 0 0K 0K 78643K 4 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 44 0 39 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 93 0 93 2 1 1 1 0 8 1 rtentry 112 157 0 114 2 0 2 2 0 8 0 unpcb 120 454 0 445 1 0 1 1 0 8 0 syncache 264 8 0 8 3 3 0 1 0 8 0 tcpqe 32 168 0 168 1 1 0 1 0 8 0 tcpcb 544 1489 0 1483 2 0 2 2 0 8 1 inpcb 280 2450 0 2444 5 2 3 3 0 8 2 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 14 0 9 1 0 1 1 0 8 0 ppxss 1128 34 0 34 2 1 1 1 0 8 1 pffrag 232 20 0 20 3 2 1 1 0 482 1 pffrnode 88 20 0 20 3 2 1 1 0 8 1 pffrent 40 703 0 703 3 2 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 92 0 26 1 0 1 1 0 8 0 pfstkey 112 92 0 26 2 0 2 2 0 8 0 pfstate 328 92 0 25 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 596 0 368 18 3 15 15 0 8 0 art_table 32 597 0 368 2 0 2 2 0 8 0 art_node 16 155 0 114 1 0 1 1 0 8 0 sysvmsgpl 40 38 0 28 1 0 1 1 0 8 0 semapl 112 352 0 342 1 0 1 1 0 8 0 shmpl 112 37 0 0 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2634 0 1233 46 0 46 46 0 8 0 ffsino 272 2634 0 1233 95 0 95 95 0 8 0 nchpl 144 3994 0 2386 61 0 61 61 0 8 0 uvmvnodes 72 3100 0 0 57 0 57 57 0 8 0 vnodes 208 3100 0 0 164 0 164 164 0 8 0 namei 1024 12619 0 12619 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 5 0 0 1 0 1 1 0 8 0 vmpool 552 5 0 0 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 11685 0 11685 11 10 1 7 0 8 1 plimitpl 152 88 0 81 1 0 1 1 0 8 0 sigapl 432 980 0 967 3 1 2 3 0 8 0 futexpl 56 20511 0 20510 1 0 1 1 0 8 0 knotepl 112 199 0 180 1 0 1 1 0 8 0 kqueuepl 104 202 0 200 1 0 1 1 0 8 0 pipepl 112 532 0 513 2 1 1 2 0 8 0 fdescpl 488 981 0 967 3 0 3 3 0 8 0 filepl 152 8023 0 7932 6 1 5 6 0 8 1 lockfpl 104 288 0 288 1 0 1 1 0 8 1 lockfspl 48 98 0 98 1 0 1 1 0 8 1 sessionpl 112 21 0 12 1 0 1 1 0 8 0 pgrppl 48 29 0 20 1 0 1 1 0 8 0 ucredpl 96 898 0 889 1 0 1 1 0 8 0 zombiepl 144 967 0 966 1 0 1 1 0 8 0 processpl 896 998 0 966 4 0 4 4 0 8 0 procpl 632 2763 0 2719 5 0 5 5 0 8 1 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 18 0 18 3 2 1 1 0 8 1 sockpl 384 3029 0 3014 9 4 5 6 0 8 3 mcl64k 65536 12 0 0 2 0 2 2 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 6 0 0 1 0 1 1 0 8 0 mcl9k 9216 5 0 0 1 0 1 1 0 8 0 mcl8k 8192 8 0 0 1 0 1 1 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 208 0 0 25 0 25 25 0 8 0 mtagpl 80 25 0 0 1 0 1 1 0 8 0 mbufpl 256 792 0 0 47 0 47 47 0 8 0 bufpl 256 8265 0 1314 435 0 435 435 0 8 0 anonpl 16 109713 0 92976 94 1 93 93 0 124 17 amapchunkpl 152 6468 0 6348 19 11 8 13 0 158 1 amappl16 192 4683 0 3608 67 6 61 66 0 8 7 amappl15 184 4 0 3 1 0 1 1 0 8 0 amappl14 176 311 0 307 1 0 1 1 0 8 0 amappl13 168 10 0 9 2 1 1 1 0 8 0 amappl12 160 10 0 8 2 1 1 1 0 8 0 amappl11 152 470 0 462 1 0 1 1 0 8 0 amappl10 144 12 0 7 1 0 1 1 0 8 0 amappl9 136 715 0 708 1 0 1 1 0 8 0 amappl8 128 266 0 236 2 0 2 2 0 8 0 amappl7 120 52 0 47 1 0 1 1 0 8 0 amappl6 112 466 0 455 1 0 1 1 0 8 0 amappl5 104 158 0 146 1 0 1 1 0 8 0 amappl4 96 1212 0 1185 1 0 1 1 0 8 0 amappl3 88 191 0 180 1 0 1 1 0 8 0 amappl2 80 6786 0 6721 3 1 2 3 0 8 0 amappl1 72 31524 0 31118 25 15 10 20 0 8 0 amappl 80 3064 0 3024 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 38 0 0 1 0 1 1 0 8 0 uaddrrnd 24 986 0 967 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 986 0 967 1 0 1 1 0 8 0 vmmpekpl 168 11563 0 11526 2 0 2 2 0 8 0 vmmpepl 168 128804 0 126660 165 30 135 135 0 357 36 vmsppl 368 980 0 967 2 0 2 2 0 8 0 pdppl 4096 1979 0 1939 8 2 6 6 0 8 0 pvpl 32 335488 0 315847 223 6 217 217 0 265 39 pmappl 232 985 0 967 3 1 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 647 0 8 19 0 19 19 0 8 0