Re: upstream kernel crashes
From: Xuan Zhuo
Date: Wed Aug 17 2022 - 21:57:47 EST
On Wed, 17 Aug 2022 08:58:20 -0700, Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
> On Tue, Aug 16, 2022 at 11:47 PM Xuan Zhuo <xuanzhuo@xxxxxxxxxxxxxxxxx> wrote:
> >
> > + BUG_ON(num != virtqueue_get_vring_size(vq));
> > +
>
> Please, no more BUG_ON.
>
> Add a WARN_ON_ONCE() and return an error.
OK, I will post v2 with WARN_ON_ONCE().
Thanks.
>
> Linus