From: Alexandru Elisei <alexandru.elisei@arm.com>
To: Mark Brown <broonie@kernel.org>
Cc: lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com,
heiko@sntech.de, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org,
alsa-devel@alsa-project.org, judyhsiao@chromium.org
Subject: Re: [PATCH] ASoC: rockchip: i2s: Fix NULL pointer dereference when pinctrl is not found
Date: Mon, 11 Jul 2022 16:17:37 +0100 [thread overview]
Message-ID: <Ysw+3Hg+GbDjXuTn@monolith.localdoman> (raw)
In-Reply-To: <Ysw2mzhw4pyrxirc@sirena.org.uk>
Hi,
On Mon, Jul 11, 2022 at 03:41:31PM +0100, Mark Brown wrote:
> On Mon, Jul 11, 2022 at 02:40:08PM +0100, Alexandru Elisei wrote:
> > On Mon, Jul 11, 2022 at 02:23:59PM +0100, Mark Brown wrote:
>
> > > Please think hard before including complete backtraces in upstream
> > > reports, they are very large and contain almost no useful information
>
> > I'm at a loss here. Are you saying that those 4 lines represent a complete
> > backtrace and they are very large? Or are you talking about the panic log
> > that I've included in the commit message?
>
> I'm talking about the entire log that that was the start of, I deleted
> the bulk of it due to the excessive size.
Oh, that makes sense then.
>
> > > relative to their size so often obscure the relevant content in your
> > > message. If part of the backtrace is usefully illustrative (it often is
> > > for search engines if nothing else) then it's usually better to pull out
> > > the relevant sections.
>
> > Would you mind pointing out what you think the relevant sections are? I
> > would also find it very useful (for future patches) if you can explain why
> > they are relevant, and why those parts you've left out aren't. It's not
> > very easy to figure out what is relevant when you're not familiar with a
> > subsystem.
>
> It really depends what the information you're trying to convey with the
> backtrace is, in general a couple of frames of context might be useful
> if there's something interesting about the context from which things
> were called since that's the unique bit that people might search for.
> For example things like the standard set of generic functions you'd see
> when probing a device is rarely going to convey anything meaningful, and
> similarly the standard kernel entry backtrace for something triggered
> from a system call. The full register state is also commonly not of any
> great relevance if it's not illustrating something in the rest of the
> message.
>
> If you are just including an entire splat on the off chance that it
> might be relevant consider just not including it rather than including
> everything.
Thanks for the explanation!
I've included the entire splat, not just the bits that prove my conclusion,
in case my conclusion is wrong and someone reading the backtrace can notice
what I missed.
In this case, the splat was definitely useful for me, because the last two
functions from the call trace point to where the bug was.
Do you want me to respin the patch with an abbreviated splat?
Thanks,
Alex
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2022-07-11 15:18 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-11 13:05 [PATCH] ASoC: rockchip: i2s: Fix NULL pointer dereference when pinctrl is not found Alexandru Elisei
2022-07-11 13:23 ` Mark Brown
2022-07-11 13:40 ` Alexandru Elisei
2022-07-11 14:41 ` Mark Brown
2022-07-11 15:17 ` Alexandru Elisei [this message]
2022-07-11 15:55 ` Mark Brown
2022-07-11 15:04 ` Mark Brown
2022-07-12 6:17 ` Chen-Yu Tsai
2022-07-12 8:54 ` Alexandru Elisei
2022-07-12 9:25 ` Chen-Yu Tsai
2022-07-12 11:02 ` Alexandru Elisei
2022-07-12 11:15 ` Mark Brown
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=Ysw+3Hg+GbDjXuTn@monolith.localdoman \
--to=alexandru.elisei@arm.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=heiko@sntech.de \
--cc=judyhsiao@chromium.org \
--cc=lgirdwood@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=perex@perex.cz \
--cc=tiwai@suse.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