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 * 56553 31923 0 0 0x4000000 0K syz-executor.1 191370 59921 0 0 0 1 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(ffffffff82205f9e,ffffffff821fddf3,3b3,ffffffff821c0602) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000a94800,1,fffffd8065f9d008) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800023bc5368,1,ffff800023bc5438,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000b7f800,240404,ffff800000b7f858,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000b7f800) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000a94800,ffff800000b7f800,ffff800023bc5760,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800023bc5750,ffff800000a94800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800023bc5750,ffff800000a94800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806cd07010,8020690c,ffff800023bc5750,ffff800020ab0508) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0508,ffff800023bc5868,ffff800023bc58b0) at sys_ioctl+0x5b9 syscall(ffff800023bc5930) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bc5930) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,5c45cbe8010) at Xsyscall+0x128 end of kernel end trace frame: 0x5c6b69a33d0, 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(ffffffff82205f9e,ffffffff821fddf3,3b3,ffffffff821c0602) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000a94800,1,fffffd8065f9d008) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800023bc5368,1,ffff800023bc5438,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000b7f800,240404,ffff800000b7f858,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000b7f800) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000a94800,ffff800000b7f800,ffff800023bc5760,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800023bc5750,ffff800000a94800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800023bc5750,ffff800000a94800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806cd07010,8020690c,ffff800023bc5750,ffff800020ab0508) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0508,ffff800023bc5868,ffff800023bc58b0) at sys_ioctl+0x5b9 syscall(ffff800023bc5930) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023bc5930) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,5c45cbe8010) at Xsyscall+0x128 end of kernel end trace frame: 0x5c6b69a33d0, count: -14 ddb{0}> show registers rdi 0xffffffff81c952f7 db_enter+0x17 rsi 0x4dde __ALIGN_SIZE+0x3dde rbp 0xffff800023bc50a0 rbx 0xffff800023bc5150 rdx 0x4ddf __ALIGN_SIZE+0x3ddf rcx 0xffff800021b66000 rax 0xffff800021b66000 r8 0xffffffff8199ba8f kprintf+0x16f r9 0x1 r10 0x25 r11 0x11cb608ae0af0c02 r12 0x3000000008 r13 0xffff800023bc50b0 r14 0x100 r15 0x1 rip 0xffffffff81c952f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023bc5090 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=56553 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab1b40,0xffffffff8263f188 process=0xffff800020addc00 user=0xffff800023bc0000, vmspace=0xfffffd807f00b8a0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 31923 497823 76499 0 2 0 syz-executor.1 *31923 56553 76499 0 7 0x4000000 syz-executor.1 59921 191370 39113 0 7 0 syz-executor.0 59921 454602 39113 0 3 0x4000080 lockf syz-executor.0 39113 347897 34677 0 2 0x482 syz-executor.0 424 363450 0 0 3 0x14200 acct acct 90488 207233 0 0 3 0x14200 bored sosplice 76499 311687 34677 0 3 0x82 nanosleep syz-executor.1 34677 511985 1506 0 3 0x82 thrsleep syz-fuzzer 34677 13144 1506 0 2 0x4000482 syz-fuzzer 34677 419065 1506 0 3 0x4000082 thrsleep syz-fuzzer 34677 430189 1506 0 3 0x4000082 kqread syz-fuzzer 34677 404285 1506 0 3 0x4000082 thrsleep syz-fuzzer 34677 323338 1506 0 3 0x4000082 thrsleep syz-fuzzer 34677 499809 1506 0 3 0x4000082 thrsleep syz-fuzzer 34677 168753 1506 0 3 0x4000082 thrsleep syz-fuzzer 34677 18398 1506 0 3 0x4000082 thrsleep syz-fuzzer 34677 352883 1506 0 3 0x4000082 thrsleep syz-fuzzer 1506 70864 16588 0 3 0x10008a pause ksh 16588 279053 84617 0 3 0x92 select sshd 68401 220640 1 0 3 0x100083 ttyin getty 84617 382328 1 0 3 0x80 select sshd 78195 249945 70039 74 3 0x100092 bpf pflogd 70039 120471 1 0 3 0x80 netio pflogd 28991 523383 18869 73 3 0x100090 kqread syslogd 18869 457357 1 0 3 0x100082 netio syslogd 91804 472426 1 77 3 0x100090 poll dhclient 2476 346639 1 0 3 0x80 poll dhclient 89192 469261 0 0 2 0x14200 zerothread 63982 220846 0 0 3 0x14200 aiodoned aiodoned 75686 516204 0 0 3 0x14200 syncer update 70634 223153 0 0 3 0x14200 cleaner cleaner 52526 460368 0 0 3 0x14200 reaper reaper 66300 499776 0 0 3 0x14200 pgdaemon pagedaemon 48185 431396 0 0 3 0x14200 bored crynlk 94775 120532 0 0 3 0x14200 bored crypto 12124 194099 0 0 3 0x40014200 acpi0 acpi0 95178 460202 0 0 3 0x40014200 idle1 75865 82934 0 0 3 0x14200 bored softnet 82719 102218 0 0 3 0x14200 bored systqmp 20682 103502 0 0 3 0x14200 bored systq 35844 483439 0 0 3 0x40014200 bored softclock 33212 419850 0 0 3 0x40014200 idle0 8215 506346 0 0 3 0x14200 bored smr 1 133783 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 31923 (syz-executor.1) thread 0xffff800020ab0508 (56553) 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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9557 6624K 8275K 78643K 13171 0 0 pcb 13 10K 12K 78643K 112 0 0 rtable 102 4K 4K 78643K 507 0 0 ifaddr 68 14K 15K 78643K 162 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1490 0 0 iov 0 0K 16K 78643K 88 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1239 78K 78K 78643K 1922 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 9 0 0 VM map 4 2K 2K 78643K 4 0 0 sem 12 0K 1K 78643K 277 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 467 0 0 sigio 0 0K 0K 78643K 39 0 0 proc 61 63K 95K 78643K 525 0 0 subproc 32 2K 2K 78643K 51 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 30 0 0 in_multi 23 1K 2K 78643K 104 0 0 ether_multi 1 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 54 238K 238K 78643K 54 0 0 exec 0 0K 1K 78643K 261 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 108 38K 42K 78643K 2536 0 0 UVM aobj 42 2K 2K 78643K 46 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 108 0 0 NDP 15 0K 0K 78643K 49 0 0 temp 193 3560K 4189K 78643K 30474 0 0 kqueue 0 0K 0K 78643K 2 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 13 0 8 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 59 0 57 1 0 1 1 0 8 0 rtentry 112 98 0 57 2 0 2 2 0 8 0 unpcb 120 331 0 315 2 1 1 2 0 8 0 syncache 264 5 0 5 2 2 0 1 0 8 0 tcpqe 32 27 0 27 2 2 0 1 0 8 0 tcpcb 544 168 0 163 1 0 1 1 0 8 0 inpcb 280 830 0 820 14 6 8 13 0 8 7 nd6 48 14 0 10 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 1 1 1 0 8 1 ppxss 1128 17 0 16 1 0 1 1 0 8 0 pffrag 232 10 0 10 2 1 1 1 0 482 1 pffrnode 88 10 0 10 2 1 1 1 0 8 1 pffrent 40 322 0 322 2 1 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 60 0 15 1 0 1 1 0 8 0 pfstkey 112 60 0 15 2 0 2 2 0 8 0 pfstate 328 60 0 15 4 0 4 4 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 453 0 251 15 0 15 15 0 8 2 art_table 32 454 0 251 2 0 2 2 0 8 0 art_node 16 97 0 59 1 0 1 1 0 8 0 sysvmsgpl 40 18 0 13 2 1 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 275 0 265 1 0 1 1 0 8 0 shmpl 112 44 0 4 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2149 0 745 46 0 46 46 0 8 0 ffsino 272 2149 0 745 95 1 94 95 0 8 0 nchpl 144 3229 0 1616 61 0 61 61 0 8 0 uvmvnodes 72 2767 0 0 51 0 51 51 0 8 0 vnodes 208 2767 0 0 146 0 146 146 0 8 0 namei 1024 9830 0 9830 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 552 2 0 0 1 0 1 1 0 8 0 scxspl 192 9561 0 9561 8 6 2 5 0 8 2 plimitpl 152 58 0 50 1 0 1 1 0 8 0 sigapl 432 664 0 648 3 1 2 3 0 8 0 futexpl 56 12837 0 12837 1 0 1 1 0 8 1 knotepl 112 132 0 113 1 0 1 1 0 8 0 kqueuepl 104 93 0 90 1 0 1 1 0 8 0 pipepl 112 506 0 487 3 2 1 2 0 8 0 fdescpl 488 665 0 648 3 0 3 3 0 8 0 filepl 152 5749 0 5636 15 4 11 14 0 8 6 lockfpl 104 171 0 166 1 0 1 1 0 8 0 lockfspl 48 60 0 57 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 39 0 28 1 0 1 1 0 8 0 ucredpl 96 504 0 495 1 0 1 1 0 8 0 zombiepl 144 648 0 648 2 1 1 1 0 8 1 processpl 896 682 0 648 4 0 4 4 0 8 0 procpl 632 1700 0 1655 6 1 5 5 0 8 0 sosppl 128 6 0 6 3 2 1 1 0 8 1 sockpl 384 1227 0 1199 23 12 11 22 0 8 7 mcl64k 65536 258 0 0 33 0 33 33 0 8 1 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 5 0 0 1 0 1 1 0 8 0 mcl4k 4096 11 0 0 2 0 2 2 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 204 0 0 25 0 25 25 0 8 0 mtagpl 80 25 0 0 1 0 1 1 0 8 0 mbufpl 256 377 0 0 23 0 23 23 0 8 0 bufpl 256 9665 0 2617 441 0 441 441 0 8 0 anonpl 16 100439 0 81220 94 6 88 93 0 124 9 amapchunkpl 152 4275 0 4142 14 2 12 13 0 158 6 amappl16 192 4385 0 3313 79 17 62 66 0 8 8 amappl14 176 49 0 45 1 0 1 1 0 8 0 amappl12 160 13 0 12 2 1 1 1 0 8 0 amappl11 152 61 0 46 1 0 1 1 0 8 0 amappl10 144 61 0 55 1 0 1 1 0 8 0 amappl9 136 855 0 846 1 0 1 1 0 8 0 amappl8 128 418 0 386 2 0 2 2 0 8 0 amappl7 120 87 0 82 1 0 1 1 0 8 0 amappl6 112 81 0 71 1 0 1 1 0 8 0 amappl5 104 139 0 125 1 0 1 1 0 8 0 amappl4 96 921 0 890 1 0 1 1 0 8 0 amappl3 88 134 0 129 1 0 1 1 0 8 0 amappl2 80 4388 0 4306 3 1 2 3 0 8 0 amappl1 72 24579 0 24123 25 15 10 20 0 8 0 amappl 80 1976 0 1933 3 1 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 45 0 4 1 0 1 1 0 8 0 uaddrrnd 24 667 0 648 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 667 0 648 1 0 1 1 0 8 0 vmmpekpl 168 9573 0 9541 3 1 2 2 0 8 0 vmmpepl 168 91015 0 88690 157 19 138 138 0 357 36 vmsppl 368 664 0 648 2 0 2 2 0 8 0 pdppl 4096 1341 0 1298 6 0 6 6 0 8 0 pvpl 32 281088 0 258544 217 5 212 217 0 265 28 pmappl 232 666 0 648 2 0 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 655 0 5 19 0 19 19 0 8 0