[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f72f0a599fa5ca03321454fd14dd8856.sboyd@kernel.org>
Date: Tue, 12 Sep 2023 10:59:51 -0700
From: Stephen Boyd <sboyd@...nel.org>
To: Alessandro Carminati <alessandro.carminati@...il.com>
Cc: Philip Daly <pdaly@...hat.com>,
Michael Turquette <mturquette@...libre.com>,
linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Sanitize possible_parent_show to Handle Return Value of of_clk_get_parent_name
Quoting Alessandro Carminati (2023-09-12 10:05:19)
> Il giorno ven 8 set 2023 alle ore 23:25 Stephen Boyd
> <sboyd@...nel.org> ha scritto:
> >
> > Is nothing actually wrong? And this is a speculative patch?
>
> In the current state, Linux can crash, so I would say that there's something
> wrong.
> I submitted this patch in response to a specific bug report that caused a
> kernel crash during testing.
Where is the bug report? On some public tracker? Can you link to it?
>
> >
> > All other arms of this conditional statement check the validity of the
> > pointer before printing the string. And when the parent isn't known we
> > print "(missing)", so it looks like we should do that instead. How about
> > this patch?
>
> Indeed, your patch appears to provide a more verbose coding and accurate
> message, which is valuable for troubleshooting.
> So yeah, for what it is worth, I think it is good as well.
Cool, can you send it after testing it out?
Powered by blists - more mailing lists