Kinetic simulations of the stability of a plasma confined by the magnetic field of a current rod