New issue
Advanced search Search tips

Issue 770951 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Oct 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

crossystem clear_tpm_owner_request not working on Eve

Project Member Reported by wzang@chromium.org, Oct 2 2017

Issue description

Chrome Version: ToT
Device: Eve (Not sure if it's device specific though)

What steps will reproduce the problem?
In dev console, enter:
crossystem clear_tpm_owner_request=1; reboot&&exit


What is the expected result?
TPM should be reset and OOBE screen is shown.

What happens instead?
Nothing changed.

The command is recognized because if we add an a typo intentionally we'll see the error message saying the command is wrong.

apronin@, could you please take a look?

 

Comment 1 by wzang@chromium.org, Oct 2 2017

Description: Show this description
Do you have logs from the system?

What I suspect (not confirmed w/o logs) is that after this recent CL https://crrev.com/c/690581, if you  just do "crossystem clear_tpm_owner_request=1" and reboot, cryptohomed detects this situation and automatically re-owns the tpm after reboot (since it assumes it continues the interrupted initialization - it received a "can attempt ownership" signal but the tpm is not owned yet).

To make sure the tpm is not auto-re-owned either do powerwash or add "rm /home/.shadow/.can_attempt_tpm_ownership" to "crossystem clear_tpm_owner_request=1".
Though encrypted stateful (with home directories) should not have survived "crossystem clear_tpm_owner_request=1" in any case.
If you had some local files in one of the user dirs and can still log in and see those files after the steps described in this bug, that's a separate issue.

Comment 4 by wzang@chromium.org, Oct 2 2017

After adding rm -rf /home/.shadow/*/, it works. Thanks! 

But it seems that the file '.can_attempt_tpm_ownership' does not exist. 
For the issue from comment #3 one possible scenario is that reboot happened before the tpm ownership was actually established (and that can take up to a minute, and the user can login before the tpm is owned), in this case "crossystem clear_tpm_owner_request=1" effectively turns into a NOP and nothing changes upon reboot. Again, need logs to check if that's actually happened.
Status: WontFix (was: Assigned)
Re #4: Oops, my bad, it is actually "/home/.shadow/.can_attempt_ownership". Looks like a PSA is due anyways to prevent such surprises in the future - will send shortly.
For now closing this bug as WAI.

Comment 7 by wzang@chromium.org, Oct 3 2017

Thanks! Looking forward to the PSA.

Sign in to add a comment