make -C tools/testing/selftests TARGETS=net TEST_PROGS=drop_monitor_tests..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 12000 # selftests: net: drop_monitor_tests.sh # # Software drops test [ 4062.122247][T28622] drop_monitor: Initializing network drop monitor service # TEST: Capturing active software drops [ OK ] # TEST: Capturing inactive software drops [ OK ] [ 4078.442847][ T11] ref_tracker: net notrefcnt@ffff88800cc0b838 has 1/2 users at [ 4078.442847][ T11] sk_alloc+0x5a9/0x680 [ 4078.442847][ T11] inet6_create.part.0+0x293/0x1010 [ 4078.442847][ T11] __sock_create+0x232/0x5c0 [ 4078.442847][ T11] inet_ctl_sock_create+0x7b/0x200 [ 4078.442847][ T11] igmp6_net_init+0x37/0x410 [ 4078.442847][ T11] ops_init+0x9b/0x560 [ 4078.442847][ T11] setup_net+0x575/0xc30 [ 4078.442847][ T11] copy_net_ns+0x44e/0x730 [ 4078.442847][ T11] create_new_namespaces+0x35f/0x920 [ 4078.442847][ T11] unshare_nsproxy_namespaces+0x8b/0x1b0 [ 4078.442847][ T11] ksys_unshare+0x2ce/0x6f0 [ 4078.442847][ T11] __x64_sys_unshare+0x31/0x40 [ 4078.442847][ T11] do_syscall_64+0xc9/0x1e0 [ 4078.442847][ T11] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 4078.442847][ T11] [ 4078.446921][ T11] ref_tracker: net notrefcnt@ffff88800cc0b838 has 1/2 users at [ 4078.446921][ T11] sk_alloc+0x5a9/0x680 [ 4078.446921][ T11] inet6_create.part.0+0x293/0x1010 [ 4078.446921][ T11] __sock_create+0x232/0x5c0 [ 4078.446921][ T11] inet_ctl_sock_create+0x7b/0x200 [ 4078.446921][ T11] ndisc_net_init+0x82/0x200 [ 4078.446921][ T11] ops_init+0x9b/0x560 [ 4078.446921][ T11] setup_net+0x575/0xc30 [ 4078.446921][ T11] copy_net_ns+0x44e/0x730 [ 4078.446921][ T11] create_new_namespaces+0x35f/0x920 [ 4078.446921][ T11] unshare_nsproxy_namespaces+0x8b/0x1b0 [ 4078.446921][ T11] ksys_unshare+0x2ce/0x6f0 [ 4078.446921][ T11] __x64_sys_unshare+0x31/0x40 [ 4078.446921][ T11] do_syscall_64+0xc9/0x1e0 [ 4078.446921][ T11] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 4078.446921][ T11] [ 4078.450963][ T11] ------------[ cut here ]------------ [ 4078.451440][ T11] WARNING: CPU: 0 PID: 11 at lib/ref_tracker.c:179 ref_tracker_dir_exit+0x398/0x6a0 [ 4078.451987][ T11] Modules linked in: drop_monitor netdevsim cls_matchall bonding psample macsec ip6_gre ip_gre gre cls_u32 sch_htb act_gact cls_flower sch_ingress sha1_generic xfrm_user xt_policy nft_compat nf_tables libcrc32c vxlan mpls_iptunnel mpls_router [last unloaded: netdevsim] [ 4078.453392][ T11] CPU: 0 PID: 11 Comm: kworker/u8:0 Not tainted 6.8.0-rc3-virtme #1 [ 4078.453833][ T11] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 4078.454518][ T11] Workqueue: netns cleanup_net [ 4078.454773][ T11] RIP: 0010:ref_tracker_dir_exit+0x398/0x6a0 [ 4078.455146][ T11] Code: 38 00 0f 85 58 02 00 00 49 8b 04 24 4d 89 e6 4c 39 e5 0f 85 2a ff ff ff 48 8b 1c 24 48 8b 74 24 10 48 89 df e8 b9 74 ab 01 90 <0f> 0b 90 48 8d 6b 4c be 04 00 00 00 48 89 ef e8 84 07 95 ff 48 89 [ 4078.456180][ T11] RSP: 0018:ffffc900000bfb70 EFLAGS: 00010286 [ 4078.456537][ T11] RAX: 0000000000000006 RBX: ffff88800cc0b838 RCX: 1ffffffff15737e1 [ 4078.456996][ T11] RDX: 0000000000000000 RSI: 000000000 DETECTED CRASH, lowering timeout 0000000 RDI: ffffffff876b2b41 [ 4078.457475][ T11] RBP: ffff88800cc0b890 R08: 0000000000000001 R09: fffffbfff156bc86 [ 4078.457918][ T11] R10: ffffffff8ab5e437 R11: ffffc900000bf7b1 R12: ffff88800cc0b890 [ 4078.458351][ T11] R13: dead000000000100 R14: ffff88800cc0b890 R15: dffffc0000000000 [ 4078.458811][ T11] FS: 0000000000000000(0000) GS:ffff888035200000(0000) knlGS:0000000000000000 [ 4078.459312][ T11] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 4078.459703][ T11] CR2: 00007f9e2b83f000 CR3: 000000001af36004 CR4: 0000000000770ef0 [ 4078.460140][ T11] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 4078.460604][ T11] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 4078.461032][ T11] PKRU: 55555554 [ 4078.461246][ T11] Call Trace: [ 4078.461432][ T11] [ 4078.461630][ T11] ? __warn+0xcd/0x2d0 [ 4078.461850][ T11] ? ref_tracker_dir_exit+0x398/0x6a0 [ 4078.462160][ T11] ? report_bug+0x291/0x2e0 [ 4078.462418][ T11] ? handle_bug+0x3d/0x80 [ 4078.462679][ T11] ? exc_invalid_op+0x18/0x50 [ 4078.462927][ T11] ? asm_exc_invalid_op+0x1a/0x20 [ 4078.463255][ T11] ? _raw_spin_unlock_irqrestore+0x51/0x70 [ 4078.463579][ T11] ? ref_tracker_dir_exit+0x398/0x6a0 [ 4078.463901][ T11] ? __pfx_ref_tracker_dir_exit+0x10/0x10 [ 4078.464235][ T11] ? kfree+0xf2/0x2d0 [ 4078.464468][ T11] cleanup_net+0x7cf/0xb60 [ 4078.464746][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 4078.465091][ T11] ? __pfx_cleanup_net+0x10/0x10 [ 4078.465356][ T11] ? lock_acquire+0x1c1/0x220 [ 4078.465651][ T11] ? process_one_work+0x714/0x1310 [ 4078.465954][ T11] process_one_work+0x78c/0x1310 [ 4078.466231][ T11] ? hlock_class+0x4e/0x130 [ 4078.466516][ T11] ? __pfx_process_one_work+0x10/0x10 [ 4078.466816][ T11] ? assign_work+0x16c/0x240 [ 4078.467090][ T11] worker_thread+0x73d/0x1010 [ 4078.467351][ T11] ? __pfx_worker_thread+0x10/0x10 [ 4078.467667][ T11] kthread+0x28f/0x360 [ 4078.467884][ T11] ? __pfx_kthread+0x10/0x10 [ 4078.468158][ T11] ret_from_fork+0x31/0x70 [ 4078.468403][ T11] ? __pfx_kthread+0x10/0x10 [ 4078.468685][ T11] ret_from_fork_asm+0x1b/0x30 [ 4078.468956][ T11] [ 4078.469153][ T11] irq event stamp: 8003151 [ 4078.469400][ T11] hardirqs last enabled at (8003163): [] console_unlock+0x232/0x260 [ 4078.469931][ T11] hardirqs last disabled at (8003174): [] console_unlock+0x217/0x260 [ 4078.470456][ T11] softirqs last enabled at (8002408): [] __do_softirq+0x519/0x7ff [ 4078.470982][ T11] softirqs last disabled at (8002275): [] irq_exit_rcu+0x98/0xc0 [ 4078.471513][ T11] ---[ end trace 0000000000000000 ]--- # # Hardware drops test # TEST: Capturing active hardware drops [ OK ] # TEST: Capturing inactive hardware drops [ OK ] [ 4097.885675][ T11] ref_tracker: net notrefcnt@ffff88800cc08238 has 1/2 users at [ 4097.885675][ T11] sk_alloc+0x5a9/0x680 [ 4097.885675][ T11] inet6_create.part.0+0x293/0x1010 [ 4097.885675][ T11] __sock_create+0x232/0x5c0 [ 4097.885675][ T11] inet_ctl_sock_create+0x7b/0x200 [ 4097.885675][ T11] igmp6_net_init+0x37/0x410 [ 4097.885675][ T11] ops_init+0x9b/0x560 [ 4097.885675][ T11] setup_net+0x575/0xc30 [ 4097.885675][ T11] copy_net_ns+0x44e/0x730 [ 4097.885675][ T11] create_new_namespaces+0x35f/0x920 [ 4097.885675][ T11] unshare_nsproxy_namespaces+0x8b/0x1b0 [ 4097.885675][ T11] ksys_unshare+0x2ce/0x6f0 [ 4097.885675][ T11] __x64_sys_unshare+0x31/0x40 [ 4097.885675][ T11] do_syscall_64+0xc9/0x1e0 [ 4097.885675][ T11] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 4097.885675][ T11] [ 4097.889873][ T11] ref_tracker: net notrefcnt@ffff88800cc08238 has 1/2 users at [ 4097.889873][ T11] sk_alloc+0x5a9/0x680 [ 4097.889873][ T11] inet6_create.part.0+0x293/0x1010 [ 4097.889873][ T11] __sock_create+0x232/0x5c0 [ 4097.889873][ T11] inet_ctl_sock_create+0x7b/0x200 [ 4097.889873][ T11] ndisc_net_init+0x82/0x200 [ 4097.889873][ T11] ops_init+0x9b/0x560 [ 4097.889873][ T11] setup_net+0x575/0xc30 [ 4097.889873][ T11] copy_net_ns+0x44e/0x730 [ 4097.889873][ T11] create_new_namespaces+0x35f/0x920 [ 4097.889873][ T11] unshare_nsproxy_namespaces+0x8b/0x1b0 [ 4097.889873][ T11] ksys_unshare+0x2ce/0x6f0 [ 4097.889873][ T11] __x64_sys_unshare+0x31/0x40 [ 4097.889873][ T11] do_syscall_64+0xc9/0x1e0 [ 4097.889873][ T11] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 4097.889873][ T11] # # Tests passed: 4 # Tests failed: 0 # Cannot open network namespace "ns1-F2w9xh": No such file or directory ok 1 selftests: net: drop_monitor_tests.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__->