Level-crossing probabilities and first-passage times for linear processes