Railways gave states info on Naxal threat