make -C tools/testing/selftests TARGETS=net TEST_PROGS=rtnetlink.sh TEST_GGEN_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: rtnetlink.sh # PASS: policy routing # PASS: route get # PASS: preferred_lft addresses have expired # PASS: promote_secondaries complete [ 2005.971370][T15895] u32 classifier [ 2005.971610][T15895] input device check on [ 2005.971845][T15895] Actions configured # PASS: tc htb hierarchy [ 2007.621602][T15914] gre: GRE over IPv4 demultiplexor driver [ 2007.644058][T15914] ip_gre: GRE over IPv4 tunneling driver # PASS: gre tunnel endpoint # PASS: gretap [ 2012.501430][T15974] ip6_gre: GRE over IPv6 tunneling driver [ 2012.929421][T13511] ip6_tunnel: ip6gretap00 xmit: Local address not yet configured! [ 2012.977328][T13511] ip6_tunnel: ip6gretap00 xmit: Local address not yet configured! # PASS: ip6gretap # PASS: erspan [ 2018.050455][T11681] ip6_tunnel: ip6erspan00 xmit: Local address not yet configured! [ 2018.709379][T11681] ip6_tunnel: ip6erspan00 xmit: Local address not yet configured! [ 2018.732598][ T11] ip6_tunnel: ip6erspan00 xmit: Local address not yet configured! # PASS: ip6erspan [ 2019.745533][T16049] test-br0: port 1(test-dummy0) entered blocking state [ 2019.745992][T16049] test-br0: port 1(test-dummy0) entered disabled state [ 2019.746405][T16049] test-dummy0: entered allmulticast mode [ 2019.747871][T16049] test-dummy0: entered promiscuous mode [ 2019.896083][T16052] test-br0: port 1(test-dummy0) entered blocking state [ 2019.896526][T16052] test-br0: port 1(test-dummy0) entered forwarding state [ 2022.716037][T16089] test-dummy0: left allmulticast mode [ 2022.717869][T16089] test-dummy0: left promiscuous mode [ 2022.718515][T16089] test-br0: port 1(test-dummy0) entered disabled state # PASS: bridge setup # PASS: ipv6 addrlabel # PASS: set ifalias 22e4de8a-15be-49b6-b66a-2e3f712c5ed9 for test-dummy0 # PASS: vrf [ 2166.768634][T18315] MACsec IEEE 802.1AE # PASS: macsec [ 2168.953326][T18301] netdevsim netdevsim0 eni0np1: renamed from eth0 # PASS: macsec_offload [ 2172.744774][T18382] Initializing XFRM netlink socket # PASS: ipsec [ 2177.271715][T18460] netdevsim netdevsim0 eni0np1: renamed from eth0 # PASS: ipsec_offload [ 2182.710914][T18502] test-br0: port 1(vxlan10) entered blocking state [ 2182.712107][T18502] test-br0: port 1(vxlan10) entered disabled state [ 2182.712502][T18502] vxlan10: entered allmulticast mode [ 2182.713932][T18502] vxlan10: entered promiscuous mode # PASS: bridge fdb get [ 2183.680318][ T11] vxlan10: left allmulticast mode [ 2183.680705][ T11] vxlan10: left promiscuous mode [ 2183.681203][ T11] test-br0: port 1(vxlan10) entered disabled state [ 2183.765402][ T11] ================================================================== [ 2183.765879][ T11] BUG: KASAN: use-after-free in vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 2183.766409][ T11] Read of size 8 at addr ffff888005a30bf0 by task kworker/u8:0/11 [ 2183.766816][ T11] [ 2183.766944][ T11] CPU: 0 PID: 11 Comm: kworker/u8:0 Not tainted 6.8.0-rc2-virtme #1 [ 2183.767346][ T11] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 2183.767980][ T11] Workqueue: netns cleanup_net [ 2183.768258][ T11] Call Trace: [ 2183.768430][ T11] <TASK> [ 2183.768601][ T11] dump_stack_lvl+0x64/0xb0 [ 2183.768843][ T11] print_address_description.constprop.0+0x2c/0x3b0 [ 2183.769198][ T11] ? vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 2183.769544][ T11] print_report+0xb5/0x270 [ 2183.769773][ T11] ? kasan_addr_to_slab+0x4e/0x90 [ 2183.770047][ T11] kasan_report+0xbe/0xf0 [ 2183.770276][ T11] ? vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 2183.770626][ T11] vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 2183.770962][ T11] ? __pfx_vxlan_netdevice_event+0x10/0x10 [vxlan] [ 2183.771307][ T11] ? mpls_dev_notify+0x3c1/0x550 [mpls_router] [ 2183.771649][ T11] notifier_call_chain+0x9a/0x290 [ 2183.771928][ T11] unregister_netdevice_many_notify+0x55a/0x1180 [ 2183.772268][ T11] ? mutex_is_locked+0x17/0x50 [ 2183.772514][ T11] ? mutex_is_locked+0x17/0x50 [ 2183.772771][ T11] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 2183.773117][ T11] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 2183.773449][ T11] default_device_exit_batch+0x228/0x2c0 [ 2183.773751][ T11] ? __pfx_default_device_exit_batch+0x10/0x10 [ 2183.774076][ T11] ? ops_exit_list+0xb4/0x170 [ 2183.774323][ T11] cleanup_net+0x4f3/0xb50 [ 2183.774571][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 2183.774874][ T11] ? __pfx_cleanup_net+0x10/0x10 [ 2183.775127][ T11] ? lock_acquire+0x1c1/0x220 [ 2183.775370][ T11] ? process_one_work+0x714/0x1310 [ 2183.775646][ T11] process_one_work+0x78c/0x1310 [ 2183.775906][ T11] ? hlock_class+0x4e/0x130 [ 2183.776145][ T11] ? __pfx_process_one_work+0x10/0x10 [ 2183.776441][ T11] ? assign_work+0x16c/0x240 [ 2183.776676][ T11] worker_thread+0x73d/0x1010 [ 2183.776949][ T11] ? __pfx_worker_thread+0x10/0x10 [ 2183.777219][ T11] kthread+0x28f/0x360 [ 2183.777426][ T11] ? __pfx_kthread+0x10/0x10 [ 2183.777662][ T11] ret_from_fork+0x31/0x70 [ 2183.777897][ T11] ? __pfx_kthread+0x10/0x10 [ 2183.778130][ T11] ret_from_fork_asm+0x1b/0x30 [ 2183.778380][ T11] </TASK> [ 2183.778538][ T11] [ 2183.778660][ T11] The buggy address belongs to the physical page: [ 2183.778981][ T11] page:ffffea0000168c00 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x5a30 [ 2183.779488][ T11] flags: 0x80000000000000(node=0|zone=1) [ 2183.779772][ T11] page_type: 0xffffffff() [ 2183.779995][ T11] raw: 0080000000000000 ffff888035401c38 ffff888035401c38 0000000000000000 [ 2183.780424][ T11] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 2183.780852][ T11] page dumped because: kasan: bad access detected [ 2183.781173][ T11] [ 2183.781294][ T11] Memory state around the buggy address: [ 2183.781576][ T11] ffff888005a30a80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 2183.781978][ T11] ffff888005a30b00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 2183.782392][ T11] >ffff888005a30b80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 2183.782815][ T11] ^ [ 2183.783201][ T11] ffff888005a30c00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 2183.783603][ T11] ffff888005a30c80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 2183.784004][ T11] ================================================================== [ 2183.784478][ T11] Disabling lock debugging due to kernel taint # PASS: neigh get [ 2185.703889][T18553] netdevsim netdevsim20 eni20np1: renamed from eth1 [ 2185.751012][T18552] netdevsim netdevsim10 eni10np1: renamed from eth0 [ 2186.630950][T18567] test-bond0: (slave eni10np1): Enslaving as a backup interface with an up link [ 2186.797118][T18569] test-bond0: (slave eni20np1): Enslaving as a backup interface with an up link [ 2187.078765][T18580] test-br0: port 1(test-bond0) entered blocking state [ 2187.079150][T18580] test-br0: port 1(test-bond0) entered disabled state [ 2187.079585][T18580] test-bond0: entered allmulticast mode [ 2187.079916][T18580] netdevsim netdevsim10 eni10np1: entered allmulticast mode [ 2187.081033][T18580] netdevsim netdevsim20 eni20np1: entered allmulticast mode [ 2187.082518][T18580] test-bond0: entered promiscuous mode [ 2187.082852][T18580] netdevsim netdevsim10 eni10np1: entered promiscuous mode [ 2187.083381][T18580] netdevsim netdevsim20 eni20np1: entered promiscuous mode [ 2187.212529][T18582] test-bond0: left allmulticast mode [ 2187.212841][T18582] netdevsim netdevsim10 eni10np1: left allmulticast mode [ 2187.213211][T18582] netdevsim netdevsim20 eni20np1: left allmulticast mode [ 2187.213565][T18582] test-bond0: left promiscuous mode [ 2187.213830][T18582] netdevsim netdevsim10 eni10np1: left promiscuous mode [ 2187.214306][T18582] netdevsim netdevsim20 eni20np1: left promiscuous mode [ 2187.214860][T18582] test-br0: port 1(test-bond0) entered disabled state [ 2187.371487][T18583] test-bond0 (unregistering): (slave eni10np1): Releasing backup interface [ 2187.382485][T18583] test-bond0 (unregistering): (slave eni20np1): Releasing backup interface [ 2187.393730][T18583] test-bond0 (unregistering): Released all slaves # PASS: bridge_parent_id # PASS: address proto IPv4 # PASS: address proto IPv6 [ 2192.701962][T18660] bond123: (slave test-dummy0): Enslaving as an active interface with an up link # PASS: enslave interface in a bond [ 2192.856808][ T11] bond123 (unregistering): (slave test-dummy0): Releasing backup interface [ 2192.869844][ T11] bond123 (unregistering): Released all slaves ok 1 selftests: net: rtnetlink.sh make[1]: Leaving directory '/home/virtme/testing-3/tools/testing/selftests/net' make: Leaving directory '/home/virtme/testing-3/tools/testing/selftests' xx__-> echo $? 0 xx__->