Cosmic rays and supernova remnants