From: Nathan Chancellor <nathan@kernel.org>
To: Josh Poimboeuf <jpoimboe@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Brendan Jackman <jackmanb@google.com>,
Peter Zijlstra <peterz@infradead.org>,
Masahiro Yamada <masahiroy@kernel.org>,
Nicolas Schier <nicolas@fjasle.eu>,
linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org,
llvm@lists.linux.dev
Subject: Re: [PATCH v2 0/2] objtool: Add option to fail build on vmlinux warnings
Date: Fri, 20 Dec 2024 13:10:25 -0700 [thread overview]
Message-ID: <20241220201025.GB936171@ax162> (raw)
In-Reply-To: <20241219225642.ho42z3kgeuy5vq4v@jpoimboe>
On Thu, Dec 19, 2024 at 02:56:42PM -0800, Josh Poimboeuf wrote:
> On Thu, Dec 19, 2024 at 03:19:13PM -0700, Nathan Chancellor wrote:
> > I do agree with you that figuring our the root problem and resolution to
> > some of these warnings is not always the easiest, especially when they
> > are on the toolchain side, so I have often kicked the can down the road.
> > I know there is some documentation in objtool.txt around various
> > warnings, is that pretty up to date/accurate? Are there any other
> > resources I could look at to help with this work?
>
> I think the document is pretty up to date. Some warnings are self
> explanatory but others like "unreachable instruction" or "stack state
> mismatch" do require digging.
>
> One thing that can help is to "export OBJTOOL_VERBOSE=1", which will
> tell objtool to disassemble any affected functions and show a backtrace
> with all the taken branches leading up to the warning (if applicable).
> Maybe that should be the default for --Werror.
Yeah, that does not sound like a bad idea. If the build is going to
break, it seems reasonable to give developers as much pertinent
information as possible so they can address the problem properly and
move on.
> I'd definitely like more people to be able to debug objtool warnings.
> Any ideas on making that easier or educating people or improving
> warnings are very welcome. I'll be keeping that in mind when looking at
> the build errors over the holidays.
I will definitely ponder on that as well since I should have a good
perspective on that front.
> > Some objtool reports get sent to only llvm@lists.linux.dev when clang is
> > involved (due to a historical filter IIRC, I cannot find the original
> > request), so you may want to glance at [2] to see if anything new pops
> > up.
>
> We need to figure out how to get that fixed, the commit author really
> needs to know if their code causes a warning/error.
I have started a new thread with the 0day folks to get that adjusted
with you and Peter on CC:
https://lore.kernel.org/20241220200617.GA936171@ax162/
Cheers,
Nathan
next prev parent reply other threads:[~2024-12-20 20:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-18 14:58 [PATCH v2 0/2] objtool: Add option to fail build on vmlinux warnings Brendan Jackman
2024-12-18 14:58 ` [PATCH v2 1/2] objtool: Add --Werror Brendan Jackman
2024-12-18 14:58 ` [PATCH v2 2/2] kbuild: Add option to fail build on vmlinux objtool issues Brendan Jackman
2024-12-18 19:04 ` Josh Poimboeuf
2024-12-19 10:18 ` Brendan Jackman
2024-12-19 0:06 ` [PATCH v2 0/2] objtool: Add option to fail build on vmlinux warnings Andrew Morton
2024-12-19 1:00 ` Josh Poimboeuf
2024-12-19 22:19 ` Nathan Chancellor
2024-12-19 22:56 ` Josh Poimboeuf
2024-12-20 11:30 ` Brendan Jackman
2024-12-20 20:10 ` Nathan Chancellor [this message]
2024-12-19 23:01 ` Nick Desaulniers
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=20241220201025.GB936171@ax162 \
--to=nathan@kernel.org \
--cc=akpm@linux-foundation.org \
--cc=jackmanb@google.com \
--cc=jpoimboe@kernel.org \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=masahiroy@kernel.org \
--cc=nicolas@fjasle.eu \
--cc=peterz@infradead.org \
/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