linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Joerg Roedel <joerg.roedel@amd.com>
Cc: Ingo Molnar <mingo@redhat.com>,
	iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org
Subject: e1000e 0000:04:00.0: DMA-API: device driver frees DMA memory with wrong function [device address=0x000000003e5a2c02]  [size=42 bytes] [mapped as single] [unmapped as page]
Date: Wed, 18 Mar 2009 12:28:10 +0100	[thread overview]
Message-ID: <20090318112810.GC32233@elte.hu> (raw)
In-Reply-To: <20090318093847.GC5879@elte.hu>


another -tip testbox triggered a DMA-debug warning on e1000e:

[   33.284944] e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: RX/TX
[   34.129676] ------------[ cut here ]------------
[   34.132025] WARNING: at lib/dma-debug.c:562 check_unmap+0x364/0x800()
[   34.132025] Hardware name:         
[   34.132025] 
e1000e 0000:04:00.0: DMA-API: device driver frees
 DMA memory with wrong function [device address=0x000000003e5a2c02]
 [size=42 bytes] [mapped as single] [unmapped as page]
[   34.132025] Modules linked in:
[   34.132025] Pid: 1937, comm: arping Not tainted 2.6.29-rc8-tip-02728-g7db4920-dirty #2993
[   34.132025] Call Trace:
[   34.132025]  <IRQ>  [<ffffffff80281f3d>] warn_slowpath+0xfd/0x140
[   34.132025]  [<ffffffff80c12976>] ? fn_hash_lookup+0x16/0x100
[   34.132025]  [<ffffffff80bc3e65>] ? ip_route_input_slow+0x635/0x820
[   34.132025]  [<ffffffff80231656>] ? ftrace_call+0x5/0x2b
[   34.132025]  [<ffffffff80231656>] ? ftrace_call+0x5/0x2b
[   34.132025]  [<ffffffff80231656>] ? ftrace_call+0x5/0x2b
[   34.132025]  [<ffffffff8067ef04>] check_unmap+0x364/0x800
[   34.132025]  [<ffffffff80231656>] ? ftrace_call+0x5/0x2b
[   34.132025]  [<ffffffff80231656>] ? ftrace_call+0x5/0x2b
[   34.132025]  [<ffffffff8067f6d8>] debug_dma_unmap_page+0xd8/0xe0
[   34.132025]  [<ffffffff80231656>] ? ftrace_call+0x5/0x2b
[   34.132025]  [<ffffffff807758b5>] e1000_put_txbuf+0xd5/0x170
[   34.132025]  [<ffffffff80775a53>] e1000_clean_tx_irq+0x103/0x350
[   34.132025]  [<ffffffff8077b668>] e1000_clean+0x148/0x1a0
[   34.132025]  [<ffffffff80231656>] ? ftrace_call+0x5/0x2b
[   34.132025]  [<ffffffff80b570ab>] net_rx_action+0x2bb/0x340
[   34.132025]  [<ffffffff8028a433>] __do_softirq+0xf3/0x2b0
[   34.132025]  [<ffffffff802329fa>] call_softirq+0x1a/0x50
[   34.132025]  [<ffffffff80234ca9>] do_softirq+0xd9/0x1c0
[   34.132025]  [<ffffffff8028a333>] irq_exit+0xc3/0xd0
[   34.132025]  [<ffffffff80cf6a65>] do_IRQ+0x75/0x110
[   34.132025]  [<ffffffff80232393>] ret_from_intr+0x0/0x15
[   34.132025]  <EOI>  [<ffffffff80231622>] ? ftrace_caller+0x12/0x41
[   34.132025]  [<ffffffff80231656>] ? ftrace_call+0x5/0x2b
[   34.132025]  [<ffffffff80231656>] ? ftrace_call+0x5/0x2b
[   34.132025]  [<ffffffff80337d96>] ? free_page_and_swap_cache+0x16/0x80
[   34.132025]  [<ffffffff8032439f>] ? zap_pte_range+0x41f/0x580
[   34.132025]  [<ffffffff80231656>] ? ftrace_call+0x5/0x2b
[   34.132025]  [<ffffffff80231656>] ? ftrace_call+0x5/0x2b
[   34.132025]  [<ffffffff803248c8>] ? unmap_page_range+0x3c8/0x3d0
[   34.132025]  [<ffffffff80324b9f>] ? unmap_vmas+0x2cf/0x390
[   34.132025]  [<ffffffff8032b2e0>] ? exit_mmap+0x130/0x1f0
[   34.132025]  [<ffffffff8027f628>] ? mmput+0x48/0x110
[   34.132025]  [<ffffffff8028542f>] ? exit_mm+0x14f/0x160
[   34.132025]  [<ffffffff80287a6a>] ? do_exit+0x24a/0x4d0
[   34.132025]  [<ffffffff80287d64>] ? do_group_exit+0x74/0x110
[   34.132025]  [<ffffffff80287e17>] ? sys_exit_group+0x17/0x20
[   34.132025]  [<ffffffff8023196f>] ? system_call_fastpath+0x16/0x1b
[   34.132025] ---[ end trace dd8d48ce9f465553 ]---
[   34.132025] Mapped at:
[   34.132025]  [<ffffffff8067fa37>] debug_dma_map_page+0x107/0x2a0
[   34.132025]  [<ffffffff8077711b>] e1000_tx_map+0x29b/0x870
[   34.132025]  [<ffffffff8077aa65>] e1000_xmit_frame+0x355/0x500
[   34.132025]  [<ffffffff80b54018>] dev_hard_start_xmit+0xb8/0x270
[   34.132025]  [<ffffffff80b775b0>] __qdisc_run+0x380/0x3b0
[   35.650726] ------------[ cut here ]------------

	Ingo

  parent reply	other threads:[~2009-03-18 11:28 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-16 17:05 [PATCH 0/3] dma-debug: add additional checks Joerg Roedel
2009-03-16 17:05 ` [PATCH 1/3] dma-debug: add checks for kernel text and rodata Joerg Roedel
2009-03-16 17:05 ` [PATCH 2/3] dma-debug: add a check dma memory leaks Joerg Roedel
2009-03-16 17:05 ` [PATCH 3/3] dma-debug/x86: register pci bus for dma-debug leak detection Joerg Roedel
2009-03-17 12:01 ` [PATCH 0/3] dma-debug: add additional checks Joerg Roedel
2009-03-18  9:38   ` Ingo Molnar
2009-03-18 11:20     ` forcedeth 0000:00:0a.0: DMA-API: device driver frees DMA memory with wrong function [device address=0x0000000035992232] [size=42 bytes] [mapped as single] [unmapped as page] Ingo Molnar
2009-03-18 11:23     ` [PATCH 0/3] dma-debug: add additional checks Ingo Molnar
2009-03-18 11:38       ` Peter Zijlstra
2009-03-18 11:57         ` [tip:core/locking] lockdep: add stack dumps to asserts Peter Zijlstra
2009-03-18 12:19         ` [PATCH 0/3] dma-debug: add additional checks Joerg Roedel
2009-03-18 12:28           ` Peter Zijlstra
2009-03-18 12:45             ` Ingo Molnar
2009-03-31 12:57         ` [tip:core/locking] lockdep: add stack dumps to asserts Peter Zijlstra
2009-03-18 11:28     ` Ingo Molnar [this message]
2009-03-18 11:56     ` [PATCH 0/3] dma-debug: add additional checks Joerg Roedel
2009-03-18 12:04       ` e1000e 0000:00:19.0: DMA-API: device driver tries to free DMA memory it has not allocated [device address=0x0000000052ff084a] [size=90 bytes] Ingo Molnar
2009-03-18 12:54         ` Lubomir Rintel
2009-03-18 14:09           ` Ingo Molnar
2009-03-18 14:21             ` forcedeth 0000:00:0a.0: DMA-API: device driver frees DMA memory with wrong function [device address=0x0000000035992232] [size=42 bytes] [mapped as single] [unmapped as page] Ingo Molnar
2009-03-18 16:43             ` e1000e 0000:00:19.0: DMA-API: device driver tries to free DMA memory it has not allocated [device address=0x0000000052ff084a] [size=90 bytes] Brandeburg, Jesse
2009-03-18 16:47               ` Ingo Molnar
2009-03-18 17:41                 ` Brandeburg, Jesse
2009-03-18 17:53                   ` Ingo Molnar
2009-03-20 17:33             ` 3c59x 0000:00:0b.0: DMA-API: device driver maps memory from kernel text or rodata [addr=c0fffe54] [size=428] Ingo Molnar
2009-03-18 10:00   ` [tip:core/iommu] dma-debug: fix dma_debug_add_bus() definition for !CONFIG_DMA_API_DEBUG Ingo Molnar
2009-03-18 11:54     ` Joerg Roedel

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=20090318112810.GC32233@elte.hu \
    --to=mingo@elte.hu \
    --cc=iommu@lists.linux-foundation.org \
    --cc=joerg.roedel@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).