Safety at Scale: A Comprehensive Survey of Large Model Safety