Re: [PATCH] riscv: stacktrace: fix dump_backtrace/walk_stackframe with NULL task

From: Jisheng Zhang
Date: Wed Jul 28 2021 - 09:47:46 EST


On Wed, 28 Jul 2021 06:16:56 +0800
Changbin Du <changbin.du@xxxxxxxxx> wrote:

> On Mon, Jun 28, 2021 at 01:44:04PM +0800, Jisheng Zhang wrote:
> > On Sun, 27 Jun 2021 17:26:59 +0800
> > Changbin Du <changbin.du@xxxxxxxxx> wrote:
> >
> >
> > >
> > >
> > > Some places try to show backtrace with NULL task, and expect the task is
> > > 'current'. For example, dump_stack()->show_stack(NULL,...). So the
> > > stacktrace code should take care of this case.
> >
> > I fixed this issue one week ago:
> >
> > http://lists.infradead.org/pipermail/linux-riscv/2021-June/007258.html
>
> I still see this issue on mainline. Is your fix merged? Thanks!

Nope, the fix is missed twice. Palmer has added the fix patch into
fix branch, I help it will be in next rc

Regards