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 *274688 75781 0 0 0x4000000 0K syz-executor.1 205369 26159 0 0x14000 0x200 1 reaper 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(ffffffff822091b5,ffffffff82201c41,3b3,ffffffff821c19e9) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000b35000,1,fffffd8065260858) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800021168b48,1,ffff800021168c18,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000bc9a00,240404,ffff800000bc9a58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000bc9a00) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000b35000,ffff800000bc9a00,ffff800021168f40,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800021168f30,ffff800000b35000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800021168f30,ffff800000b35000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806b195190,8020690c,ffff800021168f30,ffff800020acfb48) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020acfb48,ffff800021169048,ffff800021169090) at sys_ioctl+0x5b9 syscall(ffff800021169110) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021169110) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,45d14831010) at Xsyscall+0x128 end of kernel end trace frame: 0x45f71d95b40, 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(ffffffff822091b5,ffffffff82201c41,3b3,ffffffff821c19e9) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000b35000,1,fffffd8065260858) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800021168b48,1,ffff800021168c18,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000bc9a00,240404,ffff800000bc9a58,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000bc9a00) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000b35000,ffff800000bc9a00,ffff800021168f40,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff800021168f30,ffff800000b35000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff800021168f30,ffff800000b35000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806b195190,8020690c,ffff800021168f30,ffff800020acfb48) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020acfb48,ffff800021169048,ffff800021169090) at sys_ioctl+0x5b9 syscall(ffff800021169110) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800021169110) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,45d14831010) at Xsyscall+0x128 end of kernel end trace frame: 0x45f71d95b40, count: -14 ddb{0}> show registers rdi 0xffffffff8143be97 db_enter+0x17 rsi 0x5075 __ALIGN_SIZE+0x4075 rbp 0xffff800021168880 rbx 0xffff800021168930 rdx 0x5076 __ALIGN_SIZE+0x4076 rcx 0xffff8000231b4000 rax 0xffff8000231b4000 r8 0xffffffff819ab01f kprintf+0x16f r9 0x1 r10 0x25 r11 0x46745fa4dabfd8b4 r12 0x3000000008 r13 0xffff800021168890 r14 0x100 r15 0x1 rip 0xffffffff8143be98 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021168870 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=274688 stat=onproc flags process=0 proc=4000000 pri=80, usrpri=80, nice=20 forw=0xffffffffffffffff, list=0xffff800020acf658,0xffff800020ace520 process=0xffff800020addc00 user=0xffff800021164000, vmspace=0xfffffd807f00a000 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 75781 485332 62314 0 2 0 syz-executor.1 *75781 274688 62314 0 7 0x4000000 syz-executor.1 75781 195925 62314 0 3 0x4000080 fsleep syz-executor.1 42422 429432 57201 0 3 0x82 nanosleep syz-executor.0 62314 432893 57201 0 2 0x482 syz-executor.1 77930 51564 1 0 3 0x100083 ttyin getty 7501 121506 0 0 3 0x14200 bored sosplice 57201 214792 17811 0 3 0x82 thrsleep syz-fuzzer 57201 314665 17811 0 3 0x4000082 nanosleep syz-fuzzer 57201 56377 17811 0 3 0x4000082 thrsleep syz-fuzzer 57201 55214 17811 0 3 0x4000082 kqread syz-fuzzer 57201 514909 17811 0 3 0x4000082 thrsleep syz-fuzzer 57201 475016 17811 0 3 0x4000082 thrsleep syz-fuzzer 57201 109484 17811 0 3 0x4000082 thrsleep syz-fuzzer 57201 66241 17811 0 3 0x4000082 thrsleep syz-fuzzer 57201 310672 17811 0 3 0x4000082 thrsleep syz-fuzzer 57201 285553 17811 0 3 0x4000082 thrsleep syz-fuzzer 17811 519940 9285 0 3 0x10008a pause ksh 9285 33093 95029 0 3 0x92 select sshd 95029 283640 1 0 3 0x80 select sshd 39981 521959 10303 74 3 0x100092 bpf pflogd 10303 422957 1 0 3 0x80 netio pflogd 90465 352251 50750 73 3 0x100090 kqread syslogd 50750 160735 1 0 3 0x100082 netio syslogd 376 2053 1 77 3 0x100090 poll dhclient 13457 82056 1 0 3 0x80 poll dhclient 9619 76664 0 0 2 0x14200 zerothread 25371 439549 0 0 3 0x14200 aiodoned aiodoned 98266 463452 0 0 3 0x14200 syncer update 91897 100311 0 0 3 0x14200 cleaner cleaner 26159 205369 0 0 7 0x14200 reaper 94814 251868 0 0 3 0x14200 pgdaemon pagedaemon 45459 1683 0 0 3 0x14200 bored crynlk 93175 80266 0 0 3 0x14200 bored crypto 88790 68581 0 0 3 0x40014200 acpi0 acpi0 52879 295442 0 0 3 0x40014200 idle1 37330 53929 0 0 3 0x14200 bored softnet 36642 467605 0 0 2 0x14200 systqmp 50065 167903 0 0 3 0x14200 bored systq 98650 103569 0 0 3 0x40014200 bored softclock 91920 502785 0 0 3 0x40014200 idle0 58576 281641 0 0 3 0x14200 bored smr 1 213592 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 1: exclusive sched_lock &sched_lock r = 0 (0xffffffff8264a840) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 wakeup_n+0x37 sys/kern/kern_synch.c:508 #2 uvm_pmr_freepages+0x365 sys/uvm/uvm_pmemrange.c:1150 #3 pmap_do_remove+0x68b sys/arch/amd64/amd64/pmap.c:1803 #4 uvm_map_teardown+0x195 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:206 [inline] #4 uvm_map_teardown+0x195 sys/uvm/uvm_map.c:2715 #5 uvmspace_free+0x86 sys/uvm/uvm_map.c:3588 #6 uvm_exit+0x29 sys/uvm/uvm_glue.c:297 #7 reaper+0x189 sys/kern/kern_exit.c:442 #8 proc_trampoline+0x1c exclusive mutex &uvm.fpageqlock r = 0 (0xffffffff82635ac0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 mtx_enter_try+0x102 #2 mtx_enter+0x4b sys/kern/kern_lock.c:266 #3 uvm_pmr_freepages+0x126 sys/uvm/uvm_pmemrange.c:1135 #4 pmap_do_remove+0x68b sys/arch/amd64/amd64/pmap.c:1803 #5 uvm_map_teardown+0x195 uvm_map_addr_RBT_LEFT sys/uvm/uvm_map.h:206 [inline] #5 uvm_map_teardown+0x195 sys/uvm/uvm_map.c:2715 #6 uvmspace_free+0x86 sys/uvm/uvm_map.c:3588 #7 uvm_exit+0x29 sys/uvm/uvm_glue.c:297 #8 reaper+0x189 sys/kern/kern_exit.c:442 #9 proc_trampoline+0x1c Process 75781 (syz-executor.1) thread 0xffff800020acfb48 (274688) exclusive rwlock netlock r = 0 (0xffffffff8247e1a8) #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 (0xffffffff826382b0) #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 9648 7374K 11393K 78643K 25118 0 0 pcb 13 12K 14K 78643K 994 0 0 rtable 105 13K 14K 78643K 3126 0 0 ifaddr 96 21K 23K 78643K 992 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1696 0 0 iov 0 0K 44K 78643K 1044 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1219 77K 77K 78643K 6339 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 64 0 0 VM map 35 17K 18K 78643K 69 0 0 sem 12 0K 1K 78643K 1957 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 4907 0 0 sigio 0 0K 0K 78643K 64 0 0 proc 62 63K 95K 78643K 2025 0 0 subproc 32 2K 2K 78643K 478 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 419 0 0 in_multi 23 1K 2K 78643K 521 0 0 ether_multi 1 0K 0K 78643K 61 0 0 mrt 0 0K 0K 78643K 22 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 174 768K 768K 78643K 174 0 0 exec 0 0K 1K 78643K 988 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 182 334K 344K 78643K 19584 0 0 UVM aobj 130 4K 4K 78643K 134 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 983 0 0 NDP 23 0K 1K 78643K 299 0 0 temp 249 3565K 4205K 78643K 158908 0 0 kqueue 0 0K 0K 78643K 72 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 104 0 99 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 445 0 443 1 0 1 1 0 8 0 rtentry 112 494 0 458 2 0 2 2 0 8 0 unpcb 120 12573 0 12553 29 27 2 3 0 8 1 syncache 264 32 0 32 18 18 0 1 0 8 0 sackhl 24 3 0 3 3 3 0 1 0 8 0 tcpqe 32 19 0 19 9 9 0 1 0 8 0 tcpcb 544 3223 0 3219 65 64 1 13 0 8 0 inpcb 280 7870 0 7861 78 77 1 13 0 8 0 rttmr 72 6 0 5 2 1 1 1 0 8 0 nd6 48 63 0 60 5 4 1 1 0 8 0 pkpcb 40 17 0 17 10 10 0 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 144 0 144 28 28 0 1 0 8 0 pffrag 232 121 0 121 23 23 0 1 0 482 0 pffrnode 88 120 0 120 23 23 0 1 0 8 0 pffrent 40 4135 0 4135 24 24 0 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 428 0 390 1 0 1 1 0 8 0 pfstkey 112 428 0 390 3 1 2 2 0 8 0 pfstate 328 428 0 390 7 2 5 5 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 18 0 17 11 10 1 3 0 8 0 art_heap4 256 2106 0 1891 45 31 14 20 0 8 0 art_table 32 2124 0 1908 6 4 2 3 0 8 0 art_node 16 488 0 453 1 0 1 1 0 8 0 sysvmsgpl 40 50 0 31 2 1 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 1955 0 1945 1 0 1 1 0 8 0 shmpl 112 132 0 4 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 9100 0 7691 46 0 46 46 0 8 0 ffsino 272 9100 0 7691 96 1 95 95 0 8 0 nchpl 144 17263 0 16776 61 38 23 61 0 8 0 uvmvnodes 72 6428 0 0 117 0 117 117 0 8 0 vnodes 208 6428 0 0 339 0 339 339 0 8 0 namei 1024 70291 0 70291 3 2 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 33 0 0 5 0 5 5 0 8 0 vmpool 552 67 0 34 4 1 3 3 0 8 0 scsiplug 64 5 0 5 5 5 0 1 0 8 0 scxspl 192 53507 0 53507 38 37 1 5 0 8 1 plimitpl 152 389 0 381 1 0 1 1 0 8 0 sigapl 432 5031 0 5016 3 1 2 3 0 8 0 futexpl 56 122426 0 122425 2 1 1 1 0 8 0 knotepl 112 1936 0 1917 3 2 1 2 0 8 0 kqueuepl 104 3288 0 3286 16 15 1 4 0 8 0 pipepl 112 2996 0 2977 8 7 1 2 0 8 0 fdescpl 488 5032 0 5016 3 0 3 3 0 8 0 filepl 152 61067 0 60965 78 72 6 14 0 8 2 lockfpl 104 1671 0 1670 1 0 1 1 0 8 0 lockfspl 48 563 0 562 1 0 1 1 0 8 0 sessionpl 112 46 0 35 1 0 1 1 0 8 0 pgrppl 48 90 0 79 1 0 1 1 0 8 0 ucredpl 96 13535 0 13525 1 0 1 1 0 8 0 zombiepl 144 5023 0 5022 2 1 1 1 0 8 0 processpl 896 5055 0 5022 4 0 4 4 0 8 0 procpl 632 17360 0 17316 6 1 5 6 0 8 0 srpgc 64 58 0 58 18 18 0 1 0 8 0 sosppl 128 93 0 93 26 26 0 1 0 8 0 sockpl 384 21007 0 20976 113 106 7 22 0 8 3 mcl64k 65536 500 0 0 59 47 12 34 0 8 5 mcl16k 16384 25 0 0 4 1 3 3 0 8 0 mcl12k 12288 41 0 0 2 0 2 2 0 8 0 mcl9k 9216 25 0 0 2 0 2 2 0 8 0 mcl8k 8192 34 0 0 5 2 3 3 0 8 0 mcl4k 4096 27 0 0 3 0 3 3 0 8 0 mcl2k2 2112 75 0 0 2 0 2 2 0 8 0 mcl2k 2048 179 0 0 21 4 17 21 0 8 0 mtagpl 80 62 0 0 2 0 2 2 0 8 0 mbufpl 256 1054 0 0 52 0 52 52 0 8 0 bufpl 256 21539 0 14491 441 0 441 441 0 8 0 anonpl 16 647987 0 628908 289 195 94 106 0 124 13 amapchunkpl 152 40958 0 40816 108 95 13 20 0 158 6 amappl16 192 30257 0 29151 285 217 68 79 0 8 12 amappl15 184 735 0 733 6 5 1 1 0 8 0 amappl14 176 1597 0 1595 1 0 1 1 0 8 0 amappl13 168 17 0 17 3 3 0 1 0 8 0 amappl12 160 390 0 389 1 0 1 1 0 8 0 amappl11 152 417 0 399 1 0 1 1 0 8 0 amappl10 144 487 0 483 1 0 1 1 0 8 0 amappl9 136 1332 0 1326 1 0 1 1 0 8 0 amappl8 128 947 0 898 2 0 2 2 0 8 0 amappl7 120 637 0 628 1 0 1 1 0 8 0 amappl6 112 380 0 366 1 0 1 1 0 8 0 amappl5 104 831 0 818 1 0 1 1 0 8 0 amappl4 96 4812 0 4772 4 2 2 2 0 8 1 amappl3 88 2636 0 2629 1 0 1 1 0 8 0 amappl2 80 38922 0 38834 3 1 2 3 0 8 0 amappl1 72 123999 0 123534 26 16 10 20 0 8 0 amappl 80 18134 0 18071 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 133 0 4 3 0 3 3 0 8 0 uaddrrnd 24 5099 0 5016 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5099 0 5016 1 0 1 1 0 8 0 vmmpekpl 168 44560 0 44516 3 0 3 3 0 8 0 vmmpepl 168 651133 0 648694 549 425 124 150 0 357 9 vmsppl 368 5031 0 5015 2 0 2 2 0 8 0 pdppl 4096 10205 0 10131 13 3 10 10 0 8 0 pvpl 32 1648661 0 1626635 555 339 216 241 0 265 31 pmappl 232 5098 0 5049 6 3 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 827 0 168 20 0 20 20 0 8 0