Git Product home page Git Product logo

sic's Issues

Fix race in IRP_MJ_DEVICE_CONTROL

The sic driver has been basically designed to handle one client at a time; the accesses to the global state are not synchronized and as a result two thread could execute the IRP_MJ_DEVICE_CONTROL callback which would probably lead to memory corruptions of some sort.

Verifier 0x2001F bugcheck.

When fixing #2 I didn't realize that acquiring the mutex bumped the IRQL to APC_LEVEL when a bunch of code expects to be running at PASSIVE; verifier detected this a:t runtime

Driver Verifier: Bugcheck initiated with Error Code: 0x2001F Error Message: 'ZwClose should only be called at IRQL = PASSIVE_LEVEL.'
KDTARGET: Refreshing KD connection

*** Fatal System Error: 0x000000c4
                       (0x000000000002001F,0xFFFFF80209086738,0x0000000000000000,0x0000000000000000)

Break instruction exception - code 80000003 (first chance)

A fatal system error has occurred.
Debugger entered on first try; Bugcheck callbacks have not been invoked.

A fatal system error has occurred.

For analysis of this file, run !analyze -v
nt!DbgBreakPointWithStatus:
fffff802`07bd86a0 cc              int     3
kd> kp
 # Child-SP          RetAddr               Call Site
00 ffff9189`5a92e638 fffff802`07cba642     nt!DbgBreakPointWithStatus
01 ffff9189`5a92e640 fffff802`07cb9d32     nt!KiBugCheckDebugBreak+0x12
02 ffff9189`5a92e6a0 fffff802`07bd0a07     nt!KeBugCheck2+0x952
03 ffff9189`5a92eda0 fffff802`09075386     nt!KeBugCheckEx+0x107
04 ffff9189`5a92ede0 fffff802`09073a89     VerifierExt!XdvInitiateBugcheck+0x3a
05 ffff9189`5a92ee20 fffff802`090539cf     VerifierExt!XdvUnifiedBugCheck+0x239
06 ffff9189`5a92ee90 fffff802`09053a16     VerifierExt!SLIC_ZwClose_entry_IrqlZwPassive+0x33
07 ffff9189`5a92eed0 fffff802`08382960     VerifierExt!ZwClose_wrapper+0x36
08 ffff9189`5a92ef20 fffff802`0b56601f     nt!VerifierZwClose+0x10
09 ffff9189`5a92ef50 fffff802`0b565b9b     sic_drv+0x601f

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.