Einstein's equations allow time loops.
Kurt Gödel published a rotating-universe solution with closed timelike curves in 1949 for Einstein’s 70th birthday issue. Mathematically allowed isn’t the same as physically real.
Source: Rev. Mod. Phys. 21, 447 (1949).
Factoids research notes