make -C tools/testing/selftests TARGETS=net TEST_PROGS=pmtu.sh TEST_GEN_PRROGS="" 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: pmtu.sh # TEST: ipv4: PMTU exceptions [ OK ] # TEST: ipv4: PMTU exceptions - nexthop objects [ OK ] # TEST: ipv6: PMTU exceptions [ OK ] # TEST: ipv6: PMTU exceptions - nexthop objects [ OK ] # TEST: ICMPv4 with DSCP and ECN: PMTU exceptions [ OK ] # TEST: ICMPv4 with DSCP and ECN: PMTU exceptions - nexthop objects [ OK ] # TEST: UDPv4 with DSCP and ECN: PMTU exceptions [ OK ] # TEST: UDPv4 with DSCP and ECN: PMTU exceptions - nexthop objects [ OK ] # TEST: IPv4 over vxlan4: PMTU exceptions [ OK ] [ 230.509238][ T11] ================================================================== [ 230.509740][ T11] BUG: KASAN: slab-out-of-bounds in vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 230.510239][ T11] Read of size 8 at addr ffff888009988bf0 by task kworker/u8:0/11 [ 230.510641][ T11] [ 230.510773][ T11] CPU: 0 PID: 11 Comm: kworker/u8:0 Not tainted 6.8.0-rc2-virtme #1 [ 230.511205][ T11] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 230.511851][ T11] Workqueue: netns cleanup_net [ 230.512111][ T11] Call Trace: [ 230.512287][ T11] [ 230.512451][ T11] dump_stack_lvl+0x64/0xb0 [ 230.512695][ T11] print_address_description.constprop.0+0x2c/0x3b0 [ 230.513039][ T11] ? vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 230.513384][ T11] print_report+0xb5/0x270 [ 230.513626][ T11] ? kasan_addr_to_slab+0x4e/0x90 [ 230.513883][ T11] kasan_report+0xbe/0xf0 [ 230.514106][ T11] ? vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 230.514433][ T11] vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 230.514754][ T11] ? __pfx_vxlan_netdevice_event+0x10/0x10 [vxlan] [ 230.515098][ T11] ? netconsole_netdev_event+0x1b4/0x300 [ 230.515404][ T11] notifier_call_chain+0x9a/0x290 [ 230.515667][ T11] unregister_netdevice_many_notify+0x55a/0x1180 [ 230.515993][ T11] ? mutex_is_locked+0x17/0x50 [ 230.516244][ T11] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 230.516613][ T11] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 230.516941][ T11] default_device_exit_batch+0x228/0x2c0 [ 230.517239][ T11] ? __pfx_default_device_exit_batch+0x10/0x10 [ 230.517552][ T11] ? mutex_is_locked+0x17/0x50 [ 230.517802][ T11] ? nexthop_net_exit_batch_rtnl+0x83/0x210 [ 230.518143][ T11] cleanup_net+0x4f3/0xb50 [ 230.518381][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 230.518678][ T11] ? __pfx_cleanup_net+0x10/0x10 [ 230.518944][ T11] ? lock_acquire+0x1c1/0x220 [ 230.519185][ T11] ? process_one_work+0x714/0x1310 [ 230.519466][ T11] process_one_work+0x78c/0x1310 [ 230.519723][ T11] ? hlock_class+0x4e/0x130 [ 230.519970][ T11] ? __pfx_process_one_work+0x10/0x10 [ 230.520271][ T11] ? assign_work+0x16c/0x240 [ 230.520510][ T11] worker_thread+0x73d/0x1010 [ 230.520767][ T11] ? __pfx_worker_thread+0x10/0x10 [ 230.521036][ T11] kthread+0x28f/0x360 [ 230.521258][ T11] ? __pfx_kthread+0x10/0x10 [ 230.521500][ T11] ret_from_fork+0x31/0x70 [ 230.521740][ T11] ? __pfx_kthread+0x10/0x10 [ 230.521984][ T11] ret_from_fork_asm+0x1b/0x30 [ 230.522248][ T11] [ 230.522411][ T11] [ 230.522537][ T11] Allocated by task 11: [ 230.522760][ T11] kasan_save_stack+0x24/0x50 [ 230.523015][ T11] kasan_save_track+0x14/0x30 [ 230.523262][ T11] __kasan_kmalloc+0x7f/0x90 [ 230.523512][ T11] __kmalloc_node_track_caller+0x1fb/0x440 [ 230.523837][ T11] kmalloc_reserve+0xbc/0x1f0 [ 230.524142][ T11] __alloc_skb+0xd4/0x280 [ 230.524456][ T11] inet6_rt_notify+0xda/0x280 [ 230.524803][ T11] fib6_del_route+0x823/0x11e0 [ 230.525051][ T11] fib6_del+0x1f4/0x2e0 [ 230.525276][ T11] fib6_clean_node+0x31a/0x510 [ 230.525522][ T11] fib6_walk_continue+0x2ff/0x610 [ 230.525778][ T11] fib6_walk+0x152/0x380 [ 230.525994][ T11] fib6_clean_tree+0xaf/0xf0 [ 230.526246][ T11] __fib6_clean_all+0xe0/0x230 [ 230.526495][ T11] rt6_disable_ip+0x11c/0x140 [ 230.526748][ T11] addrconf_ifdown.isra.0+0x104/0x1540 [ 230.527037][ T11] addrconf_notify+0xd1/0xd40 [ 230.527293][ T11] notifier_call_chain+0x9a/0x290 [ 230.527553][ T11] dev_close_many+0x2d8/0x650 [ 230.527796][ T11] unregister_netdevice_many_notify+0x3d5/0x1180 [ 230.528130][ T11] default_device_exit_batch+0x228/0x2c0 [ 230.528420][ T11] cleanup_net+0x4f3/0xb50 [ 230.528647][ T11] process_one_work+0x78c/0x1310 [ 230.528900][ T11] worker_thread+0x73d/0x1010 [ 230.529147][ T11] kthread+0x28f/0x360 [ 230.529370][ T11] ret_from_fork+0x31/0x70 [ 230.529607][ T11] ret_from_fork_asm+0x1b/0x30 [ 230.529853][ T11] [ 230.529975][ T11] Freed by task 11: [ 230.530169][ T11] kasan_save_stack+0x24/0x50 [ 230.530418][ T11] kasan_save_track+0x14/0x30 [ 230.530658][ T11] kasan_save_free_info+0x3f/0x60 [ 230.530916][ T11] __kasan_slab_free+0xfc/0x1c0 [ 230.531164][ T11] kfree+0xf2/0x2d0 [ 230.531363][ T11] skb_release_data+0x544/0x740 [ 230.531612][ T11] consume_skb+0xad/0x110 [ 230.531833][ T11] netlink_broadcast_filtered+0x224/0x340 [ 230.532123][ T11] nlmsg_notify+0x6e/0x1e0 [ 230.532357][ T11] fib6_del_route+0x823/0x11e0 [ 230.532601][ T11] fib6_del+0x1f4/0x2e0 [ 230.532815][ T11] fib6_clean_node+0x31a/0x510 [ 230.533059][ T11] fib6_walk_continue+0x2ff/0x610 [ 230.533315][ T11] fib6_walk+0x152/0x380 [ 230.533531][ T11] fib6_clean_tree+0xaf/0xf0 [ 230.533768][ T11] __fib6_clean_all+0xe0/0x230 [ 230.534011][ T11] rt6_disable_ip+0x11c/0x140 [ 230.534250][ T11] addrconf_ifdown.isra.0+0x104/0x1540 [ 230.534529][ T11] addrconf_notify+0xd1/0xd40 [ 230.534769][ T11] notifier_call_chain+0x9a/0x290 [ 230.535025][ T11] dev_close_many+0x2d8/0x650 [ 230.535266][ T11] unregister_netdevice_many_notify+0x3d5/0x1180 [ 230.535587][ T11] default_device_exit_batch+0x228/0x2c0 [ 230.535872][ T11] cleanup_net+0x4f3/0xb50 [ 230.536099][ T11] process_one_work+0x78c/0x1310 [ 230.536353][ T11] worker_thread+0x73d/0x1010 [ 230.536593][ T11] kthread+0x28f/0x360 [ 230.536800][ T11] ret_from_fork+0x31/0x70 [ 230.537027][ T11] ret_from_fork_asm+0x1b/0x30 [ 230.537280][ T11] [ 230.537403][ T11] The buggy address belongs to the object at ffff888009988400 [ 230.537403][ T11] which belongs to the cache kmalloc-1k of size 1024 [ 230.538261][ T11] The buggy address is located 1008 bytes to the right of [ 230.538261][ T11] allocated 1024-byte region [ffff888009988400, ffff888009988800) [ 230.539029][ T11] [ 230.539155][ T11] The buggy address belongs to the physical page: [ 230.539496][ T11] page:ffffea0000266200 refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88800998cc00 pfn:0x9988 [ 230.540077][ T11] head:ffffea0000266200 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 230.540544][ T11] flags: 0x80000000000a40(workingset|slab|head|node=0|zone=1) [ 230.540932][ T11] page_type: 0xffffffff() [ 230.541169][ T11] raw: 0080000000000a40 ffff888001043380 ffff8880010416d0 ffff8880010416d0 [ 230.541617][ T11] raw: ffff88800998cc00 00000000000a0006 00000001ffffffff 0000000000000000 [ 230.542059][ T11] page dumped because: kasan: bad access detected [ 230.542399][ T11] [ 230.542526][ T11] Memory state around the buggy address: [ 230.542827][ T11] ffff888009988a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 230.543251][ T11] ffff888009988b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 230.543674][ T11] >ffff888009988b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 230.544095][ T11] ^ [ 230.544495][ T11] ffff888009988c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 230.544918][ T11] ffff888009988c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 230.545335][ T11] ================================================================== [ 230.546972][ T11] Disabling lock debugging due to kernel taint [ 230.547455][ T11] general protection fault, probably for non-canonical address 0xeb4b474b4b4b4b4b: 0000 [#1] PREEMPT SMP KASAN NOPTI [ 230.548125][ T11] KASAN: maybe wild-memory-access in range [0x5a5a5a5a5a5a5a58-0x5a5a5a5a5a5a5a5f] [ 230.548622][ T11] CPU: 0 PID: 11 Comm: kworker/u8:0 Tainted: G B 6.8.0-rc2-virtme #1 [ 230.549141][ T11] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 230.549786][ T11] Workqueue: netns cleanup_net [ 230.550053][ T11] RIP: 0010:vxlan_netdevice_event+0x19e/0x340 [vxlan] [ 230.550446][ 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 [ 230.551487][ T11] RSP: 0018:ffffc900000bf980 EFLAGS: 00010206 [ 230.551816][ T11] RAX: 0b4b4b4b4b4b4b4b RBX: 5a5a5a5a5a5a5a2a RCX: dffffc0000000000 [ 230.552250][ T11] RDX: 5a5a5a5a5a5a5a5a RSI: 0000000000000004 RDI: ffff888009988c44 [ 230.552677][ T11] RBP: 1ffff92000017f33 R08: 1ffff1100122321a R09: ffffc900000bf9b8 [ 230.553098][ T11] R10: ffffffff8e834a07 R11: 205d313154202020 R12: ffffed100122321a [ 230.553527][ T11] R13: ffff888009988bc0 R14: ffff888005c5c000 R15: ffff888009119000 [ 230.553953][ T11] FS: 0000000000000000(0000) GS:ffff888035200000(0000) knlGS:0000000000000000 [ 230.554433][ T11] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 230.554782][ T11] CR2: 00007f384124530d CR3: 000000000f934003 CR4: 0000000000770ef0 [ 230.555213][ T11] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 230.555615][ T11] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 230.556019][ T11] PKRU: 55555554 [ 230.556215][ T11] Call Trace: [ 230.556389][ T11] [ 230.556546][ T11] ? die_addr+0x41/0xa0 [ 230.556763][ T11] ? exc_general_protection+0x149/0x220 [ 230.557062][ T11] ? asm_exc_general_protection+0x26/0x30 [ 230.557362][ T11] ? vxlan_netdevice_event+0x19e/0x340 [vxlan] [ 230.557701][ T11] ? __pfx_vxlan_netdevice_event+0x10/0x10 [vxlan] [ 230.558064][ T11] ? netconsole_netdev_event+0x1b4/0x300 [ 230.558364][ T11] notifier_call_chain+0x9a/0x290 [ 230.558637][ T11] unregister_netdevice_many_notify+0x55a/0x1180 [ 230.558971][ T11] ? mutex_is_locked+0x17/0x50 [ 230.559220][ T11] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 230.559572][ T11] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 230.559907][ T11] default_device_exit_batch+0x228/0x2c0 [ 230.560208][ T11] ? __pfx_default_device_exit_batch+0x10/0x10 [ 230.560536][ T11] ? mutex_is_locked+0x17/0x50 [ 230.560787][ T11] ? nexthop_net_exit_batch_rtnl+0x83/0x210 [ 230.561107][ T11] cleanup_net+0x4f3/0xb50 [ 230.561351][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 230.561653][ T11] ? __pfx_cleanup_net+0x10/0x10 [ 230.561922][ T11] ? lock_acquire+0x1c1/0x220 [ 230.562177][ T11] ? process_one_work+0x714/0x1310 [ 230.562460][ T11] process_one_work+0x78c/0x1310 [ 230.562729][ T11] ? hlock_class+0x4e/0x130 [ 230.562976][ T11] ? __pfx_process_one_work+0x10/0x10 [ 230.563268][ T11] ? assign_work+0x16c/0x240 [ 230.563513][ T11] worker_thread+0x73d/0x1010 [ 230.563770][ T11] ? __pfx_worker_thread+0x10/0x10 [ 230.564040][ T11] kthread+0x28f/0x360 [ 230.564263][ T11] ? __pfx_kthread+0x10/0x10 [ 230.564506][ T11] ret_from_fork+0x31/0x70 [ 230.564747][ T11] ? __pfx_kthread+0x10/0x10 [ 230.564994][ T11] ret_from_fork_asm+0x1b/0x30 [ 230.565258][ T11] [ 230.565427][ T11] Modules linked in: vxlan ip6_udp_tunnel udp_tunnel act_csum libcrc32c act_pedit cls_flower sch_prio [ 230.566132][ T11] ---[ end trace 0000000000000000 ]--- [ 230.567557][ T11] RIP: 0010:vxlan_netdevice_event+0x19e/0x340 [vxlan] [ 230.568093][ 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 [ 230.569166][ T11] RSP: 0018:ffffc900000bf980 EFLAGS: 00010206 [ 230.569499][ T11] RAX: 0b4b4b4b4b4b4b4b RBX: 5a5a5a5a5a5a5a2a RCX: dffffc0000000000 [ 230.569914][ T11] RDX: 5a5a5a5a5a5a5a5a RSI: 0000000000000004 RDI: ffff888009988c44 [ 230.570343][ T11] RBP: 1ffff92000017f33 R08: 1ffff1100122321a R09: ffffc900000bf9b8 [ 230.570758][ T11] R10: ffffffff8e834a07 R11: 205d313154202020 R12: ffffed100122321a [ 230.571162][ T11] R13: ffff888009988bc0 R14: ffff888005c5c000 R15: ffff888009119000 [ 230.571591][ T11] FS: 0000000000000000(0000) GS:ffff888035200000(0000) knlGS:0000000000000000 [ 230.572049][ T11] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 230.572496][ T11] CR2: 00007f384124530d CR3: 000000000f934003 CR4: 0000000000770ef0 [ 230.573038][ T11] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 230.573520][ T11] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 230.574000][ T11] PKRU: 55555554 [ 230.574193][ T11] Kernel panic - not syncing: Fatal exception [ 230.574689][ T11] Kernel Offset: 0x7e00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 230.575297][ T11] ---[ end Kernel panic - not syncing: Fatal exception ]--- WAIT TIMEOUT stdout Ctrl-C stdout Ctrl-C stdout WAIT TIMEOUT stdout