Message ID | 20210204163319.GD910119@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [FIXED] Re: 5:11: in-kernel BTF is malformed | expand |
On Thu, Feb 4, 2021 at 9:33 AM Arnaldo Carvalho de Melo <acme@kernel.org> wrote: > > So I think that for the problems related to building the kernel with gcc > 11 in Fedora Rawhide using the default that is now DWARF5, pahole 1.20 > is good to go and I'll tag it now. dwarves-1.20-1.fc34.x86_64 libdwarves1-1.20-1.fc34.x86_64 Fixes both "failed to validate module [?????] BTF: -22" type errors, and 'in-kernel BTF is malformed" with qemu-kvm and libvirt. Is that expected? Or maybe the second issue was fixed by gcc-11.0.0-0.18.fc34.x86_64 [(GCC) 11.0.0 20210130]? This is what I get for changing more than one thing at once. -- Chris Murphy
Em Thu, Feb 04, 2021 at 08:10:52PM -0700, Chris Murphy escreveu: > On Thu, Feb 4, 2021 at 9:33 AM Arnaldo Carvalho de Melo <acme@kernel.org> wrote: > > > > So I think that for the problems related to building the kernel with gcc > > 11 in Fedora Rawhide using the default that is now DWARF5, pahole 1.20 > > is good to go and I'll tag it now. > > dwarves-1.20-1.fc34.x86_64 > libdwarves1-1.20-1.fc34.x86_64 > > Fixes both "failed to validate module [?????] BTF: -22" type errors, > and 'in-kernel BTF is malformed" with qemu-kvm and libvirt. Cool! Any fedora user here please give the update some love by bumping its karma at: https://bodhi.fedoraproject.org/updates/FEDORA-2021-804e7a572c - Arnaldo
--- BTF.generated-by-clang-for-a-BPF.target 2021-02-04 13:26:16.215883852 -0300 +++ BTF.generated-by-pahole-J-from-default-DWWARF-generated-by-gcc11-for-a-x86_64.target 2021-02-04 13:27:07.483184784 -0300 @@ -49,8 +49,8 @@ /* --- cacheline 30 boundary (1920 bytes) was 56 bytes ago --- */ void * migration_pending; /* 1976 8 */ /* --- cacheline 31 boundary (1984 bytes) --- */ - unsigned short migration_disabled; /* 1984 2 */ - unsigned short migration_flags; /* 1986 2 */ + short unsigned int migration_disabled; /* 1984 2 */ + short unsigned int migration_flags; /* 1986 2 */ /* XXX 4 bytes hole, try to pack */ @@ -284,8 +284,8 @@ struct list_head perf_event_list; /* 7016 16 */ struct mempolicy * mempolicy; /* 7032 8 */ /* --- cacheline 110 boundary (7040 bytes) --- */ - short il_prev; /* 7040 2 */ - short pref_node_fork; /* 7042 2 */ + short int il_prev; /* 7040 2 */ + short int pref_node_fork; /* 7042 2 */ int numa_scan_seq; /* 7044 4 */ unsigned int numa_scan_period; /* 7048 4 */ unsigned int numa_scan_period_max; /* 7052 4 */