summaryrefslogtreecommitdiff
path: root/rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2026-07-01 12:23:29 +0000
committerPaolo Abeni <pabeni@redhat.com>2026-07-06 13:01:24 +0200
commit9e05e91a9a847ed57926414bd7c2c5e54d6c56c6 (patch)
treedf914cab2f1a384e66968724d2b5cd2b2d10f7ee /rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git
parent9d160b35cc34a2ba8229d07651468a7848325135 (diff)
amt: fix size calculation in amt_get_size()
amt_get_size() incorrectly used sizeof(struct iphdr) for the sizes of IFLA_AMT_DISCOVERY_IP, IFLA_AMT_REMOTE_IP, and IFLA_AMT_LOCAL_IP. These attributes contain IPv4 addresses (__be32), not full IP headers. Replace sizeof(struct iphdr) with sizeof(__be32) to avoid over-allocating netlink message space. Fixes: b9022b53adad ("amt: add control plane of amt interface") Signed-off-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com> Link: https://patch.msgid.link/20260701122329.3562825-1-edumazet@google.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'rust/zerocopy/src/pointer/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions