DPDK usage discussions
 help / color / mirror / Atom feed
From: George Prekas <george.prekas@epfl.ch>
To: users@dpdk.org
Subject: [dpdk-users] Possible memory corruption due to incorrect DMA shutdown
Date: Fri, 11 Mar 2016 19:41:38 +0100	[thread overview]
Message-ID: <56E31162.70609@epfl.ch> (raw)

Hi. I've been using DPDK for a research project 
(https://www.usenix.org/conference/osdi14/technical-sessions/presentation/belay) 
for over 2 years and I'd like to report a behavior that puzzles me using 
DPDK.

The behavior leads to memory corruption and is caused by the incorrect 
shutdown of DMA. I can reproduce it after executing the following steps:

$ sudo modprobe uio
$ sudo insmod ./build/kmod/igb_uio.ko
$ sudo python ./tools/dpdk_nic_bind.py --bind=igb_uio 0000:42:00.1
$ sudo ./build/app/testpmd -- --forward-mode=icmpecho

Then I terminate the DPDK program (after populating the ARP cache of 
another host on the local network). After this, I can send UDP packets 
to the host and can observe their payload in host memory. Clearly, 
network packets are arriving to the network card and are written to RAM 
after DPDK has finished executing.

Am I doing something wrong? Is this behavior expected?

Regards,
George

             reply	other threads:[~2016-03-11 18:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-11 18:41 George Prekas [this message]
2016-09-21 13:09 ` George Prekas

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=56E31162.70609@epfl.ch \
    --to=george.prekas@epfl.ch \
    --cc=users@dpdk.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).