team0 (unregistering): Port device team_slave_0 removed Š (unregistering): Releasing backup interface bond_slave_1 Š (unregistering): Releasing backup interface bond_slave_0 Š (unregistering): Released all slaves ================================================================== BUG: KASAN: slab-out-of-bounds in inet_ctl_sock_destroy include/net/inet_common.h:56 [inline] BUG: KASAN: slab-out-of-bounds in icmp_sk_exit+0x1ce/0x1f0 net/ipv4/icmp.c:1187 Read of size 8 at addr ffff88808cf19a7c by task kworker/u4:6/7960 CPU: 0 PID: 7960 Comm: kworker/u4:6 Not tainted 5.0.0-rc7+ #83 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+0x172/0x1f0 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_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:135 inet_ctl_sock_destroy include/net/inet_common.h:56 [inline] icmp_sk_exit+0x1ce/0x1f0 net/ipv4/icmp.c:1187 ops_exit_list.isra.0+0xb0/0x160 net/core/net_namespace.c:153 cleanup_net+0x3fb/0x960 net/core/net_namespace.c:551 process_one_work+0x98e/0x1790 kernel/workqueue.c:2173 worker_thread+0x98/0xe40 kernel/workqueue.c:2319 kthread+0x357/0x430 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 Allocated by task 7748: save_stack+0x45/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_kmalloc mm/kasan/common.c:495 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:468 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:509 kmem_cache_alloc_trace+0x151/0x760 mm/slab.c:3615 kmalloc include/linux/slab.h:545 [inline] kzalloc include/linux/slab.h:740 [inline] mr_table_alloc+0x5b/0x310 net/ipv4/ipmr_base.c:41 ipmr_new_table net/ipv4/ipmr.c:411 [inline] ipmr_new_table+0x11c/0x150 net/ipv4/ipmr.c:399 ipmr_rules_init net/ipv4/ipmr.c:253 [inline] ipmr_net_init+0x138/0x3f0 net/ipv4/ipmr.c:3091 ops_init+0xb6/0x410 net/core/net_namespace.c:129 setup_net+0x2c5/0x730 net/core/net_namespace.c:314 copy_net_ns+0x1d9/0x340 net/core/net_namespace.c:437 create_new_namespaces+0x400/0x7b0 kernel/nsproxy.c:107 unshare_nsproxy_namespaces+0xc2/0x200 kernel/nsproxy.c:206 ksys_unshare+0x440/0x980 kernel/fork.c:2550 __do_sys_unshare kernel/fork.c:2618 [inline] __se_sys_unshare kernel/fork.c:2616 [inline] __x64_sys_unshare+0x31/0x40 kernel/fork.c:2616 do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 7960: 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:457 kasan_slab_free+0xe/0x10 mm/kasan/common.c:465 __cache_free mm/slab.c:3494 [inline] kfree+0xcf/0x230 mm/slab.c:3811 ipmr_free_table+0x3e/0x50 net/ipv4/ipmr.c:421 ipmr_rules_exit+0x159/0x270 net/ipv4/ipmr.c:280 ipmr_net_exit+0xcd/0x110 net/ipv4/ipmr.c:3125 ops_exit_list.isra.0+0xb0/0x160 net/core/net_namespace.c:153 cleanup_net+0x3fb/0x960 net/core/net_namespace.c:551 process_one_work+0x98e/0x1790 kernel/workqueue.c:2173 worker_thread+0x98/0xe40 kernel/workqueue.c:2319 kthread+0x357/0x430 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 The buggy address belongs to the object at ffff88808cf18380 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 1788 bytes to the right of 4096-byte region [ffff88808cf18380, ffff88808cf19380) The buggy address belongs to the page: page:ffffea000233c600 count:1 mapcount:0 mapping:ffff88812c3f0dc0 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea0002154308 ffffea000233c688 ffff88812c3f0dc0 raw: 0000000000000000 ffff88808cf18380 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808cf19900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88808cf19980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88808cf19a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88808cf19a80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88808cf19b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================