Re: [PATCHV4 3/3] x86, ras: Add __mcsafe_copy() function to recover from machine checks

2015-12-24 Thread Borislav Petkov
On Tue, Dec 15, 2015 at 05:30:49PM -0800, Tony Luck wrote: > Using __copy_user_nocache() as inspiration create a memory copy > routine for use by kernel code with annotations to allow for > recovery from machine checks. > > Notes: > 1) We align the source address rather than the destination. This

[PATCHV4 3/3] x86, ras: Add __mcsafe_copy() function to recover from machine checks

2015-12-24 Thread Tony Luck
Using __copy_user_nocache() as inspiration create a memory copy routine for use by kernel code with annotations to allow for recovery from machine checks. Notes: 1) We align the source address rather than the destination. This means we never have to deal with a memory read that spans two

Re: [PATCHV4 3/3] x86, ras: Add __mcsafe_copy() function to recover from machine checks

2015-12-24 Thread Borislav Petkov
On Tue, Dec 15, 2015 at 05:30:49PM -0800, Tony Luck wrote: > Using __copy_user_nocache() as inspiration create a memory copy > routine for use by kernel code with annotations to allow for > recovery from machine checks. > > Notes: > 1) We align the source address rather than the destination. This

[PATCHV4 3/3] x86, ras: Add __mcsafe_copy() function to recover from machine checks

2015-12-24 Thread Tony Luck
Using __copy_user_nocache() as inspiration create a memory copy routine for use by kernel code with annotations to allow for recovery from machine checks. Notes: 1) We align the source address rather than the destination. This means we never have to deal with a memory read that spans two