O"'n+*HXg g Qàg Qà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 *165427 22962 0 0 0x4000000 0 syz-executor.1 417417 9070 0 0x2 0x4000080 1 syz-fuzzer 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(ffffffff82205f9e,ffffffff821fddf3,3b3,ffffffff821c0602) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000b14000,1,fffffd8065ed0238) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff80002355b418,1,ffff80002355b4e8,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000b46800,240404,ffff800000b46858,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000b46800) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000b14000,ffff800000b46800,ffff80002355b810,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff80002355b800,ffff800000b14000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff80002355b800,ffff800000b14000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd807979d1d8,8020690c,ffff80002355b800,ffff800020ab0780) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0780,ffff80002355b918,ffff80002355b960) at sys_ioctl+0x5b9 syscall(ffff80002355b9e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff80002355b9e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,0,ffffffffffffff36,0,3,6d8005bd0e0) at Xsyscall+0x128 end of kernel end trace frame: 0x6dab5213770, 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(ffffffff82205f9e,ffffffff821fddf3,3b3,ffffffff821c0602) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000b14000,1,fffffd8065ed0238) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff80002355b418,1,ffff80002355b4e8,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000b46800,240404,ffff800000b46858,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000b46800) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000b14000,ffff800000b46800,ffff80002355b810,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff80002355b800,ffff800000b14000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff80002355b800,ffff800000b14000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd807979d1d8,8020690c,ffff80002355b800,ffff800020ab0780) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0780,ffff80002355b918,ffff80002355b960) at sys_ioctl+0x5b9 syscall(ffff80002355b9e0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff80002355b9e0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(0,0,ffffffffffffff36,0,3,6d8005bd0e0) at Xsyscall+0x128 end of kernel end trace frame: 0x6dab5213770, count: -14 ddb{0}> show registers rdi 0xffffffff81c952f7 db_enter+0x17 rsi 0x45f6 __ALIGN_SIZE+0x35f6 rbp 0xffff80002355b150 rbx 0xffff80002355b200 rdx 0x45f7 __ALIGN_SIZE+0x35f7 rcx 0xffff800022d52000 rax 0xffff800022d52000 r8 0xffffffff8199ba8f kprintf+0x16f r9 0x1 r10 0x25 r11 0xf296f9962a77185e r12 0x3000000008 r13 0xffff80002355b160 r14 0x100 r15 0x1 rip 0xffffffff81c952f8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002355b140 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=165427 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab1b40,0xffff800020ab0518 process=0xffff800020a8b190 user=0xffff800023556000, vmspace=0xfffffd806e7d2e68 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 22962 64538 83120 0 2 0 syz-executor.1 22962 65649 83120 0 2 0x4000000 syz-executor.1 *22962 165427 83120 0 7 0x4000000 syz-executor.1 22962 488346 83120 0 3 0x4000080 fsleep syz-executor.1 77279 101379 9070 0 2 0x2 syz-executor.0 83120 102633 9070 0 3 0x82 nanosleep syz-executor.1 47840 307315 0 0 3 0x14200 acct acct 22557 83866 1 0 3 0x100083 ttyopn getty 18948 304443 0 0 3 0x14200 bored sosplice 9070 479591 92166 0 3 0x82 thrsleep syz-fuzzer 9070 257479 92166 0 3 0x4000082 thrsleep syz-fuzzer 9070 19447 92166 0 3 0x4000082 thrsleep syz-fuzzer 9070 417417 92166 0 7 0x4000082 syz-fuzzer 9070 429637 92166 0 3 0x4000082 thrsleep syz-fuzzer 9070 160808 92166 0 3 0x4000082 thrsleep syz-fuzzer 9070 230932 92166 0 3 0x4000082 thrsleep syz-fuzzer 9070 81382 92166 0 3 0x4000082 thrsleep syz-fuzzer 9070 437869 92166 0 3 0x4000082 thrsleep syz-fuzzer 9070 83663 92166 0 3 0x4000082 thrsleep syz-fuzzer 92166 365954 29760 0 3 0x10008a pause ksh 29760 443597 67712 0 3 0x92 select sshd 67712 360291 1 0 3 0x80 select sshd 95465 319496 71397 74 3 0x100092 bpf pflogd 71397 312547 1 0 3 0x80 netio pflogd 5417 145512 39839 73 3 0x100090 kqread syslogd 39839 9209 1 0 3 0x100082 netio syslogd 25225 18311 1 77 3 0x100090 poll dhclient 16862 154470 1 0 3 0x80 poll dhclient 68195 342078 0 0 3 0x14200 pgzero zerothread 96424 220911 0 0 3 0x14200 aiodoned aiodoned 24569 409619 0 0 3 0x14200 syncer update 64847 461856 0 0 3 0x14200 cleaner cleaner 52142 411443 0 0 3 0x14200 reaper reaper 66648 511016 0 0 3 0x14200 pgdaemon pagedaemon 29177 450772 0 0 3 0x14200 bored crynlk 30648 361622 0 0 3 0x14200 bored crypto 11481 398923 0 0 3 0x40014200 acpi0 acpi0 17106 333408 0 0 3 0x40014200 idle1 51236 290458 0 0 3 0x14200 bored softnet 41268 99620 0 0 2 0x14200 systqmp 19816 523351 0 0 3 0x14200 bored systq 16374 140395 0 0 3 0x40014200 bored softclock 92069 252163 0 0 3 0x40014200 idle0 65969 182953 0 0 3 0x14200 bored smr 1 383683 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 22962 (syz-executor.1) thread 0xffff800020ab0780 (165427) exclusive rwlock netlock r = 0 (0xffffffff824d0138) #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 (0xffffffff82668f60) #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 9625 7369K 8400K 78643K 37759 0 0 pcb 13 10K 12K 78643K 3624 0 0 rtable 130 14K 16K 78643K 3653 0 0 ifaddr 93 24K 28K 78643K 1160 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1799 0 0 iov 0 0K 32K 78643K 1788 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1231 77K 78K 78643K 8958 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 95 0 0 VM map 38 19K 19K 78643K 60 0 0 sem 12 0K 1K 78643K 991 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 4783 0 0 sigio 0 0K 0K 78643K 114 0 0 proc 62 63K 95K 78643K 2176 0 0 subproc 32 2K 2K 78643K 582 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 969 0 0 in_multi 37 2K 2K 78643K 718 0 0 ether_multi 1 0K 0K 78643K 55 0 0 mrt 2 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 102 450K 450K 78643K 102 0 0 exec 0 0K 1K 78643K 1080 0 0 pfkey data 0 0K 4K 78643K 1 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 169 284K 294K 78643K 17899 0 0 UVM aobj 130 5K 5K 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 2K 78643K 1107 0 0 NDP 22 0K 1K 78643K 363 0 0 temp 243 3565K 4205K 78643K 212511 0 0 kqueue 0 0K 0K 78643K 32 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 108 0 103 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 419 0 417 1 0 1 1 0 8 0 rtentry 112 603 0 556 2 0 2 2 0 8 0 unpcb 120 5812 0 5801 17 15 2 2 0 8 1 syncache 264 36 0 36 11 10 1 1 0 8 1 tcpqe 32 31 0 31 7 6 1 1 0 8 1 tcpcb 544 3178 0 3172 33 31 2 14 0 8 1 inpcb 280 12334 0 12323 21 19 2 9 0 8 0 rttmr 72 9 0 8 4 3 1 1 0 8 0 ip6q 72 2 0 2 1 0 1 1 0 8 1 ip6af 40 6 0 6 1 0 1 1 0 8 1 nd6 48 85 0 79 2 1 1 1 0 8 0 pkpcb 40 33 0 33 11 11 0 1 0 8 0 ppxss 1128 187 0 187 14 13 1 1 0 8 1 pffrag 232 107 0 107 14 13 1 1 0 482 1 pffrnode 88 105 0 105 14 13 1 1 0 8 1 pffrent 40 3684 0 3684 14 13 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 337 0 300 1 0 1 1 0 8 0 pfstkey 112 338 0 301 2 0 2 2 0 8 0 pfstate 328 338 0 300 7 2 5 6 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 22 0 21 12 11 1 4 0 8 0 art_heap4 256 2506 0 2210 30 11 19 19 0 8 0 art_table 32 2528 0 2231 3 0 3 3 0 8 0 art_node 16 599 0 555 1 0 1 1 0 8 0 sysvmsgpl 40 64 0 41 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 989 0 979 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 8710 0 7281 47 0 47 47 0 8 0 ffsino 272 8710 0 7281 96 0 96 96 0 8 0 nchpl 144 15884 0 15394 61 39 22 61 0 8 0 uvmvnodes 72 6091 0 0 111 0 111 111 0 8 0 vnodes 208 6091 0 0 321 0 321 321 0 8 0 namei 1024 61426 0 61426 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 37 0 1 5 0 5 5 0 8 0 vmpool 552 58 0 22 3 0 3 3 0 8 0 scsiplug 64 3 0 3 3 3 0 1 0 8 0 scxspl 192 62921 0 62921 43 42 1 7 0 8 1 plimitpl 152 419 0 411 1 0 1 1 0 8 0 sigapl 432 4888 0 4873 5 3 2 3 0 8 0 futexpl 56 133678 0 133677 3 2 1 1 0 8 0 knotepl 112 1396 0 1377 3 2 1 2 0 8 0 kqueuepl 104 1690 0 1688 8 7 1 4 0 8 0 pipepl 112 2932 0 2913 8 7 1 2 0 8 0 fdescpl 488 4889 0 4873 3 0 3 3 0 8 0 filepl 152 53184 0 53082 50 42 8 14 0 8 4 lockfpl 104 1886 0 1885 1 0 1 1 0 8 0 lockfspl 48 646 0 645 1 0 1 1 0 8 0 sessionpl 112 51 0 40 1 0 1 1 0 8 0 pgrppl 48 115 0 104 1 0 1 1 0 8 0 ucredpl 96 4727 0 4718 1 0 1 1 0 8 0 zombiepl 144 4878 0 4878 3 2 1 1 0 8 1 processpl 896 4911 0 4878 5 1 4 5 0 8 0 procpl 632 15463 0 15418 6 1 5 5 0 8 0 srpgc 64 48 0 48 17 17 0 1 0 8 0 sosppl 128 80 0 79 16 15 1 1 0 8 0 sockpl 384 18859 0 18835 60 53 7 14 0 8 4 mcl64k 65536 260 0 0 33 6 27 33 0 8 1 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 22 0 0 2 0 2 2 0 8 0 mcl8k 8192 33 0 0 4 1 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 7 0 0 1 0 1 1 0 8 0 mcl2k 2048 190 0 0 21 5 16 21 0 8 0 mtagpl 80 484 0 0 6 0 6 6 0 8 0 mbufpl 256 875 0 0 53 0 53 53 0 8 0 bufpl 256 25328 0 18280 441 0 441 441 0 8 0 anonpl 16 604379 0 585315 208 122 86 98 0 124 1 amapchunkpl 152 35651 0 35501 61 52 9 20 0 158 2 amappl16 192 26080 0 24928 192 132 60 70 0 8 0 amappl15 184 759 0 759 6 6 0 1 0 8 0 amappl14 176 1682 0 1679 1 0 1 1 0 8 0 amappl13 168 618 0 618 5 5 0 1 0 8 0 amappl12 160 781 0 775 1 0 1 1 0 8 0 amappl11 152 654 0 637 1 0 1 1 0 8 0 amappl10 144 286 0 282 1 0 1 1 0 8 0 amappl9 136 1297 0 1291 1 0 1 1 0 8 0 amappl8 128 853 0 803 2 0 2 2 0 8 0 amappl7 120 430 0 422 1 0 1 1 0 8 0 amappl6 112 576 0 556 1 0 1 1 0 8 0 amappl5 104 1216 0 1201 1 0 1 1 0 8 0 amappl4 96 4315 0 4281 2 1 1 2 0 8 0 amappl3 88 2556 0 2540 1 0 1 1 0 8 0 amappl2 80 36955 0 36881 3 1 2 3 0 8 0 amappl1 72 120698 0 120250 25 15 10 20 0 8 0 amappl 80 16327 0 16269 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 4947 0 4873 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4947 0 4873 1 0 1 1 0 8 0 vmmpekpl 168 43543 0 43498 3 0 3 3 0 8 0 vmmpepl 168 632791 0 630352 339 189 150 165 0 357 37 vmsppl 368 4888 0 4873 2 0 2 2 0 8 0 pdppl 4096 9901 0 9826 15 5 10 11 0 8 0 pvpl 32 1571120 0 1549678 388 193 195 220 0 265 6 pmappl 232 4946 0 4895 4 0 4 4 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 754 0 73 20 0 20 20 0 8 0