diff options
author | Eric Dumazet <edumazet@google.com> | 2024-05-02 16:17:00 +0000 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-05-06 18:30:00 -0700 |
commit | d8cac8568618dcb8a51af3db1103e8d4cc4aeea7 (patch) | |
tree | 96fa50da9c6f58844cef5991d32cea9da4f99bfd /net/unix/sysctl_net_unix.c | |
parent | a26ff37e624d12e28077e5b24d2b264f62764ad6 (diff) |
phonet: fix rtm_phonet_notify() skb allocation
fill_route() stores three components in the skb:
- struct rtmsg
- RTA_DST (u8)
- RTA_OIF (u32)
Therefore, rtm_phonet_notify() should use
NLMSG_ALIGN(sizeof(struct rtmsg)) +
nla_total_size(1) +
nla_total_size(4)
Fixes: f062f41d0657 ("Phonet: routing table Netlink interface")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Rémi Denis-Courmont <courmisch@gmail.com>
Link: https://lore.kernel.org/r/20240502161700.1804476-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions