We propose inverse Compton scattering (ICS) of coherent synchrotron radiation (CSR) from a relativistic short electron bunch in energy recovery linacs (ERL) as a high-flux subpicosecond x-ray and -ray source. An advantage of the CSR scheme over a conventional ICS source is that no external laser is required, and synchronization between CSR pulses and electron bunches is obtained automatically. Moreover, higher-flux x rays can be generated from the ICS of CSR in an ERL operated at a high repetition rate, 100 MHz to 1.3 GHz. Using parameters of the Compact ERL at KEK, 1 Â 10 13-14 phs=s b.w. 10% (the number of photons pulse À1 bandwidth unit À1 ) x ray with a 100 fs-1 ps pulse duration can be obtained, for an energy range from 0.04 to 4 keV. In the case of a 5-GeV ERL, rays with energy around tens of MeV are generated with 1 Â 10 8 phs=pulse b.w. 10% at a repetition rate of several hundreds of MHz.