Nonlinear magnetic flux response in high temperature superconductors