Let $R$ be a commutative ring.
It is known that if $M$ is a finitely generated $R$-module and if $f \in End_R(M)$, then surjectivity of $f$ implies injectivity of $f$ (Vasconcelos).
I am looking for sufficient conditions on $R$ or $M$ to have a converse to this statement.
For instance, if $R$ is a field or if $R$ is a finite commutative ring, this will be true (in the former case, because $M$ is a finite dimensional vector space over $R$, and in the latter case, because $|M| < \infty$).
If $M$ is a free module of finite rank, say $M \cong R^n$, then $f$ is just a matrix $A$. Injectivity is equivalent to the columns of $A$ to be linearly equivalent over $R$. By Exercise 5.23B in Exercises in Modules and Rings by T. Y. Lam, this is equivalent to $\det(A) \in R$ not being a zero divisor. If all such elements of $R$ are invertible, then $A$ and thus $f$ are invertible as well. By this question, all artinian rings $R$ work (and when $M$ is free of finite rank).
What are some other conditions?