bond0 (unregistering): Releasing backup interface bond_slave_0 bond0 (unregistering): Released all slaves ================================================================== BUG: KASAN: use-after-free in tw_timer_handler+0x124/0x150 net/ipv4/inet_timewait_sock.c:151 Read of size 8 at addr ffff888043d38b78 by task syz-executor.5/15348 CPU: 0 PID: 15348 Comm: syz-executor.5 Not tainted 4.14.155-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x142/0x197 lib/dump_stack.c:58 print_address_description.cold+0x7c/0x1dc 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/0x2af mm/kasan/report.c:393 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:430 tw_timer_handler+0x124/0x150 net/ipv4/inet_timewait_sock.c:151 call_timer_fn+0x161/0x670 kernel/time/timer.c:1279 expire_timers kernel/time/timer.c:1318 [inline] __run_timers kernel/time/timer.c:1636 [inline] __run_timers kernel/time/timer.c:1604 [inline] run_timer_softirq+0x5b7/0x1520 kernel/time/timer.c:1649 __do_softirq+0x244/0x9a0 kernel/softirq.c:288 invoke_softirq kernel/softirq.c:368 [inline] irq_exit+0x160/0x1b0 kernel/softirq.c:409 exiting_irq arch/x86/include/asm/apic.h:648 [inline] smp_apic_timer_interrupt+0x146/0x5e0 arch/x86/kernel/apic/apic.c:1102 apic_timer_interrupt+0x96/0xa0 arch/x86/entry/entry_64.S:792 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:779 [inline] RIP: 0010:lock_acquire+0x1ea/0x430 kernel/locking/lockdep.c:3997 RSP: 0018:ffff88803a9f7698 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff10 RAX: 1ffffffff0ee2d21 RBX: ffff8880a9ef6480 RCX: 000000006259a93d RDX: dffffc0000000000 RSI: ffff8880a9ef6d28 RDI: 0000000000000282 RBP: ffff88803a9f76e0 R08: 0000000000000000 R09: ffff8880a9ef6d48 R10: ffff8880a9ef6d28 R11: ffff8880a9ef6480 R12: ffffffff87790c60 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000002 rcu_lock_acquire include/linux/rcupdate.h:242 [inline] rcu_read_lock include/linux/rcupdate.h:629 [inline] lock_page_memcg+0x39/0x220 mm/memcontrol.c:1669 page_remove_file_rmap mm/rmap.c:1211 [inline] page_remove_rmap+0x19f/0x940 mm/rmap.c:1296 zap_pte_range mm/memory.c:1342 [inline] zap_pmd_range mm/memory.c:1444 [inline] zap_pud_range mm/memory.c:1473 [inline] zap_p4d_range mm/memory.c:1494 [inline] unmap_page_range+0xa2d/0x1770 mm/memory.c:1515 unmap_single_vma+0x15d/0x2c0 mm/memory.c:1560 unmap_vmas+0xac/0x170 mm/memory.c:1590 exit_mmap+0x285/0x4e0 mm/mmap.c:3062 __mmput kernel/fork.c:935 [inline] mmput+0x114/0x440 kernel/fork.c:956 exit_mm kernel/exit.c:545 [inline] do_exit+0x71d/0x2c10 kernel/exit.c:861 do_group_exit+0x111/0x330 kernel/exit.c:977 get_signal+0x381/0x1cd0 kernel/signal.c:2413 do_signal+0x86/0x19a0 arch/x86/kernel/signal.c:814 exit_to_usermode_loop+0x15c/0x220 arch/x86/entry/common.c:160 prepare_exit_to_usermode arch/x86/entry/common.c:199 [inline] syscall_return_slowpath arch/x86/entry/common.c:270 [inline] do_syscall_64+0x4bc/0x640 arch/x86/entry/common.c:297 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45a639 RSP: 002b:00007f1a6ddd8c78 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: fffffffffffffe00 RBX: 0000000000000005 RCX: 000000000045a639 RDX: 0000000000000004 RSI: 0000000020004200 RDI: 0000000000000003 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f1a6ddd96d4 R13: 00000000004c82f0 R14: 00000000004de6e0 R15: 00000000ffffffff Allocated by task 29624: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:529 kasan_slab_alloc+0xf/0x20 mm/kasan/kasan.c:489 kmem_cache_alloc+0x12e/0x780 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+0xfa/0x440 net/core/net_namespace.c:402 create_new_namespaces+0x37b/0x720 kernel/nsproxy.c:107 unshare_nsproxy_namespaces+0xab/0x1e0 kernel/nsproxy.c:206 SYSC_unshare kernel/fork.c:2406 [inline] SyS_unshare+0x2f3/0x7e0 kernel/fork.c:2356 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 5: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 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+0x83/0x2b0 mm/slab.c:3758 net_free net/core/net_namespace.c:378 [inline] net_drop_ns.part.0+0x63/0x80 net/core/net_namespace.c:385 net_drop_ns net/core/net_namespace.c:384 [inline] cleanup_net+0x4ef/0x880 net/core/net_namespace.c:502 process_one_work+0x863/0x1600 kernel/workqueue.c:2114 worker_thread+0x5d9/0x1050 kernel/workqueue.c:2248 kthread+0x319/0x430 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 The buggy address belongs to the object at ffff888043d38980 which belongs to the cache net_namespace of size 8832 The buggy address is located 504 bytes inside of 8832-byte region [ffff888043d38980, ffff888043d3ac00) The buggy address belongs to the page: page:ffffea00010f4e00 count:1 mapcount:0 mapping:ffff888043d38980 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000008100(slab|head) raw: 01fffc0000008100 ffff888043d38980 0000000000000000 0000000100000001 raw: ffffea0001e83520 ffffea00012b6920 ffff88821f8b5e00 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888043d38a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888043d38a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888043d38b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888043d38b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888043d38c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================