It seems tpm2_eventlog tried to do "fseek(fp, 0, SEEK_END)" but the securityfs entry didn't return the size. I didn't see any suspicious change in tpm driver between 5.12.4 and 5.12.9 and there is even no change in securityfs (security/inode.c).