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 14:40:08 +0100 [thread overview]
Message-ID: <YswoOE/sP088lius@monolith.localdoman> (raw)
In-Reply-To: <Yswkb6mvwUywOTLg@sirena.org.uk>
Hi Mark,
On Mon, Jul 11, 2022 at 02:23:59PM +0100, Mark Brown wrote:
> On Mon, Jul 11, 2022 at 02:05:22PM +0100, Alexandru Elisei wrote:
> > Commit a5450aba737d ("ASoC: rockchip: i2s: switch BCLK to GPIO") switched
> > BCLK to GPIO functions when probing the i2s bus interface, but missed
> > adding a check for when devm_pinctrl_get() returns an error. This can lead
> > to the following NULL pointer dereference on a rockpro64-v2 if there are no
> > "pinctrl" properties in the i2s device tree node:
> >
> > [ 0.658381] rockchip-i2s ff880000.i2s: failed to find i2s default state
> > [ 0.658993] rockchip-i2s ff880000.i2s: failed to find i2s gpio state
> > [ 0.660072] rockchip-i2s ff890000.i2s: failed to find i2s default state
> > [ 0.660670] rockchip-i2s ff890000.i2s: failed to find i2s gpio state
>
> 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?
> 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.
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 13:40 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 [this message]
2022-07-11 14:41 ` Mark Brown
2022-07-11 15:17 ` Alexandru Elisei
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=YswoOE/sP088lius@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