Re: [PATCH 6/7] powerpc/uaccess: Add unsafe_clear_user()

From: Christoph Hellwig
Date: Tue Jun 15 2021 - 02:54:03 EST


On Tue, Jun 15, 2021 at 06:41:02AM +0000, Christophe Leroy wrote:
> Implement unsafe_clear_user() for powerpc.
> It's a copy/paste of unsafe_copy_to_user() with value 0 as source.
>
> It may be improved in a later patch by using 'dcbz' instruction
> to zeroize full cache lines at once.

Please add this to common code insted of making it powerpc specific.