Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-48375

When using SystemV IPC ftok key collisions can occur

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Invalid
    • Affects Version/s: 5.6.0 Alpha
    • Fix Version/s: 5.6.0
    • Component/s: Core: I/O
    • Labels:
      None
    • Commits:
      ac0184d6085d9e4f7f59352e563055311f4d8792

      Description

      ftok key collisions are especially problematic with QSystemSemaphore since the SystemV implementation of QSystemSemaphorePrivate::handle will retry semget without IPC_EXCL, which can lead to cases where an unrelated semaphore is opened.

      To work around this issue we can add some more entropy to ftok via a wrapper, but unfortunately we cannot change the semantics of QSystemSemaphore directly.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            louai Louai Al-Khanji
            Reporter:
            louai Louai Al-Khanji
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes