Re: [PATCH] tpm: fix race condition in tpm_common_write()
From: Jarkko Sakkinen
Date: Wed May 23 2018 - 08:29:57 EST
On Tue, May 22, 2018 at 10:32:46AM -0700, Tadeusz Struk wrote:
> There is a race condition in tpm_common_write function allowing two
> threads on the same /dev/tpm<N>, or two different applications on
> the same /dev/tpmrm<N> to overwrite eachother requests/responses.
>
> Signed-off-by: Tadeusz Struk <tadeusz.struk@xxxxxxxxx>
Ouch o_O Do you have a fixes tag for this one?
Thank you.
Reviewed-by: Jarkko Sakkien <jarkko.sakkinen@xxxxxxxxxxxxxxx>
/Jarkko