This article considers the problem of testing for linearity of stationary time series. Portmanteau tests are discussed which are based on generalized correlations of residuals from a linear model (that is, autocorrelations and cross-correlations of different powers of the residuals). The finite-sample properties of the tests are assessed by means of Monte Carlo experiments. The tests are applied to 100 time series of stock returns.