make -C tools/testing/selftests TARGETS="net" TEST_PROGS=vrf_strict_mode_ttest.sh TEST_GEN_PROGS="" run_tests make: Entering directory '/home/virtme/testing-3/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing-3/tools/testing/selftests/net' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-3/tools/testing/selftests/net' make[1]: Entering directory '/home/virtme/testing-3/tools/testing/selftests/net/lib' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-3/tools/testing/selftests/net/lib' make[1]: Entering directory '/home/virtme/testing-3/tools/testing/selftests/net' TAP version 13 1..1 # overriding timeout to 7200 # selftests: net: vrf_strict_mode_test.sh # 2.14 [+2.14] # 2.14 [+0.00] ################################################################################ # 2.14 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.14 [+0.00] ################################################################################ # 2.42 [+0.28] name: vrf # 2.42 [+0.00] filename: (builtin) # 2.43 [+0.01] version: 1.1 # 2.43 [+0.00] alias: rtnl-link-vrf # 2.43 [+0.00] license: GPL # 2.43 [+0.00] file: drivers/net/vrf # 2.44 [+0.00] description: Device driver to instantiate VRF domains # 2.44 [+0.00] author: Shrijeet Mukherjee, David Ahern # 2.62 [+0.18] # 2.62 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 2.95 [+0.33] # 2.95 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 3.28 [+0.33] # 3.28 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 3.53 [+0.25] # 3.53 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 3.63 [+0.10] # 3.63 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 3.98 [+0.35] # 3.98 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 4.08 [+0.10] # 4.08 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 4.35 [+0.27] # 4.35 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 4.59 [+0.24] # 4.59 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 4.69 [+0.10] # 4.69 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 4.88 [+0.19] # 4.88 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 4.97 [+0.09] # 4.97 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 5.26 [+0.28] # 5.26 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 5.48 [+0.22] # 5.50 [+0.01] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 5.50 [+0.00] # 5.50 [+0.00] ################################################################################ # 5.50 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 5.50 [+0.00] ################################################################################ # 5.77 [+0.27] name: vrf # 5.77 [+0.00] filename: (builtin) # 5.78 [+0.01] version: 1.1 # 5.78 [+0.00] alias: rtnl-link-vrf # 5.79 [+0.00] license: GPL # 5.79 [+0.00] file: drivers/net/vrf # 5.79 [+0.00] description: Device driver to instantiate VRF domains # 5.79 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.07 [+0.28] # 6.07 [+0.00] TEST: testns-kiUW1A: net.vrf.strict_mode is available [ OK ] # 6.53 [+0.46] # 6.53 [+0.00] TEST: testns-kiUW1A: strict_mode=0 by default, 0 vrfs [ OK ] # 6.73 [+0.20] # 6.73 [+0.00] TEST: testns-kiUW1A: enable strict_mode (=1) [ OK ] # 7.04 [+0.31] # 7.04 [+0.00] TEST: testns-kiUW1A: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.34 [+0.30] # 7.34 [+0.00] TEST: testns-kiUW1A: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 7.72 [+0.38] # 7.72 [+0.00] TEST: testns-kiUW1A: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.06 [+0.34] # 8.06 [+0.00] TEST: testns-kiUW1A: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 8.38 [+0.32] # 8.38 [+0.00] TEST: testns-kiUW1A: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 8.58 [+0.20] # 8.58 [+0.00] TEST: testns-kiUW1A: disable strict_mode (=0) [ OK ] # 8.87 [+0.29] # 8.87 [+0.00] TEST: testns-kiUW1A: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 9.21 [+0.34] # 9.21 [+0.00] TEST: testns-kiUW1A: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 9.21 [+0.00] # 9.21 [+0.00] ################################################################################ # 9.21 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 9.21 [+0.00] ################################################################################ # 9.39 [+0.17] # 9.39 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 9.68 [+0.29] # 9.68 [+0.00] TEST: testns-kiUW1A: check strict_mode=0 [ OK ] # 9.85 [+0.18] # 9.85 [+0.00] TEST: testns-kiUW1A: remove vrf vrf101 [ OK ] # 10.04 [+0.19] # 10.04 [+0.00] TEST: testns-kiUW1A: remove vrf vrf102 [ OK ] # 10.14 [+0.10] # 10.14 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 10.34 [+0.20] # 10.34 [+0.00] TEST: testns-kiUW1A: enable strict_mode (=1) [ OK ] # 10.43 [+0.09] # 10.43 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.53 [+0.10] # 10.53 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.74 [+0.20] # 10.74 [+0.00] TEST: testns-kiUW1A: disable strict_mode (=0) [ OK ] # 10.94 [+0.20] # 10.94 [+0.00] TEST: testns-kiUW1A: disable strict_mode (=0) [ OK ] # 11.13 [+0.19] # 11.13 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 11.41 [+0.28] # 11.41 [+0.00] TEST: testns-kiUW1A: check strict_mode=0 [ OK ] # 12.26 [+0.85] # 12.26 [+0.00] Tests passed: 37 # 12.26 [+0.00] Tests failed: 0 ok 1 selftests: net: vrf_strict_mode_test.sh make[1]: Leaving directory '/home/virtme/testing-3/tools/testing/selftests/net' make: Leaving directory '/home/virtme/testing-3/tools/testing/selftests' xx__-> echo $? 0 xx__-> echo scan > /sys/kernel/debug/kmemleak && cat /sys/kernel/debug/kmemleak xx__-> echo scan > /sys/kernel/debug/kmemleak && cat /sys/kernel/debug/kmemleak xx__->