Possibility of different sequence id initialization in a multi thread environment

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Medium
    • SITSW-8060
    • 11.01.00
    • Hide
      11.01.01
      11.02.00
      Show
      11.01.01 11.02.00
    • Hide
      am62xx-sk
      am62xx-sk-lp
      am62x-sip-sk
      am62a-sk
      am62p-sk
      am62d-evm
      Show
      am62xx-sk am62xx-sk-lp am62x-sip-sk am62a-sk am62p-sk am62d-evm

      https://github.com/TexasInstruments/mcupsdk-core-k3/blob/k3_next/source/drivers/device_manager/sciclient_direct/sciclient.c#L640-L640

      This is problematic in the multi threaded environment as the `gSciclientHandle.currSeqId` may be modified between L640 and L641 by another task after preemption of the current one. This could lead to the sequence id matching failure after receiving response from the TIFS.

      The L640 and L641 should be assigned with a local variable, after it is initialized with the global counter for sequence id, to ensure these always get the same value.

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Connection: Intermediate to External PROD System
                EXTSYNC-6012 - Possibility of different sequence i...
                SYNCHRONIZED
                • Last Sync Date: