diff options
author | Ard Biesheuvel <[email protected]> | 2021-06-10 08:21:50 +0200 |
---|---|---|
committer | Herbert Xu <[email protected]> | 2021-06-17 15:07:31 +0800 |
commit | 22ca9f4aaf431a9413dcc115dd590123307f274f (patch) | |
tree | b040bedbf50bef3dd355a5588c1de79651625460 /scripts/gdb/linux/tasks.py | |
parent | 87c8ba5cd7f99b1c05589c455703f54e92f43ed0 (diff) |
crypto: shash - avoid comparing pointers to exported functions under CFI
crypto_shash_alg_has_setkey() is implemented by testing whether the
.setkey() member of a struct shash_alg points to the default version,
called shash_no_setkey(). As crypto_shash_alg_has_setkey() is a static
inline, this requires shash_no_setkey() to be exported to modules.
Unfortunately, when building with CFI, function pointers are routed
via CFI stubs which are private to each module (or to the kernel proper)
and so this function pointer comparison may fail spuriously.
Let's fix this by turning crypto_shash_alg_has_setkey() into an out of
line function.
Cc: Sami Tolvanen <[email protected]>
Cc: Eric Biggers <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Reviewed-by: Eric Biggers <[email protected]>
Reviewed-by: Sami Tolvanen <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions