diff options
author | Xin Long <lucien.xin@gmail.com> | 2023-05-31 12:01:43 -0400 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-06-01 09:59:44 -0700 |
commit | fef5b228dd38378148bc850f7e69a7783f3b95a4 (patch) | |
tree | f8b1814f6110dc62300f95cf2612d7bb05288b49 /Documentation/leds | |
parent | b0ad3c179059089d809b477a1d445c1183a7b8fe (diff) |
rtnetlink: move IFLA_GSO_ tb check to validate_linkmsg
These IFLA_GSO_* tb check should also be done for the new created link,
otherwise, they can be set to a huge value when creating links:
# ip link add dummy1 gso_max_size 4294967295 type dummy
# ip -d link show dummy1
dummy addrgenmode eui64 ... gso_max_size 4294967295
Fixes: 46e6b992c250 ("rtnetlink: allow GSO maximums to be set on device creation")
Fixes: 9eefedd58ae1 ("net: add gso_ipv4_max_size and gro_ipv4_max_size per device")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'Documentation/leds')
0 files changed, 0 insertions, 0 deletions