From: "Carlos Martín" <carlos@cmartin.tk>
To: netdev@vger.kernel.org
Subject: OOPS in forcedeth
Date: Fri, 12 May 2006 21:58:37 +0200 [thread overview]
Message-ID: <200605122158.41329.carlos@cmartin.tk> (raw)
[-- Attachment #1: Type: text/plain, Size: 1478 bytes --]
Hi,
I just saw this last night when my desktop was shutting down. Not all
the OOPS was outputted, but I've found where it happens.
in forcedeth.c:1583 we see:
pci_unmap_single(np->pci_dev, np->rx_dma[i],
np->rx_skbuff[i]->end-np->rx_skbuff[i]->data,
PCI_DMA_FROMDEVICE);
The assembler output is:
movslq %r12d,%rcx # i, i
xorl %edi, %edi # tmp226
movq 320(%rbp,%rcx,8), %rax # <variable>.rx_skbuff, D.20431
movq 1344(%rbp,%rcx,8), %rsi # <variable>.rx_dma, addr
OOPS--->movq 216(%rax), %rdx # <variable>.end, <variable>.end
subq 200(%rax), %rdx # <variable>.data, <variable>.end
movq 256(%rbp), %rax # <variable>.pci_dev, hwdev
testq %rax, %rax # hwdev
leaq 112(%rax), %rcx #, tmp225
movq dma_ops(%rip), %rax # dma_ops, dma_ops
cmovne %rcx, %rdi # tmp225,, tmp226
movl $2, %ecx #,
call *40(%rax) # <variable>.unmap_single
Which I think comes from dereferencing np->rx_skbuff[i]. I've not found
a reproducible way of doing this, and I've at times come back to my
room to find out that this computer has been forcibly shut down.
I'm not familiar with this code. I hope someone here understands how
this can happen. I'll try to find a way to reproduce this meanwhile.
cmn
--
Carlos Martín Nieto | http://www.cmartin.tk
Hobbyist programmer |
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
reply other threads:[~2006-05-12 19:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200605122158.41329.carlos@cmartin.tk \
--to=carlos@cmartin.tk \
--cc=netdev@vger.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 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).