diff options
author | 2023-05-16 01:25:54 +0300 | |
---|---|---|
committer | 2023-07-17 19:32:30 +0000 | |
commit | f4032d615f90970d6c3ac1d9c0bce3351eb4445c (patch) | |
tree | da3eb8d9bc684580b0d381c30df18f6e22765779 /scripts/generate_rust_analyzer.py | |
parent | Linux 6.5-rc2 (diff) | |
download | linux-rng-f4032d615f90970d6c3ac1d9c0bce3351eb4445c.tar.xz linux-rng-f4032d615f90970d6c3ac1d9c0bce3351eb4445c.zip |
tpm: tpm_vtpm_proxy: fix a race condition in /dev/vtpmx creation
/dev/vtpmx is made visible before 'workqueue' is initialized, which can
lead to a memory corruption in the worst case scenario.
Address this by initializing 'workqueue' as the very first step of the
driver initialization.
Cc: stable@vger.kernel.org
Fixes: 6f99612e2500 ("tpm: Proxy driver for supporting multiple emulated TPMs")
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@tuni.fi>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions