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 216227 44084 0 0 0 0 syz-executor.1 * 9495 48408 0 0 0x4000000 1K 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(ffffffff822085d0,ffffffff82200bdf,3b3,ffffffff821c2eb0) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000b08800,1,fffffd8065db8238) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800023b82af8,1,ffff800023b82bc8,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000af4600,240404,ffff800000af4658,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000af4600) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000b08800,ffff800000af4600,ffff800023b82ef0,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800023b82ee0,ffff800000b08800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800023b82ee0,ffff800000b08800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806fc8f308,8020690c,ffff800023b82ee0,ffff800020b40560) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020b40560,ffff800023b82ff8,ffff800023b83040) at sys_ioctl+0x5b9 syscall(ffff800023b830c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b830c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,6a26b02e010) at Xsyscall+0x128 end of kernel end trace frame: 0x6a539f01d40, 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(ffffffff822085d0,ffffffff82200bdf,3b3,ffffffff821c2eb0) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000b08800,1,fffffd8065db8238) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800023b82af8,1,ffff800023b82bc8,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000af4600,240404,ffff800000af4658,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000af4600) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000b08800,ffff800000af4600,ffff800023b82ef0,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800023b82ee0,ffff800000b08800,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800023b82ee0,ffff800000b08800,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806fc8f308,8020690c,ffff800023b82ee0,ffff800020b40560) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020b40560,ffff800023b82ff8,ffff800023b83040) at sys_ioctl+0x5b9 syscall(ffff800023b830c0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b830c0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,6a26b02e010) at Xsyscall+0x128 end of kernel end trace frame: 0x6a539f01d40, count: -14 ddb{1}> show registers rdi 0xffffffff81397877 db_enter+0x17 rsi 0x4a00 __ALIGN_SIZE+0x3a00 rbp 0xffff800023b82830 rbx 0xffff800023b828e0 rdx 0x4a01 __ALIGN_SIZE+0x3a01 rcx 0xffff800023bc0000 rax 0xffff800023bc0000 r8 0xffffffff821776bf kprintf+0x16f r9 0x1 r10 0x25 r11 0x68c3b063d030ed46 r12 0x3000000008 r13 0xffff800023b82840 r14 0x100 r15 0x1 rip 0xffffffff81397878 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023b82820 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=9495 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff800020b402e8,0xffff800020b411c8 process=0xffff800020addc00 user=0xffff800023b7e000, vmspace=0xfffffd807f00b5c0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 44084 216227 98649 0 7 0 syz-executor.1 44084 513957 98649 0 3 0x4000000 biowait syz-executor.1 48408 292403 27618 0 2 0 syz-executor.0 *48408 9495 27618 0 7 0x4000000 syz-executor.0 48408 403213 27618 0 3 0x4000080 fsleep syz-executor.0 98649 375111 88668 0 3 0x82 nanosleep syz-executor.1 27618 205665 88668 0 3 0x82 nanosleep syz-executor.0 49022 176552 1 0 3 0x100083 ttyopn getty 31162 75417 0 0 3 0x14200 bored sosplice 88668 317185 45336 0 3 0x82 thrsleep syz-fuzzer 88668 410773 45336 0 3 0x4000082 nanosleep syz-fuzzer 88668 288076 45336 0 3 0x4000082 thrsleep syz-fuzzer 88668 198897 45336 0 3 0x4000082 thrsleep syz-fuzzer 88668 222662 45336 0 3 0x4000082 thrsleep syz-fuzzer 88668 200021 45336 0 3 0x4000082 thrsleep syz-fuzzer 88668 174146 45336 0 3 0x4000082 thrsleep syz-fuzzer 88668 502575 45336 0 3 0x4000082 thrsleep syz-fuzzer 88668 22334 45336 0 3 0x4000082 kqread syz-fuzzer 88668 160875 45336 0 3 0x4000082 thrsleep syz-fuzzer 45336 195324 97270 0 3 0x10008a pause ksh 97270 453519 31582 0 3 0x92 select sshd 31582 105568 1 0 3 0x80 select sshd 30286 12844 96435 74 3 0x100092 bpf pflogd 96435 260572 1 0 3 0x80 netio pflogd 66753 233929 7700 73 3 0x100090 kqread syslogd 7700 266986 1 0 3 0x100082 netio syslogd 8685 286353 1 77 3 0x100090 poll dhclient 92413 339377 1 0 3 0x80 poll dhclient 24342 10261 0 0 2 0x14200 zerothread 65362 17489 0 0 3 0x14200 aiodoned aiodoned 14994 437814 0 0 3 0x14200 syncer update 30926 279320 0 0 3 0x14200 cleaner cleaner 15353 357406 0 0 3 0x14200 reaper reaper 99751 443993 0 0 3 0x14200 pgdaemon pagedaemon 58705 172450 0 0 3 0x14200 bored crynlk 8398 335163 0 0 3 0x14200 bored crypto 1089 271440 0 0 3 0x40014200 acpi0 acpi0 10614 255288 0 0 3 0x40014200 idle1 80068 141255 0 0 3 0x14200 bored softnet 73229 401993 0 0 3 0x14200 bored systqmp 80709 431982 0 0 3 0x14200 bored systq 84899 349972 0 0 3 0x40014200 bored softclock 75761 195157 0 0 3 0x40014200 idle0 36064 47573 0 0 3 0x14200 bored smr 1 386730 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 44084 (syz-executor.1) thread 0xffff800020b416a8 (513957) exclusive rrwlock inode r = 0 (0xfffffd806eba4b38) #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_makeinode+0xaa sys/ufs/ufs/ufs_vnops.c:1832 #7 ufs_create+0x41 sys/ufs/ufs/ufs_vnops.c:152 #8 VOP_CREATE+0xc0 sys/kern/vfs_vops.c:113 #9 vn_open+0x2b4 sys/kern/vfs_vnops.c:125 #10 doopenat+0x28b sys/kern/vfs_syscalls.c:1157 #11 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] #11 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 #12 Xsyscall+0x128 exclusive rrwlock inode r = 0 (0xfffffd806eba4c48) #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 vn_open+0x1c2 sys/kern/vfs_vnops.c:116 #8 doopenat+0x28b sys/kern/vfs_syscalls.c:1157 #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 Process 48408 (syz-executor.0) thread 0xffff800020b40560 (9495) exclusive rwlock netlock r = 0 (0xffffffff824d2b38) #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 (0xffffffff82672458) #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 9623 7287K 8111K 78643K 24336 0 0 pcb 13 11K 12K 78643K 1200 0 0 rtable 109 14K 14K 78643K 3046 0 0 ifaddr 95 20K 22K 78643K 869 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2262 0 0 iov 0 0K 24K 78643K 1996 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1230 77K 77K 78643K 6792 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 212 0 0 VM map 16 8K 8K 78643K 34 0 0 sem 12 1K 1K 78643K 12 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 9155 0 0 sigio 0 0K 0K 78643K 72 0 0 proc 62 63K 95K 78643K 4461 0 0 subproc 32 2K 2K 78643K 514 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 363 0 0 in_multi 22 1K 2K 78643K 518 0 0 ether_multi 1 0K 0K 78643K 43 0 0 mrt 1 0K 0K 78643K 25 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 72 318K 318K 78643K 72 0 0 exec 0 0K 1K 78643K 972 0 0 pfkey data 0 0K 4K 78643K 4 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 162 159K 175K 78643K 29225 0 0 UVM aobj 130 4K 4K 78643K 133 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 942 0 0 NDP 24 0K 1K 78643K 277 0 0 temp 258 3565K 4205K 78643K 152419 0 0 kqueue 0 0K 0K 78643K 36 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 100 0 95 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 313 0 311 1 0 1 1 0 8 0 rtentry 112 489 0 452 2 0 2 2 0 8 0 unpcb 120 5296 0 5284 2 1 1 2 0 8 0 syncache 264 27 0 27 14 14 0 1 0 8 0 tcpqe 32 81 0 81 8 8 0 1 0 8 0 tcpcb 544 6400 0 6395 3 2 1 2 0 8 0 inpcb 280 18736 0 18725 41 39 2 8 0 8 1 rttmr 72 7 0 7 4 4 0 1 0 8 0 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 6 0 6 1 1 0 1 0 8 0 nd6 48 76 0 73 1 0 1 1 0 8 0 pkpcb 40 20 0 20 7 7 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 128 0 128 21 20 1 1 0 8 1 pffrag 232 68 0 68 20 19 1 1 0 482 1 pffrnode 88 68 0 68 20 19 1 1 0 8 1 pffrent 40 2069 0 2069 21 20 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 2676 0 2617 1 0 1 1 0 8 0 pfstkey 112 2676 0 2617 5 2 3 3 0 8 0 pfstate 328 2676 0 2611 25 16 9 13 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 9 0 7 6 4 2 4 0 8 0 art_heap4 256 2025 0 1838 38 23 15 15 0 8 0 art_table 32 2034 0 1845 2 0 2 2 0 8 0 art_node 16 487 0 452 1 0 1 1 0 8 0 sysvmsgpl 40 155 0 141 2 1 1 1 0 8 0 semupl 112 4 0 4 1 1 0 1 0 8 0 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 17924 0 16508 46 0 46 46 0 8 0 ffsino 272 17924 0 16508 95 0 95 95 0 8 0 nchpl 144 34899 0 34454 61 41 20 61 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 102035 0 102034 1 0 1 1 0 8 0 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 15 0 1 2 0 2 2 0 8 0 vmpool 552 32 0 18 4 2 2 2 0 8 1 scsiplug 64 3 0 3 2 2 0 1 0 8 0 scxspl 192 98212 0 98211 40 39 1 7 0 8 0 plimitpl 152 358 0 350 1 0 1 1 0 8 0 sigapl 432 9274 0 9258 3 1 2 3 0 8 0 futexpl 56 194327 0 194326 1 0 1 1 0 8 0 knotepl 112 1093 0 1074 4 3 1 3 0 8 0 kqueuepl 104 1173 0 1171 1 0 1 1 0 8 0 pipepl 112 2812 0 2793 5 4 1 2 0 8 0 fdescpl 488 9275 0 9258 3 0 3 3 0 8 0 filepl 152 72287 0 72182 35 30 5 10 0 8 0 lockfpl 104 7741 0 7740 1 0 1 1 0 8 0 lockfspl 48 3123 0 3122 1 0 1 1 0 8 0 sessionpl 112 49 0 38 1 0 1 1 0 8 0 pgrppl 48 1227 0 1216 1 0 1 1 0 8 0 ucredpl 96 8782 0 8773 1 0 1 1 0 8 0 zombiepl 144 9260 0 9260 1 0 1 1 0 8 1 processpl 896 9293 0 9260 4 0 4 4 0 8 0 procpl 632 26699 0 26654 15 10 5 5 0 8 0 srpgc 64 52 0 52 19 18 1 1 0 8 1 sosppl 128 69 0 69 18 18 0 1 0 8 0 sockpl 384 25269 0 25244 70 66 4 14 0 8 1 mcl64k 65536 282 0 0 35 32 3 34 0 8 0 mcl16k 16384 33 0 0 3 0 3 3 0 8 0 mcl12k 12288 33 0 0 2 0 2 2 0 8 0 mcl9k 9216 13 0 0 1 0 1 1 0 8 0 mcl8k 8192 20 0 0 3 1 2 3 0 8 0 mcl4k 4096 25 0 0 3 0 3 3 0 8 0 mcl2k2 2112 13 0 0 1 0 1 1 0 8 0 mcl2k 2048 307 0 0 17 9 8 17 0 8 0 mtagpl 80 71 0 0 1 0 1 1 0 8 0 mbufpl 256 1236 0 0 34 1 33 33 0 8 0 bufpl 256 27404 0 20356 441 0 441 441 0 8 0 anonpl 16 1308841 0 1290199 155 71 84 94 0 124 0 amapchunkpl 152 55712 0 55570 82 75 7 20 0 158 0 amappl16 192 71737 0 70656 235 180 55 67 0 8 0 amappl15 184 932 0 927 7 6 1 1 0 8 0 amappl14 176 1334 0 1331 1 0 1 1 0 8 0 amappl13 168 446 0 446 2 2 0 1 0 8 0 amappl12 160 192 0 189 2 1 1 1 0 8 0 amappl11 152 3309 0 3294 1 0 1 1 0 8 0 amappl10 144 853 0 846 1 0 1 1 0 8 0 amappl9 136 3467 0 3458 1 0 1 1 0 8 0 amappl8 128 3078 0 3026 2 0 2 2 0 8 0 amappl7 120 973 0 962 1 0 1 1 0 8 0 amappl6 112 3238 0 3222 1 0 1 1 0 8 0 amappl5 104 592 0 578 1 0 1 1 0 8 0 amappl4 96 10142 0 10103 1 0 1 1 0 8 0 amappl3 88 964 0 957 1 0 1 1 0 8 0 amappl2 80 72692 0 72605 3 1 2 3 0 8 0 amappl1 72 200062 0 199600 25 15 10 20 0 8 0 amappl 80 27584 0 27529 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 132 0 3 3 0 3 3 0 8 0 uaddrrnd 24 9307 0 9258 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 9307 0 9258 1 0 1 1 0 8 0 vmmpekpl 168 61149 0 61110 4 1 3 3 0 8 0 vmmpepl 168 1168464 0 1166052 516 379 137 151 0 357 25 vmsppl 368 9274 0 9258 2 0 2 2 0 8 0 pdppl 4096 18621 0 18566 12 4 8 8 0 8 1 pvpl 32 2827683 0 2805981 410 217 193 220 0 265 0 pmappl 232 9306 0 9276 4 2 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 700 0 79 19 0 19 19 0 8 0