Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[llvm-19] objtool warnings for drivers/gpu/drm/radeon/radeon.o #2050

Open
cgzones opened this issue Sep 8, 2024 · 3 comments
Open

[llvm-19] objtool warnings for drivers/gpu/drm/radeon/radeon.o #2050

cgzones opened this issue Sep 8, 2024 · 3 comments
Labels
[ARCH] x86_64 This bug impacts ARCH=x86_64 [TOOL] objtool warning is produced by the kernel's objtool

Comments

@cgzones
Copy link

cgzones commented Sep 8, 2024

When building v6.10.9 with LLVM 19 and LTO and CFI and UBSAN enabled the following warnings are shown:

drivers/gpu/drm/radeon/radeon.o: warning: objtool: .text.evergreen_irq_ack: unexpected end of section
drivers/gpu/drm/radeon/radeon.o: warning: objtool: .text.si_irq_ack: unexpected end of section
@nathanchance
Copy link
Member

Does this happen without UBSAN?

@cgzones
Copy link
Author

cgzones commented Sep 10, 2024

Disappears when disabling CONFIG_UBSAN_SIGNED_WRAP:

CONFIG_ARCH_HAS_UBSAN=y
CONFIG_UBSAN=y
# CONFIG_UBSAN_TRAP is not set
CONFIG_CC_HAS_UBSAN_ARRAY_BOUNDS=y
CONFIG_UBSAN_BOUNDS=y
CONFIG_UBSAN_ARRAY_BOUNDS=y
CONFIG_UBSAN_SHIFT=y
# CONFIG_UBSAN_SIGNED_WRAP is not set
CONFIG_UBSAN_BOOL=y
CONFIG_UBSAN_ENUM=y
# CONFIG_UBSAN_ALIGNMENT is not set
# CONFIG_TEST_UBSAN is not set

@nathanchance
Copy link
Member

@kees @JustinStitt I wonder if this is a similar situation as what triggered commit e5d523f1ae8f ("ubsan: disable UBSAN_DIV_ZERO for clang")? If the sanitizer is not recoverable in the face of undefined behavior, I suspect optimizations could result in a wrecked control flow graph, which will make objtool unhappy. I wonder if the message changes if LTO is disabled (such that -ffunction-sections is not enabled)?

@nathanchance nathanchance added [ARCH] x86_64 This bug impacts ARCH=x86_64 [TOOL] objtool warning is produced by the kernel's objtool labels Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[ARCH] x86_64 This bug impacts ARCH=x86_64 [TOOL] objtool warning is produced by the kernel's objtool
Projects
None yet
Development

No branches or pull requests

2 participants