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 *444622 67957 0 0 0x4000000 1K syz-executor.0 419051 93483 0 0x14000 0x200 0 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(ffffffff822069c1,ffffffff82200c5d,3b3,ffffffff821c1ef2) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000c34000,1,fffffd805dda9da8) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800023e1ae08,1,ffff800023e1aed8,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000bc0300,240404,ffff800000bc0358,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000bc0300) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000c34000,ffff800000bc0300,ffff800023e1b200,0) at in_ifinit+0x1cf sys/netinet/in.c:645 in_ioctl_sifaddr(8020690c,ffff800023e1b1f0,ffff800000c34000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:372 in_ioctl(8020690c,ffff800023e1b1f0,ffff800000c34000,1) at in_ioctl+0x1e7 sys/netinet/in.c:243 ifioctl(fffffd8071b2ec10,8020690c,ffff800023e1b1f0,ffff800020ab0780) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0780,ffff800023e1b308,ffff800023e1b350) at sys_ioctl+0x5b9 syscall(ffff800023e1b3d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023e1b3d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,b55e3955010) at Xsyscall+0x128 end of kernel end trace frame: 0xb584d4511b0, 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(ffffffff822069c1,ffffffff82200c5d,3b3,ffffffff821c1ef2) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000c34000,1,fffffd805dda9da8) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff800023e1ae08,1,ffff800023e1aed8,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000bc0300,240404,ffff800000bc0358,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000bc0300) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000c34000,ffff800000bc0300,ffff800023e1b200,0) at in_ifinit+0x1cf sys/netinet/in.c:645 in_ioctl_sifaddr(8020690c,ffff800023e1b1f0,ffff800000c34000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:372 in_ioctl(8020690c,ffff800023e1b1f0,ffff800000c34000,1) at in_ioctl+0x1e7 sys/netinet/in.c:243 ifioctl(fffffd8071b2ec10,8020690c,ffff800023e1b1f0,ffff800020ab0780) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab0780,ffff800023e1b308,ffff800023e1b350) at sys_ioctl+0x5b9 syscall(ffff800023e1b3d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff800023e1b3d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,b55e3955010) at Xsyscall+0x128 end of kernel end trace frame: 0xb584d4511b0, count: -14 ddb{1}> show registers rdi 0xffffffff81194cb7 db_enter+0x17 rsi 0x4d1e __ALIGN_SIZE+0x3d1e rbp 0xffff800023e1ab40 rbx 0xffff800023e1abf0 rdx 0x4d1f __ALIGN_SIZE+0x3d1f rcx 0xffff800022156000 rax 0xffff800022156000 r8 0xffffffff81f734ef kprintf+0x16f r9 0x1 r10 0x25 r11 0xb3a1f4db4a6f47c3 r12 0x3000000008 r13 0xffff800023e1ab50 r14 0x100 r15 0x1 rip 0xffffffff81194cb8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800023e1ab30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=444622 stat=onproc flags process=0 proc=4000000 pri=78, usrpri=78, nice=20 forw=0xffffffffffffffff, list=0xffff800020ac09f0,0xffffffff82645b50 process=0xffff800020a8ae10 user=0xffff800023e16000, vmspace=0xfffffd807f00a5c0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 67957 406109 58984 0 2 0 syz-executor.0 *67957 444622 58984 0 7 0x4000000 syz-executor.0 21178 183666 49521 0 3 0x82 nanosleep syz-executor.1 58984 337889 49521 0 3 0x82 nanosleep syz-executor.0 18987 331753 0 0 3 0x14200 acct acct 15164 293524 1 0 3 0x100083 ttyin getty 83448 338320 0 0 3 0x14200 bored sosplice 49521 73942 58551 0 3 0x82 thrsleep syz-fuzzer 49521 511750 58551 0 3 0x4000082 nanosleep syz-fuzzer 49521 28761 58551 0 3 0x4000082 thrsleep syz-fuzzer 49521 200102 58551 0 3 0x4000082 thrsleep syz-fuzzer 49521 72998 58551 0 3 0x4000082 thrsleep syz-fuzzer 49521 401323 58551 0 3 0x4000082 kqread syz-fuzzer 49521 44907 58551 0 3 0x4000082 thrsleep syz-fuzzer 49521 252873 58551 0 3 0x4000082 thrsleep syz-fuzzer 49521 160898 58551 0 3 0x4000082 thrsleep syz-fuzzer 49521 453399 58551 0 3 0x4000082 thrsleep syz-fuzzer 58551 303571 35824 0 3 0x10008a pause ksh 35824 43106 21789 0 3 0x92 select sshd 21789 222208 1 0 3 0x80 select sshd 55815 192841 69347 74 3 0x100092 bpf pflogd 69347 346730 1 0 3 0x80 netio pflogd 89952 338759 30060 73 3 0x100090 kqread syslogd 30060 207593 1 0 3 0x100082 netio syslogd 4872 3620 1 77 3 0x100090 poll dhclient 25285 132880 1 0 3 0x80 poll dhclient 28150 302691 0 0 2 0x14200 zerothread 21773 141008 0 0 3 0x14200 aiodoned aiodoned 10378 81682 0 0 3 0x14200 syncer update 76441 454090 0 0 3 0x14200 cleaner cleaner 93483 419051 0 0 7 0x14200 reaper 75732 154469 0 0 3 0x14200 pgdaemon pagedaemon 28192 185408 0 0 3 0x14200 bored crynlk 26330 375144 0 0 3 0x14200 bored crypto 30969 328936 0 0 3 0x40014200 acpi0 acpi0 20289 198739 0 0 3 0x40014200 idle1 78688 514631 0 0 3 0x14200 bored softnet 22924 42318 0 0 3 0x14200 bored systqmp 30530 430178 0 0 3 0x14200 bored systq 63210 479204 0 0 3 0x40014200 bored softclock 23301 161572 0 0 3 0x40014200 idle0 77554 312071 0 0 3 0x14200 bored smr 1 233636 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 0: exclusive sched_lock &sched_lock r = 0 (0xffffffff82674e80) #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 (0xffffffff82621bc8) #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 67957 (syz-executor.0) thread 0xffff800020ab0780 (444622) exclusive rwlock netlock r = 0 (0xffffffff824f3758) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 in_ioctl_sifaddr+0x69 #2 in_ioctl+0x1e7 sys/netinet/in.c:243 #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 (0xffffffff8262a6d0) #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 9628 6491K 9104K 78643K 54521 0 0 pcb 13 12K 14K 78643K 1654 0 0 rtable 165 17K 18K 78643K 4810 0 0 ifaddr 123 31K 33K 78643K 1498 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1842 0 0 iov 0 0K 32K 78643K 1652 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1235 78K 78K 78643K 14287 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 107 0 0 VM map 85 42K 43K 78643K 122 0 0 sem 12 0K 1K 78643K 1890 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 7884 0 0 sigio 0 0K 0K 78643K 74 0 0 proc 61 63K 95K 78643K 3218 0 0 subproc 32 2K 2K 78643K 803 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 770 0 0 in_multi 34 2K 3K 78643K 1011 0 0 ether_multi 1 0K 0K 78643K 103 0 0 mrt 4 0K 0K 78643K 39 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 96 424K 424K 78643K 96 0 0 exec 0 0K 1K 78643K 1554 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 263 680K 680K 78643K 29215 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 2K 78643K 1950 0 0 NDP 24 0K 1K 78643K 468 0 0 temp 256 3565K 4205K 78643K 202616 0 0 kqueue 0 0K 0K 78643K 51 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 125 0 121 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 700 0 698 1 0 1 1 0 8 0 rtentry 112 843 0 779 4 1 3 3 0 8 0 unpcb 120 4397 0 4379 7 6 1 2 0 8 0 syncache 264 36 0 36 19 19 0 1 0 8 0 tcpqe 32 134 0 134 11 11 0 1 0 8 0 tcpcb 544 3952 0 3948 51 50 1 12 0 8 0 inpcb 280 12485 0 12477 71 69 2 13 0 8 1 rttmr 72 10 0 9 6 5 1 1 0 8 0 ip6q 72 5 0 5 4 4 0 1 0 8 0 ip6af 40 13 0 13 4 4 0 1 0 8 0 nd6 48 134 0 127 5 4 1 1 0 8 0 pkpcb 40 26 0 26 8 8 0 1 0 8 0 swfcl 56 4 0 0 1 0 1 1 0 8 0 ppxss 1128 214 0 214 21 20 1 1 0 8 1 pffrag 232 192 0 192 27 26 1 1 0 482 1 pffrnode 88 192 0 192 27 26 1 1 0 8 1 pffrent 40 6596 0 6596 26 25 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 638 0 595 1 0 1 1 0 8 0 pfstkey 112 641 0 598 4 2 2 3 0 8 0 pfstate 328 641 0 598 10 3 7 8 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 17 0 13 13 9 4 6 0 8 0 art_heap4 256 3970 0 3592 53 26 27 28 0 8 1 art_table 32 3987 0 3605 6 2 4 4 0 8 0 art_node 16 835 0 786 1 0 1 1 0 8 0 sysvmsgpl 40 32 0 28 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 1888 0 1878 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 13828 0 12370 50 2 48 48 0 8 0 ffsino 272 13828 0 12370 98 0 98 98 0 8 0 nchpl 144 28557 0 28097 61 41 20 61 0 8 0 uvmvnodes 72 6676 0 0 122 0 122 122 0 8 0 vnodes 208 6676 0 0 352 0 352 352 0 8 0 namei 1024 103550 0 103550 4 3 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 84 0 1 11 0 11 11 0 8 0 vmpool 552 120 0 37 8 1 7 7 0 8 1 scsiplug 64 20 0 20 13 12 1 1 0 8 1 scxspl 192 88058 0 88058 58 56 2 6 0 8 2 plimitpl 152 752 0 744 1 0 1 1 0 8 0 sigapl 432 7948 0 7933 4 2 2 3 0 8 0 futexpl 56 194279 0 194279 2 1 1 1 0 8 1 knotepl 112 1574 0 1555 5 4 1 3 0 8 0 kqueuepl 104 2611 0 2609 14 13 1 4 0 8 0 pipepl 112 5174 0 5155 11 10 1 2 0 8 0 fdescpl 488 7949 0 7933 3 0 3 3 0 8 0 filepl 152 77516 0 77413 80 75 5 14 0 8 1 lockfpl 104 2778 0 2777 1 0 1 1 0 8 0 lockfspl 48 935 0 934 1 0 1 1 0 8 0 sessionpl 112 64 0 53 1 0 1 1 0 8 0 pgrppl 48 207 0 196 1 0 1 1 0 8 0 ucredpl 96 8937 0 8928 1 0 1 1 0 8 0 zombiepl 144 7937 0 7936 4 3 1 1 0 8 0 processpl 896 7970 0 7936 4 0 4 4 0 8 0 procpl 632 25786 0 25742 9 4 5 5 0 8 1 srpgc 64 89 0 89 25 24 1 1 0 8 1 sosppl 128 224 0 224 29 28 1 1 0 8 1 sockpl 384 17730 0 17702 103 99 4 22 0 8 0 mcl64k 65536 452 0 0 46 17 29 34 0 8 1 mcl16k 16384 26 0 0 4 1 3 3 0 8 0 mcl12k 12288 33 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 25 0 0 4 1 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 12 0 0 1 0 1 1 0 8 0 mcl2k 2048 216 0 0 22 8 14 22 0 8 0 mtagpl 80 100 0 0 1 0 1 1 0 8 0 mbufpl 256 1130 0 0 48 0 48 48 0 8 0 bufpl 256 31244 0 24186 442 0 442 442 0 8 0 anonpl 16 1005610 0 983806 285 192 93 119 0 124 0 amapchunkpl 152 59807 0 59625 93 82 11 21 0 158 0 amappl16 192 45890 0 44612 254 188 66 84 0 8 0 amappl15 184 1004 0 1004 6 5 1 1 0 8 1 amappl14 176 1211 0 1203 1 0 1 1 0 8 0 amappl13 168 1036 0 1034 1 0 1 1 0 8 0 amappl12 160 696 0 693 2 1 1 1 0 8 0 amappl11 152 954 0 935 1 0 1 1 0 8 0 amappl10 144 1158 0 1153 1 0 1 1 0 8 0 amappl9 136 1959 0 1955 1 0 1 1 0 8 0 amappl8 128 1572 0 1508 3 0 3 3 0 8 0 amappl7 120 1360 0 1352 1 0 1 1 0 8 0 amappl6 112 874 0 861 1 0 1 1 0 8 0 amappl5 104 1201 0 1187 1 0 1 1 0 8 0 amappl4 96 8837 0 8801 2 1 1 2 0 8 0 amappl3 88 1536 0 1523 1 0 1 1 0 8 0 amappl2 80 61175 0 61087 3 1 2 3 0 8 0 amappl1 72 188174 0 187722 25 15 10 20 0 8 0 amappl 80 27015 0 26926 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 131 0 2 3 0 3 3 0 8 0 uaddrrnd 24 8069 0 7933 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 8069 0 7933 1 0 1 1 0 8 0 vmmpekpl 168 64529 0 64481 3 0 3 3 0 8 0 vmmpepl 168 1028891 0 1026159 433 271 162 163 0 357 39 vmsppl 368 7948 0 7932 2 0 2 2 0 8 0 pdppl 4096 16145 0 16021 22 6 16 16 0 8 0 pvpl 32 2577718 0 2554901 517 309 208 257 0 265 16 pmappl 232 8068 0 7969 6 0 6 6 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 819 0 124 21 0 21 21 0 8 0