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

When using SystemV IPC ftok key collisions can occur

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • 5.6.0
    • 5.6.0 Alpha
    • Core: I/O
    • None
    • 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

            louai Louai Al-Khanji
            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