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 [ 125.689787][ T986] u32 classifier [ 125.690015][ T986] input device check on [ 125.690280][ T986] Actions configured # PASS: tc htb hierarchy [ 127.431253][ T1005] gre: GRE over IPv4 demultiplexor driver [ 127.454707][ T1005] ip_gre: GRE over IPv4 tunneling driver # PASS: gre tunnel endpoint # PASS: gretap [ 132.854873][ T1066] ip6_gre: GRE over IPv6 tunneling driver [ 133.307604][ T50] ip6_tunnel: ip6gretap00 xmit: Local address not yet configured! [ 133.330862][ T71] ip6_tunnel: ip6gretap00 xmit: Local address not yet configured! [ 133.446427][ T50] ip6_tunnel: ip6gretap00 xmit: Local address not yet configured! # PASS: ip6gretap # PASS: erspan [ 138.707373][ T49] ip6_tunnel: ip6erspan00 xmit: Local address not yet configured! [ 139.447464][ T49] ip6_tunnel: ip6erspan00 xmit: Local address not yet configured! # PASS: ip6erspan [ 140.711501][ T1143] test-br0: port 1(test-dummy0) entered blocking state [ 140.711961][ T1143] test-br0: port 1(test-dummy0) entered disabled state [ 140.712402][ T1143] test-dummy0: entered allmulticast mode [ 140.713993][ T1143] test-dummy0: entered promiscuous mode [ 140.892945][ T1147] test-br0: port 1(test-dummy0) entered blocking state [ 140.893394][ T1147] test-br0: port 1(test-dummy0) entered forwarding state [ 143.993515][ T1183] test-dummy0: left allmulticast mode [ 143.993838][ T1183] test-dummy0: left promiscuous mode [ 143.994266][ T1183] test-br0: port 1(test-dummy0) entered disabled state # PASS: bridge setup # PASS: ipv6 addrlabel # PASS: set ifalias 6202bb63-5744-459d-85bb-f2ca65b7d350 for test-dummy0 # PASS: vrf [ 305.423362][ T3344] ip (3344) used greatest stack depth: 23552 bytes left [ 311.643061][ T3409] MACsec IEEE 802.1AE # PASS: macsec [ 313.870593][ T3415] netdevsim netdevsim0 eni0np1: renamed from eth0 # PASS: macsec_offload [ 318.120169][ T3474] Initializing XFRM netlink socket # PASS: ipsec [ 323.212829][ T3552] netdevsim netdevsim0 eni0np1: renamed from eth0 # PASS: ipsec_offload [ 329.321715][ T3594] test-br0: port 1(vxlan10) entered blocking state [ 329.322108][ T3594] test-br0: port 1(vxlan10) entered disabled state [ 329.322520][ T3594] vxlan10: entered allmulticast mode [ 329.323981][ T3594] vxlan10: entered promiscuous mode [ 330.470275][ T71] vxlan10: left allmulticast mode [ 330.470702][ T71] vxlan10: left promiscuous mode [ 330.471190][ T71] test-br0: port 1(vxlan10) entered disabled state # PASS: bridge fdb get [ 330.557545][ T71] ================================================================== [ 330.558142][ T71] BUG: KASAN: use-after-free in vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 330.558749][ T71] Read of size 8 at addr ffff888006b40bf0 by task kworker/u8:1/71 [ 330.559244][ T71] [ 330.559414][ T71] CPU: 1 PID: 71 Comm: kworker/u8:1 Not tainted 6.8.0-rc2-virtme #1 [ 330.559902][ T71] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 330.560543][ T71] Workqueue: netns cleanup_net [ 330.560819][ T71] Call Trace: [ 330.561023][ T71] [ 330.561237][ T71] dump_stack_lvl+0x64/0xb0 [ 330.561481][ T71] print_address_description.constprop.0+0x2c/0x3b0 [ 330.561986][ T71] ? vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 330.562513][ T71] print_report+0xb5/0x270 [ 330.562878][ T71] ? kasan_addr_to_slab+0x4e/0x90 [ 330.563236][ T71] kasan_report+0xbe/0xf0 [ 330.563563][ T71] ? vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 330.564051][ T71] vxlan_netdevice_event+0x32f/0x340 [vxlan] [ 330.564502][ T71] ? __pfx_vxlan_netdevice_event+0x10/0x10 [vxlan] [ 330.564859][ T71] ? netconsole_netdev_event+0x1b4/0x300 [ 330.565159][ T71] notifier_call_chain+0x9a/0x290 [ 330.565451][ T71] unregister_netdevice_many_notify+0x55a/0x1180 [ 330.565821][ T71] ? mutex_is_locked+0x17/0x50 [ 330.566088][ T71] ? mutex_is_locked+0x17/0x50 [ 330.566351][ T71] ? __pfx_unregister_netdevice_many_notify+0x10/0x10 [ 330.566723][ T71] ? __pfx_unregister_netdevice_queue+0x10/0x10 [ 330.567083][ T71] default_device_exit_batch+0x228/0x2c0 [ 330.567371][ T71] ? __pfx_default_device_exit_batch+0x10/0x10 [ 330.567715][ T71] ? ops_exit_list+0xb4/0x170 [ 330.568050][ T71] cleanup_net+0x4f3/0xb50 [ 330.568346][ T71] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 330.568665][ T71] ? __pfx_cleanup_net+0x10/0x10 [ 330.568934][ T71] ? lock_acquire+0x1c1/0x220 [ 330.569253][ T71] ? process_one_work+0x714/0x1310 [ 330.569539][ T71] process_one_work+0x78c/0x1310 [ 330.569811][ T71] ? hlock_class+0x4e/0x130 [ 330.570042][ T71] ? __pfx_process_one_work+0x10/0x10 [ 330.570353][ T71] ? assign_work+0x16c/0x240 [ 330.570589][ T71] worker_thread+0x73d/0x1010 [ 330.570830][ T71] ? lockdep_hardirqs_on_prepare.part.0+0x1b1/0x370 [ 330.571198][ T71] ? __pfx_worker_thread+0x10/0x10 [ 330.571456][ T71] ? __pfx_worker_thread+0x10/0x10 [ 330.571756][ T71] kthread+0x28f/0x360 [ 330.571980][ T71] ? __pfx_kthread+0x10/0x10 [ 330.572271][ T71] ret_from_fork+0x31/0x70 [ 330.572596][ T71] ? __pfx_kthread+0x10/0x10 [ 330.572938][ T71] ret_from_fork_asm+0x1b/0x30 [ 330.573282][ T71] [ 330.573517][ T71] [ 330.573686][ T71] The buggy address belongs to the physical page: [ 330.574171][ T71] page:ffffea00001ad000 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x6b40 [ 330.574881][ T71] flags: 0x80000000000000(node=0|zone=1) [ 330.575295][ T71] page_type: 0xffffffff() [ 330.575646][ T71] raw: 0080000000000000 ffff888035801c38 ffff888035801c38 0000000000000000 [ 330.576201][ T71] raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 330.576786][ T71] page dumped because: kasan: bad access detected [ 330.577240][ T71] [ 330.577408][ T71] Memory state around the buggy address: [ 330.577788][ T71] ffff888006b40a80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 330.578354][ T71] ffff888006b40b00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 330.578888][ T71] >ffff888006b40b80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 330.579493][ T71] ^ [ 330.579890][ T71] ffff888006b40c00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 330.580320][ T71] ffff888006b40c80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff [ 330.580720][ T71] ================================================================== [ 330.581388][ T71] Disabling lock debugging due to kernel taint # PASS: neigh get [ 332.758089][ T3644] netdevsim netdevsim20 eni20np1: renamed from eth1 [ 332.777650][ T3645] netdevsim netdevsim10 eni10np1: renamed from eth0 [ 333.840448][ T3657] test-bond0: (slave eni10np1): Enslaving as a backup interface with an up link [ 333.980316][ T3660] test-bond0: (slave eni20np1): Enslaving as a backup interface with an up link [ 334.257299][ T3671] test-br0: port 1(test-bond0) entered blocking state [ 334.257710][ T3671] test-br0: port 1(test-bond0) entered disabled state [ 334.258106][ T3671] test-bond0: entered allmulticast mode [ 334.258531][ T3671] netdevsim netdevsim10 eni10np1: entered allmulticast mode [ 334.258919][ T3671] netdevsim netdevsim20 eni20np1: entered allmulticast mode [ 334.260526][ T3671] test-bond0: entered promiscuous mode [ 334.260902][ T3671] netdevsim netdevsim10 eni10np1: entered promiscuous mode [ 334.261456][ T3671] netdevsim netdevsim20 eni20np1: entered promiscuous mode [ 334.392687][ T3673] test-bond0: left allmulticast mode [ 334.393129][ T3673] netdevsim netdevsim10 eni10np1: left allmulticast mode [ 334.393662][ T3673] netdevsim netdevsim20 eni20np1: left allmulticast mode [ 334.394710][ T3673] test-bond0: left promiscuous mode [ 334.395109][ T3673] netdevsim netdevsim10 eni10np1: left promiscuous mode [ 334.395835][ T3673] netdevsim netdevsim20 eni20np1: left promiscuous mode [ 334.396697][ T3673] test-br0: port 1(test-bond0) entered disabled state [ 334.567857][ T3674] test-bond0 (unregistering): (slave eni10np1): Releasing backup interface [ 334.578964][ T3674] test-bond0 (unregistering): (slave eni20np1): Releasing backup interface [ 334.590855][ T3674] test-bond0 (unregistering): Released all slaves # PASS: bridge_parent_id # PASS: address proto IPv4 # PASS: address proto IPv6 [ 340.490632][ T3751] bond123: (slave test-dummy0): Enslaving as an active interface with an up link # PASS: enslave interface in a bond [ 340.644383][ T71] bond123 (unregistering): (slave test-dummy0): Releasing backup interface [ 340.661000][ T71] 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__->