Re: [PATCH] xen-netback: don't populate the hash cache on XenBus disconnect
From: David Miller
Date: Thu Feb 28 2019 - 15:51:17 EST
From: Igor Druzhinin <igor.druzhinin@xxxxxxxxxx>
Date: Thu, 28 Feb 2019 14:11:26 +0000
> Occasionally, during the disconnection procedure on XenBus which
> includes hash cache deinitialization there might be some packets
> still in-flight on other processors. Handling of these packets includes
> hashing and hash cache population that finally results in hash cache
> data structure corruption.
>
> In order to avoid this we prevent hashing of those packets if there
> are no queues initialized. In that case RCU protection of queues guards
> the hash cache as well.
>
> Signed-off-by: Igor Druzhinin <igor.druzhinin@xxxxxxxxxx>
Applied and queued up for -stable, thanks.