diff options
| author | Nathan Chancellor <[email protected]> | 2025-08-07 21:36:28 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2025-08-29 19:04:53 +0000 |
| commit | 86a9b1250602d877a393dcbab5f42472f77ac0f7 (patch) | |
| tree | 558f11697cf880d230852288cbdec9b1203331d8 /drivers/cdx/controller/cdx_controller.c | |
| parent | ARM: stacktrace: include asm/sections.h in asm/stacktrace.h (diff) | |
| download | kernel-86a9b1250602d877a393dcbab5f42472f77ac0f7.tar.gz kernel-86a9b1250602d877a393dcbab5f42472f77ac0f7.zip | |
hardening: Require clang 20.1.0 for __counted_by
After an innocuous change in -next that modified a structure that
contains __counted_by, clang-19 start crashing when building certain
files in drivers/gpu/drm/xe. When assertions are enabled, the more
descriptive failure is:
clang: clang/lib/AST/RecordLayoutBuilder.cpp:3335: const ASTRecordLayout &clang::ASTContext::getASTRecordLayout(const RecordDecl *) const: Assertion `D && "Cannot get layout of forward declarations!"' failed.
According to a reverse bisect, a tangential change to the LLVM IR
generation phase of clang during the LLVM 20 development cycle [1]
resolves this problem. Bump the version of clang that enables
CONFIG_CC_HAS_COUNTED_BY to 20.1.0 to ensure that this issue cannot be
hit.
Link: https://github.com/llvm/llvm-project/commit/160fb1121cdf703c3ef5e61fb26c5659eb581489 [1]
Signed-off-by: Nathan Chancellor <[email protected]>
Reviewed-by: Justin Stitt <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions
