ClangBuiltLinux / linux

Linux kernel source tree
Other
241 stars 14 forks source link

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

Open nathanchance opened 2 months ago

nathanchance commented 2 months ago

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.

nathanchance commented 1 month ago

I forgot to mention that I filed an issue for this upstream: https://github.com/llvm/llvm-project/issues/98367