[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170919.162054.1346334879894995770.davem@davemloft.net>
Date: Tue, 19 Sep 2017 16:20:54 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: chunkeey@...glemail.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] net: emac: Fix napi poll list corruption
From: Christian Lamparter <chunkeey@...glemail.com>
Date: Tue, 19 Sep 2017 19:35:18 +0200
> This patch is pretty much a carbon copy of
> commit 3079c652141f ("caif: Fix napi poll list corruption")
> with "caif" replaced by "emac".
>
> The commit d75b1ade567f ("net: less interrupt masking in NAPI")
> breaks emac.
>
> It is now required that if the entire budget is consumed when poll
> returns, the napi poll_list must remain empty. However, like some
> other drivers emac tries to do a last-ditch check and if there is
> more work it will call napi_reschedule and then immediately process
> some of this new work. Should the entire budget be consumed while
> processing such new work then we will violate the new caller
> contract.
>
> This patch fixes this by not touching any work when we reschedule
> in emac.
>
> Signed-off-by: Christian Lamparter <chunkeey@...glemail.com>
Applied and queued up for -stable, thanks.
Powered by blists - more mailing lists