Revision 9b4fe5fb0bdd8f31f24cbfe77e38ec8155c250c5 authored by Neil Horman on 12 July 2013, 17:35:33 UTC, committed by David S. Miller on 12 July 2013, 23:28:02 UTC
this bug:
https://bugzilla.redhat.com/show_bug.cgi?id=951695

Reported a dma debug backtrace:

WARNING: at lib/dma-debug.c:937 check_unmap+0x47d/0x930()
Hardware name: To Be Filled By O.E.M.
via-rhine 0000:00:12.0: DMA-API: device driver failed to check map error[device
address=0x0000000075a837b2] [size=90 bytes] [mapped as single]
Modules linked in: ip6_tables gspca_spca561 gspca_main videodev media
snd_hda_codec_realtek snd_hda_intel i2c_viapro snd_hda_codec snd_hwdep snd_seq
ppdev mperf via_rhine coretemp snd_pcm mii microcode snd_page_alloc snd_timer
snd_mpu401 snd_mpu401_uart snd_rawmidi snd_seq_device snd soundcore parport_pc
parport shpchp ata_generic pata_acpi radeon i2c_algo_bit drm_kms_helper ttm drm
pata_via sata_via i2c_core uinput
Pid: 295, comm: systemd-journal Not tainted 3.9.0-0.rc6.git2.1.fc20.x86_64 #1
Call Trace:
 <IRQ>  [<ffffffff81068dd0>] warn_slowpath_common+0x70/0xa0
 [<ffffffff81068e4c>] warn_slowpath_fmt+0x4c/0x50
 [<ffffffff8137ec6d>] check_unmap+0x47d/0x930
 [<ffffffff810ace9f>] ? local_clock+0x5f/0x70
 [<ffffffff8137f17f>] debug_dma_unmap_page+0x5f/0x70
 [<ffffffffa0225edc>] ? rhine_ack_events.isra.14+0x3c/0x50 [via_rhine]
 [<ffffffffa02275f8>] rhine_napipoll+0x1d8/0xd80 [via_rhine]
 [<ffffffff815d3d51>] ? net_rx_action+0xa1/0x380
 [<ffffffff815d3e22>] net_rx_action+0x172/0x380
 [<ffffffff8107345f>] __do_softirq+0xff/0x400
 [<ffffffff81073925>] irq_exit+0xb5/0xc0
 [<ffffffff81724cd6>] do_IRQ+0x56/0xc0
 [<ffffffff81719ff2>] common_interrupt+0x72/0x72
 <EOI>  [<ffffffff8170ff57>] ? __slab_alloc+0x4c2/0x526
 [<ffffffff811992e0>] ? mmap_region+0x2b0/0x5a0
 [<ffffffff810d5807>] ? __lock_is_held+0x57/0x80
 [<ffffffff811992e0>] ? mmap_region+0x2b0/0x5a0
 [<ffffffff811bf1bf>] kmem_cache_alloc+0x2df/0x360
 [<ffffffff811992e0>] mmap_region+0x2b0/0x5a0
 [<ffffffff811998e6>] do_mmap_pgoff+0x316/0x3d0
 [<ffffffff81183ca0>] vm_mmap_pgoff+0x90/0xc0
 [<ffffffff81197d6c>] sys_mmap_pgoff+0x4c/0x190
 [<ffffffff81367d7e>] ? trace_hardirqs_on_thunk+0x3a/0x3f
 [<ffffffff8101eb42>] sys_mmap+0x22/0x30
 [<ffffffff81722fd9>] system_call_fastpath+0x16/0x1b

Usual problem with the usual fix, add the appropriate calls to dma_mapping_error
where appropriate

