Patch "net: mvpp2: use slab_build_skb for oversized frames" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    net: mvpp2: use slab_build_skb for oversized frames

to the 6.6-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-mvpp2-use-slab_build_skb-for-oversized-frames.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 148f88a7f79ec46f7531ea9e9a8236990a095c0c
Author: Aryan Srivastava <aryan.srivastava@xxxxxxxxxxxxxxxxxxx>
Date:   Thu Jun 13 14:49:00 2024 +1200

    net: mvpp2: use slab_build_skb for oversized frames
    
    [ Upstream commit 4467c09bc7a66a17ffd84d6262d48279b26106ea ]
    
    Setting frag_size to 0 to indicate kmalloc has been deprecated,
    use slab_build_skb directly.
    
    Fixes: ce098da1497c ("skbuff: Introduce slab_build_skb()")
    Signed-off-by: Aryan Srivastava <aryan.srivastava@xxxxxxxxxxxxxxxxxxx>
    Reviewed-by: Kees Cook <kees@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20240613024900.3842238-1-aryan.srivastava@xxxxxxxxxxxxxxxxxxx
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
index aca17082b9eca..05f4aa11b95c3 100644
--- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
+++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
@@ -4001,7 +4001,10 @@ static int mvpp2_rx(struct mvpp2_port *port, struct napi_struct *napi,
 			}
 		}
 
-		skb = build_skb(data, frag_size);
+		if (frag_size)
+			skb = build_skb(data, frag_size);
+		else
+			skb = slab_build_skb(data);
 		if (!skb) {
 			netdev_warn(port->dev, "skb build failed\n");
 			goto err_drop_frame;




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux