This is a note to let you know that I've just added the patch titled can: dev: can_restart(): post buffer from the right context to the 5.9-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: can-dev-can_restart-post-buffer-from-the-right-conte.patch and it can be found in the queue-5.9 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. commit 12d4419cece87cac2a1bb0bee9b7348a628d486f Author: Alejandro Concepcion Rodriguez <alejandro@xxxxxxxx> Date: Thu Nov 5 21:51:47 2020 +0000 can: dev: can_restart(): post buffer from the right context [ Upstream commit a1e654070a60d5d4f7cce59c38f4ca790bb79121 ] netif_rx() is meant to be called from interrupt contexts. can_restart() may be called by can_restart_work(), which is called from a worqueue, so it may run in process context. Use netif_rx_ni() instead. Fixes: 39549eef3587 ("can: CAN Network device driver and Netlink interface") Co-developed-by: Loris Fauster <loris.fauster@xxxxxxxxxxxxx> Signed-off-by: Loris Fauster <loris.fauster@xxxxxxxxxxxxx> Signed-off-by: Alejandro Concepcion Rodriguez <alejandro@xxxxxxxx> Link: https://lore.kernel.org/r/4e84162b-fb31-3a73-fa9a-9438b4bd5234@xxxxxxxx [mkl: use netif_rx_ni() instead of netif_rx_any_context()] Signed-off-by: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx> Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx> diff --git a/drivers/net/can/dev.c b/drivers/net/can/dev.c index d5e52ffc7ed25..4bc9aa6c34787 100644 --- a/drivers/net/can/dev.c +++ b/drivers/net/can/dev.c @@ -566,7 +566,7 @@ static void can_restart(struct net_device *dev) cf->can_id |= CAN_ERR_RESTARTED; - netif_rx(skb); + netif_rx_ni(skb); stats->rx_packets++; stats->rx_bytes += cf->can_dlc;