aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorJarkko Sakkinen <[email protected]>2023-05-16 01:25:54 +0300
committerJarkko Sakkinen <[email protected]>2023-07-17 19:32:30 +0000
commitf4032d615f90970d6c3ac1d9c0bce3351eb4445c (patch)
treeda3eb8d9bc684580b0d381c30df18f6e22765779 /lib/test_fortify/write_overflow-strncpy-src.c
parentfdf0eaf11452d72945af31804e2a1048ee1b574c (diff)
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: [email protected] Fixes: 6f99612e2500 ("tpm: Proxy driver for supporting multiple emulated TPMs") Reviewed-by: Stefan Berger <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]> Signed-off-by: Jarkko Sakkinen <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions