IPv6: ADDRCONF(NETDEV_CHANGE): team_slave_0: link becomes ready IPv6: ADDRCONF(NETDEV_UP): veth1_to_team: link is not ready IPv6: ADDRCONF(NETDEV_UP): veth1_to_hsr: link is not ready ================================================================== hsr0: Slave B (hsr_slave_1) is not up; please bring it up to get a fully working HSR network BUG: KASAN: use-after-free in __write_once_size include/linux/compiler.h:218 [inline] BUG: KASAN: use-after-free in __hlist_del include/linux/list.h:702 [inline] BUG: KASAN: use-after-free in hlist_del_rcu include/linux/rculist.h:455 [inline] BUG: KASAN: use-after-free in xfrm_hash_rebuild+0x103b/0x1230 net/xfrm/xfrm_policy.c:1312 Write of size 8 at addr ffff88809972d300 by task kworker/0:3/7442 IPv6: ADDRCONF(NETDEV_UP): hsr0: link is not ready CPU: 0 PID: 7442 Comm: kworker/0:3 Not tainted 4.20.0+ #1 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events xfrm_hash_rebuild Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x113/0x167 lib/dump_stack.c:113 IPv6: ADDRCONF(NETDEV_CHANGE): hsr0: link becomes ready print_address_description.cold.5+0x9/0x1ff mm/kasan/report.c:187 IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready 8021q: adding VLAN 0 to HW filter on device batadv0 kasan_report.cold.6+0x1b/0x39 mm/kasan/report.c:317 __asan_report_store8_noabort+0x17/0x20 mm/kasan/generic_report.c:140 __write_once_size include/linux/compiler.h:218 [inline] __hlist_del include/linux/list.h:702 [inline] hlist_del_rcu include/linux/rculist.h:455 [inline] xfrm_hash_rebuild+0x103b/0x1230 net/xfrm/xfrm_policy.c:1312 process_one_work+0x830/0x1670 kernel/workqueue.c:2153 worker_thread+0x85/0xb60 kernel/workqueue.c:2296 kthread+0x324/0x3e0 kernel/kthread.c:246 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Allocated by task 7423: save_stack+0x43/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] kasan_kmalloc+0xcb/0xd0 mm/kasan/common.c:482 __do_kmalloc mm/slab.c:3709 [inline] __kmalloc+0x15d/0x760 mm/slab.c:3718 kmalloc include/linux/slab.h:550 [inline] kzalloc include/linux/slab.h:740 [inline] xfrm_hash_alloc+0x7f/0x90 net/xfrm/xfrm_hash.c:21 xfrm_policy_init net/xfrm/xfrm_policy.c:3821 [inline] xfrm_net_init+0x1ec/0xa30 net/xfrm/xfrm_policy.c:3905 ops_init+0x95/0x370 net/core/net_namespace.c:129 setup_net+0x24b/0x5d0 net/core/net_namespace.c:314 copy_net_ns+0x193/0x2a0 net/core/net_namespace.c:437 create_new_namespaces+0x487/0x760 kernel/nsproxy.c:107 unshare_nsproxy_namespaces+0x87/0x1a0 kernel/nsproxy.c:206 ksys_unshare+0x31b/0x710 kernel/fork.c:2545 __do_sys_unshare kernel/fork.c:2613 [inline] __se_sys_unshare kernel/fork.c:2611 [inline] __x64_sys_unshare+0x2c/0x40 kernel/fork.c:2611 do_syscall_64+0xd0/0x4d0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 22: save_stack+0x43/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:444 kasan_slab_free+0xe/0x10 mm/kasan/common.c:452 __cache_free mm/slab.c:3485 [inline] kfree+0xcf/0x220 mm/slab.c:3804 xfrm_hash_free+0x84/0xa0 net/xfrm/xfrm_hash.c:35 xfrm_bydst_resize net/xfrm/xfrm_policy.c:597 [inline] xfrm_hash_resize+0x51a/0x1ab0 net/xfrm/xfrm_policy.c:675 process_one_work+0x830/0x1670 kernel/workqueue.c:2153 worker_thread+0x85/0xb60 kernel/workqueue.c:2296 kthread+0x324/0x3e0 kernel/kthread.c:246 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 The buggy address belongs to the object at ffff88809972d300 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 0 bytes inside of 64-byte region [ffff88809972d300, ffff88809972d340) The buggy address belongs to the page: page:ffffea000265cb40 count:1 mapcount:0 mapping:ffff88812c366340 index:0x0 flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea000265fcc8 ffffea00021fb5c8 ffff88812c366340 raw: 0000000000000000 ffff88809972d000 0000000100000020 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809972d200: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff88809972d280: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc >ffff88809972d300: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff88809972d380: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff88809972d400: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ==================================================================