Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965435AbbLWUqX (ORCPT ); Wed, 23 Dec 2015 15:46:23 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:36478 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965408AbbLWUqW (ORCPT ); Wed, 23 Dec 2015 15:46:22 -0500 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 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 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 802 Lines: 21 > 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 from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/