Received: from eggs.gnu.org ([2001:4830:134:3::10]:48827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQZWR-0006AX-Il for qemu-devel@nongnu.org; Fri, 22 Jul 2016 08:25:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bQZWL-0003Oo-8F for qemu-devel@nongnu.org; Fri, 22 Jul 2016 08:25:42 -0400 Received: from indium.canonical.com ([91.189.90.7]:52864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bQZWK-0003Oj-Vk for qemu-devel@nongnu.org; Fri, 22 Jul 2016 08:25:37 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1bQZWK-0004ku-6H for ; Fri, 22 Jul 2016 12:25:36 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 135352E80C8 for ; Fri, 22 Jul 2016 12:25:36 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Fri, 22 Jul 2016 12:19:02 -0000 From: Mathieu Tarral Reply-To: Bug 1605611 <1605611@bugs.launchpad.net> Sender: bounces@canonical.com Message-Id: <20160722121902.333.5320.malonedeb@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1605611] [NEW] memsave returns invalid addr when trying to read a 64 bits address List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Public bug reported: I am trying to read the first 16 bytes of the System Process on a Windows XP x64 SP2 using the memsave monitor command. I cloned the latest release of QEMU, v2.6.0, configured it with = ./configure --target-list=3Di386-softmmu,x86_64-softmmu --enable-sdl and compiled it. I first tried to use memsave against Windows XP SP3 32 bits. This is the procedure i used : 1 - start the VM with : ./i386-softmmu/qemu-system-i386 --enable-kvm -monitor stdio -hda ~/vm/winxp= .qcow2 and wait for the desktop 2 - take a physical memory dump with : pmemsave 0 134217728 dump.raw 3 - call rekall on this memory dump to identify running processes : rekall -f dump.raw pslist _EPROCESS Name PID PPID Thds Hnds Sess Wow64 = Start Exit = ---------- -------------------- ----- ------ ------ -------- ------ ------ = ------------------------ ------------------------ 0x80e8fa00 System 4 0 46 148 - False = - - = 4 - read the first 16 bytes of the System PROCESS struct : memsave 0x80e8fa00 16 system 5 - check the content with hexdump : 00000000 03 00 1b 00 00 00 00 00 08 fa e8 80 08 fa e8 80 you can recognize here the beginning of an EPROCESS struct. So on a 32 bits Windows XP OS, it works. But when i tried on Windows XP SP2 64 bits, rekall gave me the following ou= tput : _EPROCESS Name PID PPID Thds Hnds Sess Wow= 64 Start Exit = -------------- -------------------- ----- ------ ------ -------- ------ ---= --- ------------------------ ------------------------ 0xfadffd71d040 System 4 0 51 398 - Fal= se - - = And when i tried to read the memory with memsave : memsave 0xfadffd71d040 16 system I had the following error : Invalid addr 0x0000fadffd71d040/size 16 specified This address is supposed to be valid because I am reading the System EProce= ss struct, which should not be in the paged pool memory I think. Also i disabled the paging file to be sure and the bug is still present. Furthermore the bug is reproducible on the latest QEMU (01a720125f5e2f0a23d2682b39dead2fcc820066). Can you confirm that this is a bug ? Should i check something ? Thanks ! ** Affects: qemu Importance: Undecided Status: New -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1605611 Title: memsave returns invalid addr when trying to read a 64 bits address Status in QEMU: New Bug description: I am trying to read the first 16 bytes of the System Process on a Windows XP x64 SP2 using the memsave monitor command. I cloned the latest release of QEMU, v2.6.0, configured it with = ./configure --target-list=3Di386-softmmu,x86_64-softmmu --enable-sdl and compiled it. I first tried to use memsave against Windows XP SP3 32 bits. This is the procedure i used : 1 - start the VM with : ./i386-softmmu/qemu-system-i386 --enable-kvm -monitor stdio -hda ~/vm/win= xp.qcow2 and wait for the desktop 2 - take a physical memory dump with : pmemsave 0 134217728 dump.raw 3 - call rekall on this memory dump to identify running processes : rekall -f dump.raw pslist _EPROCESS Name PID PPID Thds Hnds Sess Wow64= Start Exit = ---------- -------------------- ----- ------ ------ -------- ------ -----= - ------------------------ ------------------------ 0x80e8fa00 System 4 0 46 148 - False= - - = 4 - read the first 16 bytes of the System PROCESS struct : memsave 0x80e8fa00 16 system 5 - check the content with hexdump : 00000000 03 00 1b 00 00 00 00 00 08 fa e8 80 08 fa e8 80 you can recognize here the beginning of an EPROCESS struct. So on a 32 bits Windows XP OS, it works. But when i tried on Windows XP SP2 64 bits, rekall gave me the following = output : _EPROCESS Name PID PPID Thds Hnds Sess W= ow64 Start Exit = -------------- -------------------- ----- ------ ------ -------- ------ -= ----- ------------------------ ------------------------ 0xfadffd71d040 System 4 0 51 398 - F= alse - - = And when i tried to read the memory with memsave : memsave 0xfadffd71d040 16 system I had the following error : Invalid addr 0x0000fadffd71d040/size 16 specified This address is supposed to be valid because I am reading the System EPro= cess struct, which should not be in the paged pool memory I think. Also i disabled the paging file to be sure and the bug is still present. Furthermore the bug is reproducible on the latest QEMU (01a720125f5e2f0a23d2682b39dead2fcc820066). Can you confirm that this is a bug ? Should i check something ? Thanks ! To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1605611/+subscriptions