summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorXin Long <lucien.xin@gmail.com>2023-05-31 19:01:42 +0300
committerJakub Kicinski <kuba@kernel.org>2023-06-01 19:59:43 +0300
commitb0ad3c179059089d809b477a1d445c1183a7b8fe (patch)
tree87dea0eba34721617fdedfba7509c744b13b4cbc /tools/perf/scripts/python/export-to-sqlite.py
parentabaf8d51b0cedb16af51fb6b2189370d7515977c (diff)
downloadlinux-b0ad3c179059089d809b477a1d445c1183a7b8fe.tar.xz
rtnetlink: call validate_linkmsg in rtnl_create_link
validate_linkmsg() was introduced by commit 1840bb13c22f5b ("[RTNL]: Validate hardware and broadcast address attribute for RTM_NEWLINK") to validate tb[IFLA_ADDRESS/BROADCAST] for existing links. The same check should also be done for newly created links. This patch adds validate_linkmsg() call in rtnl_create_link(), to avoid the invalid address set when creating some devices like: # ip link add dummy0 type dummy # ip link add link dummy0 name mac0 address 01:02 type macsec Fixes: 0e06877c6fdb ("[RTNETLINK]: rtnl_link: allow specifying initial device address") 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 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions