panic: kernel diagnostic assertion "ifa == rt->rt_ifa" failed: file "/syzkaller/managers/main/kernel/sys/netinet6/nd6.c", line 947 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *335831 38900 0 0 0x4000000 0 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(ffffffff821e55b9,ffffffff821c9419,3b3,ffffffff821a0fc4) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000ad7000,1,fffffd802c8f1628) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800016b1a8e8,1,ffff800016b1a9b8,0) at rtrequest+0x9be sys/net/route.c:973 rt_ifa_add(ffff800000b24c00,240404,ffff800000b24c58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000b24c00) at rt_ifa_addlocal+0x149 sys/net/route.c:1242 in_ifinit(ffff800000ad7000,ffff800000b24c00,ffff800016b1ace0,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800016b1acd0,ffff800000ad7000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800016b1acd0,ffff800000ad7000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd8024efac18,8020690c,ffff800016b1acd0,ffff8000ffff33d8) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff33d8,ffff800016b1ade8,ffff800016b1ae30) at sys_ioctl+0x5b9 syscall(ffff800016b1aeb0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,ea2cbf710e0) at Xsyscall+0x128 end of kernel end trace frame: 0xea5935b3860, 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic kernel diagnostic assertion "ifa == rt->rt_ifa" failed: file "/syzkaller/managers/main/kernel/sys/netinet6/nd6.c", line 947 ddb> 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(ffffffff821e55b9,ffffffff821c9419,3b3,ffffffff821a0fc4) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000ad7000,1,fffffd802c8f1628) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800016b1a8e8,1,ffff800016b1a9b8,0) at rtrequest+0x9be sys/net/route.c:973 rt_ifa_add(ffff800000b24c00,240404,ffff800000b24c58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000b24c00) at rt_ifa_addlocal+0x149 sys/net/route.c:1242 in_ifinit(ffff800000ad7000,ffff800000b24c00,ffff800016b1ace0,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800016b1acd0,ffff800000ad7000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800016b1acd0,ffff800000ad7000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd8024efac18,8020690c,ffff800016b1acd0,ffff8000ffff33d8) at ifioctl+0xb34 sys/net/if.c:2202 sys_ioctl(ffff8000ffff33d8,ffff800016b1ade8,ffff800016b1ae30) at sys_ioctl+0x5b9 syscall(ffff800016b1aeb0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,ea2cbf710e0) at Xsyscall+0x128 end of kernel end trace frame: 0xea5935b3860, count: -14 ddb> show registers rdi 0xffffffff81295cd7 db_enter+0x17 rsi 0x4abf __ALIGN_SIZE+0x3abf rbp 0xffff800016b1a620 rbx 0xffff800016b1a6d0 rdx 0x4ac0 __ALIGN_SIZE+0x3ac0 rcx 0xffff80001530b000 rax 0xffff80001530b000 r8 0xffff800016b1a5e0 r9 0x1 r10 0xffff800000ab1700 r11 0x6ce123b038b8ea1c r12 0x3000000008 r13 0xffff800016b1a630 r14 0x100 r15 0x1 rip 0xffffffff81295cd8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800016b1a610 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=335831 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffff3650,0xffff8000ffff3170 process=0xffff8000148a26d8 user=0xffff800016b15000, vmspace=0xfffffd803f014330 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 29505 516742 82400 0 2 0 syz-executor.1 29505 45621 82400 0 3 0x4000080 fsleep syz-executor.1 38900 412785 4294 0 2 0 syz-executor.0 38900 494322 4294 0 3 0x4000080 ttyin syz-executor.0 *38900 335831 4294 0 7 0x4000000 syz-executor.0 38900 50122 4294 0 3 0x4000080 fsleep syz-executor.0 4294 349111 64622 0 3 0x82 nanosleep syz-executor.0 62023 361885 0 0 3 0x14200 acct acct 82400 475766 64622 0 2 0x482 syz-executor.1 50662 155935 0 0 3 0x14200 bored sosplice 64622 205557 72180 0 3 0x82 thrsleep syz-fuzzer 64622 126275 72180 0 3 0x4000082 thrsleep syz-fuzzer 64622 475072 72180 0 3 0x4000082 kqread syz-fuzzer 64622 355811 72180 0 3 0x4000082 thrsleep syz-fuzzer 64622 170024 72180 0 3 0x4000082 thrsleep syz-fuzzer 64622 510762 72180 0 3 0x4000082 thrsleep syz-fuzzer 64622 112234 72180 0 3 0x4000082 thrsleep syz-fuzzer 64622 22323 72180 0 3 0x4000082 thrsleep syz-fuzzer 72180 37835 91621 0 3 0x10008a pause ksh 91621 368354 72388 0 3 0x92 select sshd 54260 102552 1 0 3 0x100083 ttyopn getty 72388 392974 1 0 3 0x80 select sshd 85388 309303 11940 73 3 0x100090 kqread syslogd 11940 424141 1 0 3 0x100082 netio syslogd 90979 380292 1 77 3 0x100090 poll dhclient 80520 149821 1 0 3 0x80 poll dhclient 17183 49479 0 0 2 0x14200 zerothread 64492 466725 0 0 3 0x14200 aiodoned aiodoned 19161 334851 0 0 3 0x14200 syncer update 97495 387087 0 0 3 0x14200 cleaner cleaner 92790 279153 0 0 3 0x14200 reaper reaper 34339 324495 0 0 3 0x14200 pgdaemon pagedaemon 2875 179056 0 0 3 0x14200 bored crynlk 84152 85385 0 0 3 0x14200 bored crypto 53816 520332 0 0 3 0x40014200 acpi0 acpi0 39518 248897 0 0 3 0x14200 bored softnet 71848 176402 0 0 2 0x14200 systqmp 32718 159648 0 0 3 0x14200 bored systq 81979 426068 0 0 3 0x40014200 bored softclock 46009 206499 0 0 3 0x40014200 idle0 544 331563 0 0 3 0x14200 bored smr 1 489333 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9611 6506K 10471K 78643K 19173 0 0 pcb 13 10K 12K 78643K 854 0 0 rtable 123 8K 9K 78643K 3022 0 0 ifaddr 93 20K 21K 78643K 754 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 189 0 0 iov 0 0K 24K 78643K 1909 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1204 76K 77K 78643K 5384 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 860 0 0 VM map 2 0K 0K 78643K 14 0 0 sem 12 0K 1K 78643K 1262 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 6 17K 25K 78643K 6637 0 0 sigio 0 0K 0K 78643K 44 0 0 proc 50 38K 63K 78643K 2210 0 0 subproc 32 2K 2K 78643K 629 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 197 0 0 in_multi 30 2K 2K 78643K 492 0 0 ether_multi 1 0K 0K 78643K 14 0 0 mrt 0 0K 0K 78643K 32 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 144 636K 636K 78643K 144 0 0 exec 0 0K 1K 78643K 1035 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 119 22K 40K 78643K 18415 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 0K 78643K 856 0 0 NDP 23 0K 1K 78643K 241 0 0 temp 248 3541K 4180K 78643K 162283 0 0 kqueue 0 0K 0K 78643K 25 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 114 0 106 1 0 1 1 0 8 0 rtpcb 80 390 0 388 1 0 1 1 0 8 0 rtentry 112 547 0 502 2 0 2 2 0 8 0 unpcb 120 1670 0 1656 1 0 1 1 0 8 0 syncache 264 28 0 28 9 9 0 1 0 8 0 tcpqe 32 3712 0 3712 5 5 0 1 0 8 0 tcpcb 544 8284 0 8280 38 36 2 14 0 8 1 ipq 40 32 0 32 13 13 0 1 0 8 0 ipqe 40 78 0 78 13 13 0 1 0 8 0 inpcb 280 12419 0 12403 30 28 2 9 0 8 0 rttmr 72 13 0 13 6 6 0 1 0 8 0 nd6 48 74 0 69 2 1 1 1 0 8 0 pkpcb 40 26 0 26 9 9 0 1 0 8 0 ppxss 1128 77 0 77 18 17 1 1 0 8 1 art_heap8 4096 10 0 9 7 6 1 3 0 8 0 art_heap4 256 2338 0 2087 33 17 16 18 0 8 0 art_table 32 2348 0 2096 4 1 3 3 0 8 0 art_node 16 544 0 501 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 2 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 1260 0 1250 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 11482 0 10080 46 0 46 46 0 8 0 ffsino 240 11482 0 10080 83 0 83 83 0 8 0 nchpl 144 24958 0 23333 62 1 61 61 0 8 0 uvmvnodes 72 8638 0 0 158 0 158 158 0 8 0 vnodes 208 8638 0 0 455 0 455 455 0 8 0 namei 1024 89407 0 89407 5 4 1 1 0 8 1 vmpool 520 12 0 12 6 5 1 1 0 8 1 scsiplug 64 4 0 4 3 3 0 1 0 8 0 scxspl 192 82256 0 82256 25 24 1 6 0 8 1 plimitpl 152 362 0 355 1 0 1 1 0 8 0 sigapl 432 6703 0 6689 2 0 2 2 0 8 0 futexpl 56 250177 0 250175 6 5 1 1 0 8 0 knotepl 112 1410 0 1391 2 1 1 2 0 8 0 kqueuepl 104 1403 0 1401 7 6 1 4 0 8 0 pipepl 112 2420 0 2401 9 7 2 2 0 8 1 fdescpl 424 6704 0 6689 2 0 2 2 0 8 0 filepl 120 61560 0 61457 28 23 5 11 0 8 1 lockfpl 104 3342 0 3341 1 0 1 1 0 8 0 lockfspl 48 1334 0 1333 1 0 1 1 0 8 0 sessionpl 112 52 0 42 1 0 1 1 0 8 0 pgrppl 48 84 0 74 1 0 1 1 0 8 0 ucredpl 96 26960 0 26953 1 0 1 1 0 8 0 zombiepl 144 6691 0 6691 3 2 1 1 0 8 1 processpl 864 6722 0 6691 4 0 4 4 0 8 0 procpl 632 15223 0 15181 4 0 4 4 0 8 0 sosppl 128 35 0 35 14 14 0 1 0 8 0 sockpl 384 14600 0 14575 43 38 5 14 0 8 1 mcl64k 65536 1398 0 1398 41 40 1 32 0 8 1 mcl16k 16384 65 0 65 21 21 0 1 0 8 0 mcl12k 12288 161 0 161 18 17 1 1 0 8 1 mcl9k 9216 87 0 87 21 20 1 1 0 8 1 mcl8k 8192 877 0 877 9 8 1 1 0 8 1 mcl4k 4096 1464 0 1464 5 4 1 1 0 8 1 mcl2k2 2112 53 0 53 19 18 1 1 0 8 1 mcl2k 2048 77632 0 77583 18 11 7 13 0 8 0 mtagpl 80 230 0 212 8 7 1 1 0 8 0 mbufpl 256 190099 0 189963 83 72 11 31 0 8 0 bufpl 256 26409 0 17777 541 0 541 541 0 8 0 anonpl 16 764556 0 748828 236 157 79 83 0 62 8 amapchunkpl 152 35619 0 35505 127 114 13 18 0 158 7 amappl16 192 37031 0 36111 295 247 48 59 0 8 1 amappl15 184 2494 0 2492 5 4 1 1 0 8 0 amappl14 176 423 0 419 2 1 1 1 0 8 0 amappl13 168 1271 0 1271 5 5 0 1 0 8 0 amappl12 160 803 0 798 1 0 1 1 0 8 0 amappl11 152 842 0 831 1 0 1 1 0 8 0 amappl10 144 723 0 719 1 0 1 1 0 8 0 amappl9 136 1787 0 1780 1 0 1 1 0 8 0 amappl8 128 1242 0 1202 3 1 2 2 0 8 0 amappl7 120 939 0 931 1 0 1 1 0 8 0 amappl6 112 800 0 792 1 0 1 1 0 8 0 amappl5 104 2001 0 1988 1 0 1 1 0 8 0 amappl4 96 6787 0 6758 1 0 1 1 0 8 0 amappl3 88 1131 0 1125 1 0 1 1 0 8 0 amappl2 80 53480 0 53404 4 2 2 3 0 8 0 amappl1 72 135776 0 135364 27 18 9 20 0 8 0 amappl 80 16025 0 15985 1 0 1 1 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 6716 0 6689 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 6716 0 6689 1 0 1 1 0 8 0 vmmpekpl 168 41658 0 41626 2 0 2 2 0 8 0 vmmpepl 168 814313 0 812236 390 278 112 127 0 357 18 vmsppl 272 6703 0 6689 5 4 1 2 0 8 0 pdppl 4096 13438 0 13402 6 1 5 6 0 8 0 pvpl 32 2604810 0 2585780 632 380 252 297 0 265 93 pmappl 200 6715 0 6701 1 0 1 1 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 900 0 226 21 0 21 21 0 8 0