[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YY4LYofN+yppiHDy@infradead.org>
Date: Thu, 11 Nov 2021 22:36:18 -0800
From: Christoph Hellwig <hch@...radead.org>
To: Tadeusz Struk <tadeusz.struk@...aro.org>
Cc: Christoph Hellwig <hch@...radead.org>,
Jens Axboe <axboe@...nel.dk>, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: general protection fault in del_gendisk
On Mon, Nov 08, 2021 at 11:19:35AM -0800, Tadeusz Struk wrote:
> I have ran this on the latest mainline. I can confirm that the errors are
> nicely handled there. It triggers a warning and panics in device_add_disk()
> because of:
> return WARN_ON_ONCE(ret); /* keep until all callers handle errors */
> and
> Kernel panic - not syncing: panic_on_warn set ...
The WARRN_ON will go away once all drivers are fixed. And no, it does
not panic the kernel unless you set an obscure sysctl asking for it to
panic on warnings, in which case you get what you ask for.
Powered by blists - more mailing lists