Re: [PATCH] xen/netback: avoid race in xenvif_rx_ring_slots_available()

From: Igor Druzhinin
Date: Tue Feb 02 2021 - 10:36:04 EST


On 02/02/2021 07:09, Juergen Gross wrote:
> Since commit 23025393dbeb3b8b3 ("xen/netback: use lateeoi irq binding")
> xenvif_rx_ring_slots_available() is no longer called only from the rx
> queue kernel thread, so it needs to access the rx queue with the
> associated queue held.
>
> Reported-by: Igor Druzhinin <igor.druzhinin@xxxxxxxxxx>
> Fixes: 23025393dbeb3b8b3 ("xen/netback: use lateeoi irq binding")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Juergen Gross <jgross@xxxxxxxx>

Appreciate a quick fix! Is this the only place that sort of race could
happen now?

Igor