make -C tools/testing/selftests TARGETS=net TEST_PROGS=udpgro_fwd.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 # timeout set to 6000 # selftests: net: udpgro_fwd.sh # IPv4 # No GRO ok # GRO frag list ok # GRO fwd ok # UDP fwd perf udp rx: 6 MB/s 5513 calls/s # udp tx: 11 MB/s 190 calls/s 190 msg/s # udp rx: 10 MB/s 8640 calls/s # udp tx: 10 MB/s 182 calls/s 182 msg/s # udp rx: 10 MB/s 8832 calls/s # UDP GRO fwd perf udp rx: 3 MB/s 2499 calls/s # udp tx: 9 MB/s 163 calls/s 163 msg/s # udp rx: 10 MB/s 8256 calls/s # udp tx: 10 MB/s 171 calls/s 171 msg/s # udp rx: 9 MB/s 8112 calls/s # GRO frag list over UDP tunnel ok [ 65.181258][ T11] ================================================================== [ 65.181836][ T11] BUG: KASAN: slab-out-of-bounds in vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 65.182549][ T11] Read of size 8 at addr ffff888005f70bf0 by task kworker/u8:0/11 [ 65.183154][ T11] [ 65.183346][ T11] CPU: 0 PID: 11 Comm: kworker/u8:0 Not tainted 6.8.0-rc2-virtme #1 [ 65.183958][ T11] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 65.184872][ T11] Workqueue: netns cleanup_net [ 65.185244][ T11] Call Trace: [ 65.185508][ T11] [ 65.185734][ T11] dump_stack_lvl+0x64/0xb0 [ 65.186094][ T11] print_address_description.constprop.0+0x2c/0x3b0 [ 65.186597][ T11] ? vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 65.187132][ T11] print_report+0xb5/0x270 [ 65.187485][ T11] ? kasan_addr_to_slab+0x4e/0x90 [ 65.187879][ T11] kasan_report+0xbe/0xf0 [ 65.188216][ T11] ? vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 65.188729][ T11] vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 65.189223][ T11] ? __pfx_vxlan_netdevice_event+0x10/0x10 [vxlan] [ 65.189741][ T11] ? nft_offload_netdev_event+0x158/0x3b0 [nf_tables] [ 65.190348][ T11] notifier_call_chain+0x9a/0x290 [ 65.190739][ T11] unregister_netdevice_many_notify+0x55a/0x1180 [ 65.191224][ T11] ? mutex_is_locked+0x17/0x50 [ 65.191602][ T11] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 65.192109][ T11] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 65.192599][ T11] default_device_exit_batch+0x228/0x2c0 [ 65.193022][ T11] ? __pfx_default_device_exit_batch+0x10/0x10 [ 65.193494][ T11] ? mutex_is_locked+0x17/0x50 [ 65.193862][ T11] ? nexthop_net_exit_batch_rtnl+0x83/0x210 [ 65.194316][ T11] cleanup_net+0x4f3/0xb50 [ 65.194665][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 65.195107][ T11] ? __pfx_cleanup_net+0x10/0x10 [ 65.195500][ T11] ? lock_acquire+0x1c1/0x220 [ 65.195880][ T11] ? process_one_work+0x714/0x1310 [ 65.196286][ T11] process_one_work+0x78c/0x1310 [ 65.196672][ T11] ? hlock_class+0x4e/0x130 [ 65.197021][ T11] ? __pfx_process_one_work+0x10/0x10 [ 65.197430][ T11] ? assign_work+0x16c/0x240 [ 65.197789][ T11] worker_thread+0x73d/0x1010 [ 65.198157][ T11] ? __pfx_worker_thread+0x10/0x10 [ 65.198559][ T11] kthread+0x28f/0x360 [ 65.198868][ T11] ? __pfx_kthread+0x10/0x10 [ 65.199222][ T11] ret_from_fork+0x31/0x70 [ 65.199575][ T11] ? __pfx_kthread+0x10/0x10 [ 65.199942][ T11] ret_from_fork_asm+0x1b/0x30 [ 65.200326][ T11] [ 65.200567][ T11] [ 65.200747][ T11] Allocated by task 11: [ 65.201073][ T11] kasan_save_stack+0x24/0x50 [ 65.201438][ T11] kasan_save_track+0x14/0x30 [ 65.201802][ T11] __kasan_kmalloc+0x7f/0x90 [ 65.202152][ T11] __kmalloc_node_track_caller+0x1fb/0x440 [ 65.202605][ T11] kmalloc_reserve+0xbc/0x1f0 [ 65.202968][ T11] __alloc_skb+0xd4/0x280 [ 65.203306][ T11] rtmsg_ifinfo_build_skb+0x7c/0x240 [ 65.203720][ T11] rtmsg_ifinfo_event.part.0+0x2d/0x120 [ 65.204154][ T11] rtmsg_ifinfo+0x5b/0xa0 [ 65.204497][ T11] dev_close_many+0x2bd/0x650 [ 65.204871][ T11] unregister_netdevice_many_notify+0x3d5/0x1180 [ 65.205358][ T11] default_device_exit_batch+0x228/0x2c0 [ 65.205801][ T11] cleanup_net+0x4f3/0xb50 [ 65.206140][ T11] process_one_work+0x78c/0x1310 [ 65.206510][ T11] worker_thread+0x73d/0x1010 [ 65.206874][ T11] kthread+0x28f/0x360 [ 65.207187][ T11] ret_from_fork+0x31/0x70 [ 65.207520][ T11] ret_from_fork_asm+0x1b/0x30 [ 65.207893][ T11] [ 65.208078][ T11] Freed by task 11: [ 65.208365][ T11] kasan_save_stack+0x24/0x50 [ 65.208725][ T11] kasan_save_track+0x14/0x30 [ 65.209095][ T11] kasan_save_free_info+0x3f/0x60 [ 65.209485][ T11] __kasan_slab_free+0xfc/0x1c0 [ 65.209872][ T11] kfree+0xf2/0x2d0 [ 65.210176][ T11] pskb_expand_head+0x33a/0xff0 [ 65.210555][ T11] netlink_trim+0x198/0x200 [ 65.210895][ T11] netlink_broadcast_filtered+0xcb/0x340 [ 65.211326][ T11] nlmsg_notify+0x6e/0x1e0 [ 65.211664][ T11] rtmsg_ifinfo+0x5b/0xa0 [ 65.211999][ T11] dev_close_many+0x2bd/0x650 [ 65.212355][ T11] unregister_netdevice_many_notify+0x3d5/0x1180 [ 65.212809][ T11] default_device_exit_batch+0x228/0x2c0 [ 65.213212][ T11] cleanup_net+0x4f3/0xb50 [ 65.213530][ T11] process_one_work+0x78c/0x1310 [ 65.213884][ T11] worker_thread+0x73d/0x1010 [ 65.214231][ T11] kthread+0x28f/0x360 [ 65.214553][ T11] ret_from_fork+0x31/0x70 [ 65.214905][ T11] ret_from_fork_asm+0x1b/0x30 [ 65.215281][ T11] [ 65.215469][ T11] The buggy address belongs to the object at ffff888005f71000 [ 65.215469][ T11] which belongs to the cache kmalloc-4k of size 4096 [ 65.216513][ T11] The buggy address is located 1040 bytes to the left of [ 65.216513][ T11] allocated 4096-byte region [ffff888005f71000, ffff888005f72000) [ 65.217557][ T11] [ 65.217729][ T11] The buggy address belongs to the physical page: [ 65.218197][ T11] page:ffffea000017dc00 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888005f74000 pfn:0x5f70 [ 65.219066][ T11] head:ffffea000017dc00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 65.219708][ T11] flags: 0x80000000000a40(workingset|slab|head|node=0|zone=1) [ 65.220237][ T11] page_type: 0xffffffff() [ 65.220554][ T11] raw: 0080000000000a40 ffff888001043700 ffffea0000255810 ffff888001041ad0 [ 65.221164][ T11] raw: ffff888005f74000 0000000000020001 00000001ffffffff 0000000000000000 [ 65.221767][ T11] page dumped because: kasan: bad access detected [ 65.222251][ T11] [ 65.222439][ T11] Memory state around the buggy address: [ 65.222873][ T11] ffff888005f70a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 65.223487][ T11] ffff888005f70b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 65.224095][ T11] >ffff888005f70b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 65.224691][ T11] ^ [ 65.225258][ T11] ffff888005f70c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 65.225886][ T11] ffff888005f70c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 65.226494][ T11] ================================================================== [ 65.228431][ T11] Disabling lock debugging due to kernel taint [ 65.229180][ T11] general protection fault, probably for non-canonical address 0xf999959999999999: 0000 [#1] PREEMPT SMP KASAN NOPTI [ 65.230169][ T11] KASAN: maybe wild-memory-access in range [0xccccccccccccccc8-0xcccccccccccccccf] [ 65.230891][ T11] CPU: 0 PID: 11 Comm: kworker/u8:0 Tainted: G B 6.8.0-rc2-virtme #1 [ 65.231623][ T11] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 65.232551][ T11] Workqueue: netns cleanup_net [ 65.232924][ T11] RIP: 0010:vxlan_netdevice_event+0x19e/0x340 [vxlan] [ 65.233459][ 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 [ 65.234946][ T11] RSP: 0018:ffffc900000bf980 EFLAGS: 00010a07 [ 65.235403][ T11] RAX: 1999999999999999 RBX: cccccccccccccc9c RCX: dffffc0000000000 [ 65.236023][ T11] RDX: cccccccccccccccc RSI: 0000000000000004 RDI: ffff888005f70c44 [ 65.236620][ T11] RBP: 1ffff92000017f33 R08: 1ffff11000d7f81a R09: ffffc900000bf9b8 [ 65.237227][ T11] R10: ffffffff8e634a07 R11: 205d313154202020 R12: ffffed1000d7f81a [ 65.237843][ T11] R13: ffff888005f70bc0 R14: ffff888006a71000 R15: ffff888006bfc000 [ 65.238466][ T11] FS: 0000000000000000(0000) GS:ffff88802e600000(0000) knlGS:0000000000000000 [ 65.239167][ T11] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 65.239671][ T11] CR2: 00007fef19d8ea30 CR3: 0000000005552002 CR4: 0000000000770ef0 [ 65.240106][ T11] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 65.240526][ T11] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 65.240931][ T11] PKRU: 55555554 [ 65.241116][ T11] Call Trace: [ 65.241298][ T11] [ 65.241452][ T11] ? die_addr+0x41/0xa0 [ 65.241668][ T11] ? exc_general_protection+0x149/0x220 [ 65.241959][ T11] ? asm_exc_general_protection+0x26/0x30 [ 65.242337][ T11] ? vxlan_netdevice_event+0x19e/0x340 [vxlan] [ 65.242807][ T11] ? __pfx_vxlan_netdevice_event+0x10/0x10 [vxlan] [ 65.243166][ T11] ? nft_offload_netdev_event+0x158/0x3b0 [nf_tables] [ 65.243546][ T11] notifier_call_chain+0x9a/0x290 [ 65.243810][ T11] unregister_netdevice_many_notify+0x55a/0x1180 [ 65.244147][ T11] ? mutex_is_locked+0x17/0x50 [ 65.244396][ T11] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 65.244741][ T11] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 65.245064][ T11] default_device_exit_batch+0x228/0x2c0 [ 65.245362][ T11] ? __pfx_default_device_exit_batch+0x10/0x10 [ 65.245690][ T11] ? mutex_is_locked+0x17/0x50 [ 65.245936][ T11] ? nexthop_net_exit_batch_rtnl+0x83/0x210 [ 65.246311][ T11] cleanup_net+0x4f3/0xb50 [ 65.246669][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 65.247103][ T11] ? __pfx_cleanup_net+0x10/0x10 [ 65.247480][ T11] ? lock_acquire+0x1c1/0x220 [ 65.247827][ T11] ? process_one_work+0x714/0x1310 [ 65.248223][ T11] process_one_work+0x78c/0x1310 [ 65.248569][ T11] ? hlock_class+0x4e/0x130 [ 65.248914][ T11] ? __pfx_process_one_work+0x10/0x10 [ 65.249304][ T11] ? assign_work+0x16c/0x240 [ 65.249664][ T11] worker_thread+0x73d/0x1010 [ 65.250032][ T11] ? __pfx_worker_thread+0x10/0x10 [ 65.250419][ T11] kthread+0x28f/0x360 [ 65.250740][ T11] ? __pfx_kthread+0x10/0x10 [ 65.251101][ T11] ret_from_fork+0x31/0x70 [ 65.251447][ T11] ? __pfx_kthread+0x10/0x10 [ 65.251802][ T11] ret_from_fork_asm+0x1b/0x30 [ 65.252175][ T11] [ 65.252400][ T11] Modules linked in: vxlan ip6_udp_tunnel udp_tunnel nft_chain_nat xt_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nft_compat nf_tables libcrc32c [ 65.253786][ T11] ---[ end trace 0000000000000000 ]--- [ 65.254427][ T11] RIP: 0010:vxlan_netdevice_event+0x19e/0x340 [vxlan] [ 65.255136][ 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 [ 65.256767][ T11] RSP: 0018:ffffc900000bf980 EFLAGS: 00010a07 [ 65.257353][ T11] RAX: 1999999999999999 RBX: cccccccccccccc9c RCX: dffffc0000000000 [ 65.258039][ T11] RDX: cccccccccccccccc RSI: 0000000000000004 RDI: ffff888005f70c44 [ 65.258655][ T11] RBP: 1ffff92000017f33 R08: 1ffff11000d7f81a R09: ffffc900000bf9b8 [ 65.259285][ T11] R10: ffffffff8e634a07 R11: 205d313154202020 R12: ffffed1000d7f81a [ 65.259908][ T11] R13: ffff888005f70bc0 R14: ffff888006a71000 R15: ffff888006bfc000 [ 65.260527][ T11] FS: 0000000000000000(0000) GS:ffff88802e600000(0000) knlGS:0000000000000000 [ 65.261227][ T11] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 65.261743][ T11] CR2: 00007fef19d8ea30 CR3: 0000000005552002 CR4: 0000000000770ef0 [ 65.262397][ T11] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 65.263051][ T11] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 65.263726][ T11] PKRU: 55555554 [ 65.264058][ T11] Kernel panic - not syncing: Fatal exception [ 65.264690][ T11] Kernel Offset: 0x7c00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 65.265520][ T11] ---[ end Kernel panic - not syncing: Fatal exception ]--- WAIT TIMEOUT stdout Ctrl-C stdout Ctrl-C stdout WAIT TIMEOUT stdout