Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Help required on Kernel memory reading

Help required on Kernel memory reading

Scheduled Pinned Locked Moved C / C++ / MFC
jsonperformancehelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SelvaKr
    wrote on last edited by
    #1

    Hi all, I need to read a particular bit on kernel memory which will be owned by a device driver. I am using ZwOpenSection and ZwMapViewOfSection API's to map the particular page on the kernel memory. But it returns only 'FF' in all bytes. But the same stuff works with pages other than that are device driver oriented. In a nutshell, I am just getting a device driver load address and trying to read the same address from the physical memory. But it simple shows 'FF' in all the bytes. Can you pls share if you have any experiances in this regard. Thanks in advance. :)

    Selva

    L 1 Reply Last reply
    0
    • S SelvaKr

      Hi all, I need to read a particular bit on kernel memory which will be owned by a device driver. I am using ZwOpenSection and ZwMapViewOfSection API's to map the particular page on the kernel memory. But it returns only 'FF' in all bytes. But the same stuff works with pages other than that are device driver oriented. In a nutshell, I am just getting a device driver load address and trying to read the same address from the physical memory. But it simple shows 'FF' in all the bytes. Can you pls share if you have any experiances in this regard. Thanks in advance. :)

      Selva

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      1.) A valid kernel mode virtual address is always above 0x8000000 2.) Check that ZwMapViewOfSection call is not returning error STATUS_CONFLICTING_ADDRESSES. 3.) See if this helps: http://support.microsoft.com/kb/189327[^] Best Wishes, -Randor (David Delaune)

      S 1 Reply Last reply
      0
      • L Lost User

        1.) A valid kernel mode virtual address is always above 0x8000000 2.) Check that ZwMapViewOfSection call is not returning error STATUS_CONFLICTING_ADDRESSES. 3.) See if this helps: http://support.microsoft.com/kb/189327[^] Best Wishes, -Randor (David Delaune)

        S Offline
        S Offline
        SelvaKr
        wrote on last edited by
        #3

        Thanks a lot Randor. I have already referred the link and i am proceeding in the same way. Actually my physical memory reading works for some other address but not to the addresses that are device driver oriented. I have just calculated the cdrom.sys driver's load address and tried to read the same from the kernel memory. But it simple shows "FF" in all bytes :-( Any thoughts....

        Selva

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups