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 99720 52209 0 0 0x4000000 1 syz-executor.1 *261774 36674 0 0 0x4000000 0K 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(ffffffff82207803,ffffffff82201b7e,3b3,ffffffff821c028a) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000b59000,1,fffffd80660529a8) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800023b8ca48,1,ffff800023b8cb18,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000b6b500,240404,ffff800000b6b558,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000b6b500) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000b59000,ffff800000b6b500,ffff800023b8ce40,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800023b8ce30,ffff800000b59000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800023b8ce30,ffff800000b59000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806559ada0,8020690c,ffff800023b8ce30,ffff800022d82c78) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800022d82c78,ffff800023b8cf48,ffff800023b8cf90) at sys_ioctl+0x5b9 syscall(ffff800023b8d010) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b8d010) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,37d2c4660e0) at Xsyscall+0x128 end of kernel end trace frame: 0x37f7cb72330, 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(ffffffff82207803,ffffffff82201b7e,3b3,ffffffff821c028a) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000b59000,1,fffffd80660529a8) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800023b8ca48,1,ffff800023b8cb18,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000b6b500,240404,ffff800000b6b558,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000b6b500) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000b59000,ffff800000b6b500,ffff800023b8ce40,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800023b8ce30,ffff800000b59000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800023b8ce30,ffff800000b59000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806559ada0,8020690c,ffff800023b8ce30,ffff800022d82c78) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800022d82c78,ffff800023b8cf48,ffff800023b8cf90) at sys_ioctl+0x5b9 syscall(ffff800023b8d010) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023b8d010) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,37d2c4660e0) at Xsyscall+0x128 end of kernel end trace frame: 0x37f7cb72330, count: -14 ddb{0}> show registers rdi 0xffffffff814a9117 db_enter+0x17 rsi 0x5012 __ALIGN_SIZE+0x4012 rbp 0xffff800023b8c780 rbx 0xffff800023b8c830 rdx 0x5013 __ALIGN_SIZE+0x4013 rcx 0xffff800023784000 rax 0xffff800023784000 r8 0xffffffff81918aaf kprintf+0x16f r9 0x1 r10 0x25 r11 0xe9611ac87f08c87a r12 0x3000000008 r13 0xffff800023b8c790 r14 0x100 r15 0x1 rip 0xffffffff814a9118 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023b8c770 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=261774 stat=onproc flags process=0 proc=4000000 pri=78, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff800022d82298,0xffff800022d82520 process=0xffff800020a8b190 user=0xffff800023b88000, vmspace=0xfffffd807f00aa10 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 52209 218611 6235 0 2 0 syz-executor.1 52209 99720 6235 0 7 0x4000000 syz-executor.1 36674 57207 23828 0 2 0 syz-executor.0 36674 361569 23828 0 3 0x4000080 fsleep syz-executor.0 *36674 261774 23828 0 7 0x4000000 syz-executor.0 6235 34919 30900 0 2 0x482 syz-executor.1 23828 253491 30900 0 2 0x482 syz-executor.0 47354 428126 1 0 3 0x100083 ttyopn getty 97240 46289 0 0 3 0x14200 acct acct 26015 193934 0 0 3 0x14200 bored sosplice 30900 284574 67134 0 3 0x82 thrsleep syz-fuzzer 30900 71334 67134 0 3 0x4000082 nanosleep syz-fuzzer 30900 276896 67134 0 3 0x4000082 thrsleep syz-fuzzer 30900 190369 67134 0 3 0x4000082 kqread syz-fuzzer 30900 469497 67134 0 3 0x4000082 thrsleep syz-fuzzer 30900 349670 67134 0 3 0x4000082 thrsleep syz-fuzzer 30900 43491 67134 0 3 0x4000082 thrsleep syz-fuzzer 30900 241322 67134 0 3 0x4000082 thrsleep syz-fuzzer 30900 476236 67134 0 3 0x4000082 thrsleep syz-fuzzer 30900 373786 67134 0 3 0x4000082 thrsleep syz-fuzzer 67134 355086 98383 0 3 0x10008a pause ksh 98383 312478 93898 0 3 0x92 select sshd 93898 375477 1 0 3 0x80 select sshd 3421 449344 38956 74 3 0x100092 bpf pflogd 38956 126355 1 0 3 0x80 netio pflogd 20233 21268 25664 73 3 0x100090 kqread syslogd 25664 192340 1 0 3 0x100082 netio syslogd 48815 166073 1 77 3 0x100090 poll dhclient 27421 271373 1 0 3 0x80 poll dhclient 77919 333751 0 0 2 0x14200 zerothread 90890 465623 0 0 3 0x14200 aiodoned aiodoned 41526 500496 0 0 3 0x14200 syncer update 73067 103661 0 0 3 0x14200 cleaner cleaner 73801 307210 0 0 3 0x14200 reaper reaper 50415 101749 0 0 3 0x14200 pgdaemon pagedaemon 61863 425967 0 0 3 0x14200 bored crynlk 7475 72285 0 0 3 0x14200 bored crypto 78355 115074 0 0 3 0x40014200 acpi0 acpi0 92516 190233 0 0 3 0x40014200 idle1 96992 223063 0 0 3 0x14200 bored softnet 52242 505096 0 0 2 0x14200 systqmp 21585 389046 0 0 3 0x14200 bored systq 41678 213937 0 0 3 0x40014200 bored softclock 90827 53189 0 0 3 0x40014200 idle0 34825 522507 0 0 3 0x14200 bored smr 1 200617 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 36674 (syz-executor.0) thread 0xffff800022d82c78 (261774) 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{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9622 7097K 9095K 78643K 23552 0 0 pcb 13 12K 14K 78643K 709 0 0 rtable 121 13K 13K 78643K 1854 0 0 ifaddr 102 21K 22K 78643K 645 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1575 0 0 iov 0 0K 36K 78643K 480 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1232 77K 78K 78643K 4963 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 34 0 0 VM map 21 10K 10K 78643K 28 0 0 sem 12 0K 1K 78643K 522 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 2521 0 0 sigio 0 0K 0K 78643K 35 0 0 proc 61 63K 95K 78643K 1396 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 1K 78643K 632 0 0 in_multi 36 2K 2K 78643K 306 0 0 ether_multi 1 0K 0K 78643K 36 0 0 mrt 0 0K 0K 78643K 21 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 78 344K 344K 78643K 78 0 0 exec 0 0K 1K 78643K 629 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 145 201K 202K 78643K 11152 0 0 UVM aobj 130 8K 8K 78643K 136 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 469 0 0 NDP 27 1K 1K 78643K 189 0 0 temp 263 3565K 4205K 78643K 114690 0 0 kqueue 0 0K 0K 78643K 20 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 56 0 51 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 252 0 250 1 0 1 1 0 8 0 rtentry 112 281 0 235 2 0 2 2 0 8 0 unpcb 120 1356 0 1343 3 2 1 2 0 8 0 syncache 264 15 0 15 8 8 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 6 0 6 6 6 0 1 0 8 0 tcpcb 544 1291 0 1287 16 15 1 12 0 8 0 inpcb 280 3839 0 3830 37 35 2 13 0 8 1 rttmr 72 4 0 4 3 3 0 1 0 8 0 nd6 48 43 0 37 2 1 1 1 0 8 0 pkpcb 40 26 0 26 10 10 0 1 0 8 0 ppxss 1128 98 0 98 19 18 1 1 0 8 1 pffrag 232 66 0 66 18 17 1 1 0 482 1 pffrnode 88 66 0 66 18 17 1 1 0 8 1 pffrent 40 1920 0 1920 18 17 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 241 0 199 1 0 1 1 0 8 0 pfstkey 112 241 0 199 2 0 2 2 0 8 0 pfstate 328 241 0 199 4 0 4 4 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 6 0 5 3 2 1 3 0 8 0 art_heap4 256 1111 0 867 26 10 16 16 0 8 0 art_table 32 1117 0 872 2 0 2 2 0 8 0 art_node 16 280 0 237 1 0 1 1 0 8 0 sysvmsgpl 40 22 0 18 3 2 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 520 0 510 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 5208 0 3806 46 0 46 46 0 8 0 ffsino 272 5208 0 3806 95 0 95 95 0 8 0 nchpl 144 9768 0 8162 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 35037 0 35037 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 19 0 0 3 0 3 3 0 8 0 vmpool 552 26 0 7 2 0 2 2 0 8 0 scxspl 192 29134 0 29134 25 24 1 7 0 8 1 plimitpl 152 200 0 192 1 0 1 1 0 8 0 sigapl 432 2675 0 2659 3 1 2 3 0 8 0 futexpl 56 55980 0 55979 1 0 1 1 0 8 0 knotepl 112 807 0 788 5 4 1 2 0 8 0 kqueuepl 104 2179 0 2177 4 3 1 4 0 8 0 pipepl 112 1954 0 1935 8 7 1 2 0 8 0 fdescpl 488 2676 0 2659 3 0 3 3 0 8 0 filepl 152 26106 0 26003 37 32 5 14 0 8 0 lockfpl 104 812 0 811 1 0 1 1 0 8 0 lockfspl 48 273 0 272 1 0 1 1 0 8 0 sessionpl 112 36 0 25 1 0 1 1 0 8 0 pgrppl 48 62 0 51 1 0 1 1 0 8 0 ucredpl 96 3308 0 3299 1 0 1 1 0 8 0 zombiepl 144 2659 0 2659 1 0 1 1 0 8 1 processpl 896 2693 0 2659 4 0 4 4 0 8 0 procpl 632 9500 0 9454 5 0 5 5 0 8 0 srpgc 64 30 0 30 10 10 0 1 0 8 0 sosppl 128 53 0 53 14 13 1 1 0 8 1 sockpl 384 5531 0 5507 54 49 5 22 0 8 2 mcl64k 65536 26 0 0 4 1 3 3 0 8 0 mcl16k 16384 9 0 0 2 0 2 2 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 10 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 22 0 0 3 1 2 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 168 0 0 20 1 19 20 0 8 0 mtagpl 80 47 0 0 1 0 1 1 0 8 0 mbufpl 256 679 0 0 31 0 31 31 0 8 0 bufpl 256 15873 0 8825 441 0 441 441 0 8 0 anonpl 16 368943 0 353877 197 108 89 94 0 124 8 amapchunkpl 152 22544 0 22419 62 51 11 16 0 158 5 amappl16 192 16255 0 15120 175 116 59 68 0 8 2 amappl15 184 295 0 293 3 2 1 1 0 8 0 amappl14 176 313 0 311 1 0 1 1 0 8 0 amappl13 168 553 0 553 3 3 0 1 0 8 0 amappl12 160 143 0 140 1 0 1 1 0 8 0 amappl11 152 322 0 307 1 0 1 1 0 8 0 amappl10 144 826 0 821 1 0 1 1 0 8 0 amappl9 136 839 0 832 1 0 1 1 0 8 0 amappl8 128 385 0 352 4 2 2 2 0 8 0 amappl7 120 934 0 924 1 0 1 1 0 8 0 amappl6 112 321 0 309 1 0 1 1 0 8 0 amappl5 104 381 0 366 1 0 1 1 0 8 0 amappl4 96 3113 0 3075 4 3 1 2 0 8 0 amappl3 88 396 0 388 1 0 1 1 0 8 0 amappl2 80 20185 0 20103 3 1 2 3 0 8 0 amappl1 72 72173 0 71720 25 15 10 20 0 8 0 amappl 80 10062 0 10008 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 135 0 6 3 0 3 3 0 8 0 uaddrrnd 24 2702 0 2659 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2702 0 2659 1 0 1 1 0 8 0 vmmpekpl 168 28784 0 28742 3 0 3 3 0 8 0 vmmpepl 168 355347 0 352917 406 256 150 154 0 357 43 vmsppl 368 2675 0 2659 2 0 2 2 0 8 0 pdppl 4096 5411 0 5351 11 3 8 8 0 8 0 pvpl 32 938696 0 920608 402 195 207 218 0 265 21 pmappl 232 2701 0 2666 3 0 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 665 0 36 19 0 19 19 0 8 1