This is a note to let you know that I've just added the patch titled net: enable memcg accounting for veth queues to the 5.15-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: net-enable-memcg-accounting-for-veth-queues.patch and it can be found in the queue-5.15 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. commit c9e4dec79cee5595362c0b72b84e612297ad973b Author: Vasily Averin <vasily.averin@xxxxxxxxx> Date: Fri Apr 29 08:17:35 2022 +0300 net: enable memcg accounting for veth queues [ Upstream commit 961c6136359eef38a8c023d02028fdcd123f02a6 ] veth netdevice defines own rx queues and allocates array containing up to 4095 ~750-bytes-long 'struct veth_rq' elements. Such allocation is quite huge and should be accounted to memcg. Signed-off-by: Vasily Averin <vvs@xxxxxxxxxx> Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx> Stable-dep-of: 1ce7d306ea63 ("veth: try harder when allocating queue memory") Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx> diff --git a/drivers/net/veth.c b/drivers/net/veth.c index 85c3e12f83627..87cee614618ca 100644 --- a/drivers/net/veth.c +++ b/drivers/net/veth.c @@ -1303,7 +1303,7 @@ static int veth_alloc_queues(struct net_device *dev) struct veth_priv *priv = netdev_priv(dev); int i; - priv->rq = kcalloc(dev->num_rx_queues, sizeof(*priv->rq), GFP_KERNEL); + priv->rq = kcalloc(dev->num_rx_queues, sizeof(*priv->rq), GFP_KERNEL_ACCOUNT); if (!priv->rq) return -ENOMEM;