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 298596 14990 0 0 0 0 syz-executor.0 *307917 14990 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(ffffffff82205e21,ffffffff821fcb2f,3b3,ffffffff821bd569) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000b13000,1,fffffd8062945238) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800021b96bb8,1,ffff800021b96c88,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000af5400,240404,ffff800000af5458,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000af5400) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000b13000,ffff800000af5400,ffff800021b96fb0,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800021b96fa0,ffff800000b13000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800021b96fa0,ffff800000b13000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd80623d1338,8020690c,ffff800021b96fa0,ffff800020ab0c70) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0c70,ffff800021b970b8,ffff800021b97100) at sys_ioctl+0x5b9 syscall(ffff800021b97180) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b97180) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,75052afd010) at Xsyscall+0x128 end of kernel end trace frame: 0x75342a0c300, 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(ffffffff82205e21,ffffffff821fcb2f,3b3,ffffffff821bd569) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000b13000,1,fffffd8062945238) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800021b96bb8,1,ffff800021b96c88,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000af5400,240404,ffff800000af5458,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000af5400) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000b13000,ffff800000af5400,ffff800021b96fb0,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800021b96fa0,ffff800000b13000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800021b96fa0,ffff800000b13000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd80623d1338,8020690c,ffff800021b96fa0,ffff800020ab0c70) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0c70,ffff800021b970b8,ffff800021b97100) at sys_ioctl+0x5b9 syscall(ffff800021b97180) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021b97180) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,75052afd010) at Xsyscall+0x128 end of kernel end trace frame: 0x75342a0c300, count: -14 ddb{1}> show registers rdi 0xffffffff81bab4d7 db_enter+0x17 rsi 0x3fbc __ALIGN_SIZE+0x2fbc rbp 0xffff800021b968f0 rbx 0xffff800021b969a0 rdx 0x3fbd __ALIGN_SIZE+0x2fbd rcx 0xffff800020b78000 rax 0xffff800020b78000 r8 0xffffffff8188b28f kprintf+0x16f r9 0x1 r10 0x25 r11 0xf4e4f5a6b5c8f3af r12 0x3000000008 r13 0xffff800021b96900 r14 0x100 r15 0x1 rip 0xffffffff81bab4d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021b968e0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=307917 stat=onproc flags process=0 proc=4000000 pri=82, usrpri=82, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab0018,0xffff800020ab1b50 process=0xffff800020adca80 user=0xffff800021b92000, vmspace=0xfffffd807f00a450 estcpu=36, cpticks=3, pctcpu=0.0 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 33394 157515 69536 0 2 0 syz-executor.1 33394 205535 69536 0 3 0x4000080 kqread syz-executor.1 33394 33189 69536 0 3 0x4000080 fsleep syz-executor.1 14990 298596 21097 0 7 0 syz-executor.0 *14990 307917 21097 0 7 0x4000000 syz-executor.0 14990 25750 21097 0 2 0x4000080 syz-executor.0 14990 75101 21097 0 3 0x4000080 fsleep syz-executor.0 14990 17209 21097 0 3 0x4000080 fsleep syz-executor.0 69536 151211 26144 0 3 0x82 nanosleep syz-executor.1 56961 49140 0 0 3 0x14200 acct acct 21097 469748 26144 0 3 0x82 nanosleep syz-executor.0 1875 169814 1 0 3 0x100083 ttyopn getty 33713 430681 0 0 3 0x14200 bored sosplice 26144 360747 88234 0 3 0x82 thrsleep syz-fuzzer 26144 456407 88234 0 3 0x4000082 thrsleep syz-fuzzer 26144 402437 88234 0 3 0x4000082 thrsleep syz-fuzzer 26144 257185 88234 0 3 0x4000082 thrsleep syz-fuzzer 26144 234992 88234 0 3 0x4000082 kqread syz-fuzzer 26144 124956 88234 0 3 0x4000082 thrsleep syz-fuzzer 26144 322043 88234 0 3 0x4000082 thrsleep syz-fuzzer 26144 259465 88234 0 3 0x4000082 thrsleep syz-fuzzer 26144 427091 88234 0 3 0x4000082 thrsleep syz-fuzzer 26144 378867 88234 0 3 0x4000082 thrsleep syz-fuzzer 88234 112616 63638 0 3 0x10008a pause ksh 63638 437271 48721 0 3 0x92 select sshd 48721 418835 1 0 3 0x80 select sshd 98302 436937 44465 74 3 0x100092 bpf pflogd 44465 311605 1 0 3 0x80 netio pflogd 54244 273644 71625 73 3 0x100090 kqread syslogd 71625 204056 1 0 3 0x100082 netio syslogd 39520 267779 1 77 3 0x100090 poll dhclient 94842 385415 1 0 3 0x80 poll dhclient 9288 138497 0 0 2 0x14200 zerothread 70628 472154 0 0 3 0x14200 aiodoned aiodoned 84080 90437 0 0 3 0x14200 syncer update 4245 266473 0 0 3 0x14200 cleaner cleaner 64033 428530 0 0 3 0x14200 reaper reaper 39859 76768 0 0 3 0x14200 pgdaemon pagedaemon 55186 517000 0 0 3 0x14200 bored crynlk 82352 118808 0 0 3 0x14200 bored crypto 61227 249843 0 0 3 0x40014200 acpi0 acpi0 53143 226144 0 0 3 0x40014200 idle1 105 446505 0 0 3 0x14200 bored softnet 99413 412557 0 0 3 0x14200 bored systqmp 25626 65613 0 0 3 0x14200 bored systq 81352 277535 0 0 3 0x40014200 bored softclock 84737 107755 0 0 3 0x40014200 idle0 11628 137820 0 0 3 0x14200 bored smr 1 346524 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 14990 (syz-executor.0) thread 0xffff800020ab0c70 (307917) exclusive rwlock netlock r = 0 (0xffffffff824e8728) #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 (0xffffffff8266bc58) #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 9590 6446K 7124K 78643K 16789 0 0 pcb 13 10K 12K 78643K 516 0 0 rtable 114 5K 5K 78643K 1735 0 0 ifaddr 87 18K 18K 78643K 535 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1588 0 0 iov 0 0K 32K 78643K 3386 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1207 76K 77K 78643K 3433 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 3 5K 9K 78643K 33 0 0 VM map 13 6K 7K 78643K 26 0 0 sem 12 0K 1K 78643K 547 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 2493 0 0 sigio 0 0K 0K 78643K 36 0 0 proc 62 63K 83K 78643K 1335 0 0 subproc 32 2K 2K 78643K 306 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 135 0 0 in_multi 35 2K 2K 78643K 309 0 0 ether_multi 1 0K 0K 78643K 27 0 0 mrt 0 0K 0K 78643K 4 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 84 371K 371K 78643K 84 0 0 exec 0 0K 1K 78643K 612 0 0 pfkey data 0 0K 0K 78643K 2 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 142 120K 137K 78643K 9517 0 0 UVM aobj 130 4K 4K 78643K 132 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 543 0 0 NDP 20 0K 0K 78643K 166 0 0 temp 235 3575K 4204K 78643K 133377 0 0 kqueue 0 0K 0K 78643K 23 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 61 0 56 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 205 0 203 1 0 1 1 0 8 0 rtentry 112 289 0 245 2 0 2 2 0 8 0 unpcb 120 1460 0 1448 3 2 1 2 0 8 0 syncache 264 14 0 14 6 5 1 1 0 8 1 tcpqe 32 4 0 4 2 1 1 1 0 8 1 tcpcb 544 1606 0 1601 12 9 3 4 0 8 2 inpcb 280 3863 0 3852 19 16 3 13 0 8 2 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 41 0 35 1 0 1 1 0 8 0 pkpcb 40 9 0 9 4 4 0 1 0 8 0 ppxss 1128 65 0 65 6 5 1 1 0 8 1 pffrag 232 59 0 52 6 5 1 1 0 482 0 pffrnode 88 54 0 51 6 5 1 1 0 8 0 pffrent 40 1734 0 1717 6 5 1 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 219 0 174 1 0 1 1 0 8 0 pfstkey 112 219 0 174 3 0 3 3 0 8 0 pfstate 328 219 0 174 7 0 7 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 2 0 1 2 1 1 2 0 8 0 art_heap4 256 1192 0 957 24 9 15 15 0 8 0 art_table 32 1194 0 958 2 0 2 2 0 8 0 art_node 16 288 0 248 1 0 1 1 0 8 0 sysvmsgpl 40 38 0 31 2 1 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 543 0 533 1 0 1 1 0 8 0 shmpl 112 130 0 2 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5840 0 4434 46 0 46 46 0 8 0 ffsino 272 5840 0 4434 95 0 95 95 0 8 0 nchpl 144 9942 0 8327 61 0 61 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 34257 0 34257 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 11 0 0 2 0 2 2 0 8 0 vmpool 552 24 0 13 1 0 1 1 0 8 0 scsiplug 64 2 0 2 2 2 0 1 0 8 0 scxspl 192 36099 0 36099 22 21 1 7 0 8 1 plimitpl 152 217 0 209 1 0 1 1 0 8 0 sigapl 432 2646 0 2630 3 1 2 3 0 8 0 futexpl 56 57471 0 57468 1 0 1 1 0 8 0 knotepl 112 743 0 719 2 1 1 2 0 8 0 kqueuepl 104 651 0 642 1 0 1 1 0 8 0 pipepl 112 1480 0 1461 3 2 1 2 0 8 0 fdescpl 488 2647 0 2630 3 0 3 3 0 8 0 filepl 152 23865 0 23752 22 16 6 13 0 8 1 lockfpl 104 5651 0 5649 1 0 1 1 0 8 0 lockfspl 48 1046 0 1044 1 0 1 1 0 8 0 sessionpl 112 35 0 24 1 0 1 1 0 8 0 pgrppl 48 71 0 60 1 0 1 1 0 8 0 ucredpl 96 2268 0 2259 1 0 1 1 0 8 0 zombiepl 144 2631 0 2631 2 1 1 1 0 8 1 processpl 896 2665 0 2631 4 0 4 4 0 8 0 procpl 632 7936 0 7887 6 1 5 5 0 8 0 srpgc 64 22 0 22 8 8 0 1 0 8 0 sosppl 128 34 0 34 7 6 1 1 0 8 1 sockpl 384 5591 0 5566 33 27 6 22 0 8 3 mcl64k 65536 258 0 0 33 15 18 33 0 8 1 mcl16k 16384 11 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 12 0 0 2 0 2 2 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 188 0 0 23 2 21 23 0 8 1 mtagpl 80 34 0 0 1 0 1 1 0 8 0 mbufpl 256 836 0 0 46 0 46 46 0 8 0 bufpl 256 15736 0 8688 441 0 441 441 0 8 0 anonpl 16 324598 0 307932 138 55 83 94 0 124 3 amapchunkpl 152 17577 0 17452 29 23 6 11 0 158 0 amappl16 192 14755 0 13662 120 53 67 67 0 8 11 amappl15 184 156 0 155 1 0 1 1 0 8 0 amappl14 176 967 0 963 1 0 1 1 0 8 0 amappl13 168 107 0 105 5 4 1 1 0 8 0 amappl12 160 353 0 349 2 1 1 1 0 8 0 amappl11 152 103 0 88 1 0 1 1 0 8 0 amappl10 144 135 0 131 1 0 1 1 0 8 0 amappl9 136 938 0 930 1 0 1 1 0 8 0 amappl8 128 493 0 451 2 0 2 2 0 8 0 amappl7 120 237 0 229 1 0 1 1 0 8 0 amappl6 112 127 0 109 1 0 1 1 0 8 0 amappl5 104 638 0 623 1 0 1 1 0 8 0 amappl4 96 1912 0 1878 1 0 1 1 0 8 0 amappl3 88 2066 0 2057 1 0 1 1 0 8 0 amappl2 80 19446 0 19361 3 1 2 3 0 8 0 amappl1 72 70226 0 69751 26 16 10 21 0 8 0 amappl 80 8472 0 8420 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 131 0 2 3 0 3 3 0 8 0 uaddrrnd 24 2671 0 2630 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2671 0 2630 1 0 1 1 0 8 0 vmmpekpl 168 25084 0 25047 2 0 2 2 0 8 0 vmmpepl 168 346146 0 343717 217 74 143 148 0 357 32 vmsppl 368 2646 0 2630 2 0 2 2 0 8 0 pdppl 4096 5349 0 5297 7 0 7 7 0 8 0 pvpl 32 879540 0 859778 284 81 203 222 0 265 16 pmappl 232 2670 0 2643 3 1 2 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 701 0 40 20 0 20 20 0 8 0