ClangBuiltLinux/linux

-Wframe-larger-than in drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c

Opened this issue · 1 comments

This warning appears with Fedora's PowerPC configuration:

$ curl -LSso .config https://src.fedoraproject.org/rpms/kernel/raw/rawhide/f/kernel-ppc64le-fedora.config

$ make -skj"$(nproc)" ARCH=powerpc LLVM=1 olddefconfig drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.o
drivers/gpu/drm/amd/amdgpu/vcn_v5_0_0.c:714:12: error: stack frame size (2272) exceeds limit (2048) in 'vcn_v5_0_0_start' [-Werror,-Wframe-larger-than]
  714 | static int vcn_v5_0_0_start(struct amdgpu_device *adev)
      |            ^
1 error generated.

I am reducing via cvise, this appears to be related to -fsanitize=bounds (via CONFIG_UBSAN_BOUNDS=y in Fedora's configuration), so this could be a code generation issue.

I forgot to mention that I filed an issue for this upstream: llvm/llvm-project#98367