From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) by kanga.kvack.org (Postfix) with ESMTP id 839DF6B02B4 for ; Wed, 23 Dec 2015 15:46:22 -0500 (EST) Received: by mail-wm0-f53.google.com with SMTP id l126so161540421wml.0 for ; Wed, 23 Dec 2015 12:46:22 -0800 (PST) Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com. [2a00:1450:400c:c09::241]) by mx.google.com with ESMTPS id v191si53320978wmd.52.2015.12.23.12.46.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Dec 2015 12:46:21 -0800 (PST) Received: by mail-wm0-x241.google.com with SMTP id p187so30305105wmp.2 for ; Wed, 23 Dec 2015 12:46:21 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <20151222111349.GB3728@pd.tnic> <20151223125853.GF30213@pd.tnic> Date: Wed, 23 Dec 2015 12:46:20 -0800 Message-ID: Subject: Re: [PATCHV3 3/3] x86, ras: Add mcsafe_memcpy() function to recover from machine checks From: Tony Luck Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Dan Williams Cc: Borislav Petkov , Ingo Molnar , Andrew Morton , Andy Lutomirski , Elliott@pd.tnic, Robert , Linux Kernel Mailing List , "linux-mm@kvack.org" , linux-nvdimm , X86-ML > 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). -Tony -- 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