Stability of general systems of linear equations