Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison overwritten

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ingo Molnar
Date: Tuesday, July 22, 2008 - 6:34 am

* Ingo Molnar <mingo@elte.hu> wrote:


it's now past 50 successful iterations with e1000e+netconsole enabled 
again with the fix applied, and not a single crash, hang, memory 
corruption or other weirdness happened. Jeff, please apply the fix 
below.

Thanks,

	Ingo

---------------->
commit 1fd48807674d4f6defe82258c46619ce2c116943
Author: Ingo Molnar <mingo@elte.hu>
Date:   Tue Jul 22 09:44:32 2008 +0200

    e1000e: fix e1000_netpoll(), remove extraneous e1000_clean_tx_irq() call
    
    Evgeniy Polyakov noticed that drivers/net/e1000e/netdev.c:e1000_netpoll()
    was calling e1000_clean_tx_irq() without taking the TX lock.
    
    David Miller suggested to remove the call altogether: since in this
    callpah there's periodic calls to ->poll() anyway which will do
    e1000_clean_tx_irq() and will garbage-collect any finished TX ring
    descriptors.
    
    This fix solved the e1000e+netconsole crashes i've been seeing:
    
    =============================================================================
    BUG skbuff_head_cache: Poison overwritten
    -----------------------------------------------------------------------------
    
    INFO: 0xf658ae9c-0xf658ae9c. First byte 0x6a instead of 0x6b
    INFO: Allocated in __alloc_skb+0x2c/0x110 age=0 cpu=0 pid=5098
    INFO: Freed in __kfree_skb+0x31/0x80 age=0 cpu=1 pid=4440
    INFO: Slab 0xc16cc140 objects=16 used=1 fp=0xf658ae00 flags=0x400000c3
    INFO: Object 0xf658ae00 @offset=3584 fp=0xf658af00
    
    Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 drivers/net/e1000e/netdev.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c
index 869544b..9c0f56b 100644
--- a/drivers/net/e1000e/netdev.c
+++ b/drivers/net/e1000e/netdev.c
@@ -4067,8 +4067,6 @@ static void e1000_netpoll(struct net_device *netdev)
 	disable_irq(adapter->pdev->irq);
 	e1000_intr(adapter->pdev->irq, netdev);
 
-	e1000_clean_tx_irq(adapter);
-
 	enable_irq(adapter->pdev->irq);
 }
 #endif
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ..., Evgeniy Polyakov, (Thu Jul 17, 10:46 pm)
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ..., Evgeniy Polyakov, (Fri Jul 18, 3:16 am)
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ..., Christoph Lameter, (Fri Jul 18, 6:54 am)
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ..., Christoph Lameter, (Fri Jul 18, 6:55 am)
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ..., Christoph Lameter, (Fri Jul 18, 7:48 am)
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ..., Evgeniy Polyakov, (Fri Jul 18, 9:07 am)
Re: [bug] Attempt to release alive inet socket f6fac040, Ingo Molnar, (Fri Jul 18, 12:10 pm)
Re: [bug] Attempt to release alive inet socket f6fac040, Ingo Molnar, (Fri Jul 18, 12:55 pm)
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ..., Evgeniy Polyakov, (Mon Jul 21, 3:06 am)
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ..., Evgeniy Polyakov, (Mon Jul 21, 4:25 am)
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ..., Evgeniy Polyakov, (Mon Jul 21, 5:57 am)
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ..., Christoph Lameter, (Mon Jul 21, 9:19 am)
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ..., Christoph Lameter, (Mon Jul 21, 9:22 am)
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ..., Evgeniy Polyakov, (Mon Jul 21, 12:57 pm)
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ..., Evgeniy Polyakov, (Mon Jul 21, 2:24 pm)
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ..., Ingo Molnar, (Tue Jul 22, 6:34 am)