Kernels of derivations in positive characteristic