Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-3184

kernel Object for drivers fail to be Deleted due to unrealistic header PointerCount

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • NTCore
    • None
    • Operating System: ReactOS
      Platform: x86 Hardware

    Description

      The problem is in /ntoskrnl/io/iomgr/driver.c
      The function IopCreateDriver
      Status = ObInsertObject(DriverObject,
      NULL,
      FILE_READ_DATA,
      OBJ_KERNEL_HANDLE,
      NULL,
      &hDriver);
      This eventually ends up calling ObpCreateHandle
      with OBJ_KERNEL_HANDLE value passed as the Additional References parameter.

      And in ObpCreateHandle the PointerCount is incremented to this OBJ_KERNEL_HANDLE value.

      Debugging:

      (ntoskrnl/ob/obref.c:308) ---> ObfDereferenceObject - Object: Driver, Address: 80e77048, PointerCount: 513

      Attachments

        Issue Links

          Activity

            People

              bug zilla Bug Zilla
              bugboy bugboy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: