Copyright Protection and Accountability of Generative AI:Attack, Watermarking and Attribution