I'm trying to build the example project from VS 2019:
Then I enabled testsigning
and try to load it in Windows 2008 R2, the Virtual Machine immediately crashed.
When I loaded MEMORY.DMP in WinDBG:
EXCEPTION_CODE: (NTSTATUS) 0x80000003 (2147483651) - {
FAULTING_IP:
test!__security_init_cookie+2d
fffff880`0d16d119 cc int 3
It's totally weird, the only call to security_init_cookie is from DriverEntry:
Does anyone know what's happening? I didn't attach a debugger, so there's shouldn't be any 0xCC inserted.