Files
linux/net/ipv4
Yuyang Huang aa4ad7c3f2 netlink: correct nlmsg size for multicast notifications
Corrected the netlink message size calculation for multicast group
join/leave notifications. The previous calculation did not account for
the inclusion of both IPv4/IPv6 addresses and ifa_cacheinfo in the
payload. This fix ensures that the allocated message size is
sufficient to hold all necessary information.

This patch also includes the following improvements:
* Uses GFP_KERNEL instead of GFP_ATOMIC when holding the RTNL mutex.
* Uses nla_total_size(sizeof(struct in6_addr)) instead of
  nla_total_size(16).
* Removes unnecessary EXPORT_SYMBOL().

Fixes: 2c2b61d213 ("netlink: add IGMP/MLD join/leave notifications")
Cc: Maciej Żenczykowski <maze@google.com>
Cc: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: Yuyang Huang <yuyanghuang@google.com>
Link: https://patch.msgid.link/20241221100007.1910089-1-yuyanghuang@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-12-23 10:26:43 -08:00
..
2024-11-11 10:32:06 -08:00
2024-09-11 20:44:31 -07:00
2024-12-15 13:13:40 -08:00
2024-09-09 17:21:47 -07:00
2024-12-19 19:24:47 -08:00
2024-12-16 18:13:44 -08:00
2024-07-30 18:35:12 -07:00
2024-01-04 10:23:10 -08:00
2024-11-11 10:32:06 -08:00
2021-05-17 15:29:35 -07:00
2024-12-16 18:13:44 -08:00
2024-06-06 11:52:52 +02:00
2022-12-20 03:13:45 +01:00
2023-09-14 16:16:36 +02:00