Untested, as I don't have hardware, but its pretty straightforward

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
CC: David S. Miller <davem@davemloft.net>
CC: Roger Luethi <rl@hellgate.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 352900b
History
File Mode Size
Kconfig -rw-r--r-- 16.6 KB
Kconfig.debug -rw-r--r-- 1015 bytes
Makefile -rw-r--r-- 2.0 KB
backing-dev.c -rw-r--r-- 16.4 KB
balloon_compaction.c -rw-r--r-- 9.6 KB
bootmem.c -rw-r--r-- 20.8 KB
bounce.c -rw-r--r-- 6.4 KB
cleancache.c -rw-r--r-- 12.7 KB
compaction.c -rw-r--r-- 32.3 KB
debug-pagealloc.c -rw-r--r-- 2.1 KB
dmapool.c -rw-r--r-- 13.1 KB
fadvise.c -rw-r--r-- 3.6 KB
failslab.c -rw-r--r-- 1.3 KB
filemap.c -rw-r--r-- 67.7 KB
filemap_xip.c -rw-r--r-- 11.3 KB
fremap.c -rw-r--r-- 6.6 KB
frontswap.c -rw-r--r-- 13.5 KB
highmem.c -rw-r--r-- 9.9 KB
huge_memory.c -rw-r--r-- 73.7 KB
hugetlb.c -rw-r--r-- 88.9 KB
hugetlb_cgroup.c -rw-r--r-- 10.7 KB
hwpoison-inject.c -rw-r--r-- 3.3 KB
init-mm.c -rw-r--r-- 619 bytes
internal.h -rw-r--r-- 11.1 KB
interval_tree.c -rw-r--r-- 3.2 KB
kmemcheck.c -rw-r--r-- 2.8 KB
kmemleak-test.c -rw-r--r-- 3.3 KB
kmemleak.c -rw-r--r-- 52.4 KB
ksm.c -rw-r--r-- 65.9 KB
maccess.c -rw-r--r-- 1.6 KB
madvise.c -rw-r--r-- 14.1 KB
memblock.c -rw-r--r-- 29.6 KB
memcontrol.c -rw-r--r-- 185.6 KB
memory-failure.c -rw-r--r-- 44.8 KB
memory.c -rw-r--r-- 115.8 KB
memory_hotplug.c -rw-r--r-- 45.5 KB
mempolicy.c -rw-r--r-- 71.3 KB
mempool.c -rw-r--r-- 10.5 KB
migrate.c -rw-r--r-- 44.3 KB
mincore.c -rw-r--r-- 7.8 KB
mlock.c -rw-r--r-- 14.8 KB
mm_init.c -rw-r--r-- 5.0 KB
mmap.c -rw-r--r-- 86.6 KB
mmu_context.c -rw-r--r-- 1.2 KB
mmu_notifier.c -rw-r--r-- 9.5 KB
mmzone.c -rw-r--r-- 2.4 KB
mprotect.c -rw-r--r-- 10.2 KB
mremap.c -rw-r--r-- 14.4 KB
msync.c -rw-r--r-- 2.4 KB
nobootmem.c -rw-r--r-- 10.9 KB
nommu.c -rw-r--r-- 53.2 KB
oom_kill.c -rw-r--r-- 19.5 KB
page-writeback.c -rw-r--r-- 69.9 KB
page_alloc.c -rw-r--r-- 176.6 KB
page_cgroup.c -rw-r--r-- 11.9 KB
page_io.c -rw-r--r-- 8.9 KB
page_isolation.c -rw-r--r-- 7.0 KB
pagewalk.c -rw-r--r-- 5.9 KB
percpu-km.c -rw-r--r-- 2.8 KB
percpu-vm.c -rw-r--r-- 12.9 KB
percpu.c -rw-r--r-- 57.1 KB
pgtable-generic.c -rw-r--r-- 4.6 KB
process_vm_access.c -rw-r--r-- 13.2 KB
quicklist.c -rw-r--r-- 2.4 KB
readahead.c -rw-r--r-- 15.9 KB
rmap.c -rw-r--r-- 50.5 KB
shmem.c -rw-r--r-- 77.8 KB
slab.c -rw-r--r-- 114.3 KB
slab.h -rw-r--r-- 7.2 KB
slab_common.c -rw-r--r-- 15.0 KB
slob.c -rw-r--r-- 15.3 KB
slub.c -rw-r--r-- 126.1 KB
sparse-vmemmap.c -rw-r--r-- 5.9 KB
sparse.c -rw-r--r-- 21.4 KB
swap.c -rw-r--r-- 24.3 KB
swap_state.c -rw-r--r-- 11.4 KB
swapfile.c -rw-r--r-- 66.9 KB
truncate.c -rw-r--r-- 19.6 KB
util.c -rw-r--r-- 9.6 KB
vmalloc.c -rw-r--r-- 67.9 KB
vmpressure.c -rw-r--r-- 11.5 KB
vmscan.c -rw-r--r-- 105.9 KB
vmstat.c -rw-r--r-- 33.9 KB

back to top