From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by kanga.kvack.org (Postfix) with ESMTP id 16EC682F99 for ; Thu, 24 Dec 2015 08:37:20 -0500 (EST) Received: by mail-wm0-f41.google.com with SMTP id l126so184942547wml.1 for ; Thu, 24 Dec 2015 05:37:20 -0800 (PST) Received: from mail.skyhub.de (mail.skyhub.de. [2a01:4f8:120:8448::d00d]) by mx.google.com with ESMTP id e2si18653396wmi.26.2015.12.24.05.37.18 for ; Thu, 24 Dec 2015 05:37:18 -0800 (PST) Date: Thu, 24 Dec 2015 14:37:13 +0100 From: Borislav Petkov Subject: Re: [PATCHV3 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks Message-ID: <20151224133713.GC4128@pd.tnic> References: <20151222111349.GB3728@pd.tnic> <20151223125853.GF30213@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Tony Luck Cc: Dan Williams , Ingo Molnar , Andrew Morton , Andy Lutomirski , Elliott@pd.tnic, Robert , Linux Kernel Mailing List , "linux-mm@kvack.org" , linux-nvdimm , X86-ML On Wed, Dec 23, 2015 at 12:46:20PM -0800, Tony Luck wrote: > > I know, memcpy returns the ptr to @dest like a parrot > > Maybe I need to change the name to remove the > "memcpy" substring to avoid this confusion. How > about "mcsafe_copy()"? Perhaps with a "__" prefix > to point out it is a building block that will get various > wrappers around it?? > > Dan wants a copy_from_nvdimm() that either completes > the copy, or indicates where a machine check occurred. > > I'm going to want a copy_from_user() that has two fault > options (user gave a bad address -> -EFAULT, or the > source address had an uncorrected error -> SIGBUS). Sounds like standard kernel design to me. :) -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org