summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2017-10-04 16:22:59 +0200
committerDavid S. Miller <davem@davemloft.net>2017-10-04 10:33:59 -0700
commite9b871ee098dfb91780e13bfc6e91e82c7b4ad73 (patch)
tree65fca23b103360accfb6b687059aabd429ec84c5 /tools
parent5c45121dc39026ab2139910e57cf933fd57d30f2 (diff)
downloadlinux-e9b871ee098dfb91780e13bfc6e91e82c7b4ad73.tar.bz2
selftests: rtnetlink: try concurrent change of ifalias
to make sure this is serialized correctly. Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testing/selftests/net/rtnetlink.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/rtnetlink.sh b/tools/testing/selftests/net/rtnetlink.sh
index 62c87da92770..e8c86c416ed0 100755
--- a/tools/testing/selftests/net/rtnetlink.sh
+++ b/tools/testing/selftests/net/rtnetlink.sh
@@ -278,6 +278,12 @@ kci_test_ifalias()
ip link show "$devdummy" | grep -q "alias $namewant"
check_fail $?
+ for i in $(seq 1 100); do
+ uuidgen > "$syspathname" &
+ done
+
+ wait
+
# re-add the alias -- kernel should free mem when dummy dev is removed
ip link set dev "$devdummy" alias "$namewant"
check_err $?