Re: [v3 5/7] powerpc/memcpy_mcsafe: return remaining bytes

2019-07-06 Thread Nicholas Piggin
Christophe Leroy's on July 6, 2019 4:16 pm: > > > Le 05/07/2019 à 23:26, Santosh Sivaraj a écrit : >> memcpy_mcsafe currently return -EFAULT on a machine check exception, change >> it to return the remaining bytes that needs to be copied, so that machine >> check safe copy_to_user can maintain th

Re: [v3 5/7] powerpc/memcpy_mcsafe: return remaining bytes

2019-07-05 Thread Christophe Leroy
Le 05/07/2019 à 23:26, Santosh Sivaraj a écrit : memcpy_mcsafe currently return -EFAULT on a machine check exception, change it to return the remaining bytes that needs to be copied, so that machine check safe copy_to_user can maintain the same behavior as copy_to_user. AFAIU, this behaviour

[v3 5/7] powerpc/memcpy_mcsafe: return remaining bytes

2019-07-05 Thread Santosh Sivaraj
memcpy_mcsafe currently return -EFAULT on a machine check exception, change it to return the remaining bytes that needs to be copied, so that machine check safe copy_to_user can maintain the same behavior as copy_to_user. Signed-off-by: Santosh Sivaraj --- arch/powerpc/lib/memcpy_mcsafe_64.S | 1