Ukraine will stop attacking Russia when it withdraws from Ukraine back to the internationally recognized borders. You know, the ones that Russia pledged to honor.
So, that means the Russians will have to take more territory to protect their borders. So be it.