diff options
| author | Pi-Hsun Shih <[email protected]> | 2019-05-20 06:51:19 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2019-05-31 07:32:06 +0000 |
| commit | a9fb94a99bb515d8720ba8440ce3aba84aec80f8 (patch) | |
| tree | d272383bd25c4efd32c2d3449aeb76cabf52314b /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | Linux 5.2-rc1 (diff) | |
| download | kernel-a9fb94a99bb515d8720ba8440ce3aba84aec80f8.tar.gz kernel-a9fb94a99bb515d8720ba8440ce3aba84aec80f8.zip | |
pstore: Set tfm to NULL on free_buf_for_compression
Set tfm to NULL on free_buf_for_compression() after crypto_free_comp().
This avoid a use-after-free when allocate_buf_for_compression()
and free_buf_for_compression() are called twice. Although
free_buf_for_compression() freed the tfm, allocate_buf_for_compression()
won't reinitialize the tfm since the tfm pointer is not NULL.
Fixes: 95047b0519c1 ("pstore: Refactor compression initialization")
Signed-off-by: Pi-Hsun Shih <[email protected]>
Cc: [email protected]
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
