Stability in linear algebra problems