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: 0 MB/s 713 calls/s # udp tx: 7 MB/s 132 calls/s 132 msg/s # udp rx: 8 MB/s 6576 calls/s # udp tx: 10 MB/s 180 calls/s 180 msg/s # udp rx: 10 MB/s 8640 calls/s # udp tx: 10 MB/s 185 calls/s 185 msg/s # UDP GRO fwd perf udp rx: 5 MB/s 4512 calls/s # udp tx: 9 MB/s 167 calls/s 167 msg/s # udp rx: 9 MB/s 8061 calls/s # udp tx: 9 MB/s 168 calls/s 168 msg/s # udp rx: 9 MB/s 8064 calls/s # GRO frag list over UDP tunnel ok [ 1956.586346][ T71] ================================================================== [ 1956.586833][ T71] BUG: KASAN: slab-out-of-bounds in vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 1956.587341][ T71] Read of size 8 at addr ffff888010608bf0 by task kworker/u8:1/71 [ 1956.587760][ T71] [ 1956.587908][ T71] CPU: 1 PID: 71 Comm: kworker/u8:1 Not tainted 6.8.0-rc2-virtme #1 [ 1956.588321][ T71] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1956.588999][ T71] Workqueue: netns cleanup_net [ 1956.589275][ T71] Call Trace: [ 1956.589450][ T71] [ 1956.589603][ T71] dump_stack_lvl+0x64/0xb0 [ 1956.589843][ T71] print_address_description.constprop.0+0x2c/0x3b0 [ 1956.590182][ T71] ? vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 1956.590508][ T71] print_report+0xb5/0x270 [ 1956.590738][ T71] ? kasan_addr_to_slab+0x4e/0x90 [ 1956.590995][ T71] kasan_report+0xbe/0xf0 [ 1956.591218][ T71] ? vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 1956.591545][ T71] vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 1956.591864][ T71] ? __pfx_vxlan_netdevice_event+0x10/0x10 [vxlan] [ 1956.592206][ T71] ? mpls_dev_notify+0x3c1/0x550 [mpls_router] [ 1956.592558][ T71] notifier_call_chain+0x9a/0x290 [ 1956.592823][ T71] unregister_netdevice_many_notify+0x55a/0x1180 [ 1956.593148][ T71] ? mutex_is_locked+0x17/0x50 [ 1956.593395][ T71] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 1956.593747][ T71] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 1956.594068][ T71] default_device_exit_batch+0x228/0x2c0 [ 1956.594353][ T71] ? __pfx_default_device_exit_batch+0x10/0x10 [ 1956.594701][ T71] ? mutex_is_locked+0x17/0x50 [ 1956.594946][ T71] ? nexthop_net_exit_batch_rtnl+0x83/0x210 [ 1956.595274][ T71] cleanup_net+0x4f3/0xb50 [ 1956.595531][ T71] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1956.595837][ T71] ? __pfx_cleanup_net+0x10/0x10 [ 1956.596097][ T71] ? lock_acquire+0x1c1/0x220 [ 1956.596336][ T71] ? process_one_work+0x714/0x1310 [ 1956.596641][ T71] process_one_work+0x78c/0x1310 [ 1956.596927][ T71] ? hlock_class+0x4e/0x130 [ 1956.597177][ T71] ? __pfx_process_one_work+0x10/0x10 [ 1956.597460][ T71] ? assign_work+0x16c/0x240 [ 1956.597721][ T71] worker_thread+0x73d/0x1010 [ 1956.597962][ T71] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370 [ 1956.598326][ T71] ? __pfx_worker_thread+0x10/0x10 [ 1956.598587][ T71] ? __pfx_worker_thread+0x10/0x10 [ 1956.598856][ T71] kthread+0x28f/0x360 [ 1956.599085][ T71] ? __pfx_kthread+0x10/0x10 [ 1956.599346][ T71] ret_from_fork+0x31/0x70 [ 1956.599574][ T71] ? __pfx_kthread+0x10/0x10 [ 1956.599829][ T71] ret_from_fork_asm+0x1b/0x30 [ 1956.600089][ T71] [ 1956.600269][ T71] [ 1956.600389][ T71] Allocated by task 71: [ 1956.600648][ T71] kasan_save_stack+0x24/0x50 [ 1956.600888][ T71] kasan_save_track+0x14/0x30 [ 1956.601148][ T71] __kasan_kmalloc+0x7f/0x90 [ 1956.601391][ T71] __kmalloc_node_track_caller+0x1fb/0x440 [ 1956.601708][ T71] kmalloc_reserve+0xbc/0x1f0 [ 1956.601975][ T71] __alloc_skb+0xd4/0x280 [ 1956.602212][ T71] inet6_rt_notify+0xda/0x280 [ 1956.602452][ T71] fib6_del_route+0x823/0x11e0 [ 1956.602702][ T71] fib6_del+0x1f4/0x2e0 [ 1956.602937][ T71] fib6_clean_node+0x31a/0x510 [ 1956.603204][ T71] fib6_walk_continue+0x2ff/0x610 [ 1956.603478][ T71] fib6_walk+0x152/0x380 [ 1956.603706][ T71] fib6_clean_tree+0xaf/0xf0 [ 1956.603949][ T71] __fib6_clean_all+0xe0/0x230 [ 1956.604214][ T71] rt6_disable_ip+0x11c/0x140 [ 1956.604500][ T71] addrconf_ifdown.isra.0+0x104/0x1540 [ 1956.604796][ T71] addrconf_notify+0xd1/0xd40 [ 1956.605039][ T71] notifier_call_chain+0x9a/0x290 [ 1956.605297][ T71] dev_close_many+0x2d8/0x650 [ 1956.605565][ T71] unregister_netdevice_many_notify+0x3d5/0x1180 [ 1956.605914][ T71] default_device_exit_batch+0x228/0x2c0 [ 1956.606216][ T71] cleanup_net+0x4f3/0xb50 [ 1956.606455][ T71] process_one_work+0x78c/0x1310 [ 1956.606733][ T71] worker_thread+0x73d/0x1010 [ 1956.606974][ T71] kthread+0x28f/0x360 [ 1956.607207][ T71] ret_from_fork+0x31/0x70 [ 1956.607452][ T71] ret_from_fork_asm+0x1b/0x30 [ 1956.607698][ T71] [ 1956.607827][ T71] Freed by task 71: [ 1956.608043][ T71] kasan_save_stack+0x24/0x50 [ 1956.608284][ T71] kasan_save_track+0x14/0x30 [ 1956.608574][ T71] kasan_save_free_info+0x3f/0x60 [ 1956.608846][ T71] __kasan_slab_free+0xfc/0x1c0 [ 1956.609093][ T71] kfree+0xf2/0x2d0 [ 1956.609291][ T71] skb_release_data+0x544/0x740 [ 1956.609539][ T71] consume_skb+0xad/0x110 [ 1956.609761][ T71] netlink_broadcast_filtered+0x224/0x340 [ 1956.610051][ T71] nlmsg_notify+0x6e/0x1e0 [ 1956.610279][ T71] fib6_del_route+0x823/0x11e0 [ 1956.610525][ T71] fib6_del+0x1f4/0x2e0 [ 1956.610737][ T71] fib6_clean_node+0x31a/0x510 [ 1956.610982][ T71] fib6_walk_continue+0x2ff/0x610 [ 1956.611238][ T71] fib6_walk+0x152/0x380 [ 1956.611454][ T71] fib6_clean_tree+0xaf/0xf0 [ 1956.611690][ T71] __fib6_clean_all+0xe0/0x230 [ 1956.611935][ T71] rt6_disable_ip+0x11c/0x140 [ 1956.612172][ T71] addrconf_ifdown.isra.0+0x104/0x1540 [ 1956.612471][ T71] addrconf_notify+0xd1/0xd40 [ 1956.612713][ T71] notifier_call_chain+0x9a/0x290 [ 1956.612971][ T71] dev_close_many+0x2d8/0x650 [ 1956.613210][ T71] unregister_netdevice_many_notify+0x3d5/0x1180 [ 1956.613531][ T71] default_device_exit_batch+0x228/0x2c0 [ 1956.613829][ T71] cleanup_net+0x4f3/0xb50 [ 1956.614055][ T71] process_one_work+0x78c/0x1310 [ 1956.614306][ T71] worker_thread+0x73d/0x1010 [ 1956.614546][ T71] kthread+0x28f/0x360 [ 1956.614753][ T71] ret_from_fork+0x31/0x70 [ 1956.614982][ T71] ret_from_fork_asm+0x1b/0x30 [ 1956.615227][ T71] [ 1956.615349][ T71] The buggy address belongs to the object at ffff888010608400 [ 1956.615349][ T71] which belongs to the cache kmalloc-1k of size 1024 [ 1956.616085][ T71] The buggy address is located 1008 bytes to the right of [ 1956.616085][ T71] allocated 1024-byte region [ffff888010608400, ffff888010608800) [ 1956.616927][ T71] [ 1956.617051][ T71] The buggy address belongs to the physical page: [ 1956.617405][ T71] page:ffffea0000418200 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88801060b400 pfn:0x10608 [ 1956.618012][ T71] head:ffffea0000418200 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 1956.618491][ T71] flags: 0x80000000000a40(workingset|slab|head|node=0|zone=1) [ 1956.618883][ T71] page_type: 0xffffffff() [ 1956.619124][ T71] raw: 0080000000000a40 ffff888001043380 ffffea0000093410 ffff8880010416d0 [ 1956.619588][ T71] raw: ffff88801060b400 00000000000a0004 00000001ffffffff 0000000000000000 [ 1956.620045][ T71] page dumped because: kasan: bad access detected [ 1956.620387][ T71] [ 1956.620531][ T71] Memory state around the buggy address: [ 1956.620848][ T71] ffff888010608a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 1956.621270][ T71] ffff888010608b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 1956.621705][ T71] >ffff888010608b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 1956.622133][ T71] ^ [ 1956.622538][ T71] ffff888010608c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 1956.622972][ T71] ffff888010608c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 1956.623413][ T71] ================================================================== [ 1956.623864][ T71] Disabling lock debugging due to kernel taint [ 1956.624234][ T71] general protection fault, probably for non-canonical address 0xeb4b474b4b4b4b4b: 0000 [#1] PREEMPT SMP KASAN NOPTI [ 1956.624875][ T71] KASAN: maybe wild-memory-access in range [0x5a5a5a5a5a5a5a58-0x5a5a5a5a5a5a5a5f] [ 1956.625377][ T71] CPU: 1 PID: 71 Comm: kworker/u8:1 Tainted: G B 6.8.0-rc2-virtme #1 [ 1956.625883][ T71] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 1956.626521][ T71] Workqueue: netns cleanup_net [ 1956.626786][ T71] RIP: 0010:vxlan_netdevice_event+0x19e/0x340 [vxlan] [ 1956.627196][ T71] 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 [ 1956.628244][ T71] RSP: 0018:ffffc9000051f980 EFLAGS: 00010206 [ 1956.628553][ T71] RAX: 0b4b4b4b4b4b4b4b RBX: 5a5a5a5a5a5a5a2a RCX: dffffc0000000000 [ 1956.628979][ T71] RDX: 5a5a5a5a5a5a5a5a RSI: 0000000000000004 RDI: ffff888010608c44 [ 1956.629402][ T71] RBP: 1ffff920000a3f33 R08: 1ffff11000e2c81a R09: ffffc9000051f9b8 [ 1956.629825][ T71] R10: ffffffff8b434a07 R11: 205d313754202020 R12: ffffed1000e2c81a [ 1956.630273][ T71] R13: ffff888010608bc0 R14: ffff88800e051000 R15: ffff888007164000 [ 1956.630710][ T71] FS: 0000000000000000(0000) GS:ffff888035600000(0000) knlGS:0000000000000000 [ 1956.631192][ T71] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1956.631564][ T71] CR2: 00007fa9e83cc1b4 CR3: 000000001e334004 CR4: 0000000000770ef0 [ 1956.631988][ T71] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 1956.632429][ T71] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 1956.632829][ T71] PKRU: 55555554 [ 1956.633011][ T71] Call Trace: [ 1956.633181][ T71] [ 1956.633335][ T71] ? die_addr+0x41/0xa0 [ 1956.633559][ T71] ? exc_general_protection+0x149/0x220 [ 1956.633851][ T71] ? asm_exc_general_protection+0x26/0x30 [ 1956.634147][ T71] ? vxlan_netdevice_event+0x19e/0x340 [vxlan] [ 1956.634475][ T71] ? __pfx_vxlan_netdevice_event+0x10/0x10 [vxlan] [ 1956.634820][ T71] ? mpls_dev_notify+0x3c1/0x550 [mpls_router] [ 1956.635145][ T71] notifier_call_chain+0x9a/0x290 [ 1956.635414][ T71] unregister_netdevice_many_notify+0x55a/0x1180 [ 1956.635749][ T71] ? mutex_is_locked+0x17/0x50 [ 1956.635998][ T71] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 1956.636344][ T71] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 1956.636695][ T71] default_device_exit_batch+0x228/0x2c0 [ 1956.637003][ T71] ? __pfx_default_device_exit_batch+0x10/0x10 [ 1956.637340][ T71] ? mutex_is_locked+0x17/0x50 [ 1956.637599][ T71] ? nexthop_net_exit_batch_rtnl+0x83/0x210 [ 1956.637943][ T71] cleanup_net+0x4f3/0xb50 [ 1956.638207][ T71] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 1956.638520][ T71] ? __pfx_cleanup_net+0x10/0x10 [ 1956.638816][ T71] ? lock_acquire+0x1c1/0x220 [ 1956.639055][ T71] ? process_one_work+0x714/0x1310 [ 1956.639321][ T71] process_one_work+0x78c/0x1310 [ 1956.639638][ T71] ? hlock_class+0x4e/0x130 [ 1956.639883][ T71] ? __pfx_process_one_work+0x10/0x10 [ 1956.640183][ T71] ? assign_work+0x16c/0x240 [ 1956.640439][ T71] worker_thread+0x73d/0x1010 [ 1956.640702][ T71] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370 [ 1956.641082][ T71] ? __pfx_worker_thread+0x10/0x10 [ 1956.641359][ T71] ? __pfx_worker_thread+0x10/0x10 [ 1956.641633][ T71] kthread+0x28f/0x360 [ 1956.641843][ T71] ? __pfx_kthread+0x10/0x10 [ 1956.642094][ T71] ret_from_fork+0x31/0x70 [ 1956.642336][ T71] ? __pfx_kthread+0x10/0x10 [ 1956.642593][ T71] ret_from_fork_asm+0x1b/0x30 [ 1956.642867][ T71] [ 1956.643025][ T71] Modules linked in: nft_chain_nat xt_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nft_compat nf_tables libcrc32c vxlan ip6_udp_tunnel udp_tunnel mpls_iptunnel mpls_router [ 1956.644065][ T71] ---[ end trace 0000000000000000 ]--- [ 1956.644378][ T71] RIP: 0010:vxlan_netdevice_event+0x19e/0x340 [vxlan] [ 1956.644852][ T71] 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 [ 1956.646002][ T71] RSP: 0018:ffffc9000051f980 EFLAGS: 00010206 [ 1956.646343][ T71] RAX: 0b4b4b4b4b4b4b4b RBX: 5a5a5a5a5a5a5a2a RCX: dffffc0000000000 [ 1956.646794][ T71] RDX: 5a5a5a5a5a5a5a5a RSI: 0000000000000004 RDI: ffff888010608c44 [ 1956.647237][ T71] RBP: 1ffff920000a3f33 R08: 1ffff11000e2c81a R09: ffffc9000051f9b8 [ 1956.647837][ T71] R10: ffffffff8b434a07 R11: 205d313754202020 R12: ffffed1000e2c81a [ 1956.648277][ T71] R13: ffff888010608bc0 R14: ffff88800e051000 R15: ffff888007164000 [ 1956.648845][ T71] FS: 0000000000000000(0000) GS:ffff888035600000(0000) knlGS:0000000000000000 [ 1956.649344][ T71] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 1956.649867][ T71] CR2: 00007fa9e83cc1b4 CR3: 000000001e334004 CR4: 0000000000770ef0 [ 1956.650276][ T71] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 1956.650767][ T71] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 1956.651194][ T71] PKRU: 55555554 [ 1956.651378][ T71] Kernel panic - not syncing: Fatal exception [ 1956.651832][ T71] Kernel Offset: 0x4a00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 1956.652416][ T71] ---[ end Kernel panic - not syncing: Fatal exception ]--- WAIT TIMEOUT stdout Ctrl-C stdout Ctrl-C stdout WAIT TIMEOUT stdout