[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.9999.1910041126030.15827@viisi.sifive.com>
Date: Fri, 4 Oct 2019 11:26:15 -0700 (PDT)
From: Paul Walmsley <paul.walmsley@...ive.com>
To: Vincent Chen <vincent.chen@...ive.com>
cc: linux-riscv@...ts.infradead.org, palmer@...ive.com,
aou@...s.berkeley.edu, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/4] riscv: avoid kernel hangs when trapped in BUG()
On Mon, 23 Sep 2019, Vincent Chen wrote:
> When the CONFIG_GENERIC_BUG is disabled by disabling CONFIG_BUG, if a
> kernel thread is trapped by BUG(), the whole system will be in the
> loop that infinitely handles the ebreak exception instead of entering the
> die function. To fix this problem, the do_trap_break() will always call
> the die() to deal with the break exception as the type of break is
> BUG_TRAP_TYPE_BUG.
>
> Signed-off-by: Vincent Chen <vincent.chen@...ive.com>
Thanks, queued for v5.4-rc.
- Paul
Powered by blists - more mailing lists