All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Pearson, Greg" <greg.pearson@hp.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: "tj@kernel.org" <tj@kernel.org>,
	"hpa@linux.intel.com" <hpa@linux.intel.com>,
	"shangw@linux.vnet.ibm.com" <shangw@linux.vnet.ibm.com>,
	"mingo@elte.hu" <mingo@elte.hu>,
	"yinghai@kernel.org" <yinghai@kernel.org>,
	"benh@kernel.crashing.org" <benh@kernel.crashing.org>,
	"linux-mm@kvack.org" <linux-mm@kvack.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v4] mm/memblock: fix overlapping allocation when doubling reserved array
Date: Tue, 19 Jun 2012 22:35:08 +0000	[thread overview]
Message-ID: <4FE0FE9B.8020401@hp.com> (raw)
In-Reply-To: <20120619151435.10c16aed.akpm@linux-foundation.org>

On 06/19/2012 04:14 PM, Andrew Morton wrote:
> On Mon, 18 Jun 2012 17:47:58 -0600
> Greg Pearson <greg.pearson@hp.com> wrote:
>
>> The __alloc_memory_core_early() routine will ask memblock for a range
>> of memory then try to reserve it. If the reserved region array lacks
>> space for the new range, memblock_double_array() is called to allocate
>> more space for the array. If memblock is used to allocate memory for
>> the new array it can end up using a range that overlaps with the range
>> originally allocated in __alloc_memory_core_early(), leading to possible
>> data corruption.
> OK, but we have no information about whether it *does* lead to data
> corruption.  Are there workloads which trigger this?  End users who are
> experiencing problems?
>
> See, I (and others) need to work out whether this patch should be
> included in 3.5 or even earlier kernels.  To do that we often need the
> developer to tell us what the impact of the bug is upon users.  Please
> always include this info when fixing bugs.

Andrew,

I'm currently working on a prototype system that exhibits the data 
corruption problem when doubling the reserved array while booting the 
system. This system will be a released product in the future. I'll 
remember to include this information in the patch next time.

Thanks

--
Greg
--
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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

WARNING: multiple messages have this Message-ID (diff)
From: "Pearson, Greg" <greg.pearson@hp.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: "tj@kernel.org" <tj@kernel.org>,
	"hpa@linux.intel.com" <hpa@linux.intel.com>,
	"shangw@linux.vnet.ibm.com" <shangw@linux.vnet.ibm.com>,
	"mingo@elte.hu" <mingo@elte.hu>,
	"yinghai@kernel.org" <yinghai@kernel.org>,
	"benh@kernel.crashing.org" <benh@kernel.crashing.org>,
	"linux-mm@kvack.org" <linux-mm@kvack.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v4] mm/memblock: fix overlapping allocation when doubling reserved array
Date: Tue, 19 Jun 2012 22:35:08 +0000	[thread overview]
Message-ID: <4FE0FE9B.8020401@hp.com> (raw)
In-Reply-To: <20120619151435.10c16aed.akpm@linux-foundation.org>

On 06/19/2012 04:14 PM, Andrew Morton wrote:
> On Mon, 18 Jun 2012 17:47:58 -0600
> Greg Pearson <greg.pearson@hp.com> wrote:
>
>> The __alloc_memory_core_early() routine will ask memblock for a range
>> of memory then try to reserve it. If the reserved region array lacks
>> space for the new range, memblock_double_array() is called to allocate
>> more space for the array. If memblock is used to allocate memory for
>> the new array it can end up using a range that overlaps with the range
>> originally allocated in __alloc_memory_core_early(), leading to possible
>> data corruption.
> OK, but we have no information about whether it *does* lead to data
> corruption.  Are there workloads which trigger this?  End users who are
> experiencing problems?
>
> See, I (and others) need to work out whether this patch should be
> included in 3.5 or even earlier kernels.  To do that we often need the
> developer to tell us what the impact of the bug is upon users.  Please
> always include this info when fixing bugs.

Andrew,

I'm currently working on a prototype system that exhibits the data 
corruption problem when doubling the reserved array while booting the 
system. This system will be a released product in the future. I'll 
remember to include this information in the patch next time.

Thanks

--
Greg

  reply	other threads:[~2012-06-19 22:37 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-18 23:47 [PATCH v4] mm/memblock: fix overlapping allocation when doubling reserved array Greg Pearson
2012-06-18 23:47 ` Greg Pearson
2012-06-19 21:33 ` Tejun Heo
2012-06-19 21:33   ` Tejun Heo
2012-06-19 22:00   ` Pearson, Greg
2012-06-19 22:00     ` Pearson, Greg
2012-06-19 22:21     ` Andrew Morton
2012-06-19 22:21       ` Andrew Morton
2012-06-19 22:14 ` Andrew Morton
2012-06-19 22:14   ` Andrew Morton
2012-06-19 22:35   ` Pearson, Greg [this message]
2012-06-19 22:35     ` Pearson, Greg
2012-06-19 23:00     ` Andrew Morton
2012-06-19 23:00       ` Andrew Morton
2012-06-20 15:21       ` Pearson, Greg
2012-06-20 15:21         ` Pearson, Greg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FE0FE9B.8020401@hp.com \
    --to=greg.pearson@hp.com \
    --cc=akpm@linux-foundation.org \
    --cc=benh@kernel.crashing.org \
    --cc=hpa@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mingo@elte.hu \
    --cc=shangw@linux.vnet.ibm.com \
    --cc=tj@kernel.org \
    --cc=yinghai@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.