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 231903 54913 0 0 0 0 syz-executor.1 * 35510 54913 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(ffffffff82207803,ffffffff82201b7e,3b3,ffffffff821c028a) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000ba3800,1,fffffd806618c008) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800021ba7068,1,ffff800021ba7138,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000ba9100,240404,ffff800000ba9158,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000ba9100) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000ba3800,ffff800000ba9100,ffff800021ba7460,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800021ba7450,ffff800000ba3800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800021ba7450,ffff800000ba3800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd80658171e0,8020690c,ffff800021ba7450,ffff800020acec78) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020acec78,ffff800021ba7568,ffff800021ba75b0) at sys_ioctl+0x5b9 syscall(ffff800021ba7630) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021ba7630) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,f1cb84e8010) at Xsyscall+0x128 end of kernel end trace frame: 0xf1f25f9ab60, 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(ffffffff82207803,ffffffff82201b7e,3b3,ffffffff821c028a) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000ba3800,1,fffffd806618c008) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800021ba7068,1,ffff800021ba7138,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000ba9100,240404,ffff800000ba9158,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000ba9100) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000ba3800,ffff800000ba9100,ffff800021ba7460,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800021ba7450,ffff800000ba3800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800021ba7450,ffff800000ba3800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd80658171e0,8020690c,ffff800021ba7450,ffff800020acec78) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020acec78,ffff800021ba7568,ffff800021ba75b0) at sys_ioctl+0x5b9 syscall(ffff800021ba7630) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021ba7630) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,f1cb84e8010) at Xsyscall+0x128 end of kernel end trace frame: 0xf1f25f9ab60, count: -14 ddb{1}> show registers rdi 0xffffffff814a9117 db_enter+0x17 rsi 0x58c3 __ALIGN_SIZE+0x48c3 rbp 0xffff800021ba6da0 rbx 0xffff800021ba6e50 rdx 0x58c4 __ALIGN_SIZE+0x48c4 rcx 0xffff80002197c000 rax 0xffff80002197c000 r8 0xffffffff81918aaf kprintf+0x16f r9 0x1 r10 0x25 r11 0x6a69e54e22bf9687 r12 0x3000000008 r13 0xffff800021ba6db0 r14 0x100 r15 0x1 rip 0xffffffff814a9118 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021ba6d90 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=35510 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020acf8d0,0xffffffff826716a0 process=0xffff800020adce00 user=0xffff800021ba2000, vmspace=0xfffffd807f00a170 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 54913 231903 65074 0 7 0 syz-executor.1 *54913 35510 65074 0 7 0x4000000 syz-executor.1 88456 248784 35852 0 3 0x82 nanosleep syz-executor.0 65074 111784 35852 0 3 0x82 nanosleep syz-executor.1 37419 5265 1 0 3 0x100083 ttyopn getty 95548 307633 0 0 3 0x14200 acct acct 95002 431385 0 0 3 0x14200 bored sosplice 35852 370488 81221 0 3 0x82 thrsleep syz-fuzzer 35852 114212 81221 0 3 0x4000082 nanosleep syz-fuzzer 35852 78239 81221 0 3 0x4000082 thrsleep syz-fuzzer 35852 261065 81221 0 3 0x4000082 thrsleep syz-fuzzer 35852 243680 81221 0 3 0x4000082 thrsleep syz-fuzzer 35852 251527 81221 0 3 0x4000082 kqread syz-fuzzer 35852 17539 81221 0 3 0x4000082 thrsleep syz-fuzzer 35852 42902 81221 0 3 0x4000082 thrsleep syz-fuzzer 35852 235996 81221 0 3 0x4000082 thrsleep syz-fuzzer 35852 93435 81221 0 3 0x4000082 thrsleep syz-fuzzer 35852 183206 81221 0 3 0x4000082 thrsleep syz-fuzzer 81221 95007 81330 0 3 0x10008a pause ksh 81330 97729 67682 0 3 0x92 select sshd 67682 298472 1 0 3 0x80 select sshd 85620 56726 60639 74 3 0x100092 bpf pflogd 60639 45117 1 0 3 0x80 netio pflogd 45025 39513 96511 73 3 0x100090 kqread syslogd 96511 265796 1 0 3 0x100082 netio syslogd 19069 249902 1 77 3 0x100090 poll dhclient 74907 186674 1 0 3 0x80 poll dhclient 98978 178704 0 0 3 0x14200 pgzero zerothread 47979 502961 0 0 3 0x14200 aiodoned aiodoned 73532 416938 0 0 3 0x14200 syncer update 23078 16085 0 0 3 0x14200 cleaner cleaner 18460 493854 0 0 3 0x14200 reaper reaper 11684 310384 0 0 3 0x14200 pgdaemon pagedaemon 87587 501089 0 0 3 0x14200 bored crynlk 66104 269390 0 0 3 0x14200 bored crypto 68037 229 0 0 3 0x40014200 acpi0 acpi0 65773 336567 0 0 3 0x40014200 idle1 62720 475063 0 0 3 0x14200 bored softnet 60442 420729 0 0 3 0x14200 bored systqmp 29314 469726 0 0 3 0x14200 bored systq 278 478639 0 0 3 0x40014200 bored softclock 60204 85822 0 0 3 0x40014200 idle0 67175 355273 0 0 3 0x14200 bored smr 1 454946 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 54913 (syz-executor.1) thread 0xffff800020acec78 (35510) exclusive rwlock netlock r = 0 (0xffffffff824ca238) #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 (0xffffffff82625ee0) #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 9643 6653K 8387K 78643K 33644 0 0 pcb 13 10K 12K 78643K 1656 0 0 rtable 112 14K 16K 78643K 4923 0 0 ifaddr 104 26K 31K 78643K 1643 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1853 0 0 iov 0 0K 32K 78643K 1484 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1221 77K 78K 78643K 9158 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 60 0 0 VM map 76 38K 38K 78643K 98 0 0 sem 12 1K 1K 78643K 3216 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 7528 0 0 sigio 0 0K 0K 78643K 104 0 0 proc 62 63K 95K 78643K 2971 0 0 subproc 32 2K 2K 78643K 784 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 878 0 0 in_multi 27 1K 3K 78643K 869 0 0 ether_multi 1 0K 0K 78643K 89 0 0 mrt 4 0K 0K 78643K 61 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 114 503K 503K 78643K 114 0 0 exec 0 0K 1K 78643K 1676 0 0 pfkey data 0 0K 4K 78643K 3 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 246 645K 654K 78643K 28352 0 0 UVM aobj 130 5K 5K 78643K 137 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 1766 0 0 NDP 24 0K 1K 78643K 501 0 0 temp 259 3565K 4205K 78643K 136663 0 0 kqueue 0 0K 0K 78643K 57 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 131 0 126 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 584 0 582 1 0 1 1 0 8 0 rtentry 112 742 0 704 2 0 2 2 0 8 0 unpcb 120 3783 0 3765 2 1 1 2 0 8 0 syncache 264 34 0 34 14 14 0 1 0 8 0 sackhl 24 3 0 3 2 2 0 1 0 8 0 tcpqe 32 14 0 14 10 10 0 1 0 8 0 tcpcb 544 3948 0 3942 54 43 11 13 0 8 10 inpcb 280 18451 0 18440 52 43 9 10 0 8 8 rttmr 72 17 0 17 12 11 1 1 0 8 1 ip6q 72 5 0 5 4 4 0 1 0 8 0 ip6af 40 15 0 15 4 4 0 1 0 8 0 nd6 48 125 0 122 3 2 1 1 0 8 0 pkpcb 40 63 0 63 18 18 0 1 0 8 0 swfcl 56 12 0 0 1 0 1 1 0 8 0 ppxss 1128 260 0 260 16 15 1 1 0 8 1 pffrag 232 206 0 206 24 23 1 1 0 482 1 pffrnode 88 206 0 206 24 23 1 1 0 8 1 pffrent 40 5066 0 5066 24 23 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 601 0 524 1 0 1 1 0 8 0 pfstkey 112 602 0 525 4 1 3 3 0 8 0 pfstate 328 602 0 525 12 4 8 8 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 14 0 13 12 11 1 3 0 8 0 art_heap4 256 3329 0 3109 51 35 16 17 0 8 1 art_table 32 3343 0 3122 5 2 3 3 0 8 0 art_node 16 741 0 705 1 0 1 1 0 8 0 sysvmsgpl 40 14 0 12 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 3214 0 3204 1 0 1 1 0 8 0 shmpl 112 135 0 7 5 1 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 13306 0 11868 47 0 47 47 0 8 0 ffsino 272 13306 0 11868 99 2 97 97 0 8 0 nchpl 144 25347 0 24836 61 41 20 61 0 8 0 uvmvnodes 72 6764 0 0 123 0 123 123 0 8 0 vnodes 208 6764 0 0 356 0 356 356 0 8 0 namei 1024 93641 0 93641 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 76 0 2 10 0 10 10 0 8 0 vmpool 552 96 0 22 6 0 6 6 0 8 0 scsiplug 64 7 0 7 5 5 0 1 0 8 0 scxspl 192 83696 0 83696 59 56 3 7 0 8 3 plimitpl 152 690 0 682 1 0 1 1 0 8 0 sigapl 432 7599 0 7584 4 2 2 3 0 8 0 futexpl 56 219167 0 219167 2 1 1 1 0 8 1 knotepl 112 2078 0 2059 5 4 1 3 0 8 0 kqueuepl 104 2470 0 2468 15 11 4 4 0 8 3 pipepl 112 4322 0 4303 12 11 1 2 0 8 0 fdescpl 488 7600 0 7584 3 0 3 3 0 8 0 filepl 152 73706 0 73604 74 60 14 14 0 8 10 lockfpl 104 2527 0 2526 1 0 1 1 0 8 0 lockfspl 48 843 0 842 1 0 1 1 0 8 0 sessionpl 112 65 0 54 1 0 1 1 0 8 0 pgrppl 48 145 0 134 1 0 1 1 0 8 0 ucredpl 96 7977 0 7968 1 0 1 1 0 8 0 zombiepl 144 7584 0 7583 3 2 1 1 0 8 0 processpl 896 7617 0 7583 5 1 4 5 0 8 0 procpl 632 25160 0 25115 5 0 5 5 0 8 0 srpgc 64 67 0 67 24 24 0 1 0 8 0 sosppl 128 7747 0 7746 5 3 2 2 0 8 1 sockpl 384 23049 0 23018 81 66 15 15 0 8 10 mcl64k 65536 314 0 0 34 24 10 34 0 8 3 mcl16k 16384 33 0 0 3 0 3 3 0 8 0 mcl12k 12288 44 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 34 0 0 4 1 3 3 0 8 0 mcl4k 4096 25 0 0 4 1 3 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 219 0 0 19 7 12 19 0 8 0 mtagpl 80 124 0 0 1 0 1 1 0 8 0 mbufpl 256 826 0 0 41 0 41 41 0 8 0 bufpl 256 34864 0 27816 441 0 441 441 0 8 0 anonpl 16 897260 0 877197 280 192 88 95 0 124 6 amapchunkpl 152 56084 0 55944 99 92 7 20 0 158 0 amappl16 192 41708 0 40552 276 217 59 70 0 8 0 amappl15 184 615 0 615 2 2 0 1 0 8 0 amappl14 176 1608 0 1604 1 0 1 1 0 8 0 amappl13 168 928 0 928 10 10 0 1 0 8 0 amappl12 160 704 0 701 1 0 1 1 0 8 0 amappl11 152 1523 0 1508 1 0 1 1 0 8 0 amappl10 144 536 0 529 1 0 1 1 0 8 0 amappl9 136 2018 0 2010 1 0 1 1 0 8 0 amappl8 128 1626 0 1569 2 0 2 2 0 8 0 amappl7 120 727 0 719 1 0 1 1 0 8 0 amappl6 112 1482 0 1463 1 0 1 1 0 8 0 amappl5 104 1567 0 1553 1 0 1 1 0 8 0 amappl4 96 8416 0 8384 1 0 1 1 0 8 0 amappl3 88 1488 0 1472 1 0 1 1 0 8 0 amappl2 80 58061 0 57983 3 1 2 3 0 8 0 amappl1 72 182236 0 181794 25 15 10 20 0 8 0 amappl 80 26277 0 26193 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 136 0 7 3 0 3 3 0 8 0 uaddrrnd 24 7696 0 7584 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7696 0 7584 1 0 1 1 0 8 0 vmmpekpl 168 62398 0 62345 3 0 3 3 0 8 0 vmmpepl 168 979179 0 976697 424 276 148 170 0 357 26 vmsppl 368 7599 0 7584 2 0 2 2 0 8 0 pdppl 4096 15399 0 15286 18 3 15 15 0 8 0 pvpl 32 2392966 0 2370678 512 303 209 225 0 265 25 pmappl 232 7695 0 7606 7 1 6 6 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 792 0 132 20 0 20 20 0 8 0