On nonlinear and nonextensive diffusion and the second law of thermodynamics