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 *332534 93316 0 0 0x4000000 0K syz-executor.1 309612 44357 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(ffffffff82207348,ffffffff821fed9d,3b3,ffffffff821c08dc) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000a94800,1,fffffd8065b27c48) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800021b82bd8,1,ffff800021b82ca8,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000ab8f00,240404,ffff800000ab8f58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000ab8f00) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000a94800,ffff800000ab8f00,ffff800021b82fd0,0) at in_ifinit+0x1cf sys/netinet/in.c:645 in_ioctl_sifaddr(8020690c,ffff800021b82fc0,ffff800000a94800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:372 in_ioctl(8020690c,ffff800021b82fc0,ffff800000a94800,1) at in_ioctl+0x1e7 sys/netinet/in.c:243 ifioctl(fffffd8065fbe018,8020690c,ffff800021b82fc0,ffff800020acf168) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020acf168,ffff800021b830d8,ffff800021b83120) at sys_ioctl+0x5b9 syscall(ffff800021b831a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b831a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,5e9f3f5b010) at Xsyscall+0x128 end of kernel end trace frame: 0x5ec34490350, 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(ffffffff82207348,ffffffff821fed9d,3b3,ffffffff821c08dc) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000a94800,1,fffffd8065b27c48) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800021b82bd8,1,ffff800021b82ca8,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000ab8f00,240404,ffff800000ab8f58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000ab8f00) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000a94800,ffff800000ab8f00,ffff800021b82fd0,0) at in_ifinit+0x1cf sys/netinet/in.c:645 in_ioctl_sifaddr(8020690c,ffff800021b82fc0,ffff800000a94800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:372 in_ioctl(8020690c,ffff800021b82fc0,ffff800000a94800,1) at in_ioctl+0x1e7 sys/netinet/in.c:243 ifioctl(fffffd8065fbe018,8020690c,ffff800021b82fc0,ffff800020acf168) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020acf168,ffff800021b830d8,ffff800021b83120) at sys_ioctl+0x5b9 syscall(ffff800021b831a0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b831a0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,5e9f3f5b010) at Xsyscall+0x128 end of kernel end trace frame: 0x5ec34490350, count: -14 ddb{0}> show registers rdi 0xffffffff81d97467 db_enter+0x17 rsi 0xa5c1 __ALIGN_SIZE+0x95c1 rbp 0xffff800021b82910 rbx 0xffff800021b829c0 rdx 0xa5c2 __ALIGN_SIZE+0x95c2 rcx 0xffff800022d64000 rax 0xffff800022d64000 r8 0xffffffff815fe7df kprintf+0x16f r9 0x1 r10 0x25 r11 0xd9eb029496bc0e05 r12 0x3000000008 r13 0xffff800021b82920 r14 0x100 r15 0x1 rip 0xffffffff81d97468 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021b82900 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=332534 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ace020,0xffffffff8265ca30 process=0xffff800020add180 user=0xffff800021b7e000, vmspace=0xfffffd807f00ba10 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 93316 263062 84504 0 2 0 syz-executor.1 *93316 332534 84504 0 7 0x4000000 syz-executor.1 61044 320513 0 0 3 0x14200 acct acct 6579 84433 0 0 3 0x14200 bored sosplice 84504 278177 62753 0 2 0x482 syz-executor.1 74483 221188 62753 0 2 0x482 syz-executor.0 62753 448894 40768 0 3 0x82 thrsleep syz-fuzzer 62753 85566 40768 0 3 0x4000082 nanosleep syz-fuzzer 62753 85532 40768 0 3 0x4000082 thrsleep syz-fuzzer 62753 464612 40768 0 3 0x4000082 thrsleep syz-fuzzer 62753 484465 40768 0 3 0x4000082 thrsleep syz-fuzzer 62753 51292 40768 0 3 0x4000082 thrsleep syz-fuzzer 62753 180536 40768 0 3 0x4000082 thrsleep syz-fuzzer 62753 188673 40768 0 2 0x4000482 syz-fuzzer 62753 475743 40768 0 3 0x4000082 thrsleep syz-fuzzer 62753 208940 40768 0 3 0x4000082 kqread syz-fuzzer 40768 147311 52459 0 3 0x10008a pause ksh 52459 186851 46725 0 3 0x92 select sshd 46962 159148 1 0 3 0x100083 ttyin getty 46725 283257 1 0 3 0x80 select sshd 29348 44883 40524 74 3 0x100092 bpf pflogd 40524 456819 1 0 3 0x80 netio pflogd 1073 462365 41048 73 3 0x100090 kqread syslogd 41048 43261 1 0 3 0x100082 netio syslogd 44247 125077 1 77 3 0x100090 poll dhclient 15163 252323 1 0 3 0x80 poll dhclient 62362 11540 0 0 3 0x14200 pgzero zerothread 7890 442971 0 0 3 0x14200 aiodoned aiodoned 34155 34854 0 0 3 0x14200 syncer update 93969 457799 0 0 3 0x14200 cleaner cleaner 87997 77765 0 0 3 0x14200 reaper reaper 73670 43776 0 0 3 0x14200 pgdaemon pagedaemon 88857 326166 0 0 3 0x14200 bored crynlk 84829 487941 0 0 3 0x14200 bored crypto 16945 156190 0 0 3 0x40014200 acpi0 acpi0 81002 109485 0 0 3 0x40014200 idle1 43715 229756 0 0 3 0x14200 bored softnet 44357 309612 0 0 7 0x14200 systqmp 82594 485812 0 0 3 0x14200 bored systq 14135 379778 0 0 3 0x40014200 bored softclock 6187 179833 0 0 3 0x40014200 idle0 91557 207100 0 0 3 0x14200 bored smr 1 438887 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 93316 (syz-executor.1) thread 0xffff800020acf168 (332534) exclusive rwlock netlock r = 0 (0xffffffff824ef928) #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 (0xffffffff82670948) #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 9524 6469K 7363K 78643K 12280 0 0 pcb 13 10K 12K 78643K 123 0 0 rtable 88 3K 4K 78643K 513 0 0 ifaddr 54 13K 13K 78643K 165 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1484 0 0 iov 0 0K 16K 78643K 89 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1227 77K 78K 78643K 1781 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 5 0 0 VM map 3 1K 1K 78643K 3 0 0 sem 12 0K 1K 78643K 125 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 404 0 0 sigio 0 0K 0K 78643K 2 0 0 proc 60 63K 95K 78643K 549 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 80 0 0 in_multi 22 1K 2K 78643K 66 0 0 ether_multi 1 0K 0K 78643K 4 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 54 238K 238K 78643K 54 0 0 exec 0 0K 1K 78643K 265 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 122 31K 32K 78643K 2368 0 0 UVM aobj 55 3K 3K 78643K 56 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 71 0 0 NDP 11 0K 0K 78643K 44 0 0 temp 165 3559K 3625K 78643K 22665 0 0 kqueue 0 0K 0K 78643K 8 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 18 0 15 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 47 0 45 1 0 1 1 0 8 0 rtentry 112 87 0 53 2 0 2 2 0 8 0 unpcb 120 307 0 295 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpcb 544 519 0 515 11 5 6 11 0 8 5 inpcb 280 1001 0 993 9 3 6 9 0 8 5 rttmr 72 1 0 0 1 0 1 1 0 8 0 nd6 48 10 0 6 1 0 1 1 0 8 0 ppxss 1128 20 0 20 1 0 1 1 0 8 1 pffrag 232 6 0 6 3 2 1 1 0 482 1 pffrnode 88 6 0 6 3 2 1 1 0 8 1 pffrent 40 258 0 258 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 38 0 9 1 0 1 1 0 8 0 pfstkey 112 38 0 9 1 0 1 1 0 8 0 pfstate 328 38 0 9 3 0 3 3 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 392 0 164 15 0 15 15 0 8 0 art_table 32 393 0 164 2 0 2 2 0 8 0 art_node 16 86 0 52 1 0 1 1 0 8 0 sysvmsgpl 40 37 0 20 1 0 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 121 0 111 1 0 1 1 0 8 0 shmpl 112 54 0 1 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 2062 0 657 46 0 46 46 0 8 0 ffsino 272 2062 0 657 95 0 95 95 0 8 0 nchpl 144 2936 0 2484 61 42 19 61 0 8 0 uvmvnodes 72 2543 0 0 47 0 47 47 0 8 0 vnodes 208 2543 0 0 134 0 134 134 0 8 0 namei 1024 8807 0 8807 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 1 0 0 1 0 1 1 0 8 0 vmpool 552 1 0 0 1 0 1 1 0 8 0 scxspl 192 8719 0 8719 9 8 1 6 0 8 1 plimitpl 152 32 0 24 1 0 1 1 0 8 0 sigapl 432 599 0 584 3 1 2 3 0 8 0 futexpl 56 9396 0 9396 1 0 1 1 0 8 1 knotepl 112 120 0 101 1 0 1 1 0 8 0 kqueuepl 104 233 0 231 4 3 1 4 0 8 0 pipepl 112 426 0 407 4 2 2 2 0 8 1 fdescpl 488 600 0 584 3 0 3 3 0 8 0 filepl 152 5115 0 5014 16 7 9 14 0 8 5 lockfpl 104 114 0 113 1 0 1 1 0 8 0 lockfspl 48 38 0 37 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 27 0 16 1 0 1 1 0 8 0 ucredpl 96 626 0 616 1 0 1 1 0 8 0 zombiepl 144 584 0 583 1 0 1 1 0 8 0 processpl 896 617 0 583 4 0 4 4 0 8 0 procpl 632 1536 0 1492 5 0 5 5 0 8 0 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 3 0 3 2 1 1 1 0 8 1 sockpl 384 1362 0 1340 14 5 9 14 0 8 5 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 9 0 0 2 0 2 2 0 8 0 mcl2k 2048 153 0 0 19 0 19 19 0 8 0 mtagpl 80 11 0 0 1 0 1 1 0 8 0 mbufpl 256 423 0 0 24 0 24 24 0 8 0 bufpl 256 7622 0 1324 394 0 394 394 0 8 0 anonpl 16 74660 0 54832 88 6 82 86 0 124 1 amapchunkpl 152 3602 0 3442 12 4 8 12 0 158 0 amappl16 192 2876 0 1788 57 0 57 57 0 8 2 amappl14 176 108 0 100 1 0 1 1 0 8 0 amappl13 168 8 0 7 1 0 1 1 0 8 0 amappl12 160 122 0 120 2 1 1 1 0 8 0 amappl11 152 60 0 45 1 0 1 1 0 8 0 amappl10 144 15 0 11 1 0 1 1 0 8 0 amappl9 136 805 0 800 1 0 1 1 0 8 0 amappl8 128 392 0 360 2 0 2 2 0 8 0 amappl7 120 42 0 37 1 0 1 1 0 8 0 amappl6 112 63 0 53 1 0 1 1 0 8 0 amappl5 104 256 0 240 1 0 1 1 0 8 0 amappl4 96 737 0 707 1 0 1 1 0 8 0 amappl3 88 295 0 287 1 0 1 1 0 8 0 amappl2 80 3840 0 3769 3 1 2 3 0 8 0 amappl1 72 22824 0 22385 25 15 10 20 0 8 0 amappl 80 1809 0 1760 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 55 0 1 1 0 1 1 0 8 0 uaddrrnd 24 601 0 584 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 601 0 584 1 0 1 1 0 8 0 vmmpekpl 168 9039 0 9006 2 0 2 2 0 8 0 vmmpepl 168 82103 0 79858 151 26 125 138 0 357 23 vmsppl 368 599 0 584 2 0 2 2 0 8 0 pdppl 4096 1209 0 1169 6 0 6 6 0 8 0 pvpl 32 233108 0 210060 203 7 196 203 0 265 9 pmappl 232 600 0 584 3 1 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 580 0 8 17 0 17 17 0 8 0