make -C tools/testing/selftests TARGETS=net/forwarding TEST_PROGS=q_in_vnii_ipv6.sh TEST_GEN_PROGS="" run_tests make: Entering directory '/home/virtme/testing-4/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing-4/tools/testing/selftests/net/forwarding' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-4/tools/testing/selftests/net/forwarding' make[1]: Entering directory '/home/virtme/testing-4/tools/testing/selftests/net/forwarding' TAP version 13 1..1 # timeout set to 10800 # selftests: net/forwarding: q_in_vni_ipv6.sh [ 309.910913][ T2201] br1: port 1(vx100) entered blocking state [ 309.911275][ T2201] br1: port 1(vx100) entered disabled state [ 309.911625][ T2201] vx100: entered allmulticast mode [ 309.913667][ T2201] vx100: entered promiscuous mode [ 309.915424][ T2201] br1: port 1(vx100) entered blocking state [ 309.915747][ T2201] br1: port 1(vx100) entered forwarding state [ 310.226650][ T2203] br1: port 2(veth1) entered blocking state [ 310.226992][ T2203] br1: port 2(veth1) entered disabled state [ 310.227812][ T2203] veth1: entered allmulticast mode [ 310.229884][ T2203] veth1: entered promiscuous mode [ 310.401592][ T47] br1: port 2(veth1) entered blocking state [ 310.401938][ T47] br1: port 2(veth1) entered forwarding state [ 310.705458][ T2206] br1: port 3(veth2) entered blocking state [ 310.705808][ T2206] br1: port 3(veth2) entered disabled state [ 310.707125][ T2206] veth2: entered allmulticast mode [ 310.709185][ T2206] veth2: entered promiscuous mode [ 310.871578][ T529] br1: port 3(veth2) entered blocking state [ 310.871924][ T529] br1: port 3(veth2) entered forwarding state [ 316.343153][ T2255] br2: port 1(w1) entered blocking state [ 316.343483][ T2255] br2: port 1(w1) entered disabled state [ 316.343814][ T2255] w1: entered allmulticast mode [ 316.345870][ T2255] w1: entered promiscuous mode [ 317.449755][ T2262] br2: port 2(vx100) entered blocking state [ 317.450835][ T2262] br2: port 2(vx100) entered disabled state [ 317.451209][ T2262] vx100: entered allmulticast mode [ 317.453238][ T2262] vx100: entered promiscuous mode [ 317.453836][ T2262] br2: port 2(vx100) entered blocking state [ 317.454164][ T2262] br2: port 2(vx100) entered forwarding state [ 318.793407][ T529] br2: port 1(w1) entered blocking state [ 318.793750][ T529] br2: port 1(w1) entered forwarding state [ 322.711371][ T2297] br2: port 1(w1) entered blocking state [ 322.711701][ T2297] br2: port 1(w1) entered disabled state [ 322.712037][ T2297] w1: entered allmulticast mode [ 322.715368][ T2297] w1: entered promiscuous mode [ 323.817826][ T2304] br2: port 2(vx100) entered blocking state [ 323.819158][ T2304] br2: port 2(vx100) entered disabled state [ 323.819510][ T2304] vx100: entered allmulticast mode [ 323.821691][ T2304] vx100: entered promiscuous mode [ 323.822305][ T2304] br2: port 2(vx100) entered blocking state [ 323.822616][ T2304] br2: port 2(vx100) entered forwarding state [ 325.108195][ T47] br2: port 1(w1) entered blocking state [ 325.108549][ T47] br2: port 1(w1) entered forwarding state # Running tests with UDP port 4789 # TEST: ping6: local->local [ OK ] # TEST: ping6: local->remote 1 [ OK ] # TEST: ping6: local->remote 2 [ OK ] [ 340.041446][ T11] vx100: left allmulticast mode [ 340.041811][ T11] vx100: left promiscuous mode [ 340.042401][ T11] br2: port 2(vx100) entered disabled state [ 340.058710][ T11] w1: left allmulticast mode [ 340.059025][ T11] w1: left promiscuous mode [ 340.059587][ T11] br2: port 1(w1) entered disabled state [ 340.174655][ T11] ================================================================== [ 340.175140][ T11] BUG: KASAN: slab-out-of-bounds in vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 340.175659][ T11] Read of size 8 at addr ffff888009320bd0 by task kworker/u8:0/11 [ 340.176072][ T11] [ 340.176194][ T11] CPU: 2 PID: 11 Comm: kworker/u8:0 Not tainted 6.8.0-rc2-virtme #1 [ 340.176601][ T11] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 340.177265][ T11] Workqueue: netns cleanup_net [ 340.177540][ T11] Call Trace: [ 340.177742][ T11] [ 340.177917][ T11] dump_stack_lvl+0x64/0xb0 [ 340.178150][ T11] print_address_description.constprop.0+0x2c/0x3b0 [ 340.178494][ T11] ? vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 340.178828][ T11] print_report+0xb5/0x270 [ 340.179074][ T11] ? kasan_addr_to_slab+0x4e/0x90 [ 340.179382][ T11] kasan_report+0xbe/0xf0 [ 340.179603][ T11] ? vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 340.179928][ T11] vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 340.180246][ T11] ? __pfx_vxlan_netdevice_event+0x10/0x10 [vxlan] [ 340.180585][ T11] ? _raw_spin_unlock+0x23/0x40 [ 340.180834][ T11] ? mirred_device_event+0x185/0x210 [act_mirred] [ 340.181162][ T11] notifier_call_chain+0x9a/0x290 [ 340.181422][ T11] unregister_netdevice_many_notify+0x55a/0x1180 [ 340.181744][ T11] ? mutex_is_locked+0x17/0x50 [ 340.181990][ T11] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 340.182381][ T11] ? vrf_dellink+0x101/0x150 [vrf] [ 340.182683][ T11] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 340.183032][ T11] default_device_exit_batch+0x228/0x2c0 [ 340.183343][ T11] ? __pfx_default_device_exit_batch+0x10/0x10 [ 340.183672][ T11] ? mutex_is_locked+0x17/0x50 [ 340.183922][ T11] ? nexthop_net_exit_batch_rtnl+0x83/0x210 [ 340.184245][ T11] cleanup_net+0x4f3/0xa20 [ 340.184472][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 340.184755][ T11] ? __pfx_cleanup_net+0x10/0x10 [ 340.185014][ T11] ? lock_acquire+0x1c1/0x220 [ 340.185288][ T11] ? process_one_work+0x714/0x1310 [ 340.185552][ T11] process_one_work+0x78c/0x1310 [ 340.185869][ T11] ? hlock_class+0x4e/0x130 [ 340.186136][ T11] ? __pfx_process_one_work+0x10/0x10 [ 340.186419][ T11] ? assign_work+0x16c/0x240 [ 340.186678][ T11] worker_thread+0x73d/0x1010 [ 340.186921][ T11] ? __pfx_worker_thread+0x10/0x10 [ 340.187209][ T11] kthread+0x28f/0x360 [ 340.187418][ T11] ? __pfx_kthread+0x10/0x10 [ 340.187686][ T11] ret_from_fork+0x31/0x70 [ 340.187924][ T11] ? __pfx_kthread+0x10/0x10 [ 340.188157][ T11] ret_from_fork_asm+0x1b/0x30 [ 340.188440][ T11] [ 340.188597][ T11] [ 340.188739][ T11] Allocated by task 2383: [ 340.188966][ T11] kasan_save_stack+0x24/0x50 [ 340.189226][ T11] kasan_save_track+0x14/0x30 [ 340.189496][ T11] __kasan_kmalloc+0x7f/0x90 [ 340.189755][ T11] __kmalloc+0x1c4/0x400 [ 340.189971][ T11] p9_fcall_init+0x7d/0x1b0 [ 340.190244][ T11] p9_tag_alloc+0x1bd/0x710 [ 340.190474][ T11] p9_client_prepare_req+0xe6/0x3a0 [ 340.190735][ T11] p9_client_rpc+0x18d/0x940 [ 340.190970][ T11] p9_client_readlink+0x71/0x120 [ 340.191261][ T11] v9fs_vfs_get_link_dotl+0x94/0x1b0 [ 340.191540][ T11] pick_link+0x8b5/0x1160 [ 340.191759][ T11] step_into+0x84e/0xfa0 [ 340.191976][ T11] link_path_walk.part.0.constprop.0+0x537/0xa10 [ 340.192293][ T11] path_openat+0x1bf/0x440 [ 340.192515][ T11] do_filp_open+0x1b5/0x3f0 [ 340.192743][ T11] do_open_execat+0xab/0x2d0 [ 340.192981][ T11] open_exec+0x2b/0x50 [ 340.193189][ T11] load_elf_binary+0x558/0x2860 [ 340.193437][ T11] search_binary_handler+0x152/0x550 [ 340.193703][ T11] exec_binprm+0x123/0x540 [ 340.193927][ T11] bprm_execve+0xec/0x500 [ 340.194149][ T11] do_execveat_common.isra.0+0x4aa/0x6b0 [ 340.194431][ T11] __x64_sys_execve+0x8c/0xb0 [ 340.194672][ T11] do_syscall_64+0xc9/0x1e0 [ 340.194910][ T11] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 340.195208][ T11] [ 340.195328][ T11] Freed by task 2383: [ 340.195529][ T11] kasan_save_stack+0x24/0x50 [ 340.195765][ T11] kasan_save_track+0x14/0x30 [ 340.196039][ T11] kasan_save_free_info+0x3f/0x60 [ 340.196313][ T11] __kasan_slab_free+0xfc/0x1c0 [ 340.196568][ T11] kfree+0xf2/0x2d0 [ 340.196773][ T11] p9_req_put+0x1c2/0x220 [ 340.197010][ T11] p9_client_readlink+0xd3/0x120 [ 340.197269][ T11] v9fs_vfs_get_link_dotl+0x94/0x1b0 [ 340.197589][ T11] pick_link+0x8b5/0x1160 [ 340.197830][ T11] step_into+0x84e/0xfa0 [ 340.198044][ T11] link_path_walk.part.0.constprop.0+0x537/0xa10 [ 340.198399][ T11] path_openat+0x1bf/0x440 [ 340.198625][ T11] do_filp_open+0x1b5/0x3f0 [ 340.198890][ T11] do_open_execat+0xab/0x2d0 [ 340.199134][ T11] open_exec+0x2b/0x50 [ 340.199357][ T11] load_elf_binary+0x558/0x2860 [ 340.199615][ T11] search_binary_handler+0x152/0x550 [ 340.199925][ T11] exec_binprm+0x123/0x540 [ 340.200183][ T11] bprm_execve+0xec/0x500 [ 340.200404][ T11] do_execveat_common.isra.0+0x4aa/0x6b0 [ 340.200688][ T11] __x64_sys_execve+0x8c/0xb0 [ 340.200925][ T11] do_syscall_64+0xc9/0x1e0 [ 340.201180][ T11] entry_SYSCALL_64_after_hwframe+0x6f/0x77 [ 340.201488][ T11] [ 340.201646][ T11] The buggy address belongs to the object at ffff888009322000 [ 340.201646][ T11] which belongs to the cache kmalloc-8k of size 8192 [ 340.202361][ T11] The buggy address is located 5168 bytes to the left of [ 340.202361][ T11] allocated 8192-byte region [ffff888009322000, ffff888009324000) [ 340.203157][ T11] [ 340.203317][ T11] The buggy address belongs to the physical page: [ 340.203679][ T11] page:ffffea000024c800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x9320 [ 340.204238][ T11] head:ffffea000024c800 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 340.204707][ T11] flags: 0x80000000000840(slab|head|node=0|zone=1) [ 340.205094][ T11] page_type: 0xffffffff() [ 340.205314][ T11] raw: 0080000000000840 ffff8880010438c0 ffffea00002aa210 ffffea000025ae10 [ 340.205745][ T11] raw: 0000000000000000 0000000000010001 00000001ffffffff 0000000000000000 [ 340.206213][ T11] page dumped because: kasan: bad access detected [ 340.206575][ T11] [ 340.206695][ T11] Memory state around the buggy address: [ 340.207004][ T11] ffff888009320a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 340.207418][ T11] ffff888009320b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 340.207843][ T11] >ffff888009320b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 340.208247][ T11] ^ [ 340.208580][ T11] ffff888009320c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 340.208981][ T11] ffff888009320c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 340.209385][ T11] ================================================================== [ 340.210380][ T11] Disabling lock debugging due to kernel taint [ 340.210716][ T11] general protection fault, probably for non-canonical address 0xf999959999999999: 0000 [#1] PREEMPT SMP KASAN NOPTI [ 340.211474][ T11] KASAN: maybe wild-memory-access in range [0xccccccccccccccc8-0xcccccccccccccccf] [ 340.211953][ T11] CPU: 2 PID: 11 Comm: kworker/u8:0 Tainted: G B 6.8.0-rc2-virtme #1 [ 340.212472][ T11] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 340.213229][ T11] Workqueue: netns cleanup_net [ 340.213543][ T11] RIP: 0010:vxlan_netdevice_event+0x19e/0x340 [vxlan] [ 340.213937][ T11] Code: 00 00 00 48 b9 00 00 00 00 00 fc ff df 49 89 c0 48 89 44 24 08 49 c1 e8 03 4d 8d 24 08 eb 2c 48 8d 53 30 48 89 d0 48 c1 e8 03 <80> 3c 08 00 0f 85 e0 00 00 00 48 8b 43 30 49 89 dd 48 83 e8 30 49 [ 340.215046][ T11] RSP: 0018:ffffc900000bf980 EFLAGS: 00010a07 [ 340.215392][ T11] RAX: 1999999999999999 RBX: cccccccccccccc9c RCX: dffffc0000000000 [ 340.215857][ T11] RDX: cccccccccccccccc RSI: 0000000000000004 RDI: ffff888009320c24 [ 340.216278][ T11] RBP: 1ffff92000017f33 R08: 1ffff11000d0a21a R09: ffffc900000bf9b8 [ 340.216711][ T11] R10: ffffffffa1b3ca07 R11: 205d313154202020 R12: ffffed1000d0a21a [ 340.217189][ T11] R13: ffff888009320ba0 R14: ffff888006da1000 R15: ffff888006851000 [ 340.217633][ T11] FS: 0000000000000000(0000) GS:ffff888035a00000(0000) knlGS:0000000000000000 [ 340.218115][ T11] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 340.218488][ T11] CR2: 00007f69225ac270 CR3: 0000000005ff4004 CR4: 0000000000770ef0 [ 340.218889][ T11] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 340.219351][ T11] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 340.219773][ T11] PKRU: 55555554 [ 340.219961][ T11] Call Trace: [ 340.220149][ T11] [ 340.220314][ T11] ? die_addr+0x41/0xa0 [ 340.220561][ T11] ? exc_general_protection+0x149/0x220 [ 340.220886][ T11] ? asm_exc_general_protection+0x26/0x30 [ 340.221236][ T11] ? vxlan_netdevice_event+0x19e/0x340 [vxlan] [ 340.221608][ T11] ? __pfx_vxlan_netdevice_event+0x10/0x10 [vxlan] [ 340.221975][ T11] ? _raw_spin_unlock+0x23/0x40 [ 340.222237][ T11] ? mirred_device_event+0x185/0x210 [act_mirred] [ 340.222593][ T11] notifier_call_chain+0x9a/0x290 [ 340.222853][ T11] unregister_netdevice_many_notify+0x55a/0x1180 [ 340.223211][ T11] ? mutex_is_locked+0x17/0x50 [ 340.223490][ T11] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 340.223869][ T11] ? vrf_dellink+0x101/0x150 [vrf] [ 340.224147][ T11] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 340.224501][ T11] default_device_exit_batch+0x228/0x2c0 [ 340.224803][ T11] ? __pfx_default_device_exit_batch+0x10/0x10 [ 340.225182][ T11] ? mutex_is_locked+0x17/0x50 [ 340.225452][ T11] ? nexthop_net_exit_batch_rtnl+0x83/0x210 [ 340.225774][ T11] cleanup_net+0x4f3/0xa20 [ 340.226010][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 340.226318][ T11] ? __pfx_cleanup_net+0x10/0x10 [ 340.226570][ T11] ? lock_acquire+0x1c1/0x220 [ 340.226834][ T11] ? process_one_work+0x714/0x1310 [ 340.227140][ T11] process_one_work+0x78c/0x1310 [ 340.227419][ T11] ? hlock_class+0x4e/0x130 [ 340.227661][ T11] ? __pfx_process_one_work+0x10/0x10 [ 340.227959][ T11] ? assign_work+0x16c/0x240 [ 340.228233][ T11] worker_thread+0x73d/0x1010 [ 340.228476][ T11] ? __pfx_worker_thread+0x10/0x10 [ 340.228790][ T11] kthread+0x28f/0x360 [ 340.229016][ T11] ? __pfx_kthread+0x10/0x10 [ 340.229261][ T11] ret_from_fork+0x31/0x70 [ 340.229503][ T11] ? __pfx_kthread+0x10/0x10 [ 340.229791][ T11] ret_from_fork_asm+0x1b/0x30 [ 340.230039][ T11] [ 340.230197][ T11] Modules linked in: vxlan ip6_udp_tunnel udp_tunnel act_pedit ip6_gre ip6_tunnel tunnel6 act_gact cls_matchall ip_gre gre act_mirred cls_flower sch_ingress bridge stp llc 8021q vrf veth [ 340.231320][ T11] ---[ end trace 0000000000000000 ]--- [ 340.231620][ T11] RIP: 0010:vxlan_netdevice_event+0x19e/0x340 [vxlan] [ 340.231997][ T11] Code: 00 00 00 48 b9 00 00 00 00 00 fc ff df 49 89 c0 48 89 44 24 08 49 c1 e8 03 4d 8d 24 08 eb 2c 48 8d 53 30 48 89 d0 48 c1 e8 03 <80> 3c 08 00 0f 85 e0 00 00 00 48 8b 43 30 49 89 dd 48 83 e8 30 49 [ 340.233059][ T11] RSP: 0018:ffffc900000bf980 EFLAGS: 00010a07 [ 340.233370][ T11] RAX: 1999999999999999 RBX: cccccccccccccc9c RCX: dffffc0000000000 [ 340.233775][ T11] RDX: cccccccccccccccc RSI: 0000000000000004 RDI: ffff888009320c24 [ 340.234262][ T11] RBP: 1ffff92000017f33 R08: 1ffff11000d0a21a R09: ffffc900000bf9b8 [ 340.234703][ T11] R10: ffffffffa1b3ca07 R11: 205d313154202020 R12: ffffed1000d0a21a [ 340.235151][ T11] R13: ffff888009320ba0 R14: ffff888006da1000 R15: ffff888006851000 [ 340.235605][ T11] FS: 0000000000000000(0000) GS:ffff888035a00000(0000) knlGS:0000000000000000 [ 340.236109][ T11] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 340.236467][ T11] CR2: 00007f69225ac270 CR3: 000000001511e003 CR4: 0000000000770ef0 [ 340.236916][ T11] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 340.237423][ T11] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 340.237885][ T11] PKRU: 55555554 [ 340.238141][ T11] Kernel panic - not syncing: Fatal exception [ 340.238547][ T11] Kernel Offset: 0x1b400000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 340.239126][ T11] ---[ end Kernel panic - not syncing: Fatal exception ]--- WAIT TIMEOUT stdout Ctrl-C stdout Ctrl-C stdout WAIT TIMEOUT stdout