TPM 2.0 Simulator Error DA lock mode

I used the TPM 2.0 commands with the tools from https://github.com/tpm2-software/tpm2-tools on a Fedora 29. I tried to take the tpm by the example from the system integration test in tpm2-tools branch 3.1.3. The test looks like this and works as expected:


ownerPasswd = abc123
endorsePasswd = abc123
lockPasswd = abc123
new_ownerPasswd = newpswd
new_endorsePasswd = newpswd
new_lockPasswd = newpswd

onerror () {
echo "$ BASH_COMMAND in line $ {BASH_LINENO[0]} failed: $? "
Exit 1
}
fall an error ERR

tpm2_takeownership -c

tpm2_takeownership -o $ ownerPasswd -e $ endorsePasswd -l $ lockPasswd

tpm2_takeownership -O $ ownerPasswd -E $ endorsePasswd -L $ lockPasswd -o $ new_ownerPasswd -e $ new_endorsePasswd -l $ new_lockPasswd

tpm2_takeownership -c -L $ new_lockPasswd


But if I do this manually and try to use an invalid password to clear ownership, I get an error (this is the reconstructed state of the tpm simulator).

[laped@localhost system]$ tpm2_takeownership -o owner pass -e endorse pass -l lock pass
[laped@localhost system]$ tpm2_takeownership -c -L-blockingpass
[laped@localhost system]$ tpm2_takeownership -o owner pass -e endorse pass -l lock pass
[laped@localhost system]$ tpm2_takeownership -c -L lockpass2
ERROR: Delete failed! TPM error code: 0x98e
ERROR: tpm2_takeownership can not be executed
[laped@localhost system]$ tpm2_takeownership -c -L-blockingpass
ERROR: Delete failed! TPM error code: 0x921
ERROR: tpm2_takeownership can not be executed

My question is what happens and how can I delete the property. The error code 0x921 appears to be a DA lockout protection. I tried with:

[laped@localhost system]$ tpm2_dictionarylockout -c -P lockout
ERROR: 0x921 Error clearing the dictionary lock.
ERROR: tpm2_dictionarylockout can not be executed

So I can not figure out how to remove the TPM from this state to erase the ownership. I find it strange that an invalid command can bring me to this state. I am quite new to the TPM world and hope someone could explain my simple mistake 🙂