驱动开发:BSOD 0x7E(8000003)或命中断点卡住,__security_init_cookie导致

在学习hook驱动时,作者遇到x64系统运行驱动导致的蓝屏问题,卡在__security_init_cookie函数。本文介绍了该函数的原理,以及三种解决方法:调整VS平台设置、使用KernelBufferOverflowLib库或关闭安全检查。作者最终发现错误是由于修改了win32属性而非x64平台设置所致。
摘要由CSDN通过智能技术生成

这两天在学hook的时候,写了一个很简单的测试驱动,结果发现在x86能正常运行,而到了x64就直接蓝屏了(签名正常),这个时候双机调试发现连DriverEntry函数都没进去,直接在__security_init_cookie函数就跳到KeBugCheck了。

*******************************************************************************
*                                                                             *
*                        Bugcheck Analysis                                    *
*                                                                             *
*******************************************************************************

SYSTEM_THREAD_EXCEPTION_NOT_HANDLED_M (1000007e) 
This is a very common bugcheck.  Usually the exception address pinpoints 
the driver/function that caused the problem.  Always note this address 
as well as the link date of the driver/image that contains this address.
 Some common problems are exception code 0x80000003.  This means a hard 
 coded breakpoint or assertion was hit, but this system was booted 
 /NODEBUG.  This is not supposed to happen as developers should never have 
 hardcoded breakpoints in retail code, but ... 
 If this happens, make sure a debugger gets connected
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值