Re: [PATCH] xen/netfront: tolerate frags with no data

From: David Miller
Date: Wed Dec 19 2018 - 01:00:18 EST


From: Juergen Gross <jgross@xxxxxxxx>
Date: Tue, 18 Dec 2018 16:06:19 +0100

> At least old Xen net backends seem to send frags with no real data
> sometimes. In case such a fragment happens to occur with the frag limit
> already reached the frontend will BUG currently even if this situation
> is easily recoverable.
>
> Modify the BUG_ON() condition accordingly.
>
> Tested-by: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxx>
> Signed-off-by: Juergen Gross <jgross@xxxxxxxx>

Applied and queued up for -stable.

But many of these BUG's in the driver should be converted to
WARNs and recovery code added.