Passivation of irregular surfaces accessed by diffusion