Upvote:-1
It's generally recommended that you have a passport valid for 6 months after your travel date to ensure it doesn't expire while you're abroad in case of a travel delay. Legally though your visa is still valid up until the expiry date printed on the visa, even if you renew your passport. Most countries allow you to keep your old passport after a renewal just for such a purpose, so make sure to check with the Indian passport office if this is possible. Once your visa expires, you'll have to apply for a new one.
Upvote:4
The only requirement for your passport validity when visiting Canada is that it is valid for the whole of your intended stay. The expiry of your visa is the last day you can enter Canada.
So both your passport and visa are fine for your visit.