Patch "vxlan: Add missing entries to vxlan_get_size()" has been added to the 6.5-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

    vxlan: Add missing entries to vxlan_get_size()

to the 6.5-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:
     vxlan-add-missing-entries-to-vxlan_get_size.patch
and it can be found in the queue-6.5 subdirectory.

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



commit 23ad56b68c2866d8872d8e63583cb289934d0472
Author: Benjamin Poirier <bpoirier@xxxxxxxxxx>
Date:   Mon Sep 18 11:40:15 2023 -0400

    vxlan: Add missing entries to vxlan_get_size()
    
    [ Upstream commit 4e4b1798cc90e376b8b61d0098b4093898a32227 ]
    
    There are some attributes added by vxlan_fill_info() which are not
    accounted for in vxlan_get_size(). Add them.
    
    I didn't find a way to trigger an actual problem from this miscalculation
    since there is usually extra space in netlink size calculations like
    if_nlmsg_size(); but maybe I just didn't search long enough.
    
    Fixes: 3511494ce2f3 ("vxlan: Group Policy extension")
    Fixes: e1e5314de08b ("vxlan: implement GPE")
    Fixes: 0ace2ca89cbd ("vxlan: Use checksum partial with remote checksum offload")
    Fixes: f9c4bb0b245c ("vxlan: vni filtering support on collect metadata device")
    Signed-off-by: Benjamin Poirier <bpoirier@xxxxxxxxxx>
    Acked-by: Nikolay Aleksandrov <razor@xxxxxxxxxxxxx>
    Reviewed-by: Ido Schimmel <idosch@xxxxxxxxxx>
    Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/vxlan/vxlan_core.c b/drivers/net/vxlan/vxlan_core.c
index c9a9373733c01..4b2db14472e6c 100644
--- a/drivers/net/vxlan/vxlan_core.c
+++ b/drivers/net/vxlan/vxlan_core.c
@@ -4296,6 +4296,10 @@ static size_t vxlan_get_size(const struct net_device *dev)
 		nla_total_size(sizeof(__u8)) + /* IFLA_VXLAN_REMCSUM_TX */
 		nla_total_size(sizeof(__u8)) + /* IFLA_VXLAN_REMCSUM_RX */
 		nla_total_size(sizeof(__u8)) + /* IFLA_VXLAN_LOCALBYPASS */
+		nla_total_size(0) + /* IFLA_VXLAN_GBP */
+		nla_total_size(0) + /* IFLA_VXLAN_GPE */
+		nla_total_size(0) + /* IFLA_VXLAN_REMCSUM_NOPARTIAL */
+		nla_total_size(sizeof(__u8)) + /* IFLA_VXLAN_VNIFILTER */
 		0;
 }
 



[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