Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754124Ab3FCJD0 (ORCPT ); Mon, 3 Jun 2013 05:03:26 -0400 Received: from TYO200.gate.nec.co.jp ([210.143.35.50]:40436 "EHLO tyo200.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752516Ab3FCJDZ (ORCPT ); Mon, 3 Jun 2013 05:03:25 -0400 Date: Mon, 3 Jun 2013 17:43:51 +0900 From: Atsushi Kumagai To: muvarov@gmail.com Cc: zhangyanfei@cn.fujitsu.com, d.hatayama@jp.fujitsu.com, akpm@linux-foundation.org, 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, ebiederm@xmission.com, kosaki.motohiro@jp.fujitsu.com, walken@google.com, cpw@sgi.com, vgoyal@redhat.com Subject: Re: [PATCH v8 9/9] vmcore: support mmap() on /proc/vmcore Message-Id: <20130603174351.d04b2ac71d1bab0df242e0ba@mxc.nes.nec.co.jp> In-Reply-To: References: <20130523052421.13864.83978.stgit@localhost6.localdomain6> <20130523052547.13864.83306.stgit@localhost6.localdomain6> <20130523152445.17549682ae45b5aab3f3cde0@linux-foundation.org> <51A2BBA7.50607@jp.fujitsu.com> <51A71B49.3070003@cn.fujitsu.com> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2976 Lines: 90 Hello Maxim, On Thu, 30 May 2013 14:30:01 +0400 Maxim Uvarov wrote: > 2013/5/30 Zhang Yanfei > > > On 05/30/2013 05:14 PM, Maxim Uvarov wrote: > > > > > > > > > > > > 2013/5/27 HATAYAMA Daisuke > d.hatayama@jp.fujitsu.com>> > > > > > > (2013/05/24 18:02), Maxim Uvarov wrote: > > > > > > > > > > > > > > > 2013/5/24 Andrew Morton > akpm@linux-foundation.org> > akpm@linux-foundation.org>>> > > > > > > > > > On Thu, 23 May 2013 14:25:48 +0900 HATAYAMA Daisuke < > > d.hatayama@jp.fujitsu.com > d.hatayama@jp.fujitsu.__com >> 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. > > > > Ok, and what about makedumpfile changes? Is it possible to fetch them from > somewhere? You can fetch them from here, "mmap" branch is the change: git://git.code.sf.net/p/makedumpfile/code And they will be merged into v1.5.4. Thanks Atsushi Kumagai -- 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/