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.24 [+2.24] # 2.24 [+0.00] ################################################################################ # 2.24 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.24 [+0.00] ################################################################################ # 2.54 [+0.29] name: vrf # 2.54 [+0.00] filename: (builtin) # 2.55 [+0.01] version: 1.1 # 2.55 [+0.00] alias: rtnl-link-vrf # 2.55 [+0.00] license: GPL # 2.55 [+0.00] file: drivers/net/vrf # 2.55 [+0.00] description: Device driver to instantiate VRF domains # 2.55 [+0.00] author: Shrijeet Mukherjee, David Ahern # 2.72 [+0.17] # 2.72 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 3.07 [+0.35] # 3.07 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 3.36 [+0.28] # 3.36 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 3.62 [+0.26] # 3.62 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 3.72 [+0.10] # 3.72 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 4.08 [+0.36] # 4.08 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 4.19 [+0.11] # 4.19 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 4.48 [+0.29] # 4.48 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 4.73 [+0.25] # 4.73 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 4.83 [+0.10] # 4.84 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 5.01 [+0.18] # 5.01 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 5.12 [+0.10] # 5.12 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 5.42 [+0.30] # 5.42 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 5.65 [+0.24] # 5.66 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 5.66 [+0.00] # 5.66 [+0.00] ################################################################################ # 5.66 [+0.01] TEST SECTION: VRF strict_mode test on testns network namespace # 5.67 [+0.00] ################################################################################ # 5.94 [+0.28] name: vrf # 5.94 [+0.00] filename: (builtin) # 5.95 [+0.01] version: 1.1 # 5.95 [+0.00] alias: rtnl-link-vrf # 5.96 [+0.00] license: GPL # 5.96 [+0.00] file: drivers/net/vrf # 5.96 [+0.00] description: Device driver to instantiate VRF domains # 5.96 [+0.00] author: Shrijeet Mukherjee, David Ahern # 6.23 [+0.27] # 6.23 [+0.00] TEST: testns-jV0YRu: net.vrf.strict_mode is available [ OK ] # 6.69 [+0.46] # 6.69 [+0.00] TEST: testns-jV0YRu: strict_mode=0 by default, 0 vrfs [ OK ] # 6.90 [+0.20] # 6.90 [+0.00] TEST: testns-jV0YRu: enable strict_mode (=1) [ OK ] # 7.21 [+0.31] # 7.21 [+0.00] TEST: testns-jV0YRu: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 7.47 [+0.26] # 7.47 [+0.00] TEST: testns-jV0YRu: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 7.83 [+0.36] # 7.83 [+0.00] TEST: testns-jV0YRu: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.19 [+0.36] # 8.19 [+0.00] TEST: testns-jV0YRu: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 8.51 [+0.32] # 8.51 [+0.00] TEST: testns-jV0YRu: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 8.72 [+0.22] # 8.72 [+0.00] TEST: testns-jV0YRu: disable strict_mode (=0) [ OK ] # 9.02 [+0.30] # 9.03 [+0.00] TEST: testns-jV0YRu: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 9.32 [+0.30] # 9.32 [+0.00] TEST: testns-jV0YRu: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 9.32 [+0.00] # 9.32 [+0.00] ################################################################################ # 9.32 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 9.33 [+0.00] ################################################################################ # 9.53 [+0.20] # 9.53 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 9.80 [+0.28] # 9.80 [+0.00] TEST: testns-jV0YRu: check strict_mode=0 [ OK ] # 9.98 [+0.18] # 9.98 [+0.00] TEST: testns-jV0YRu: remove vrf vrf101 [ OK ] # 10.19 [+0.21] # 10.19 [+0.00] TEST: testns-jV0YRu: remove vrf vrf102 [ OK ] # 10.29 [+0.10] # 10.29 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 10.48 [+0.19] # 10.48 [+0.00] TEST: testns-jV0YRu: enable strict_mode (=1) [ OK ] # 10.59 [+0.11] # 10.59 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.68 [+0.08] # 10.68 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.91 [+0.23] # 10.91 [+0.00] TEST: testns-jV0YRu: disable strict_mode (=0) [ OK ] # 11.13 [+0.22] # 11.13 [+0.00] TEST: testns-jV0YRu: disable strict_mode (=0) [ OK ] # 11.31 [+0.18] # 11.31 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 11.58 [+0.27] # 11.58 [+0.00] TEST: testns-jV0YRu: check strict_mode=0 [ OK ] # 12.44 [+0.86] # 12.45 [+0.00] Tests passed: 37 # 12.45 [+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__->