Skip to content

TPM resource is released only at SDK shutdown #579

@MMaiero

Description

@MMaiero
  • OS and version used: Raspbian Buster

  • Java runtime used: openjdk version "1.8.0_181"

  • SDK version used: 0.22.0
    iot-device-client version 1.16.0

Description of the issue:

I'm experimenting a bit with the SDK and the TPM integration. What I see is that, once opened the /dev/tpm0 resource, it is never released until SDK shutdown. It seems also that the SecurityProviderTPMHsm class gets the TPM resource but never invokes the tpm.close() method to close the stream.

Code sample exhibiting the issue:

Console log of the issue:

Need Support?

  • Have a feature request for SDKs? Please post it on User Voice to help us prioritize.
  • Have a technical question? Ask on Stack Overflow with tag “azure-iot-hub”
  • Need Support? Every customer with an active Azure subscription has access to support with guaranteed response time. Consider submitting a ticket and get assistance from Microsoft support team
  • Found a bug? Please help us fix it by thoroughly documenting it and filing an issue on GitHub (C, Java, .NET, Node.js, Python).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions