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 [ 22.093250][ T232] ip (232) used greatest stack depth: 23504 bytes left [ 27.076130][ T283] 8021q: 802.1Q VLAN Support v1.8 [ 32.881872][ T328] br1: port 1(vx100) entered blocking state [ 32.882332][ T328] br1: port 1(vx100) entered disabled state [ 32.882782][ T328] vx100: entered allmulticast mode [ 32.885265][ T328] vx100: entered promiscuous mode [ 32.886218][ T328] br1: port 1(vx100) entered blocking state [ 32.886595][ T328] br1: port 1(vx100) entered forwarding state [ 33.218032][ T330] br1: port 2(veth1) entered blocking state [ 33.219066][ T330] br1: port 2(veth1) entered disabled state [ 33.219454][ T330] veth1: entered allmulticast mode [ 33.221634][ T330] veth1: entered promiscuous mode [ 33.390972][ T8] br1: port 2(veth1) entered blocking state [ 33.391384][ T8] br1: port 2(veth1) entered forwarding state [ 33.713959][ T333] br1: port 3(veth2) entered blocking state [ 33.714308][ T333] br1: port 3(veth2) entered disabled state [ 33.714683][ T333] veth2: entered allmulticast mode [ 33.716882][ T333] veth2: entered promiscuous mode [ 33.872101][ T47] br1: port 3(veth2) entered blocking state [ 33.872465][ T47] br1: port 3(veth2) entered forwarding state [ 39.355859][ T375] br2: port 1(w1) entered blocking state [ 39.356192][ T375] br2: port 1(w1) entered disabled state [ 39.356995][ T375] w1: entered allmulticast mode [ 39.359082][ T375] w1: entered promiscuous mode [ 40.460876][ T383] br2: port 2(vx100) entered blocking state [ 40.461218][ T383] br2: port 2(vx100) entered disabled state [ 40.461625][ T383] vx100: entered allmulticast mode [ 40.463746][ T383] vx100: entered promiscuous mode [ 40.471247][ T383] br2: port 2(vx100) entered blocking state [ 40.471623][ T383] br2: port 2(vx100) entered forwarding state [ 41.772849][ T49] br2: port 1(w1) entered blocking state [ 41.773446][ T49] br2: port 1(w1) entered forwarding state [ 45.596959][ T418] br2: port 1(w1) entered blocking state [ 45.597302][ T418] br2: port 1(w1) entered disabled state [ 45.598182][ T418] w1: entered allmulticast mode [ 45.600266][ T418] w1: entered promiscuous mode [ 46.706729][ T425] br2: port 2(vx100) entered blocking state [ 46.707124][ T425] br2: port 2(vx100) entered disabled state [ 46.707542][ T425] vx100: entered allmulticast mode [ 46.709643][ T425] vx100: entered promiscuous mode [ 46.710270][ T425] br2: port 2(vx100) entered blocking state [ 46.710611][ T425] br2: port 2(vx100) entered forwarding state [ 47.976458][ T23] br2: port 1(w1) entered blocking state [ 47.976822][ T23] 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 ] [ 63.066632][ T70] vx100: left allmulticast mode [ 63.066962][ T70] vx100: left promiscuous mode [ 63.067437][ T70] br2: port 2(vx100) entered disabled state [ 63.077020][ T70] w1: left allmulticast mode [ 63.077280][ T70] w1: left promiscuous mode [ 63.077698][ T70] br2: port 1(w1) entered disabled state [ 63.163617][ T70] ================================================================== [ 63.164068][ T70] BUG: KASAN: slab-out-of-bounds in vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 63.164566][ T70] Read of size 8 at addr ffff888009160bd0 by task kworker/u8:1/70 [ 63.164959][ T70] [ 63.165082][ T70] CPU: 0 PID: 70 Comm: kworker/u8:1 Not tainted 6.8.0-rc2-virtme #1 [ 63.165520][ T70] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 63.166184][ T70] Workqueue: netns cleanup_net [ 63.166436][ T70] Call Trace: [ 63.166616][ T70] [ 63.166768][ T70] dump_stack_lvl+0x64/0xb0 [ 63.167002][ T70] print_address_description.constprop.0+0x2c/0x3b0 [ 63.167338][ T70] ? vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 63.167673][ T70] print_report+0xb5/0x270 [ 63.167901][ T70] ? kasan_addr_to_slab+0x4e/0x90 [ 63.168157][ T70] kasan_report+0xbe/0xf0 [ 63.168378][ T70] ? vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 63.168703][ T70] vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 63.169018][ T70] ? __pfx_vlan_device_event+0x10/0x10 [8021q] [ 63.169337][ T70] ? __pfx_vxlan_netdevice_event+0x10/0x10 [vxlan] [ 63.169677][ T70] ? netconsole_netdev_event+0x1b4/0x300 [ 63.169965][ T70] notifier_call_chain+0x9a/0x290 [ 63.170225][ T70] unregister_netdevice_many_notify+0x55a/0x1180 [ 63.170549][ T70] ? mutex_is_locked+0x17/0x50 [ 63.170793][ T70] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 63.171142][ T70] ? vrf_dellink+0x101/0x150 [vrf] [ 63.171414][ T70] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 63.171732][ T70] default_device_exit_batch+0x228/0x2c0 [ 63.172018][ T70] ? __pfx_default_device_exit_batch+0x10/0x10 [ 63.172338][ T70] ? mutex_is_locked+0x17/0x50 [ 63.172581][ T70] ? nexthop_net_exit_batch_rtnl+0x83/0x210 [ 63.172905][ T70] cleanup_net+0x4f3/0xa20 [ 63.173150][ T70] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 63.173438][ T70] ? __pfx_cleanup_net+0x10/0x10 [ 63.173691][ T70] ? lock_acquire+0x1c1/0x220 [ 63.173929][ T70] ? process_one_work+0x714/0x1310 [ 63.174191][ T70] process_one_work+0x78c/0x1310 [ 63.174461][ T70] ? hlock_class+0x4e/0x130 [ 63.174711][ T70] ? __pfx_process_one_work+0x10/0x10 [ 63.175005][ T70] ? assign_work+0x16c/0x240 [ 63.175241][ T70] worker_thread+0x73d/0x1010 [ 63.175493][ T70] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370 [ 63.175855][ T70] ? __pfx_worker_thread+0x10/0x10 [ 63.176116][ T70] ? __pfx_worker_thread+0x10/0x10 [ 63.176377][ T70] kthread+0x28f/0x360 [ 63.176587][ T70] ? __pfx_kthread+0x10/0x10 [ 63.176840][ T70] ret_from_fork+0x31/0x70 [ 63.177075][ T70] ? __pfx_kthread+0x10/0x10 [ 63.177325][ T70] ret_from_fork_asm+0x1b/0x30 [ 63.177577][ T70] [ 63.177740][ T70] [ 63.177866][ T70] Allocated by task 70: [ 63.178077][ T70] kasan_save_stack+0x24/0x50 [ 63.178329][ T70] kasan_save_track+0x14/0x30 [ 63.178582][ T70] __kasan_kmalloc+0x7f/0x90 [ 63.178823][ T70] __kmalloc_node_track_caller+0x1fb/0x440 [ 63.179134][ T70] kmalloc_reserve+0xbc/0x1f0 [ 63.179376][ T70] __alloc_skb+0xd4/0x280 [ 63.179610][ T70] rtmsg_ifinfo_build_skb+0x7c/0x240 [ 63.179926][ T70] rtnetlink_event+0xf0/0x1c0 [ 63.180168][ T70] notifier_call_chain+0x9a/0x290 [ 63.180437][ T70] __netdev_upper_dev_unlink+0x115/0x220 [ 63.180735][ T70] netdev_upper_dev_unlink+0x71/0xa0 [ 63.181028][ T70] vrf_dellink+0xbb/0x150 [vrf] [ 63.181281][ T70] default_device_exit_batch+0x16a/0x2c0 [ 63.181569][ T70] cleanup_net+0x4f3/0xa20 [ 63.181796][ T70] process_one_work+0x78c/0x1310 [ 63.182049][ T70] worker_thread+0x73d/0x1010 [ 63.182287][ T70] kthread+0x28f/0x360 [ 63.182496][ T70] ret_from_fork+0x31/0x70 [ 63.182737][ T70] ret_from_fork_asm+0x1b/0x30 [ 63.182982][ T70] [ 63.183120][ T70] Freed by task 70: [ 63.183319][ T70] kasan_save_stack+0x24/0x50 [ 63.183569][ T70] kasan_save_track+0x14/0x30 [ 63.183816][ T70] kasan_save_free_info+0x3f/0x60 [ 63.184079][ T70] __kasan_slab_free+0xfc/0x1c0 [ 63.184340][ T70] kfree+0xf2/0x2d0 [ 63.184542][ T70] pskb_expand_head+0x33a/0xff0 [ 63.184812][ T70] netlink_trim+0x198/0x200 [ 63.185053][ T70] netlink_broadcast_filtered+0xcb/0x340 [ 63.185344][ T70] nlmsg_notify+0x6e/0x1e0 [ 63.185571][ T70] rtnetlink_event+0x167/0x1c0 [ 63.185815][ T70] notifier_call_chain+0x9a/0x290 [ 63.186071][ T70] __netdev_upper_dev_unlink+0x115/0x220 [ 63.186366][ T70] netdev_upper_dev_unlink+0x71/0xa0 [ 63.186648][ T70] vrf_dellink+0xbb/0x150 [vrf] [ 63.186902][ T70] default_device_exit_batch+0x16a/0x2c0 [ 63.187199][ T70] cleanup_net+0x4f3/0xa20 [ 63.187450][ T70] process_one_work+0x78c/0x1310 [ 63.187710][ T70] worker_thread+0x73d/0x1010 [ 63.187961][ T70] kthread+0x28f/0x360 [ 63.188167][ T70] ret_from_fork+0x31/0x70 [ 63.188394][ T70] ret_from_fork_asm+0x1b/0x30 [ 63.188637][ T70] [ 63.188758][ T70] The buggy address belongs to the object at ffff888009161000 [ 63.188758][ T70] which belongs to the cache kmalloc-4k of size 4096 [ 63.189475][ T70] The buggy address is located 1072 bytes to the left of [ 63.189475][ T70] allocated 4096-byte region [ffff888009161000, ffff888009162000) [ 63.190228][ T70] [ 63.190351][ T70] The buggy address belongs to the physical page: [ 63.190696][ T70] page:ffffea0000245800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x9160 [ 63.191221][ T70] head:ffffea0000245800 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 63.191690][ T70] flags: 0x80000000000840(slab|head|node=0|zone=1) [ 63.192059][ T70] page_type: 0xffffffff() [ 63.192288][ T70] raw: 0080000000000840 ffff888001043700 ffffea000018ae10 ffffea0000280810 [ 63.192730][ T70] raw: 0000000000000000 0000000000020002 00000001ffffffff 0000000000000000 [ 63.193181][ T70] page dumped because: kasan: bad access detected [ 63.193506][ T70] [ 63.193627][ T70] Memory state around the buggy address: [ 63.193909][ T70] ffff888009160a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 63.194313][ T70] ffff888009160b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 63.194718][ T70] >ffff888009160b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 63.195119][ T70] ^ [ 63.195462][ T70] ffff888009160c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 63.195869][ T70] ffff888009160c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 63.196271][ T70] ================================================================== [ 63.197120][ T70] Disabling lock debugging due to kernel taint [ 63.197542][ T70] general protection fault, probably for non-canonical address 0xf999959999999999: 0000 [#1] PREEMPT SMP KASAN NOPTI [ 63.198195][ T70] KASAN: maybe wild-memory-access in range [0xccccccccccccccc8-0xcccccccccccccccf] [ 63.198663][ T70] CPU: 0 PID: 70 Comm: kworker/u8:1 Tainted: G B 6.8.0-rc2-virtme #1 [ 63.199143][ T70] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 63.199759][ T70] Workqueue: netns cleanup_net [ 63.200006][ T70] RIP: 0010:vxlan_netdevice_event+0x19e/0x340 [vxlan] [ 63.200364][ T70] 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 [ 63.201333][ T70] RSP: 0018:ffffc9000050f980 EFLAGS: 00010a07 [ 63.201642][ T70] RAX: 1999999999999999 RBX: cccccccccccccc9c RCX: dffffc0000000000 [ 63.202041][ T70] RDX: cccccccccccccccc RSI: 0000000000000004 RDI: ffff888009160c24 [ 63.202439][ T70] RBP: 1ffff920000a1f33 R08: 1ffff1100141a81a R09: ffffc9000050f9b8 [ 63.202858][ T70] R10: ffffffff95d3ca07 R11: 205d303754202020 R12: ffffed100141a81a [ 63.203280][ T70] R13: ffff888009160ba0 R14: ffff888023004000 R15: ffff88800a0d4000 [ 63.203695][ T70] FS: 0000000000000000(0000) GS:ffff888035200000(0000) knlGS:0000000000000000 [ 63.204149][ T70] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 63.204495][ T70] CR2: 00007ffc66316e7c CR3: 000000000a3d2003 CR4: 0000000000770ef0 [ 63.204912][ T70] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 63.205346][ T70] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 63.205761][ T70] PKRU: 55555554 [ 63.205945][ T70] Call Trace: [ 63.206125][ T70] [ 63.206278][ T70] ? die_addr+0x41/0xa0 [ 63.206516][ T70] ? exc_general_protection+0x149/0x220 [ 63.206802][ T70] ? asm_exc_general_protection+0x26/0x30 [ 63.207096][ T70] ? vxlan_netdevice_event+0x19e/0x340 [vxlan] [ 63.207423][ T70] ? __pfx_vxlan_netdevice_event+0x10/0x10 [vxlan] [ 63.207776][ T70] ? netconsole_netdev_event+0x1b4/0x300 [ 63.208065][ T70] notifier_call_chain+0x9a/0x290 [ 63.208325][ T70] unregister_netdevice_many_notify+0x55a/0x1180 [ 63.208649][ T70] ? mutex_is_locked+0x17/0x50 [ 63.208897][ T70] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 63.209258][ T70] ? vrf_dellink+0x101/0x150 [vrf] [ 63.209526][ T70] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 63.209844][ T70] default_device_exit_batch+0x228/0x2c0 [ 63.210128][ T70] ? __pfx_default_device_exit_batch+0x10/0x10 [ 63.210442][ T70] ? mutex_is_locked+0x17/0x50 [ 63.210686][ T70] ? nexthop_net_exit_batch_rtnl+0x83/0x210 [ 63.210992][ T70] cleanup_net+0x4f3/0xa20 [ 63.211232][ T70] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 63.211517][ T70] ? __pfx_cleanup_net+0x10/0x10 [ 63.211784][ T70] ? lock_acquire+0x1c1/0x220 [ 63.212025][ T70] ? process_one_work+0x714/0x1310 [ 63.212288][ T70] process_one_work+0x78c/0x1310 [ 63.212541][ T70] ? hlock_class+0x4e/0x130 [ 63.212775][ T70] ? __pfx_process_one_work+0x10/0x10 [ 63.213050][ T70] ? assign_work+0x16c/0x240 [ 63.213287][ T70] worker_thread+0x73d/0x1010 [ 63.213527][ T70] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370 [ 63.213863][ T70] ? __pfx_worker_thread+0x10/0x10 [ 63.214124][ T70] ? __pfx_worker_thread+0x10/0x10 [ 63.214385][ T70] kthread+0x28f/0x360 [ 63.214593][ T70] ? __pfx_kthread+0x10/0x10 [ 63.214832][ T70] ret_from_fork+0x31/0x70 [ 63.215058][ T70] ? __pfx_kthread+0x10/0x10 [ 63.215302][ T70] ret_from_fork_asm+0x1b/0x30 [ 63.215557][ T70] [ 63.215724][ T70] Modules linked in: vxlan ip6_udp_tunnel udp_tunnel bridge stp llc 8021q sch_ingress vrf veth [ 63.216332][ T70] ---[ end trace 0000000000000000 ]--- [ 63.216680][ T70] RIP: 0010:vxlan_netdevice_event+0x19e/0x340 [vxlan] [ 63.217132][ T70] 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 [ 63.218860][ T70] RSP: 0018:ffffc9000050f980 EFLAGS: 00010a07 [ 63.219242][ T70] RAX: 1999999999999999 RBX: cccccccccccccc9c RCX: dffffc0000000000 [ 63.219742][ T70] RDX: cccccccccccccccc RSI: 0000000000000004 RDI: ffff888009160c24 [ 63.220220][ T70] RBP: 1ffff920000a1f33 R08: 1ffff1100141a81a R09: ffffc9000050f9b8 [ 63.220662][ T70] R10: ffffffff95d3ca07 R11: 205d303754202020 R12: ffffed100141a81a [ 63.221120][ T70] R13: ffff888009160ba0 R14: ffff888023004000 R15: ffff88800a0d4000 [ 63.221596][ T70] FS: 0000000000000000(0000) GS:ffff888035200000(0000) knlGS:0000000000000000 [ 63.222128][ T70] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 63.222551][ T70] CR2: 00007ffc66316e7c CR3: 000000000a3d2003 CR4: 0000000000770ef0 [ 63.223044][ T70] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 63.223571][ T70] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 63.224037][ T70] PKRU: 55555554 [ 63.224234][ T70] Kernel panic - not syncing: Fatal exception [ 63.224648][ T70] Kernel Offset: 0xf600000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 63.225224][ T70] ---[ end Kernel panic - not syncing: Fatal exception ]--- WAIT TIMEOUT stdout Ctrl-C stdout Ctrl-C stdout WAIT TIMEOUT stdout