Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756096Ab1CCLlH (ORCPT ); Thu, 3 Mar 2011 06:41:07 -0500 Received: from smtp.nokia.com ([147.243.128.24]:18848 "EHLO mgw-da01.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751133Ab1CCLlG (ORCPT ); Thu, 3 Mar 2011 06:41:06 -0500 Date: Thu, 3 Mar 2011 13:37:37 +0200 (EET) From: Aaro Koskinen X-X-Sender: aakoskin@esdhcp041196.research.nokia.com To: KOSAKI Motohiro cc: Aaro Koskinen , linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, stable@kernel.org Subject: Re: [PATCH] procfs: fix /proc//maps heap check In-Reply-To: <20110303102631.B939.A69D9226@jp.fujitsu.com> Message-ID: References: <1298996813-8625-1-git-send-email-aaro.koskinen@nokia.com> <20110303102631.B939.A69D9226@jp.fujitsu.com> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Nokia-AV: Clean Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1244 Lines: 36 Hi, On Thu, 3 Mar 2011, KOSAKI Motohiro wrote: >> On Tue, 1 Mar 2011, Aaro Koskinen wrote: >>> The current check looks wrong and prints "[heap]" only if the mapping >>> matches exactly the heap. However, the heap may be merged with some >>> other mappings, and there may be also be multiple mappings. >>> >>> Signed-off-by: Aaro Koskinen >>> Cc: stable@kernel.org [...] > Your description said, > the heap may be merged with some other mappings, > ^^^^^^ > but your example is splitting case. not merge. In other words, your > patch care splitting case but break merge case. > > Ok, we have no obvious correct behavior. This is debatable. So, > Why do you think vma splitting case is important than merge? Sorry, I was unclear. The current behaviour is wrong for both merged and split cases, and I think the patch fixes both. And yes, the example program is for the split case. I'll see if I can make a test program for the merged case... A. -- 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/