Skip to content

Initialize tcti in advance#839

Open
15058718379 wants to merge 1 commit intotpm2-software:masterfrom
15058718379:master
Open

Initialize tcti in advance#839
15058718379 wants to merge 1 commit intotpm2-software:masterfrom
15058718379:master

Conversation

@15058718379
Copy link
Copy Markdown

init_thread_func creates a thread and then initializes the tcti. When /dev/tpm0 does not exist, the thread is created. If other processes communicate with abrmd, the connection may be established. However, /dev/tpm0 does not exist, and init_thread_func releases resources. After the resources are released randomly, the resources may still be used by id_pid_mix_from_incall to randomly obtain the kernel dump in uint64. The patch initializes the tcti in advance to avoid concurrency.

#838

init_thread_func creates a thread and then initializes the tcti.
When /dev/tpm0 does not exist, the thread is created. If other processes communicate with abrmd, the connection may be established. However, /dev/tpm0 does not exist, and init_thread_func releases resources. After the resources are released randomly, the resources may still be used by id_pid_mix_from_incall to randomly obtain the kernel dump in uint64.
The patch initializes the tcti in advance to avoid concurrency.

tpm2-software#838
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant