diff options
author | Kees Cook <keescook@chromium.org> | 2023-01-06 07:19:48 +0300 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2023-01-27 22:42:57 +0300 |
commit | aa85923a954e7704bc9d3847dabeb8540aa98d13 (patch) | |
tree | 6a7b93241b3853da3696f76f82ad0c177a21ce13 /fs/binfmt_flat.c | |
parent | 8500689095a39a8c245ba62709f5e8735668e535 (diff) | |
download | linux-aa85923a954e7704bc9d3847dabeb8540aa98d13.tar.xz |
crypto: hisilicon: Wipe entire pool on error
To work around a Clang __builtin_object_size bug that shows up under
CONFIG_FORTIFY_SOURCE and UBSAN_BOUNDS, move the per-loop-iteration
mem_block wipe into a single wipe of the entire pool structure after
the loop.
Reported-by: Nathan Chancellor <nathan@kernel.org>
Link: https://github.com/ClangBuiltLinux/linux/issues/1780
Cc: Weili Qian <qianweili@huawei.com>
Cc: Zhou Wang <wangzhou1@hisilicon.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: linux-crypto@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Tested-by: Nathan Chancellor <nathan@kernel.org> # build
Link: https://lore.kernel.org/r/20230106041945.never.831-kees@kernel.org
Diffstat (limited to 'fs/binfmt_flat.c')
0 files changed, 0 insertions, 0 deletions