> -----Original Message----- > From: Nathan Chancellor <nathan@xxxxxxxxxx> > Sent: Wednesday, January 3, 2024 5:56 PM > To: Kent Overstreet <kent.overstreet@xxxxxxxxx> > Cc: Nick Desaulniers <ndesaulniers@xxxxxxxxxx>; Brian Cain > <bcain@xxxxxxxxxxx>; Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>; Yujie Liu > <yujie.liu@xxxxxxxxx>; kernel test robot <lkp@xxxxxxxxx>; llvm@xxxxxxxxxxxxxxx; > oe-kbuild-all@xxxxxxxxxxxxxxx; linux-hexagon@xxxxxxxxxxxxxxx; > dwarves@xxxxxxxxxxxxxxx; Mark Wielaard <mark@xxxxxxxxx> > Subject: Re: [bcachefs:header_cleanup 21/51] /bin/bash: line 1: 19420 > Segmentation fault LLVM_OBJCOPY="llvm-objcopy" pahole -J --btf_gen_floats -j > --lang_exclude=rust --skip_encoding_btf_inconsistent_proto -- > btf_gen_optimized --btf_base vmlinux drivers/misc/eep... > > WARNING: This email originated from outside of Qualcomm. Please be wary of > any links or attachments, and do not enable macros. > > On Wed, Jan 03, 2024 at 05:03:17PM -0500, Kent Overstreet wrote: > > On Wed, Jan 03, 2024 at 08:20:10AM -0800, Nick Desaulniers wrote: > > > On Tue, Jan 2, 2024 at 9:53 AM Mark Wielaard <mark@xxxxxxxxx> wrote: > > > > > > > > This seems to need Qualcomm to upstream support for this processor > > > > type to bintuils and elfutils. > > > > > > Probably should disable BTF for hexagon until then. > > > > Do we want to include a patch for that in the header cleanup tree? > > This issue is reproducible on mainline so I don't think there needs to > be a patch for this in the header cleanup tree. > > As for the patch, I assume it would look something like this? > > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index 4405f81248fb..1b939f5583eb 100644 > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -378,6 +378,8 @@ config DEBUG_INFO_BTF > depends on !GCC_PLUGIN_RANDSTRUCT || COMPILE_TEST > depends on BPF_SYSCALL > depends on !DEBUG_INFO_DWARF5 || PAHOLE_VERSION >= 121 > + # pahole uses elfutils, which does not have support for Hexagon > relocations > + depends on !HEXAGON > help > Generate deduplicated BTF type information from DWARF debug info. > Turning this on expects presence of pahole tool, which will convert Acked-by: Brian Cain <bcain@xxxxxxxxxxx>