From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: Jiri Olsa <olsajiri@gmail.com>,
stable@vger.kernel.org, bpf@vger.kernel.org,
Alexei Starovoitov <ast@kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>,
Andrii Nakryiko <andrii@kernel.org>, Yonghong Song <yhs@fb.com>
Subject: Re: [PATCH bpf v2] bpf: Add config for skipping BTF enum64s
Date: Sat, 3 Sep 2022 11:13:45 -0300 [thread overview]
Message-ID: <YxNhGc7Q+eiHCIr5@kernel.org> (raw)
In-Reply-To: <YxLlouzk1O1Prg3J@kroah.com>
Em Sat, Sep 03, 2022 at 07:26:58AM +0200, Greg KH escreveu:
> On Fri, Sep 02, 2022 at 06:51:00PM +0200, Jiri Olsa wrote:
> > On Sun, Aug 28, 2022 at 08:33:17PM -0300, Martin Rodriguez Reboredo wrote:
> > > After the release of pahole 1.24 some people in the dwarves mailing list
> > > notified issues related to building the kernel with the BTF_DEBUG_INFO
> > > option toggled. They seem to be happenning due to the kernel and
> > > resolve_btfids interpreting btf types erroneously. In the dwarves list
> > > I've proposed a change to the scripts that I've written while testing
> > > the Rust kernel, it simply passes the --skip_encoding_btf_enum64 to
> > > pahole if it has version 1.24.
> > >
> > > v1 -> v2:
> > > - Switch to off by default and remove the config option.
> > > - Send it to stable instead.
> >
> > hi,
> > we have change that needs to go to stable kernels but does not have the
> > equivalent fix in Linus tree
>
> Why isn't it also relevant in Linus's tree?
See below.
> > what would be the best way to submit it?
>
> Submit it here and document the heck out of why this isn't in Linus's
> tree, what changes instead fixed it there, and so on. Look in the
> archives for examples of how this is done, one recent one that I can
> think of is here:
> https://lore.kernel.org/r/20220831191348.3388208-1-jannh@google.com
>
> > the issue is that new 'pahole' will generate BTF data that are not supported
> > by older kernels, so we need to add --skip_encoding_btf_enum64 option to
> > stable kernel's scripts/pahole-flags.sh to generate proper BTF data
> >
> > we got complains that after upgrading to latest pahole the stable kernel
> > compilation fails
>
> And what is happening in Linus's tree for this same issue?
So, BTF_KIND_ENUM64 is a new BTF tag, one that is not accepted by older
kernels, but is accepted by the BPF verifier on Linus' tree.
Its about avoiding having a pahole command line with lots of
--enable-new-feature-foo for new stuff with the default producing the
most recent BTF spec.
One way to documenting it: if you update pahole, then please use
--skip_encoding_FOO for these new FOO features on kernels where those
aren't supported.
So this isn't a backport from a fix on Linus' tree, as both the older
pahole that doesn't encode BTF_KIND_ENUM64 and the new one, that encodes
it by default, work with Linus' tree.
Does this violates the stable@ rules?
- Arnaldo
next prev parent reply other threads:[~2022-09-03 14:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20220828233317.35464-1-yakoyoku@gmail.com>
2022-09-02 16:51 ` [PATCH bpf v2] bpf: Add config for skipping BTF enum64s Jiri Olsa
2022-09-03 5:26 ` Greg KH
2022-09-03 14:13 ` Arnaldo Carvalho de Melo [this message]
2022-09-04 6:18 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YxNhGc7Q+eiHCIr5@kernel.org \
--to=acme@kernel.org \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=gregkh@linuxfoundation.org \
--cc=olsajiri@gmail.com \
--cc=stable@vger.kernel.org \
--cc=yhs@fb.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox