Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751801AbbHTKpS (ORCPT ); Thu, 20 Aug 2015 06:45:18 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:33780 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751058AbbHTKpR convert rfc822-to-8bit (ORCPT ); Thu, 20 Aug 2015 06:45:17 -0400 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: [RFC] fs/kcore: change copy_to_user to copy_in_user From: yalin wang In-Reply-To: Date: Thu, 20 Aug 2015 18:45:08 +0800 Cc: bp@suse.de, Ingo Molnar , dave@sr71.net, bhe@redhat.com, Andrew Morton , "linux-kernel@vger.kernel.org" Content-Transfer-Encoding: 8BIT Message-Id: References: <1440061141-9778-1-git-send-email-yalin.wang2010@gmail.com> To: Frans Klaver X-Mailer: Apple Mail (2.2104) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 845 Lines: 20 > On Aug 20, 2015, at 17:58, Frans Klaver wrote: > > On Thu, Aug 20, 2015 at 10:59 AM, yalin wang wrote: >> the copy_to_user() here expect can fix the fault on both kernel and >> user address, this is not true on other platforms except x86, >> change to user copy_in_user() so that can detect the page fault, >> work as expected. > > Could you rephrase this into multiple sentences in comprehensible > English? What is the expected behavior, what is the unexpected > behavior and what can people do to trigger it? > ok, i will send a V2 patch. -- 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/