Large deviations of linear stochastic differential equations