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 # 1.53 [+1.53] # 1.53 [+0.00] ################################################################################ # 1.54 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 1.54 [+0.00] ################################################################################ # 1.76 [+0.22] name: vrf # 1.76 [+0.00] filename: (builtin) # 1.77 [+0.01] version: 1.1 # 1.77 [+0.00] alias: rtnl-link-vrf # 1.77 [+0.00] license: GPL # 1.77 [+0.00] file: drivers/net/vrf # 1.77 [+0.00] description: Device driver to instantiate VRF domains # 1.78 [+0.00] author: Shrijeet Mukherjee, David Ahern # 1.94 [+0.16] # 1.94 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 2.21 [+0.27] # 2.21 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 2.45 [+0.25] # 2.46 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 2.68 [+0.22] # 2.68 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 2.75 [+0.07] # 2.75 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 3.06 [+0.31] # 3.06 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 3.13 [+0.08] # 3.13 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 3.37 [+0.23] # 3.37 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 3.57 [+0.20] # 3.57 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 3.64 [+0.07] # 3.64 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 3.81 [+0.17] # 3.81 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 3.89 [+0.08] # 3.89 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 4.16 [+0.27] # 4.16 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 4.38 [+0.22] # 4.38 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 4.38 [+0.00] # 4.38 [+0.00] ################################################################################ # 4.38 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 4.39 [+0.00] ################################################################################ # 4.60 [+0.22] name: vrf # 4.60 [+0.00] filename: (builtin) # 4.62 [+0.01] version: 1.1 # 4.62 [+0.00] alias: rtnl-link-vrf # 4.62 [+0.00] license: GPL # 4.62 [+0.00] file: drivers/net/vrf # 4.62 [+0.00] description: Device driver to instantiate VRF domains # 4.62 [+0.00] author: Shrijeet Mukherjee, David Ahern # 4.84 [+0.22] # 4.84 [+0.00] TEST: testns-ycGXlq: net.vrf.strict_mode is available [ OK ] # 5.23 [+0.38] # 5.23 [+0.00] TEST: testns-ycGXlq: strict_mode=0 by default, 0 vrfs [ OK ] # 5.43 [+0.21] # 5.44 [+0.00] TEST: testns-ycGXlq: enable strict_mode (=1) [ OK ] # 5.67 [+0.23] # 5.67 [+0.00] TEST: testns-ycGXlq: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 5.86 [+0.19] # 5.86 [+0.00] TEST: testns-ycGXlq: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 6.16 [+0.30] # 6.16 [+0.00] TEST: testns-ycGXlq: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 6.50 [+0.34] # 6.50 [+0.00] TEST: testns-ycGXlq: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 6.77 [+0.27] # 6.77 [+0.00] TEST: testns-ycGXlq: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 6.95 [+0.18] # 6.95 [+0.00] TEST: testns-ycGXlq: disable strict_mode (=0) [ OK ] # 7.19 [+0.24] # 7.19 [+0.00] TEST: testns-ycGXlq: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 7.48 [+0.29] # 7.48 [+0.00] TEST: testns-ycGXlq: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 7.48 [+0.00] # 7.48 [+0.00] ################################################################################ # 7.49 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 7.49 [+0.00] ################################################################################ # 7.63 [+0.14] # 7.63 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 7.87 [+0.24] # 7.87 [+0.00] TEST: testns-ycGXlq: check strict_mode=0 [ OK ] # 8.02 [+0.15] # 8.02 [+0.00] TEST: testns-ycGXlq: remove vrf vrf101 [ OK ] # 8.16 [+0.14] # 8.16 [+0.00] TEST: testns-ycGXlq: remove vrf vrf102 [ OK ] # 8.24 [+0.08] # 8.24 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 8.40 [+0.15] # 8.40 [+0.00] TEST: testns-ycGXlq: enable strict_mode (=1) [ OK ] # 8.46 [+0.07] # 8.46 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.58 [+0.12] # 8.58 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 8.72 [+0.14] # 8.72 [+0.00] TEST: testns-ycGXlq: disable strict_mode (=0) [ OK ] # 8.86 [+0.14] # 8.86 [+0.00] TEST: testns-ycGXlq: disable strict_mode (=0) [ OK ] # 9.00 [+0.14] # 9.00 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 9.24 [+0.24] # 9.24 [+0.00] TEST: testns-ycGXlq: check strict_mode=0 [ OK ] # 9.96 [+0.73] # 9.96 [+0.00] Tests passed: 37 # 9.96 [+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__->