bond0 (unregistering): Releasing backup interface bond_slave_1 bond0 (unregistering): Releasing backup interface bond_slave_0 bond0 (unregistering): Released all slaves Left network mode ================================================================== BUG: KASAN: slab-out-of-bounds in __hlist_del include/linux/list.h:704 [inline] BUG: KASAN: slab-out-of-bounds in hlist_del_init include/linux/list.h:717 [inline] BUG: KASAN: slab-out-of-bounds in __xfrm_policy_unlink+0x9a4/0xa00 net/xfrm/xfrm_policy.c:2213 Write of size 8 at addr ffff88806d6ec3f0 by task kworker/u4:2/15804 CPU: 1 PID: 15804 Comm: kworker/u4:2 Not tainted 5.0.0-rc3+ #36 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: netns cleanup_net Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1db/0x2d0 lib/dump_stack.c:113 print_address_description.cold+0x7c/0x20d mm/kasan/report.c:187 kasan_report.cold+0x1b/0x40 mm/kasan/report.c:317 __asan_report_store8_noabort+0x17/0x20 mm/kasan/generic_report.c:140 __hlist_del include/linux/list.h:704 [inline] hlist_del_init include/linux/list.h:717 [inline] __xfrm_policy_unlink+0x9a4/0xa00 net/xfrm/xfrm_policy.c:2213 xfrm_policy_flush+0x331/0x460 net/xfrm/xfrm_policy.c:1789 xfrm_policy_fini+0xbf/0x640 net/xfrm/xfrm_policy.c:3866 xfrm_net_exit+0x1d/0x70 net/xfrm/xfrm_policy.c:3928 ops_exit_list.isra.0+0xb0/0x160 net/core/net_namespace.c:153 cleanup_net+0x51d/0xb10 net/core/net_namespace.c:551 process_one_work+0xd0c/0x1ce0 kernel/workqueue.c:2153 worker_thread+0x143/0x14a0 kernel/workqueue.c:2296 kthread+0x357/0x430 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 Allocated by task 8377: save_stack+0x45/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_kmalloc mm/kasan/common.c:496 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:469 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:504 __do_kmalloc_node mm/slab.c:3673 [inline] __kmalloc_node+0x4e/0x70 mm/slab.c:3680 kmalloc_node include/linux/slab.h:588 [inline] kzalloc_node include/linux/slab.h:751 [inline] qdisc_alloc+0x10e/0xb80 net/sched/sch_generic.c:832 qdisc_create_dflt+0x78/0x1e0 net/sched/sch_generic.c:906 attach_one_default_qdisc net/sched/sch_generic.c:1053 [inline] netdev_for_each_tx_queue include/linux/netdevice.h:2119 [inline] attach_default_qdiscs net/sched/sch_generic.c:1072 [inline] dev_activate+0x816/0xc90 net/sched/sch_generic.c:1115 __dev_open+0x2e2/0x450 net/core/dev.c:1404 __dev_change_flags+0x70b/0x970 net/core/dev.c:7567 dev_change_flags+0x92/0x170 net/core/dev.c:7638 do_setlink+0x17f5/0x3e10 net/core/rtnetlink.c:2492 __rtnl_newlink+0xd58/0x1a70 net/core/rtnetlink.c:3115 rtnl_newlink+0x69/0xa0 net/core/rtnetlink.c:3240 rtnetlink_rcv_msg+0x481/0xc30 net/core/rtnetlink.c:5130 netlink_rcv_skb+0x17d/0x410 net/netlink/af_netlink.c:2477 rtnetlink_rcv+0x1d/0x30 net/core/rtnetlink.c:5148 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline] netlink_unicast+0x574/0x770 net/netlink/af_netlink.c:1336 netlink_sendmsg+0xa05/0xf90 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xdd/0x130 net/socket.c:631 __sys_sendto+0x387/0x5f0 net/socket.c:1788 __do_sys_sendto net/socket.c:1800 [inline] __se_sys_sendto net/socket.c:1796 [inline] __x64_sys_sendto+0xe1/0x1a0 net/socket.c:1796 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 6684: save_stack+0x45/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:458 kasan_slab_free+0xe/0x10 mm/kasan/common.c:466 __cache_free mm/slab.c:3487 [inline] kfree+0xcf/0x230 mm/slab.c:3806 skb_free_head+0x93/0xb0 net/core/skbuff.c:553 skb_release_data+0x6ea/0x970 net/core/skbuff.c:573 skb_release_all+0x4d/0x60 net/core/skbuff.c:627 __kfree_skb net/core/skbuff.c:641 [inline] kfree_skb net/core/skbuff.c:659 [inline] kfree_skb+0x199/0x580 net/core/skbuff.c:653 tipc_sk_proto_rcv net/tipc/socket.c:2002 [inline] tipc_sk_filter_rcv+0x21e4/0x3d50 net/tipc/socket.c:2155 tipc_sk_backlog_rcv+0x1ac/0x380 net/tipc/socket.c:2207 sk_backlog_rcv include/net/sock.h:936 [inline] __release_sock+0x12e/0x3a0 net/core/sock.c:2284 release_sock+0xac/0x2b0 net/core/sock.c:2800 tipc_setsockopt+0x9f4/0xd30 net/tipc/socket.c:2994 __sys_setsockopt+0x1b0/0x3a0 net/socket.c:1902 __do_sys_setsockopt net/socket.c:1913 [inline] __se_sys_setsockopt net/socket.c:1910 [inline] __x64_sys_setsockopt+0xbe/0x150 net/socket.c:1910 do_syscall_64+0x1a3/0x800 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88806d6ec040 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 944 bytes inside of 1024-byte region [ffff88806d6ec040, ffff88806d6ec440) The buggy address belongs to the page: page:ffffea0001b5bb00 count:1 mapcount:0 mapping:ffff88812c3f0ac0 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea0002129e08 ffffea0002345b08 ffff88812c3f0ac0 raw: 0000000000000000 ffff88806d6ec040 0000000100000007 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88806d6ec280: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff88806d6ec300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88806d6ec380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88806d6ec400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806d6ec480: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ==================================================================