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

2021-06-15 Thread Christophe Leroy
Le 15/06/2021 à 08:53, Christoph Hellwig a écrit : On Tue, Jun 15, 2021 at 06:41:02AM +, 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 t

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

2021-06-14 Thread Christoph Hellwig
On Tue, Jun 15, 2021 at 06:41:02AM +, 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

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

2021-06-14 Thread Christophe Leroy
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. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/uaccess.h | 20