diff options
| author | Eric Biggers <[email protected]> | 2020-05-02 05:59:45 +0000 |
|---|---|---|
| committer | Richard Weinberger <[email protected]> | 2020-05-17 21:38:21 +0000 |
| commit | 3c3c32f85b6cc05e5db78693457deff03ac0f434 (patch) | |
| tree | 3b583262ab16a8e771d2f6aaa724547242515e5a /tools/perf/scripts/python/check-perf-trace.py | |
| parent | ubifs: remove broken lazytime support (diff) | |
| download | kernel-3c3c32f85b6cc05e5db78693457deff03ac0f434.tar.gz kernel-3c3c32f85b6cc05e5db78693457deff03ac0f434.zip | |
ubifs: fix wrong use of crypto_shash_descsize()
crypto_shash_descsize() returns the size of the shash_desc context
needed to compute the hash, not the size of the hash itself.
crypto_shash_digestsize() would be correct, or alternatively using
c->hash_len and c->hmac_desc_len which already store the correct values.
But actually it's simpler to just use stack arrays, so do that instead.
Fixes: 49525e5eecca ("ubifs: Add helper functions for authentication support")
Fixes: da8ef65f9573 ("ubifs: Authenticate replayed journal")
Cc: <[email protected]> # v4.20+
Cc: Sascha Hauer <[email protected]>
Signed-off-by: Eric Biggers <[email protected]>
Acked-by: Sascha Hauer <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
