Thread (47 messages) 47 messages, 4 authors, 2021-09-08

Re: [PATCH] Fix Atmel TPM crash caused by too frequent queries

From: Jarkko Sakkinen <jarkko@kernel.org>
Date: 2021-06-29 20:06:33

On Wed, Jun 23, 2021 at 10:49:27PM -0700, Hao Wu wrote:
quoted
On Jun 23, 2021, at 6:35 AM, Jarkko Sakkinen [off-list ref] wrote:

On Sun, Jun 20, 2021 at 04:18:09PM -0700, Hao Wu wrote:
quoted
This is a fix for the ATMEL TPM crash bug reported in
https://patchwork.kernel.org/project/linux-integrity/patch/20200926223150.109645-1-hao.wu@rubrik.com/

According to the discussions in the original thread,
we don't want to revert the timeout of wait_for_tpm_stat
for non-ATMEL chips, which brings back the performance cost.
For investigation and analysis of why wait_for_tpm_stat
caused the issue, and how the regression was introduced,
please read the original thread above.

Thus the proposed fix here is to only revert the timeout
for ATMEL chips by checking the vendor ID.

Test Plan:
- Run fixed kernel with ATMEL TPM chips and see crash
 has been fixed.
- Run fixed kernel with non-ATMEL TPM chips, and confirm
 the timeout has not been changed.
Please move test plan right before diffstat if you wan to include such,
so that it does not go into the commit log.
Hi Jarkko, not sure I understood your suggestion or not. I removed
the test plan from the commit message in a updated commit
https://patchwork.kernel.org/project/linux-integrity/patch/20210624053321.861-1-hao.wu@rubrik.com/

Let me know if I misunderstood this. I am fine to not include test plan,
If this is not something expected by linux community.
I personally think it is helpful to understand the confidence of the commit.
quoted
quoted
---
You can add it right here. Then it won't be included to the actual
commit log but is still available in the patch.

/Jarkko 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help