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' TAP version 13 1..1 # overriding timeout to 7200 # selftests: net: vrf_strict_mode_test.sh # 2.87 [+2.87] # 2.87 [+0.00] ################################################################################ # 2.88 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 2.88 [+0.00] ################################################################################ # 3.24 [+0.36] name: vrf # 3.24 [+0.00] filename: (builtin) # 6.91 [+3.67] version: 1.1 # 6.91 [+0.00] alias: rtnl-link-vrf # 6.91 [+0.00] license: GPL # 6.91 [+0.00] file: drivers/net/vrf # 6.91 [+0.00] description: Device driver to instantiate VRF domains # 6.92 [+0.00] author: Shrijeet Mukherjee, David Ahern # 7.18 [+0.26] # 7.18 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 7.66 [+0.49] # 7.66 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 7.99 [+0.32] # 7.99 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 8.29 [+0.30] # 8.29 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 8.47 [+0.18] # 8.47 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.82 [+0.35] # 8.82 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 8.99 [+0.16] # 8.99 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 9.37 [+0.38] # 9.37 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 9.71 [+0.34] # 9.71 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 9.87 [+0.16] # 9.87 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 10.12 [+0.26] # 10.12 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 10.28 [+0.16] # 10.28 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 10.61 [+0.33] # 10.61 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 10.96 [+0.35] # 10.96 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 10.96 [+0.00] # 10.96 [+0.00] ################################################################################ # 10.97 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 10.97 [+0.00] ################################################################################ # 11.31 [+0.34] name: vrf # 11.31 [+0.00] filename: (builtin) # 14.57 [+3.26] version: 1.1 # 14.57 [+0.00] alias: rtnl-link-vrf # 14.57 [+0.00] license: GPL # 14.57 [+0.00] file: drivers/net/vrf # 14.57 [+0.00] description: Device driver to instantiate VRF domains # 14.57 [+0.00] author: Shrijeet Mukherjee, David Ahern # 15.01 [+0.44] # 15.01 [+0.00] TEST: testns-CWBQjK: net.vrf.strict_mode is available [ OK ] # 15.61 [+0.59] # 15.61 [+0.00] TEST: testns-CWBQjK: strict_mode=0 by default, 0 vrfs [ OK ] # 15.92 [+0.32] # 15.92 [+0.00] TEST: testns-CWBQjK: enable strict_mode (=1) [ OK ] # 16.26 [+0.33] # 16.26 [+0.00] TEST: testns-CWBQjK: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 16.60 [+0.35] # 16.60 [+0.00] TEST: testns-CWBQjK: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 16.98 [+0.37] # 16.98 [+0.00] TEST: testns-CWBQjK: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 17.37 [+0.39] # 17.37 [+0.00] TEST: testns-CWBQjK: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 17.69 [+0.32] # 17.69 [+0.00] TEST: testns-CWBQjK: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 18.02 [+0.33] # 18.02 [+0.00] TEST: testns-CWBQjK: disable strict_mode (=0) [ OK ] # 18.38 [+0.35] # 18.38 [+0.00] TEST: testns-CWBQjK: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 18.71 [+0.33] # 18.71 [+0.00] TEST: testns-CWBQjK: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 18.71 [+0.00] # 18.71 [+0.00] ################################################################################ # 18.71 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 18.72 [+0.00] ################################################################################ # 18.97 [+0.25] # 18.97 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 19.41 [+0.44] # 19.41 [+0.00] TEST: testns-CWBQjK: check strict_mode=0 [ OK ] # 19.66 [+0.25] # 19.66 [+0.00] TEST: testns-CWBQjK: remove vrf vrf101 [ OK ] # 19.87 [+0.22] # 19.87 [+0.00] TEST: testns-CWBQjK: remove vrf vrf102 [ OK ] # 20.02 [+0.15] # 20.02 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 20.33 [+0.30] # 20.33 [+0.00] TEST: testns-CWBQjK: enable strict_mode (=1) [ OK ] # 20.49 [+0.16] # 20.49 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 20.63 [+0.14] # 20.63 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 20.94 [+0.30] # 20.94 [+0.00] TEST: testns-CWBQjK: disable strict_mode (=0) [ OK ] # 21.25 [+0.32] # 21.25 [+0.00] TEST: testns-CWBQjK: disable strict_mode (=0) [ OK ] # 21.51 [+0.26] # 21.51 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 21.96 [+0.45] # 21.96 [+0.00] TEST: testns-CWBQjK: check strict_mode=0 [ OK ] # 22.97 [+1.01] # 22.97 [+0.00] Tests passed: 37 # 22.97 [+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__->