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 *111128 73374 0 0 0x4000000 1K syz-executor.1 445416 77103 0 0x14000 0x200 0 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(ffffffff82208147,ffffffff821fdfff,3b3,ffffffff821bfdea) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000af6800,1,fffffd807b012468) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800021d63818,1,ffff800021d638e8,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000af7500,240404,ffff800000af7558,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000af7500) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000af6800,ffff800000af7500,ffff800021d63c10,0) at in_ifinit+0x1cf sys/netinet/in.c:645 in_ioctl_sifaddr(8020690c,ffff800021d63c00,ffff800000af6800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:372 in_ioctl(8020690c,ffff800021d63c00,ffff800000af6800,1) at in_ioctl+0x1e7 sys/netinet/in.c:243 ifioctl(fffffd80624df620,8020690c,ffff800021d63c00,ffff800020abf160) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abf160,ffff800021d63d18,ffff800021d63d60) at sys_ioctl+0x5b9 syscall(ffff800021d63de0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021d63de0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,0,ffffffffffffff36,0,3,22f2945c010) at Xsyscall+0x128 end of kernel end trace frame: 0x23214382490, 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(ffffffff82208147,ffffffff821fdfff,3b3,ffffffff821bfdea) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000af6800,1,fffffd807b012468) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800021d63818,1,ffff800021d638e8,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000af7500,240404,ffff800000af7558,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000af7500) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000af6800,ffff800000af7500,ffff800021d63c10,0) at in_ifinit+0x1cf sys/netinet/in.c:645 in_ioctl_sifaddr(8020690c,ffff800021d63c00,ffff800000af6800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:372 in_ioctl(8020690c,ffff800021d63c00,ffff800000af6800,1) at in_ioctl+0x1e7 sys/netinet/in.c:243 ifioctl(fffffd80624df620,8020690c,ffff800021d63c00,ffff800020abf160) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abf160,ffff800021d63d18,ffff800021d63d60) at sys_ioctl+0x5b9 syscall(ffff800021d63de0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021d63de0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,0,ffffffffffffff36,0,3,22f2945c010) at Xsyscall+0x128 end of kernel end trace frame: 0x23214382490, count: -14 ddb{1}> show registers rdi 0xffffffff8140f307 db_enter+0x17 rsi 0xa750 __ALIGN_SIZE+0x9750 rbp 0xffff800021d63550 rbx 0xffff800021d63600 rdx 0xa751 __ALIGN_SIZE+0x9751 rcx 0xffff800021d74000 rax 0xffff800021d74000 r8 0xffffffff8211e1af kprintf+0x16f r9 0x1 r10 0x25 r11 0xd1f3046a61f66ebc r12 0x3000000008 r13 0xffff800021d63560 r14 0x100 r15 0x1 rip 0xffffffff8140f308 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021d63540 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=111128 stat=onproc flags process=0 proc=4000000 pri=77, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff800020abe9f8,0xffffffff8262bdb8 process=0xffff800020adce00 user=0xffff800021d5e000, vmspace=0xfffffd807f00a5c0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 73374 29124 470 0 2 0 syz-executor.1 *73374 111128 470 0 7 0x4000000 syz-executor.1 470 147566 93693 0 3 0x82 nanosleep syz-executor.1 90526 42435 0 0 3 0x14200 acct acct 92459 370313 93693 0 3 0x2 biowait syz-executor.0 76083 458853 0 0 3 0x14200 bored sosplice 93693 336352 86565 0 3 0x82 thrsleep syz-fuzzer 93693 203748 86565 0 3 0x4000082 nanosleep syz-fuzzer 93693 470638 86565 0 3 0x4000082 thrsleep syz-fuzzer 93693 274688 86565 0 3 0x4000082 thrsleep syz-fuzzer 93693 395501 86565 0 3 0x4000082 thrsleep syz-fuzzer 93693 333634 86565 0 3 0x4000082 nanosleep syz-fuzzer 93693 37888 86565 0 3 0x4000082 thrsleep syz-fuzzer 93693 65939 86565 0 3 0x4000082 kqread syz-fuzzer 93693 471811 86565 0 3 0x4000082 thrsleep syz-fuzzer 93693 267363 86565 0 3 0x4000082 thrsleep syz-fuzzer 86565 254938 91224 0 3 0x10008a pause ksh 91224 459872 77780 0 3 0x92 select sshd 52084 184936 1 0 3 0x100083 ttyin getty 77780 175463 1 0 3 0x80 select sshd 43614 92185 2798 74 3 0x100092 bpf pflogd 2798 344466 1 0 3 0x80 netio pflogd 30133 191713 94640 73 3 0x100090 kqread syslogd 94640 99297 1 0 3 0x100082 netio syslogd 14373 184960 1 77 3 0x100090 poll dhclient 51102 89693 1 0 3 0x80 poll dhclient 99832 119479 0 0 3 0x14200 pgzero zerothread 99567 446949 0 0 3 0x14200 aiodoned aiodoned 43814 158859 0 0 3 0x14200 syncer update 96167 307102 0 0 3 0x14200 cleaner cleaner 51590 111396 0 0 3 0x14200 reaper reaper 30985 434068 0 0 3 0x14200 pgdaemon pagedaemon 48053 96421 0 0 3 0x14200 bored crynlk 97277 283992 0 0 3 0x14200 bored crypto 48946 304520 0 0 3 0x40014200 acpi0 acpi0 79461 372852 0 0 3 0x40014200 idle1 5678 14342 0 0 3 0x14200 bored softnet 77103 445416 0 0 7 0x14200 systqmp 92213 81020 0 0 3 0x14200 bored systq 2299 264234 0 0 3 0x40014200 bored softclock 50381 23527 0 0 3 0x40014200 idle0 99092 332308 0 0 3 0x14200 bored smr 1 457110 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 73374 (syz-executor.1) thread 0xffff800020abf160 (111128) exclusive rwlock netlock r = 0 (0xffffffff8246b918) #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 (0xffffffff82625770) #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 Process 92459 (syz-executor.0) thread 0xffff800020abe780 (370313) exclusive rrwlock inode r = 0 (0xfffffd8064c1fd60) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 ufs_ihashins+0x45 sys/ufs/ufs/ufs_ihash.c:140 #4 ffs_vget+0x13e sys/ufs/ffs/ffs_vfsops.c:1352 #5 ffs_inode_alloc+0x1cf sys/ufs/ffs/ffs_alloc.c:392 #6 ufs_mkdir+0xf4 sys/ufs/ufs/ufs_vnops.c:1164 #7 VOP_MKDIR+0xc6 sys/kern/vfs_vops.c:450 #8 domkdirat+0x121 sys/kern/vfs_syscalls.c:2983 #9 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #9 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #10 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806e1f43c8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 rw_enter+0x447 sys/kern/kern_rwlock.c:306 #2 rrw_enter+0x4f sys/kern/kern_rwlock.c:435 #3 VOP_LOCK+0xf0 sys/kern/vfs_vops.c:615 #4 vn_lock+0x81 sys/kern/vfs_vnops.c:574 #5 vfs_lookup+0xe6 sys/kern/vfs_lookup.c:419 #6 namei+0x63c sys/kern/vfs_lookup.c:249 #7 domkdirat+0x75 sys/kern/vfs_syscalls.c:2968 #8 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #8 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #9 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9584 6430K 7329K 78643K 13991 0 0 pcb 13 10K 12K 78643K 336 0 0 rtable 106 4K 5K 78643K 976 0 0 ifaddr 86 18K 19K 78643K 295 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1569 0 0 iov 0 0K 16K 78643K 344 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1219 77K 77K 78643K 2478 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 29 0 0 VM map 21 10K 10K 78643K 27 0 0 sem 12 0K 1K 78643K 335 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 1431 0 0 sigio 0 0K 0K 78643K 22 0 0 proc 61 63K 95K 78643K 867 0 0 subproc 32 2K 2K 78643K 153 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 114 0 0 in_multi 30 2K 2K 78643K 157 0 0 ether_multi 1 0K 0K 78643K 8 0 0 mrt 0 0K 0K 78643K 2 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 484 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 156 202K 202K 78643K 5969 0 0 UVM aobj 109 8K 8K 78643K 117 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 320 0 0 NDP 20 0K 0K 78643K 88 0 0 temp 229 3561K 3636K 78643K 46503 0 0 kqueue 0 0K 0K 78643K 17 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 33 0 27 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 147 0 145 1 0 1 1 0 8 0 rtentry 112 169 0 129 2 0 2 2 0 8 0 unpcb 120 1563 0 1553 4 2 2 2 0 8 1 syncache 264 9 0 9 4 4 0 1 0 8 0 tcpqe 32 69 0 69 1 1 0 1 0 8 0 tcpcb 544 984 0 980 13 12 1 12 0 8 0 inpcb 280 2349 0 2339 10 8 2 9 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 25 0 20 1 0 1 1 0 8 0 pkpcb 40 8 0 8 3 3 0 1 0 8 0 ppxss 1128 28 0 28 5 4 1 1 0 8 1 pffrag 232 37 0 37 6 6 0 1 0 482 0 pffrnode 88 37 0 37 6 6 0 1 0 8 0 pffrent 40 1194 0 1194 6 6 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 146 0 91 1 0 1 1 0 8 0 pfstkey 112 146 0 91 3 0 3 3 0 8 0 pfstate 328 146 0 91 7 0 7 7 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 709 0 477 18 3 15 16 0 8 0 art_table 32 710 0 477 2 0 2 2 0 8 0 art_node 16 168 0 128 1 0 1 1 0 8 0 sysvmsgpl 40 32 0 21 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 329 0 319 1 0 1 1 0 8 0 shmpl 112 115 0 8 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 3569 0 2164 46 0 46 46 0 8 0 ffsino 272 3569 0 2164 95 0 95 95 0 8 0 nchpl 144 5875 0 5397 61 41 20 61 0 8 0 uvmvnodes 72 4554 0 0 83 0 83 83 0 8 0 vnodes 208 4554 0 0 240 0 240 240 0 8 0 namei 1024 21568 0 21567 1 0 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 19 0 0 3 0 3 3 0 8 0 vmpool 552 25 0 6 2 0 2 2 0 8 0 scsiplug 64 5 0 5 4 4 0 1 0 8 0 scxspl 192 19378 0 19377 14 13 1 5 0 8 0 plimitpl 152 130 0 122 1 0 1 1 0 8 0 sigapl 432 1610 0 1595 3 1 2 3 0 8 0 futexpl 56 36253 0 36253 1 0 1 1 0 8 1 knotepl 112 474 0 455 3 2 1 3 0 8 0 kqueuepl 104 675 0 673 4 3 1 4 0 8 0 pipepl 112 974 0 955 3 2 1 2 0 8 0 fdescpl 488 1611 0 1595 3 0 3 3 0 8 0 filepl 152 15585 0 15484 20 14 6 14 0 8 2 lockfpl 104 433 0 432 1 0 1 1 0 8 0 lockfspl 48 161 0 160 1 0 1 1 0 8 0 sessionpl 112 25 0 14 1 0 1 1 0 8 0 pgrppl 48 43 0 32 1 0 1 1 0 8 0 ucredpl 96 1468 0 1459 1 0 1 1 0 8 0 zombiepl 144 1595 0 1595 1 0 1 1 0 8 1 processpl 896 1628 0 1595 4 0 4 4 0 8 0 procpl 632 4788 0 4745 5 0 5 5 0 8 1 srpgc 64 10 0 10 4 4 0 1 0 8 0 sosppl 128 37 0 37 4 3 1 1 0 8 1 sockpl 384 4121 0 4101 24 18 6 14 0 8 3 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 13 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 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 164 0 0 20 0 20 20 0 8 0 mtagpl 80 47 0 0 1 0 1 1 0 8 0 mbufpl 256 493 0 0 28 0 28 28 0 8 0 bufpl 256 10507 0 3459 441 0 441 441 0 8 0 anonpl 16 201418 0 181321 127 29 98 98 0 124 13 amapchunkpl 152 11169 0 11003 30 18 12 12 0 158 5 amappl16 192 8802 0 7704 89 26 63 67 0 8 8 amappl14 176 121 0 117 1 0 1 1 0 8 0 amappl13 168 328 0 326 2 1 1 1 0 8 0 amappl12 160 228 0 224 2 1 1 1 0 8 0 amappl11 152 270 0 255 1 0 1 1 0 8 0 amappl10 144 266 0 260 1 0 1 1 0 8 0 amappl9 136 713 0 706 1 0 1 1 0 8 0 amappl8 128 279 0 242 2 0 2 2 0 8 0 amappl7 120 320 0 313 1 0 1 1 0 8 0 amappl6 112 275 0 261 1 0 1 1 0 8 0 amappl5 104 412 0 398 1 0 1 1 0 8 0 amappl4 96 1631 0 1600 1 0 1 1 0 8 0 amappl3 88 483 0 476 1 0 1 1 0 8 0 amappl2 80 11858 0 11783 3 1 2 3 0 8 0 amappl1 72 46039 0 45598 25 15 10 20 0 8 0 amappl 80 5188 0 5130 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 116 0 8 2 0 2 2 0 8 0 uaddrrnd 24 1636 0 1595 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1636 0 1595 1 0 1 1 0 8 0 vmmpekpl 168 16312 0 16274 2 0 2 2 0 8 0 vmmpepl 168 211446 0 209141 173 59 114 142 0 357 5 vmsppl 368 1610 0 1595 2 0 2 2 0 8 0 pdppl 4096 3279 0 3221 8 0 8 8 0 8 0 pvpl 32 559411 0 536382 274 50 224 224 0 265 29 pmappl 232 1635 0 1601 3 0 3 3 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 644 0 18 18 0 18 18 0 8 0