IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_bridge: link becomes ready IPv6: ADDRCONF(NETDEV_UP): bridge_slave_1: link is not ready IPv6: ADDRCONF(NETDEV_CHANGE): bridge_slave_1: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_bridge: link becomes ready ================================================================== BUG: KASAN: use-after-free in tcp_retransmit_timer+0x2f7a/0x33f0 net/ipv4/tcp_timer.c:487 Read of size 8 at addr ffff88819a6fc3f0 by task swapper/1/0 CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.20.0-rc7+ #375 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x244/0x39d lib/dump_stack.c:113 print_address_description.cold.7+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.8+0x242/0x309 mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 tcp_retransmit_timer+0x2f7a/0x33f0 net/ipv4/tcp_timer.c:487 tcp_write_timer_handler+0x2e6/0x950 net/ipv4/tcp_timer.c:600 tcp_write_timer+0x111/0x1d0 net/ipv4/tcp_timer.c:620 call_timer_fn+0x272/0x920 kernel/time/timer.c:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers+0x7e5/0xc70 kernel/time/timer.c:1682 run_timer_softirq+0x52/0xb0 kernel/time/timer.c:1695 __do_softirq+0x308/0xb7e kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x17f/0x1c0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x1cb/0x760 arch/x86/kernel/apic/apic.c:1061 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:807 RIP: 0010:native_safe_halt+0x6/0x10 arch/x86/include/asm/irqflags.h:58 Code: e9 2c ff ff ff 48 89 c7 48 89 45 d8 e8 33 c1 e7 f9 48 8b 45 d8 e9 ca fe ff ff 48 89 df e8 22 c1 e7 f9 eb 82 55 48 89 e5 fb f4 <5d> c3 0f 1f 84 00 00 00 00 00 55 48 89 e5 f4 5d c3 90 90 90 90 90 RSP: 0018:ffff8881d9b27cb8 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 RAX: dffffc0000000000 RBX: 1ffff1103b364f9b RCX: 0000000000000000 RDX: 1ffffffff12a4021 RSI: 0000000000000001 RDI: ffffffff89520108 RBP: ffff8881d9b27cb8 R08: ffff8881d9b14340 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8881d9b27d78 R13: ffffffff8a1641a0 R14: 0000000000000000 R15: 0000000000000001 arch_safe_halt arch/x86/include/asm/paravirt.h:151 [inline] default_idle+0xbf/0x490 arch/x86/kernel/process.c:561 arch_cpu_idle+0x10/0x20 arch/x86/kernel/process.c:552 default_idle_call+0x6d/0x90 kernel/sched/idle.c:93 cpuidle_idle_call kernel/sched/idle.c:153 [inline] do_idle+0x49b/0x5c0 kernel/sched/idle.c:262 cpu_startup_entry+0x18/0x20 kernel/sched/idle.c:353 start_secondary+0x487/0x5f0 arch/x86/kernel/smpboot.c:271 secondary_startup_64+0xa4/0xb0 arch/x86/kernel/head_64.S:243 Allocated by task 6198: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:490 kmem_cache_alloc+0x12e/0x730 mm/slab.c:3554 kmem_cache_zalloc include/linux/slab.h:731 [inline] net_alloc net/core/net_namespace.c:384 [inline] copy_net_ns+0x15b/0x4a0 net/core/net_namespace.c:424 create_new_namespaces+0x6ad/0x900 kernel/nsproxy.c:107 unshare_nsproxy_namespaces+0xc3/0x1f0 kernel/nsproxy.c:206 ksys_unshare+0x79c/0x10b0 kernel/fork.c:2539 __do_sys_unshare kernel/fork.c:2607 [inline] __se_sys_unshare kernel/fork.c:2605 [inline] __x64_sys_unshare+0x31/0x40 kernel/fork.c:2605 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 8108: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kmem_cache_free+0x83/0x290 mm/slab.c:3760 net_free net/core/net_namespace.c:400 [inline] net_drop_ns.part.14+0x129/0x150 net/core/net_namespace.c:407 net_drop_ns net/core/net_namespace.c:406 [inline] cleanup_net+0x849/0xb10 net/core/net_namespace.c:569 process_one_work+0xc90/0x1c40 kernel/workqueue.c:2153 worker_thread+0x17f/0x1390 kernel/workqueue.c:2296 kthread+0x35a/0x440 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 The buggy address belongs to the object at ffff88819a6fc1c0 which belongs to the cache net_namespace of size 8576 The buggy address is located 560 bytes inside of 8576-byte region [ffff88819a6fc1c0, ffff88819a6fe340) The buggy address belongs to the page: page:ffffea000669bf00 count:1 mapcount:0 mapping:ffff8881d9beed80 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000010200(slab|head) raw: 02fffc0000010200 ffff8881d9bda248 ffffea0006583a08 ffff8881d9beed80 raw: 0000000000000000 ffff88819a6fc1c0 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88819a6fc280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88819a6fc300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88819a6fc380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88819a6fc400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88819a6fc480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================