From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx115.postini.com [74.125.245.115]) by kanga.kvack.org (Postfix) with SMTP id 7A8A36B0034 for ; Thu, 30 May 2013 05:29:47 -0400 (EDT) Message-ID: <51A71B49.3070003@cn.fujitsu.com> Date: Thu, 30 May 2013 17:26:33 +0800 From: Zhang Yanfei MIME-Version: 1.0 Subject: Re: [PATCH v8 9/9] vmcore: support mmap() on /proc/vmcore References: <20130523052421.13864.83978.stgit@localhost6.localdomain6> <20130523052547.13864.83306.stgit@localhost6.localdomain6> <20130523152445.17549682ae45b5aab3f3cde0@linux-foundation.org> <51A2BBA7.50607@jp.fujitsu.com> In-Reply-To: Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-linux-mm@kvack.org List-ID: To: Maxim Uvarov Cc: HATAYAMA Daisuke , Andrew Morton , riel@redhat.com, hughd@google.com, jingbai.ma@hp.com, "kexec@lists.infradead.org" , linux-kernel@vger.kernel.org, lisa.mitchell@hp.com, linux-mm@kvack.org, Atsushi Kumagai , "Eric W. Biederman" , kosaki.motohiro@jp.fujitsu.com, walken@google.com, Cliff Wickman , Vivek Goyal On 05/30/2013 05:14 PM, Maxim Uvarov wrote: > > > > 2013/5/27 HATAYAMA Daisuke > > > (2013/05/24 18:02), Maxim Uvarov wrote: > > > > > 2013/5/24 Andrew Morton >> > > > On Thu, 23 May 2013 14:25:48 +0900 HATAYAMA Daisuke >> wrote: > > > This patch introduces mmap_vmcore(). > > > > Don't permit writable nor executable mapping even with mprotect() > > because this mmap() is aimed at reading crash dump memory. > > Non-writable mapping is also requirement of remap_pfn_range() when > > mapping linear pages on non-consecutive physical pages; see > > is_cow_mapping(). > > > > Set VM_MIXEDMAP flag to remap memory by remap_pfn_range and by > > remap_vmalloc_range_pertial at the same time for a single > > vma. do_munmap() can correctly clean partially remapped vma with two > > functions in abnormal case. See zap_pte_range(), vm_normal_page() and > > their comments for details. > > > > On x86-32 PAE kernels, mmap() supports at most 16TB memory only. This > > limitation comes from the fact that the third argument of > > remap_pfn_range(), pfn, is of 32-bit length on x86-32: unsigned long. > > More reviewing and testing, please. > > > Do you have git pull for both kernel and userland changes? I would like to do some more testing on my machines. > > Maxim. > > > Thanks! That's very helpful. > > -- > Thanks. > HATAYAMA, Daisuke > > Any update for this? Where can I checkout all sources? This series is now in Andrew Morton's -mm tree. -- Thanks. Zhang Yanfei -- 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