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

Race condition in ExAllocatePoolWithTag is handled with double increment of list pointer

    XMLWordPrintable

Details

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

    Description

      Created an attachment (id=8075)
      Do not increment ListHead twice when raced in ExAllocatePoolWithTag

      If the selected pool list is found empty after acquiring the lock on it, ExAllocatePoolWithTag increments ListHead followed by a continue (which will already cause ListHead to increment due to the loop condition).
      This additional increment might result in skipping past the end of the ListHeads array (and in the more likely case just unnecessarily skips an entry).

      The patch is originally from CORE-6533 (but was unrelated to that issue).

      Attachments

        Activity

          People

            bug zilla Bug Zilla
            ThFabba ThFabba
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: