[lkml]   [2010]   [Mar]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [Stable-review] [19/39] e100: Use pci pool to work around GFP_ATOMIC order 5 memory allocation failure
From: Stephen Hemminger <>
Date: Mon, 15 Mar 2010 14:29:53 -0700

> On Tue, 05 Jan 2010 12:02:15 -0800
> Greg KH <> wrote:
>> 2.6.31-stable review patch. If anyone has any objections, please let us know.
>> ------------------
>> From: Roger Oksanen <>
>> commit 98468efddb101f8a29af974101c17ba513b07be1 upstream.
>> pci_alloc_consistent uses GFP_ATOMIC allocation that may fail on some systems
>> with limited memory (Bug #14265). pci_pool_alloc allows waiting with
>> Tested-by: Karol Lewandowski <>
>> Signed-off-by: Roger Oksanen <>
>> Signed-off-by: David S. Miller <>
>> Signed-off-by: Greg Kroah-Hartman <>
> These two e100 patches in (and 2.6.32) caused kernel panic on one customer
> system. I recommend they be reverted in next --stable update.

There was a subsequent fix that explicitly zeros out the memory.
The problem was that whilst pci_alloc_consistent() zeros out
the memory it returns, the pci pool stuff does not.

So please get that fix sent to -stable instead of the revert.
For reference:

commit 70abc8cb90e679d8519721e2761d8366a18212a6
Author: Roger Oksanen <>
Date: Fri Dec 18 20:18:21 2009 -0800

e100: Fix broken cbs accounting due to missing memset.

Alan Stern noticed that e100 caused slab corruption.
commit 98468efddb101f8a29af974101c17ba513b07be1 changed
the allocation of cbs to use dma pools that don't return zeroed memory,
especially the cb->status field used to track which cb to clean, causing
(the visible) double freeing of skbs and a wrong free cbs count.

Now the cbs are explicitly zeroed at allocation time.

Reported-by: Alan Stern <>
Tested-by: Alan Stern <>
Signed-off-by: Roger Oksanen <>
Acked-by: Jesse Brandeburg <>
Signed-off-by: David S. Miller <>

 \ /
  Last update: 2010-03-15 22:35    [W:0.064 / U:18.404 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site