From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp4.epfl.ch (smtp4.epfl.ch [128.178.224.219]) by dpdk.org (Postfix) with ESMTP id 621082BA2 for ; Fri, 11 Mar 2016 19:41:21 +0100 (CET) Received: (qmail 3321 invoked by uid 107); 11 Mar 2016 18:41:18 -0000 X-Virus-Scanned: ClamAV Received: from icdhcp-1-148.epfl.ch (HELO [128.178.116.148]) (128.178.116.148) (TLS, DHE-RSA-AES256-SHA cipher) (authenticated) by smtp4.epfl.ch (AngelmatoPhylax SMTP proxy) with ESMTPSA; Fri, 11 Mar 2016 19:41:18 +0100 To: users@dpdk.org From: George Prekas Message-ID: <56E31162.70609@epfl.ch> Date: Fri, 11 Mar 2016 19:41:38 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Possible memory corruption due to incorrect DMA shutdown X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2016 18:41:21 -0000 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