Searched hist:"155 fb43b70b5fce341347a77d1af2765d1e8fbb8" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/net/core/ |
H A D | rtnetlink.c | diff 155fb43b70b5fce341347a77d1af2765d1e8fbb8 Wed Mar 09 12:29:14 CST 2022 Jakub Kicinski <kuba@kernel.org> net: limit altnames to 64k total
Property list (altname is a link "property") is wrapped in a nlattr. nlattrs length is 16bit so practically speaking the list of properties can't be longer than that, otherwise user space would have to interpret broken netlink messages.
Prevent the problem from occurring by checking the length of the property list before adding new entries.
Reported-by: George Shuklin <george.shuklin@gmail.com> Reviewed-by: David Ahern <dsahern@kernel.org> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|