You should get a letter from IND or city hall that you need a valid passport for 5 years to obtain a 5 years residence permit. Bring this letter from IND or city hall to the Chinese embassy and they will extend your passport validation even your passport is not yet about to expired. They have done this a lot. don't worry.