[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdaswYLf1bhbqhc+zvY+ak867BxpQeh=GMUoBtWR+s_Azg@mail.gmail.com>
Date: Tue, 12 Dec 2023 00:52:18 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: Ronald Wahl <ronald.wahl@...itan.com>
Cc: Ronald Wahl <rwahl@....de>, linux-kernel@...r.kernel.org,
Thomas Gleixner <tglx@...utronix.de>
Subject: Re: [PATCH] stacktrace: check whether task has a stack before saving it
On Mon, Dec 11, 2023 at 2:31 PM Ronald Wahl <ronald.wahl@...itan.com> wrote:
> On 01.11.23 22:59, Linus Walleij wrote:
> > [You don't often get email from linus.walleij@...aro.org. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
> >
> > On Mon, Oct 30, 2023 at 6:59 PM Ronald Wahl <rwahl@....de> wrote:
> >
> >> I encountered a crash on ARM32 when trying to dump the stack of some
> >> zombie process. This is caused by a missing check whether the task
> >> actually has a valid stack. This commit adds this check.
> >>
> >> Commit 214d8ca6ee85 ("stacktrace: Provide common infrastructure")
> >> introduced this check for platforms that define CONFIG_ARCH_STACKWALK
> >> but ARM32 is not one of them.
> >>
> >> Signed-off-by: Ronald Wahl <ronald.wahl@...itan.com>
> >
> > Looks correct to me:
> > Reviewed-by: Linus Walleij <linus.walleij@...aro.org>
>
> Unfortunately it causes a memory leak because I forgot to call
> put_task_stack(task) now. Should I post v2 or a separate patch?
Post a v2 I didn't see that anyone applied it?
Yours,
Linus Walleij
Powered by blists - more mailing lists