Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752572AbbLXNhX (ORCPT ); Thu, 24 Dec 2015 08:37:23 -0500 Received: from mail.skyhub.de ([78.46.96.112]:34690 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751609AbbLXNhU (ORCPT ); Thu, 24 Dec 2015 08:37:20 -0500 Date: Thu, 24 Dec 2015 14:37:13 +0100 From: Borislav Petkov 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 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: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1006 Lines: 28 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 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/