diff options
author | Jarkko Sakkinen <jarkko@kernel.org> | 2023-10-11 02:08:25 +0300 |
---|---|---|
committer | Jarkko Sakkinen <jarkko@kernel.org> | 2023-10-24 03:06:06 +0300 |
commit | 31de287345f41bbfaec36a5c8cbdba035cf76442 (patch) | |
tree | 2cd10174e3300dcb4b09ab65128c35b6ae6997f8 /tools/perf/scripts/python/stackcollapse.py | |
parent | e017769f4ce20dc0d3fa3220d4d359dcc4431274 (diff) |
KEYS: trusted: Rollback init_trusted() consistently
Do bind neither static calls nor trusted_key_exit() before a successful
init, in order to maintain a consistent state. In addition, depart the
init_trusted() in the case of a real error (i.e. getting back something
else than -ENODEV).
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Closes: https://lore.kernel.org/linux-integrity/CAHk-=whOPoLaWM8S8GgoOPT7a2+nMH5h3TLKtn=R_3w4R1_Uvg@mail.gmail.com/
Cc: stable@vger.kernel.org # v5.13+
Fixes: 5d0682be3189 ("KEYS: trusted: Add generic trusted keys framework")
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions