ClangBuiltLinux / linux

Linux kernel source tree
Other
241 stars 14 forks source link

[lld-19] drivers/net/ethernet/mellanox/mlx5/core/eq.c:1078:0: stack frame size (2208) exceeds limit (2048) in function 'mlx5_comp_eqn_get' #2049

Open cgzones opened 2 months ago

cgzones commented 2 months ago

When building v6.10.9 with LLVM 19 and LTO and CFI and UBSAN enabled lld warns:

ld.lld-19: warning: <build-dir>/drivers/net/ethernet/mellanox/mlx5/core/eq.c:1078:0: stack frame size (2208) exceeds limit (2048) in function 'mlx5_comp_eqn_get'
cgzones commented 1 month ago

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