team0 (unregistering): Port device team_slave_0 removed bond0 (unregistering): Releasing backup interface bond_slave_1 bond0 (unregistering): Releasing backup interface bond_slave_0 bond0 (unregistering): Released all slaves ================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:183 [inline] BUG: KASAN: use-after-free in net_generic include/net/netns/generic.h:45 [inline] BUG: KASAN: use-after-free in xfrm6_tunnel_pernet net/ipv6/xfrm6_tunnel.c:50 [inline] BUG: KASAN: use-after-free in xfrm6_tunnel_free_spi net/ipv6/xfrm6_tunnel.c:202 [inline] BUG: KASAN: use-after-free in xfrm6_tunnel_destroy+0x502/0x5c0 net/ipv6/xfrm6_tunnel.c:303 Read of size 8 at addr ffff888089e55c48 by task kworker/0:3/7258 CPU: 0 PID: 7258 Comm: kworker/0:3 Not tainted 4.14.177-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events xfrm_state_gc_task Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x13e/0x194 lib/dump_stack.c:58 print_address_description.cold+0x7c/0x1e2 mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xa9/0x2ae mm/kasan/report.c:393 __read_once_size include/linux/compiler.h:183 [inline] net_generic include/net/netns/generic.h:45 [inline] xfrm6_tunnel_pernet net/ipv6/xfrm6_tunnel.c:50 [inline] xfrm6_tunnel_free_spi net/ipv6/xfrm6_tunnel.c:202 [inline] xfrm6_tunnel_destroy+0x502/0x5c0 net/ipv6/xfrm6_tunnel.c:303 xfrm_state_gc_destroy net/xfrm/xfrm_state.c:449 [inline] xfrm_state_gc_task+0x4ad/0x7d0 net/xfrm/xfrm_state.c:472 process_one_work+0x813/0x1540 kernel/workqueue.c:2116 worker_thread+0x5d1/0x1070 kernel/workqueue.c:2250 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 Allocated by task 6364: save_stack+0x32/0xa0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xbf/0xe0 mm/kasan/kasan.c:529 kmem_cache_alloc+0x127/0x770 mm/slab.c:3552 kmem_cache_zalloc include/linux/slab.h:651 [inline] net_alloc net/core/net_namespace.c:362 [inline] copy_net_ns+0xf7/0x440 net/core/net_namespace.c:402 create_new_namespaces+0x375/0x730 kernel/nsproxy.c:107 unshare_nsproxy_namespaces+0xa5/0x1e0 kernel/nsproxy.c:206 SYSC_unshare kernel/fork.c:2391 [inline] SyS_unshare+0x2ea/0x740 kernel/fork.c:2341 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 5: save_stack+0x32/0xa0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x75/0xc0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kmem_cache_free+0x7c/0x2b0 mm/slab.c:3758 net_free net/core/net_namespace.c:378 [inline] net_drop_ns+0x63/0x70 net/core/net_namespace.c:385 cleanup_net+0x4e4/0x820 net/core/net_namespace.c:502 process_one_work+0x813/0x1540 kernel/workqueue.c:2116 worker_thread+0x5d1/0x1070 kernel/workqueue.c:2250 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 The buggy address belongs to the object at ffff888089e54040 which belongs to the cache net_namespace of size 8832 The buggy address is located 7176 bytes inside of 8832-byte region [ffff888089e54040, ffff888089e562c0) The buggy address belongs to the page: page:ffffea0002279500 count:1 mapcount:0 mapping:ffff888089e54040 index:0x0 compound_mapcount: 0 flags: 0xfffe0000008100(slab|head) raw: 00fffe0000008100 ffff888089e54040 0000000000000000 0000000100000001 raw: ffff8880a99ecf48 ffffea00014a3520 ffff8880aa5873c0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888089e55b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888089e55b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888089e55c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888089e55c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888089e55d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================