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 ] [ 218.295121][ T71] ================================================================== [ 218.295764][ T71] BUG: KASAN: slab-out-of-bounds in vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 218.296475][ T71] Read of size 8 at addr ffff888006158bf0 by task kworker/u8:1/71 [ 218.297057][ T71] [ 218.297240][ T71] CPU: 2 PID: 71 Comm: kworker/u8:1 Not tainted 6.8.0-rc2-virtme #1 [ 218.297841][ T71] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 218.298826][ T71] Workqueue: netns cleanup_net [ 218.299206][ T71] Call Trace: [ 218.299494][ T71] [ 218.299719][ T71] dump_stack_lvl+0x64/0xb0 [ 218.300121][ T71] print_address_description.constprop.0+0x2c/0x3b0 [ 218.300669][ T71] ? vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 218.301189][ T71] print_report+0xb5/0x270 [ 218.301566][ T71] ? kasan_addr_to_slab+0x4e/0x90 [ 218.301983][ T71] kasan_report+0xbe/0xf0 [ 218.302332][ T71] ? vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 218.302882][ T71] vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 218.303380][ T71] ? __pfx_vxlan_netdevice_event+0x10/0x10 [vxlan] [ 218.303949][ T71] ? netconsole_netdev_event+0x1b4/0x300 [ 218.304417][ T71] notifier_call_chain+0x9a/0x290 [ 218.304806][ T71] unregister_netdevice_many_notify+0x55a/0x1180 [ 218.305150][ T71] ? mutex_is_locked+0x17/0x50 [ 218.305435][ T71] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 218.305821][ T71] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 218.306252][ T71] default_device_exit_batch+0x228/0x2c0 [ 218.306576][ T71] ? __pfx_default_device_exit_batch+0x10/0x10 [ 218.306934][ T71] ? mutex_is_locked+0x17/0x50 [ 218.307225][ T71] ? nexthop_net_exit_batch_rtnl+0x83/0x210 [ 218.307619][ T71] cleanup_net+0x4f3/0xb50 [ 218.307980][ T71] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 218.308320][ T71] ? __pfx_cleanup_net+0x10/0x10 [ 218.308677][ T71] ? lock_acquire+0x1c1/0x220 [ 218.309063][ T71] ? process_one_work+0x714/0x1310 [ 218.309466][ T71] process_one_work+0x78c/0x1310 [ 218.309845][ T71] ? hlock_class+0x4e/0x130 [ 218.310190][ T71] ? __pfx_process_one_work+0x10/0x10 [ 218.310599][ T71] ? assign_work+0x16c/0x240 [ 218.310950][ T71] worker_thread+0x73d/0x1010 [ 218.311308][ T71] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370 [ 218.311808][ T71] ? __pfx_worker_thread+0x10/0x10 [ 218.312196][ T71] ? __pfx_worker_thread+0x10/0x10 [ 218.312582][ T71] kthread+0x28f/0x360 [ 218.312895][ T71] ? __pfx_kthread+0x10/0x10 [ 218.313247][ T71] ret_from_fork+0x31/0x70 [ 218.313585][ T71] ? __pfx_kthread+0x10/0x10 [ 218.313934][ T71] ret_from_fork_asm+0x1b/0x30 [ 218.314307][ T71] [ 218.314542][ T71] [ 218.314723][ T71] Allocated by task 71: [ 218.315088][ T71] kasan_save_stack+0x24/0x50 [ 218.315487][ T71] kasan_save_track+0x14/0x30 [ 218.315867][ T71] __kasan_kmalloc+0x7f/0x90 [ 218.316227][ T71] __kmalloc_node_track_caller+0x1fb/0x440 [ 218.316737][ T71] kmalloc_reserve+0xbc/0x1f0 [ 218.317119][ T71] __alloc_skb+0xd4/0x280 [ 218.317461][ T71] inet6_rt_notify+0xda/0x280 [ 218.317852][ T71] fib6_del_route+0x823/0x11e0 [ 218.318259][ T71] fib6_del+0x1f4/0x2e0 [ 218.318613][ T71] fib6_clean_node+0x31a/0x510 [ 218.318883][ T71] fib6_walk_continue+0x2ff/0x610 [ 218.319163][ T71] fib6_walk+0x152/0x380 [ 218.319413][ T71] fib6_clean_tree+0xaf/0xf0 [ 218.319697][ T71] __fib6_clean_all+0xe0/0x230 [ 218.319945][ T71] rt6_disable_ip+0x11c/0x140 [ 218.320215][ T71] addrconf_ifdown.isra.0+0x104/0x1540 [ 218.320511][ T71] addrconf_notify+0xd1/0xd40 [ 218.320785][ T71] notifier_call_chain+0x9a/0x290 [ 218.321045][ T71] dev_close_many+0x2d8/0x650 [ 218.321350][ T71] unregister_netdevice_many_notify+0x3d5/0x1180 [ 218.321706][ T71] default_device_exit_batch+0x228/0x2c0 [ 218.322005][ T71] cleanup_net+0x4f3/0xb50 [ 218.322265][ T71] process_one_work+0x78c/0x1310 [ 218.322557][ T71] worker_thread+0x73d/0x1010 [ 218.322801][ T71] kthread+0x28f/0x360 [ 218.323039][ T71] ret_from_fork+0x31/0x70 [ 218.323286][ T71] ret_from_fork_asm+0x1b/0x30 [ 218.323531][ T71] [ 218.323684][ T71] Freed by task 71: [ 218.323885][ T71] kasan_save_stack+0x24/0x50 [ 218.324179][ T71] kasan_save_track+0x14/0x30 [ 218.324451][ T71] kasan_save_free_info+0x3f/0x60 [ 218.324710][ T71] __kasan_slab_free+0xfc/0x1c0 [ 218.324973][ T71] kfree+0xf2/0x2d0 [ 218.325212][ T71] skb_release_data+0x56b/0x770 [ 218.325463][ T71] consume_skb+0xad/0x110 [ 218.325721][ T71] netlink_broadcast_filtered+0x224/0x340 [ 218.326040][ T71] nlmsg_notify+0x6e/0x1e0 [ 218.326280][ T71] fib6_del_route+0x823/0x11e0 [ 218.326544][ T71] fib6_del+0x1f4/0x2e0 [ 218.326795][ T71] fib6_clean_node+0x31a/0x510 [ 218.327049][ T71] fib6_walk_continue+0x2ff/0x610 [ 218.327348][ T71] fib6_walk+0x152/0x380 [ 218.327599][ T71] fib6_clean_tree+0xaf/0xf0 [ 218.327850][ T71] __fib6_clean_all+0xe0/0x230 [ 218.328129][ T71] rt6_disable_ip+0x11c/0x140 [ 218.328402][ T71] addrconf_ifdown.isra.0+0x104/0x1540 [ 218.328721][ T71] addrconf_notify+0xd1/0xd40 [ 218.328965][ T71] notifier_call_chain+0x9a/0x290 [ 218.329255][ T71] dev_close_many+0x2d8/0x650 [ 218.329513][ T71] unregister_netdevice_many_notify+0x3d5/0x1180 [ 218.329870][ T71] default_device_exit_batch+0x228/0x2c0 [ 218.330201][ T71] cleanup_net+0x4f3/0xb50 [ 218.330432][ T71] process_one_work+0x78c/0x1310 [ 218.330712][ T71] worker_thread+0x73d/0x1010 [ 218.330966][ T71] kthread+0x28f/0x360 [ 218.331184][ T71] ret_from_fork+0x31/0x70 [ 218.331414][ T71] ret_from_fork_asm+0x1b/0x30 [ 218.331697][ T71] [ 218.331853][ T71] The buggy address belongs to the object at ffff888006158400 [ 218.331853][ T71] which belongs to the cache kmalloc-1k of size 1024 [ 218.332568][ T71] The buggy address is located 1008 bytes to the right of [ 218.332568][ T71] allocated 1024-byte region [ffff888006158400, ffff888006158800) [ 218.333330][ T71] [ 218.333465][ T71] The buggy address belongs to the physical page: [ 218.333890][ T71] page:ffffea0000185600 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6158 [ 218.334558][ T71] head:ffffea0000185600 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 218.335138][ T71] flags: 0x80000000000840(slab|head|node=0|zone=1) [ 218.335522][ T71] page_type: 0xffffffff() [ 218.335836][ T71] raw: 0080000000000840 ffff888001043380 ffffea000025b610 ffff8880010416f0 [ 218.336477][ T71] raw: 0000000000000000 00000000000a000a 00000001ffffffff 0000000000000000 [ 218.337121][ T71] page dumped because: kasan: bad access detected [ 218.337665][ T71] [ 218.337847][ T71] Memory state around the buggy address: [ 218.338320][ T71] ffff888006158a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 218.338996][ T71] ffff888006158b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 218.339651][ T71] >ffff888006158b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 218.340290][ T71] ^ [ 218.340911][ T71] ffff888006158c00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 218.341586][ T71] ffff888006158c80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 218.342228][ T71] ================================================================== [ 218.343416][ T71] Disabling lock debugging due to kernel taint [ 218.343953][ T71] general protection fault, probably for non-canonical address 0xeb4b474b4b4b4b4b: 0000 [#1] PREEMPT SMP KASAN NOPTI [ 218.344700][ T71] KASAN: maybe wild-memory-access in range [0x5a5a5a5a5a5a5a58-0x5a5a5a5a5a5a5a5f] [ 218.345305][ T71] CPU: 2 PID: 71 Comm: kworker/u8:1 Tainted: G B 6.8.0-rc2-virtme #1 [ 218.345893][ T71] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 218.346834][ T71] Workqueue: netns cleanup_net [ 218.347211][ T71] RIP: 0010:vxlan_netdevice_event+0x19e/0x340 [vxlan] [ 218.347799][ 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 [ 218.349420][ T71] RSP: 0018:ffffc9000050f980 EFLAGS: 00010206 [ 218.349928][ T71] RAX: 0b4b4b4b4b4b4b4b RBX: 5a5a5a5a5a5a5a2a RCX: dffffc0000000000 [ 218.350599][ T71] RDX: 5a5a5a5a5a5a5a5a RSI: 0000000000000004 RDI: ffff888006158c44 [ 218.351239][ T71] RBP: 1ffff920000a1f33 R08: 1ffff11002d7281a R09: ffffc9000050f9b8 [ 218.351914][ T71] R10: ffffffff9a834a07 R11: 205d313754202020 R12: ffffed1002d7281a [ 218.352512][ T71] R13: ffff888006158bc0 R14: ffff888006414000 R15: ffff888016b94000 [ 218.353117][ T71] FS: 0000000000000000(0000) GS:ffff888035a00000(0000) knlGS:0000000000000000 [ 218.353789][ T71] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 218.354287][ T71] CR2: 00007f419bc700e0 CR3: 0000000014f34004 CR4: 0000000000770ef0 [ 218.354881][ T71] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 218.355481][ T71] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 218.356081][ T71] PKRU: 55555554 [ 218.356354][ T71] Call Trace: [ 218.356610][ T71] [ 218.356882][ T71] ? die_addr+0x41/0xa0 [ 218.357235][ T71] ? exc_general_protection+0x149/0x220 [ 218.357720][ T71] ? asm_exc_general_protection+0x26/0x30 [ 218.358189][ T71] ? vxlan_netdevice_event+0x19e/0x340 [vxlan] [ 218.358720][ T71] ? __pfx_vxlan_netdevice_event+0x10/0x10 [vxlan] [ 218.359261][ T71] ? netconsole_netdev_event+0x1b4/0x300 [ 218.359650][ T71] notifier_call_chain+0x9a/0x290 [ 218.359914][ T71] unregister_netdevice_many_notify+0x55a/0x1180 [ 218.360249][ T71] ? mutex_is_locked+0x17/0x50 [ 218.360496][ T71] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 218.360839][ T71] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 218.361205][ T71] default_device_exit_batch+0x228/0x2c0 [ 218.361505][ T71] ? __pfx_default_device_exit_batch+0x10/0x10 [ 218.361819][ T71] ? mutex_is_locked+0x17/0x50 [ 218.362073][ T71] ? nexthop_net_exit_batch_rtnl+0x83/0x210 [ 218.362410][ T71] cleanup_net+0x4f3/0xb50 [ 218.362664][ T71] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 218.362978][ T71] ? __pfx_cleanup_net+0x10/0x10 [ 218.363268][ T71] ? lock_acquire+0x1c1/0x220 [ 218.363510][ T71] ? process_one_work+0x714/0x1310 [ 218.363775][ T71] process_one_work+0x78c/0x1310 [ 218.364031][ T71] ? hlock_class+0x4e/0x130 [ 218.364279][ T71] ? __pfx_process_one_work+0x10/0x10 [ 218.364557][ T71] ? assign_work+0x16c/0x240 [ 218.364794][ T71] worker_thread+0x73d/0x1010 [ 218.365040][ T71] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370 [ 218.365379][ T71] ? __pfx_worker_thread+0x10/0x10 [ 218.365642][ T71] ? __pfx_worker_thread+0x10/0x10 [ 218.365902][ T71] kthread+0x28f/0x360 [ 218.366120][ T71] ? __pfx_kthread+0x10/0x10 [ 218.366356][ T71] ret_from_fork+0x31/0x70 [ 218.366586][ T71] ? __pfx_kthread+0x10/0x10 [ 218.366823][ T71] ret_from_fork_asm+0x1b/0x30 [ 218.367083][ T71] [ 218.367241][ T71] Modules linked in: vxlan ip6_udp_tunnel udp_tunnel act_csum libcrc32c act_pedit cls_flower sch_prio [ 218.367830][ T71] ---[ end trace 0000000000000000 ]--- [ 218.368148][ T71] RIP: 0010:vxlan_netdevice_event+0x19e/0x340 [vxlan] [ 218.369430][ 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 [ 218.370631][ T71] RSP: 0018:ffffc9000050f980 EFLAGS: 00010206 [ 218.370946][ T71] RAX: 0b4b4b4b4b4b4b4b RBX: 5a5a5a5a5a5a5a2a RCX: dffffc0000000000 [ 218.371445][ T71] RDX: 5a5a5a5a5a5a5a5a RSI: 0000000000000004 RDI: ffff888006158c44 [ 218.371886][ T71] RBP: 1ffff920000a1f33 R08: 1ffff11002d7281a R09: ffffc9000050f9b8 [ 218.372395][ T71] R10: ffffffff9a834a07 R11: 205d313754202020 R12: ffffed1002d7281a [ 218.372801][ T71] R13: ffff888006158bc0 R14: ffff888006414000 R15: ffff888016b94000 [ 218.373384][ T71] FS: 0000000000000000(0000) GS:ffff888035a00000(0000) knlGS:0000000000000000 [ 218.374005][ T71] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 218.374646][ T71] CR2: 00007f419bc700e0 CR3: 0000000014f34004 CR4: 0000000000770ef0 [ 218.375255][ T71] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 218.375855][ T71] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 218.376468][ T71] PKRU: 55555554 [ 218.376743][ T71] Kernel panic - not syncing: Fatal exception [ 218.377331][ T71] Kernel Offset: 0x13e00000 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffffbfffffff) [ 218.378208][ T71] ---[ end Kernel panic - not syncing: Fatal exception ]--- WAIT TIMEOUT stdout Ctrl-C stdout Ctrl-C stdout WAIT TIMEOUT stdout