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 179414 1973 0 0 0 0 syz-executor.1 *520725 1973 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(ffffffff82205e21,ffffffff821fcb2f,3b3,ffffffff821bd569) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000cb8000,1,fffffd80624b0318) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800020b42f68,1,ffff800020b43038,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000cb7f00,240404,ffff800000cb7f58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000cb7f00) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000cb8000,ffff800000cb7f00,ffff800020b43360,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800020b43350,ffff800000cb8000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800020b43350,ffff800000cb8000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd8071519938,8020690c,ffff800020b43350,ffff800020abec70) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abec70,ffff800020b43468,ffff800020b434b0) at sys_ioctl+0x5b9 syscall(ffff800020b43530) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b43530) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,d68f39a20e0) at Xsyscall+0x128 end of kernel end trace frame: 0xd6ba37fd570, 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(ffff800000cb8000,1,fffffd80624b0318) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800020b42f68,1,ffff800020b43038,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000cb7f00,240404,ffff800000cb7f58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000cb7f00) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000cb8000,ffff800000cb7f00,ffff800020b43360,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800020b43350,ffff800000cb8000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800020b43350,ffff800000cb8000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd8071519938,8020690c,ffff800020b43350,ffff800020abec70) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020abec70,ffff800020b43468,ffff800020b434b0) at sys_ioctl+0x5b9 syscall(ffff800020b43530) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800020b43530) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,d68f39a20e0) at Xsyscall+0x128 end of kernel end trace frame: 0xd6ba37fd570, count: -14 ddb{1}> show registers rdi 0xffffffff81bab4d7 db_enter+0x17 rsi 0x412b __ALIGN_SIZE+0x312b rbp 0xffff800020b42ca0 rbx 0xffff800020b42d50 rdx 0x412c __ALIGN_SIZE+0x312c rcx 0xffff800022f74000 rax 0xffff800022f74000 r8 0xffffffff8188b28f kprintf+0x16f r9 0x1 r10 0x25 r11 0x7b02ca7db1bcbfd4 r12 0x3000000008 r13 0xffff800020b42cb0 r14 0x100 r15 0x1 rip 0xffffffff81bab4d8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020b42c90 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=520725 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020abfb40,0xffffffff8264c6f8 process=0xffff800020adca80 user=0xffff800020b3e000, vmspace=0xfffffd807f00acf0 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 1973 179414 57868 0 7 0 syz-executor.1 1973 293123 57868 0 3 0x4000080 fsleep syz-executor.1 * 1973 520725 57868 0 7 0x4000000 syz-executor.1 34881 361183 81943 0 3 0x82 nanosleep syz-executor.0 57868 33251 81943 0 3 0x82 nanosleep syz-executor.1 39581 90995 1 0 3 0x100083 ttyin getty 6307 300703 0 0 3 0x14200 acct acct 34943 68945 0 0 3 0x14200 bored sosplice 81943 180476 71452 0 3 0x82 thrsleep syz-fuzzer 81943 364991 71452 0 3 0x4000082 thrsleep syz-fuzzer 81943 243602 71452 0 3 0x4000082 thrsleep syz-fuzzer 81943 442786 71452 0 3 0x4000082 thrsleep syz-fuzzer 81943 274249 71452 0 3 0x4000082 thrsleep syz-fuzzer 81943 418215 71452 0 3 0x4000082 kqread syz-fuzzer 81943 451786 71452 0 3 0x4000082 thrsleep syz-fuzzer 81943 418058 71452 0 3 0x4000082 thrsleep syz-fuzzer 81943 522617 71452 0 3 0x4000082 thrsleep syz-fuzzer 81943 61255 71452 0 3 0x4000082 thrsleep syz-fuzzer 71452 361950 78449 0 3 0x10008a pause ksh 78449 155303 87525 0 3 0x92 select sshd 87525 131742 1 0 3 0x80 select sshd 91969 97370 5743 74 3 0x100092 bpf pflogd 5743 487852 1 0 3 0x80 netio pflogd 86499 158198 95209 73 3 0x100090 kqread syslogd 95209 143137 1 0 3 0x100082 netio syslogd 14015 72888 1 77 3 0x100090 poll dhclient 93074 429715 1 0 3 0x80 poll dhclient 30769 137441 0 0 3 0x14200 pgzero zerothread 88446 15671 0 0 3 0x14200 aiodoned aiodoned 15309 386411 0 0 3 0x14200 syncer update 6784 294413 0 0 3 0x14200 cleaner cleaner 95695 412450 0 0 3 0x14200 reaper reaper 42225 224391 0 0 3 0x14200 pgdaemon pagedaemon 22047 286598 0 0 3 0x14200 bored crynlk 15019 188468 0 0 3 0x14200 bored crypto 60483 481968 0 0 3 0x40014200 acpi0 acpi0 7560 420656 0 0 3 0x40014200 idle1 19312 166652 0 0 3 0x14200 bored softnet 63634 310211 0 0 3 0x14200 bored systqmp 49369 42327 0 0 3 0x14200 bored systq 96133 373178 0 0 3 0x40014200 bored softclock 40592 521885 0 0 3 0x40014200 idle0 70024 233779 0 0 3 0x14200 bored smr 1 448717 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 1973 (syz-executor.1) thread 0xffff800020abec70 (520725) 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 9601 6460K 11395K 78643K 29104 0 0 pcb 13 12K 14K 78643K 685 0 0 rtable 119 6K 6K 78643K 2717 0 0 ifaddr 95 21K 22K 78643K 704 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1641 0 0 iov 0 0K 32K 78643K 701 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1231 77K 78K 78643K 6595 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 24 0 0 VM map 26 13K 13K 78643K 36 0 0 sem 12 0K 1K 78643K 824 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 3351 0 0 sigio 1 0K 0K 78643K 54 0 0 proc 62 63K 83K 78643K 1920 0 0 subproc 32 2K 2K 78643K 497 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 255 0 0 in_multi 34 2K 2K 78643K 500 0 0 ether_multi 1 0K 0K 78643K 22 0 0 mrt 0 0K 0K 78643K 5 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 90 397K 397K 78643K 90 0 0 exec 0 0K 1K 78643K 913 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 141 201K 201K 78643K 12650 0 0 UVM aobj 130 8K 8K 78643K 157 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 698 0 0 NDP 22 0K 1K 78643K 245 0 0 temp 245 3565K 4205K 78643K 128186 0 0 kqueue 0 0K 0K 78643K 27 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 116 0 111 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 325 0 323 1 0 1 1 0 8 0 rtentry 112 524 0 479 2 0 2 2 0 8 0 unpcb 120 2169 0 2158 3 2 1 2 0 8 0 syncache 264 19 0 19 7 7 0 1 0 8 0 tcpqe 32 222 0 222 7 7 0 1 0 8 0 tcpcb 544 1370 0 1366 15 14 1 11 0 8 0 inpcb 280 4585 0 4576 28 26 2 13 0 8 1 rttmr 72 2 0 2 2 2 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 79 0 73 1 0 1 1 0 8 0 pkpcb 40 27 0 27 8 7 1 1 0 8 1 ppxss 1128 98 0 97 7 6 1 1 0 8 0 pffrag 232 97 0 97 10 9 1 1 0 482 1 pffrnode 88 97 0 97 10 9 1 1 0 8 1 pffrent 40 3548 0 3548 10 9 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 299 0 226 1 0 1 1 0 8 0 pfstkey 112 299 0 226 3 0 3 3 0 8 0 pfstate 328 299 0 224 7 0 7 7 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 5 0 2 3 0 3 3 0 8 0 art_heap4 256 2234 0 1969 30 13 17 17 0 8 0 art_table 32 2239 0 1971 4 1 3 3 0 8 0 art_node 16 523 0 482 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 0 1 0 1 1 0 8 0 semupl 112 3 0 3 2 2 0 1 0 8 0 semapl 112 822 0 812 1 0 1 1 0 8 0 shmpl 112 155 0 27 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 6440 0 5020 46 0 46 46 0 8 0 ffsino 272 6440 0 5020 95 0 95 95 0 8 0 nchpl 144 12343 0 11864 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 44757 0 44757 2 1 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 24 0 0 3 0 3 3 0 8 0 vmpool 552 34 0 10 4 2 2 2 0 8 0 scsiplug 64 5 0 5 2 2 0 1 0 8 0 scxspl 192 39533 0 39533 29 26 3 6 0 8 3 plimitpl 152 295 0 287 1 0 1 1 0 8 0 sigapl 432 3472 0 3457 5 3 2 3 0 8 0 futexpl 56 77175 0 77174 1 0 1 1 0 8 0 knotepl 112 1029 0 1010 2 1 1 2 0 8 0 kqueuepl 104 915 0 913 4 3 1 4 0 8 0 pipepl 112 2060 0 2041 8 7 1 2 0 8 0 fdescpl 488 3473 0 3457 3 0 3 3 0 8 0 filepl 152 31366 0 31264 34 29 5 14 0 8 0 lockfpl 104 1124 0 1123 1 0 1 1 0 8 0 lockfspl 48 382 0 381 1 0 1 1 0 8 0 sessionpl 112 47 0 36 1 0 1 1 0 8 0 pgrppl 48 81 0 70 1 0 1 1 0 8 0 ucredpl 96 4248 0 4239 1 0 1 1 0 8 0 zombiepl 144 3458 0 3457 1 0 1 1 0 8 0 processpl 896 3491 0 3457 6 2 4 5 0 8 0 procpl 632 10525 0 10480 7 2 5 5 0 8 1 srpgc 64 37 0 37 13 13 0 1 0 8 0 sosppl 128 69 0 69 11 10 1 1 0 8 1 sockpl 384 7163 0 7141 53 49 4 23 0 8 1 mcl64k 65536 269 0 0 34 19 15 34 0 8 1 mcl16k 16384 14 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 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 184 0 0 22 3 19 22 0 8 0 mtagpl 80 64 0 0 1 0 1 1 0 8 0 mbufpl 256 704 0 0 36 0 36 36 0 8 0 bufpl 256 16109 0 9061 441 0 441 441 0 8 0 anonpl 16 453232 0 433934 174 88 86 98 0 124 0 amapchunkpl 152 25785 0 25658 50 43 7 20 0 158 0 amappl16 192 18876 0 17706 159 92 67 69 0 8 7 amappl15 184 245 0 245 2 2 0 1 0 8 0 amappl14 176 791 0 785 1 0 1 1 0 8 0 amappl13 168 301 0 301 3 3 0 1 0 8 0 amappl12 160 142 0 140 1 0 1 1 0 8 0 amappl11 152 770 0 755 1 0 1 1 0 8 0 amappl10 144 558 0 551 1 0 1 1 0 8 0 amappl9 136 1568 0 1562 1 0 1 1 0 8 0 amappl8 128 1059 0 1027 2 0 2 2 0 8 0 amappl7 120 679 0 669 1 0 1 1 0 8 0 amappl6 112 691 0 683 1 0 1 1 0 8 0 amappl5 104 446 0 432 1 0 1 1 0 8 0 amappl4 96 3825 0 3793 1 0 1 1 0 8 0 amappl3 88 839 0 832 1 0 1 1 0 8 0 amappl2 80 25406 0 25329 3 1 2 3 0 8 0 amappl1 72 88355 0 87911 25 15 10 20 0 8 0 amappl 80 11282 0 11229 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 156 0 27 3 0 3 3 0 8 0 uaddrrnd 24 3507 0 3457 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3507 0 3457 1 0 1 1 0 8 0 vmmpekpl 168 30410 0 30371 4 1 3 3 0 8 0 vmmpepl 168 457856 0 455425 255 102 153 153 0 357 41 vmsppl 368 3472 0 3457 2 0 2 2 0 8 0 pdppl 4096 7021 0 6958 12 3 9 9 0 8 0 pvpl 32 1193374 0 1172114 343 138 205 226 0 265 21 pmappl 232 3506 0 3467 4 1 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 707 0 56 19 0 19 19 0 8 0