summaryrefslogtreecommitdiffstats
path: root/kernel/audit_watch.c
diff options
context:
space:
mode:
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>2022-12-21 15:32:32 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2022-12-30 17:57:42 +0800
commit736f88689c6912f05d0116917910603a7ba97de7 (patch)
tree24c19c77e5cdf8c4e82ccf4ba0c490c5296b903c /kernel/audit_watch.c
parenta23529989a8f56d23680c4f2d14011bc9c9457c9 (diff)
downloadlinux-stable-736f88689c6912f05d0116917910603a7ba97de7.tar.gz
linux-stable-736f88689c6912f05d0116917910603a7ba97de7.tar.bz2
linux-stable-736f88689c6912f05d0116917910603a7ba97de7.zip
crypto: arm64/sm4 - fix possible crash with CFI enabled
The SM4 CCM/GCM assembly functions for encryption and decryption is called via indirect function calls. Therefore they need to use SYM_TYPED_FUNC_START instead of SYM_FUNC_START to cause its type hash to be emitted when the kernel is built with CONFIG_CFI_CLANG=y. Otherwise, the code crashes with a CFI failure (if the compiler didn't happen to optimize out the indirect call). Fixes: 67fa3a7fdf80 ("crypto: arm64/sm4 - add CE implementation for CCM mode") Fixes: ae1b83c7d572 ("crypto: arm64/sm4 - add CE implementation for GCM mode") Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'kernel/audit_watch.c')
0 files changed, 0 insertions, 0 deletions