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 *245393 37864 0 0 0x4000000 0K syz-executor.1 441843 36975 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(ffffffff822085d0,ffffffff82200bdf,3b3,ffffffff821c2eb0) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000a68000,1,fffffd8064711238) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff8000221bd008,1,ffff8000221bd0d8,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000abb100,240404,ffff800000abb158,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000abb100) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000a68000,ffff800000abb100,ffff8000221bd400,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff8000221bd3f0,ffff800000a68000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff8000221bd3f0,ffff800000a68000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806b031c10,8020690c,ffff8000221bd3f0,ffff800020ab13d8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab13d8,ffff8000221bd508,ffff8000221bd550) at sys_ioctl+0x5b9 syscall(ffff8000221bd5d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000221bd5d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,91cc1ae10e0) at Xsyscall+0x128 end of kernel end trace frame: 0x91f6ce941a0, 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(ffffffff822085d0,ffffffff82200bdf,3b3,ffffffff821c2eb0) at __assert+0x2b sys/kern/subr_prf.c:154 nd6_rtrequest(ffff800000a68000,1,fffffd8064711238) at nd6_rtrequest+0xbb4 sys/netinet6/nd6.c:947 rtrequest(1,ffff8000221bd008,1,ffff8000221bd0d8,0) at rtrequest+0x9bf sys/net/route.c:973 rt_ifa_add(ffff800000abb100,240404,ffff800000abb158,0) at rt_ifa_add+0x290 sys/net/route.c:1133 rt_ifa_addlocal(ffff800000abb100) at rt_ifa_addlocal+0x16d sys/net/route.c:1242 in_ifinit(ffff800000a68000,ffff800000abb100,ffff8000221bd400,0) at in_ifinit+0x1cf sys/netinet/in.c:614 in_ioctl_sifaddr(8020690c,ffff8000221bd3f0,ffff800000a68000,1) at in_ioctl_sifaddr+0x208 sys/netinet/in.c:360 in_ioctl(8020690c,ffff8000221bd3f0,ffff800000a68000,1) at in_ioctl+0x1e7 sys/netinet/in.c:231 ifioctl(fffffd806b031c10,8020690c,ffff8000221bd3f0,ffff800020ab13d8) at ifioctl+0xb64 sys/net/if.c:2202 sys_ioctl(ffff800020ab13d8,ffff8000221bd508,ffff8000221bd550) at sys_ioctl+0x5b9 syscall(ffff8000221bd5d0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:92 [inline] syscall(ffff8000221bd5d0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:555 Xsyscall(6,0,ffffffffffffff36,0,3,91cc1ae10e0) at Xsyscall+0x128 end of kernel end trace frame: 0x91f6ce941a0, count: -14 ddb{0}> show registers rdi 0xffffffff81397877 db_enter+0x17 rsi 0x5790 __ALIGN_SIZE+0x4790 rbp 0xffff8000221bcd40 rbx 0xffff8000221bcdf0 rdx 0x5791 __ALIGN_SIZE+0x4791 rcx 0xffff800020d82000 rax 0xffff800020d82000 r8 0xffffffff821776bf kprintf+0x16f r9 0x1 r10 0x25 r11 0x73fda59e00fa8da2 r12 0x3000000008 r13 0xffff8000221bcd50 r14 0x100 r15 0x1 rip 0xffffffff81397878 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000221bcd30 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=245393 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800020ab09f8,0xffff800022182798 process=0xffff800020addc00 user=0xffff8000221b8000, vmspace=0xfffffd807f00b8a0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 37864 163569 6854 0 2 0 syz-executor.1 37864 391883 6854 0 2 0x4000000 syz-executor.1 *37864 245393 6854 0 7 0x4000000 syz-executor.1 37864 351393 6854 0 3 0x4000080 fsleep syz-executor.1 80679 120633 0 0 3 0x14200 bored sosplice 6854 112854 61812 0 2 0x482 syz-executor.1 69061 116347 61812 0 3 0x82 nanosleep syz-executor.0 61812 430581 56556 0 3 0x82 thrsleep syz-fuzzer 61812 112961 56556 0 3 0x4000082 thrsleep syz-fuzzer 61812 94668 56556 0 3 0x4000082 thrsleep syz-fuzzer 61812 153235 56556 0 3 0x4000082 thrsleep syz-fuzzer 61812 518574 56556 0 3 0x4000082 thrsleep syz-fuzzer 61812 82102 56556 0 3 0x4000082 kqread syz-fuzzer 61812 461337 56556 0 3 0x4000082 thrsleep syz-fuzzer 61812 119713 56556 0 3 0x4000082 thrsleep syz-fuzzer 61812 245756 56556 0 3 0x4000082 thrsleep syz-fuzzer 61812 67579 56556 0 3 0x4000082 thrsleep syz-fuzzer 56556 463084 86013 0 3 0x10008a pause ksh 86013 339538 86007 0 3 0x92 select sshd 22282 356782 1 0 3 0x100083 ttyin getty 86007 389052 1 0 3 0x80 select sshd 7067 452600 10639 74 3 0x100092 bpf pflogd 10639 456928 1 0 3 0x80 netio pflogd 21127 374079 67612 73 3 0x100090 kqread syslogd 67612 444405 1 0 3 0x100082 netio syslogd 19091 52955 1 77 3 0x100090 poll dhclient 95977 519423 1 0 3 0x80 poll dhclient 67307 381032 0 0 3 0x14200 pgzero zerothread 53938 489918 0 0 3 0x14200 aiodoned aiodoned 60638 516099 0 0 3 0x14200 syncer update 13637 236997 0 0 3 0x14200 cleaner cleaner 36975 441843 0 0 7 0x14200 reaper 41183 183518 0 0 3 0x14200 pgdaemon pagedaemon 39885 298581 0 0 3 0x14200 bored crynlk 9152 382272 0 0 3 0x14200 bored crypto 72295 450361 0 0 3 0x40014200 acpi0 acpi0 37633 224377 0 0 3 0x40014200 idle1 25539 170414 0 0 3 0x14200 bored softnet 55831 11130 0 0 2 0x14200 systqmp 59908 44142 0 0 3 0x14200 bored systq 26789 490863 0 0 2 0x40014200 softclock 29279 452774 0 0 3 0x40014200 idle0 5387 25512 0 0 3 0x14200 bored smr 1 479032 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 1: exclusive mutex &pmap->pm_mtx r = 0 (0xfffffd807f00aaf0) #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 pmap_do_remove+0x88 rcr3 machine/cpufunc.h:141 [inline] #3 pmap_do_remove+0x88 pmap_map_ptes sys/arch/amd64/amd64/pmap.c:418 [inline] #3 pmap_do_remove+0x88 sys/arch/amd64/amd64/pmap.c:1688 #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 Process 37864 (syz-executor.1) thread 0xffff800020ab13d8 (245393) exclusive rwlock netlock r = 0 (0xffffffff824d2b38) #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 (0xffffffff82672458) #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 9513 6531K 7113K 78643K 11042 0 0 pcb 13 8K 8K 78643K 47 0 0 rtable 115 4K 5K 78643K 352 0 0 ifaddr 57 13K 14K 78643K 97 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 1473 0 0 iov 0 0K 16K 78643K 42 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1224 77K 77K 78643K 1348 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 8 0 0 VM map 3 1K 1K 78643K 3 0 0 sem 12 0K 1K 78643K 82 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 5 13K 25K 78643K 184 0 0 sigio 0 0K 0K 78643K 6 0 0 proc 60 63K 95K 78643K 435 0 0 subproc 32 2K 2K 78643K 34 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 11 0 0 in_multi 33 2K 2K 78643K 36 0 0 ether_multi 1 0K 0K 78643K 2 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 42 185K 185K 78643K 42 0 0 exec 0 0K 1K 78643K 218 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 121 38K 38K 78643K 1566 0 0 UVM aobj 51 2K 2K 78643K 53 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 38 0 0 NDP 11 0K 0K 78643K 26 0 0 temp 155 3556K 3622K 78643K 4387 0 0 kqueue 0 0K 0K 78643K 2 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 12 0 6 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 27 0 25 1 0 1 1 0 8 0 rtentry 112 64 0 18 2 0 2 2 0 8 0 unpcb 120 129 0 119 1 0 1 1 0 8 0 syncache 264 6 0 6 2 2 0 1 0 8 0 tcpqe 32 70 0 70 1 1 0 1 0 8 0 tcpcb 544 328 0 318 2 0 2 2 0 8 1 inpcb 280 481 0 471 3 0 3 3 0 8 2 nd6 48 7 0 1 1 0 1 1 0 8 0 ppxss 1128 10 0 10 2 1 1 1 0 8 1 pffrag 232 7 0 7 2 1 1 1 0 482 1 pffrnode 88 7 0 7 2 1 1 1 0 8 1 pffrent 40 226 0 226 2 1 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 26 0 3 1 0 1 1 0 8 0 pfstkey 112 26 0 3 1 0 1 1 0 8 0 pfstate 328 26 0 3 2 0 2 2 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 269 0 21 16 0 16 16 0 8 0 art_table 32 270 0 21 3 0 3 3 0 8 0 art_node 16 63 0 20 1 0 1 1 0 8 0 sysvmsgpl 40 8 0 6 2 1 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 78 0 68 1 0 1 1 0 8 0 shmpl 112 51 0 2 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 1699 0 294 46 0 46 46 0 8 0 ffsino 272 1699 0 294 95 0 95 95 0 8 0 nchpl 144 2189 0 571 61 0 61 61 0 8 0 uvmvnodes 72 1835 0 0 34 0 34 34 0 8 0 vnodes 208 1835 0 0 97 0 97 97 0 8 0 namei 1024 5929 0 5929 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 1 0 0 1 0 1 1 0 8 0 vmpool 552 1 0 0 1 0 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 6118 0 6118 8 7 1 7 0 8 1 plimitpl 152 29 0 21 1 0 1 1 0 8 0 sigapl 432 384 0 369 3 1 2 3 0 8 0 futexpl 56 4253 0 4252 1 0 1 1 0 8 0 knotepl 112 71 0 52 1 0 1 1 0 8 0 kqueuepl 104 36 0 34 1 0 1 1 0 8 0 pipepl 112 306 0 287 2 0 2 2 0 8 1 fdescpl 488 385 0 369 3 0 3 3 0 8 0 filepl 152 2633 0 2531 6 0 6 6 0 8 2 lockfpl 104 79 0 78 1 0 1 1 0 8 0 lockfspl 48 28 0 27 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 20 0 9 1 0 1 1 0 8 0 ucredpl 96 145 0 136 1 0 1 1 0 8 0 zombiepl 144 369 0 368 1 0 1 1 0 8 0 processpl 896 401 0 368 4 0 4 4 0 8 0 procpl 632 754 0 709 5 0 5 5 0 8 0 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 384 645 0 624 5 0 5 5 0 8 2 mcl64k 65536 11 0 0 2 0 2 2 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 9 0 0 2 0 2 2 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 158 0 0 19 0 19 19 0 8 0 mtagpl 80 13 0 0 1 0 1 1 0 8 0 mbufpl 256 639 0 0 39 0 39 39 0 8 0 bufpl 256 6586 0 1314 330 0 330 330 0 8 0 anonpl 16 64571 0 45623 94 1 93 93 0 124 16 amapchunkpl 152 2036 0 1871 10 3 7 10 0 158 0 amappl16 192 2496 0 1463 70 10 60 64 0 8 8 amappl15 184 79 0 77 1 0 1 1 0 8 0 amappl14 176 99 0 96 1 0 1 1 0 8 0 amappl13 168 1 0 1 1 1 0 1 0 8 0 amappl12 160 10 0 9 1 0 1 1 0 8 0 amappl11 152 55 0 39 1 0 1 1 0 8 0 amappl10 144 15 0 10 1 0 1 1 0 8 0 amappl9 136 617 0 610 1 0 1 1 0 8 0 amappl8 128 171 0 143 1 0 1 1 0 8 0 amappl7 120 49 0 44 1 0 1 1 0 8 0 amappl6 112 77 0 65 1 0 1 1 0 8 0 amappl5 104 137 0 123 1 0 1 1 0 8 0 amappl4 96 566 0 534 1 0 1 1 0 8 0 amappl3 88 264 0 255 1 0 1 1 0 8 0 amappl2 80 2208 0 2128 3 1 2 3 0 8 0 amappl1 72 18479 0 18008 25 15 10 20 0 8 0 amappl 80 1012 0 959 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 52 0 2 1 0 1 1 0 8 0 uaddrrnd 24 386 0 369 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 386 0 369 1 0 1 1 0 8 0 vmmpekpl 168 7327 0 7296 2 0 2 2 0 8 0 vmmpepl 168 55113 0 52830 129 12 117 126 0 357 16 vmsppl 368 384 0 368 2 0 2 2 0 8 0 pdppl 4096 779 0 737 6 0 6 6 0 8 0 pvpl 32 185973 0 163881 216 0 216 216 0 265 34 pmappl 232 385 0 368 2 0 2 2 0 8 1 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 524 0 3 15 0 15 15 0 8 0