找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
查看: 6980|回复: 1

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

[复制链接]

857

主题

2632

回帖

2

精华

管理员

此生无悔入华夏,  长居日耳曼尼亚。  

积分
36130
发表于 2012-4-8 10:07:29 | 显示全部楼层 |阅读模式
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.

0

主题

19

回帖

0

精华

铜牌会员

积分
101
发表于 2012-4-8 14:16:46 | 显示全部楼层
不可执行了....
您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

快速回复 返回顶部 返回列表