Tesla.Angela 发表于 2012-4-8 10:07:29

微软建议驱动在WIN8里申请的内存类型为:NonPagedPoolNx

http://msdn.microsoft.com/en-us/library/windows/hardware/ff559707

Starting with Windows 8, drivers should allocate most or all of their nonpaged memory from the no-execute (NX) nonpaged pool instead of the executable nonpaged pool. For more information, see the description of the NonPagedPoolNx pool type.

http://msdn.microsoft.com/en-us/library/windows/hardware/hh920391

As a best practice, drivers for Windows 8 Consumer Preview and later versions of Windows should allocate most or all of their nonpaged memory from the no-execute (NX) nonpaged pool. By allocating memory from NX nonpaged pool, a kernel-mode driver improves security by preventing malicious software from executing instructions in this memory.
Starting with Windows 8, kernel-mode drivers can allocate memory from a pool of NX nonpaged memory. This pool is managed by a general-purpose, kernel-mode memory allocator that operates similarly to the user-mode Win32 heap allocator. The memory in this pool is NX and nonpaged. The x86, x64, and ARM processor architectures enable memory pages to be designated as NX to prevent the execution of instructions in these pages. Typically, a kernel-mode driver uses memory allocated from nonpaged pool to store data, and does not require the ability to execute instructions in this memory.

rootsule 发表于 2012-4-8 14:16:46

不可执行了....
页: [1]
查看完整版本: 微软建议驱动在WIN8里申请的内存类型为:NonPagedPoolNx