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.24 [+1.24] # 1.24 [+0.00] ################################################################################ # 1.24 [+0.00] TEST SECTION: VRF strict_mode test on init network namespace # 1.24 [+0.00] ################################################################################ # 1.42 [+0.17] name: vrf # 1.42 [+0.00] filename: (builtin) # 1.43 [+0.01] version: 1.1 # 1.43 [+0.00] alias: rtnl-link-vrf # 1.43 [+0.00] license: GPL # 1.43 [+0.00] file: drivers/net/vrf # 1.44 [+0.00] description: Device driver to instantiate VRF domains # 1.44 [+0.00] author: Shrijeet Mukherjee, David Ahern # 1.57 [+0.13] # 1.57 [+0.00] TEST: init: net.vrf.strict_mode is available [ OK ] # 1.78 [+0.21] # 1.78 [+0.00] TEST: init: strict_mode=0 by default, 0 vrfs [ OK ] # 1.99 [+0.21] # 1.99 [+0.00] TEST: init: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 2.14 [+0.15] # 2.14 [+0.00] TEST: init: vrf vrf100 up, addr 172.16.100.1/24 [ OK ] # 2.20 [+0.06] # 2.20 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 2.45 [+0.24] # 2.45 [+0.00] TEST: init: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 2.53 [+0.09] # 2.53 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 2.73 [+0.20] # 2.73 [+0.00] TEST: init: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 2.90 [+0.16] # 2.90 [+0.00] TEST: init: vrf vrf101 up, addr 172.16.101.1/24 [ OK ] # 2.96 [+0.07] # 2.96 [+0.00] TEST: init: CANNOT enable strict_mode [ OK ] # 3.13 [+0.17] # 3.13 [+0.00] TEST: init: remove vrf vrf101 [ OK ] # 3.21 [+0.08] # 3.21 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 3.41 [+0.20] # 3.41 [+0.00] TEST: init: add vrf vrf102, 1 vrfs for table 102 [ OK ] # 3.58 [+0.16] # 3.58 [+0.00] TEST: init: vrf vrf102 up, addr 172.16.102.1/24 [ OK ] # 3.58 [+0.00] # 3.58 [+0.00] ################################################################################ # 3.58 [+0.00] TEST SECTION: VRF strict_mode test on testns network namespace # 3.58 [+0.00] ################################################################################ # 3.76 [+0.18] name: vrf # 3.77 [+0.00] filename: (builtin) # 3.77 [+0.01] version: 1.1 # 3.78 [+0.00] alias: rtnl-link-vrf # 3.78 [+0.00] license: GPL # 3.78 [+0.00] file: drivers/net/vrf # 3.78 [+0.00] description: Device driver to instantiate VRF domains # 3.78 [+0.00] author: Shrijeet Mukherjee, David Ahern # 3.97 [+0.19] # 3.97 [+0.00] TEST: testns-TFx8G9: net.vrf.strict_mode is available [ OK ] # 4.23 [+0.26] # 4.23 [+0.00] TEST: testns-TFx8G9: strict_mode=0 by default, 0 vrfs [ OK ] # 4.38 [+0.14] # 4.38 [+0.00] TEST: testns-TFx8G9: enable strict_mode (=1) [ OK ] # 4.56 [+0.18] # 4.56 [+0.00] TEST: testns-TFx8G9: add vrf vrf100, 1 vrfs for table 100 [ OK ] # 4.72 [+0.16] # 4.72 [+0.00] TEST: testns-TFx8G9: vrf vrf100 up, addr 10.0.100.1/24 [ OK ] # 4.98 [+0.26] # 4.98 [+0.00] TEST: testns-TFx8G9: CANNOT add vrf vrf101, 1 vrfs for table 100 [ OK ] # 5.23 [+0.25] # 5.23 [+0.00] TEST: testns-TFx8G9: CANNOT add vrf vrf102, 1 vrfs for table 100 [ OK ] # 5.43 [+0.20] # 5.43 [+0.00] TEST: testns-TFx8G9: add vrf vrf200, 1 vrfs for table 200 [ OK ] # 5.57 [+0.14] # 5.57 [+0.00] TEST: testns-TFx8G9: disable strict_mode (=0) [ OK ] # 5.77 [+0.21] # 5.77 [+0.00] TEST: testns-TFx8G9: add vrf vrf101, 2 vrfs for table 100 [ OK ] # 5.98 [+0.21] # 5.98 [+0.00] TEST: testns-TFx8G9: add vrf vrf102, 3 vrfs for table 100 [ OK ] # 5.99 [+0.00] # 5.99 [+0.00] ################################################################################ # 5.99 [+0.00] TEST SECTION: VRF strict_mode test mixing init and testns network namespaces # 5.99 [+0.00] ################################################################################ # 6.11 [+0.11] # 6.11 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 6.32 [+0.21] # 6.32 [+0.00] TEST: testns-TFx8G9: check strict_mode=0 [ OK ] # 6.46 [+0.14] # 6.46 [+0.00] TEST: testns-TFx8G9: remove vrf vrf101 [ OK ] # 6.60 [+0.14] # 6.61 [+0.00] TEST: testns-TFx8G9: remove vrf vrf102 [ OK ] # 6.68 [+0.07] # 6.68 [+0.00] TEST: init: disable strict_mode (=0) [ OK ] # 6.82 [+0.14] # 6.82 [+0.00] TEST: testns-TFx8G9: enable strict_mode (=1) [ OK ] # 6.88 [+0.07] # 6.89 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 6.96 [+0.08] # 6.96 [+0.00] TEST: init: enable strict_mode (=1) [ OK ] # 7.10 [+0.14] # 7.10 [+0.00] TEST: testns-TFx8G9: disable strict_mode (=0) [ OK ] # 7.26 [+0.16] # 7.26 [+0.00] TEST: testns-TFx8G9: disable strict_mode (=0) [ OK ] # 7.39 [+0.13] # 7.39 [+0.00] TEST: init: check strict_mode=1 [ OK ] # 7.57 [+0.18] # 7.57 [+0.00] TEST: testns-TFx8G9: check strict_mode=0 [ OK ] # 8.11 [+0.54] # 8.11 [+0.00] Tests passed: 37 # 8.11 [+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 unreferenced object 0x00042d20 (size 64): comm "swapper/0", pid 0, jiffies 4294667296 hex dump (first 32 bytes on cpu 0): 00 00 00 00 00 00 00 00 00 00 06 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace (crc 0): pcpu_alloc_noprof+0x4ad/0xab0 setup_zone_pageset+0x30/0x290 setup_per_cpu_pageset+0x6a/0x1f0 start_kernel+0x2a4/0x410 x86_64_start_reservations+0x18/0x30 x86_64_start_kernel+0xba/0x110 common_startup_64+0x12c/0x138 unreferenced object 0x00043040 (size 48): comm "swapper/0", pid 0, jiffies 4294667296 hex dump (first 32 bytes on cpu 0): 1e 04 01 1e f2 00 00 e4 00 00 00 00 00 00 00 00 ................ 00 00 00 17 10 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace (crc 0): pcpu_alloc_noprof+0x4ad/0xab0 setup_per_cpu_pageset+0xd2/0x1f0 start_kernel+0x2a4/0x410 x86_64_start_reservations+0x18/0x30 x86_64_start_kernel+0xba/0x110 comm DETECTED CRASH, lowering timeout on_startup_64+0x12c/0x138 xx__->