device hsr_slave_0 entered promiscuous mode device hsr_slave_1 entered promiscuous mode IPv6: ADDRCONF(NETDEV_UP): hsr_slave_0: link is not ready IPv6: ADDRCONF(NETDEV_UP): hsr_slave_1: link is not ready ================================================================== BUG: KASAN: use-after-free in tcp_retransmit_timer+0x245f/0x28c0 net/ipv4/tcp_timer.c:471 Read of size 8 at addr ffff888051484338 by task syz-executor.3/18058 CPU: 1 PID: 18058 Comm: syz-executor.3 Not tainted 4.14.228-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+0x1b2/0x281 lib/dump_stack.c:58 print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:252 kasan_report_error.cold+0x8a/0x191 mm/kasan/report.c:351 kasan_report mm/kasan/report.c:409 [inline] __asan_report_load8_noabort+0x68/0x70 mm/kasan/report.c:430 tcp_retransmit_timer+0x245f/0x28c0 net/ipv4/tcp_timer.c:471 tcp_write_timer_handler+0x434/0x780 net/ipv4/tcp_timer.c:583 tcp_write_timer+0xc8/0x160 net/ipv4/tcp_timer.c:601 call_timer_fn+0x14a/0x650 kernel/time/timer.c:1280 expire_timers+0x232/0x4d0 kernel/time/timer.c:1319 __run_timers kernel/time/timer.c:1637 [inline] run_timer_softirq+0x1d5/0x5a0 kernel/time/timer.c:1650 __do_softirq+0x24d/0x9ff kernel/softirq.c:288 invoke_softirq kernel/softirq.c:368 [inline] irq_exit+0x193/0x240 kernel/softirq.c:409 exiting_irq arch/x86/include/asm/apic.h:638 [inline] smp_apic_timer_interrupt+0x141/0x5e0 arch/x86/kernel/apic/apic.c:1106 apic_timer_interrupt+0x93/0xa0 arch/x86/entry/entry_64.S:793 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:779 [inline] RIP: 0010:kfree+0x15d/0x250 mm/slab.c:3816 RSP: 0018:ffff8880b3d16f78 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff10 RAX: 0000000000000007 RBX: 0000000000000286 RCX: 1ffff110079be98d RDX: 0000000000000000 RSI: ffff88803cdf4c48 RDI: 0000000000000286 RBP: ffff8880b40deac0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88813fe80940 R13: ffffffff85be3166 R14: ffff8880b40debb0 R15: ffff88809ee2f440 skb_free_head net/core/skbuff.c:563 [inline] skb_release_data+0x5f6/0x820 net/core/skbuff.c:583 skb_release_all net/core/skbuff.c:640 [inline] __kfree_skb net/core/skbuff.c:654 [inline] consume_skb+0xe0/0x380 net/core/skbuff.c:714 netlink_broadcast_filtered+0x2ab/0x9e0 net/netlink/af_netlink.c:1489 netlink_broadcast net/netlink/af_netlink.c:1511 [inline] nlmsg_multicast include/net/netlink.h:591 [inline] nlmsg_notify+0x126/0x170 net/netlink/af_netlink.c:2476 inet_netconf_notify_devconf+0xd2/0x190 net/ipv4/devinet.c:1902 __devinet_sysctl_register+0x1ab/0x250 net/ipv4/devinet.c:2320 devinet_sysctl_register+0x134/0x1f0 net/ipv4/devinet.c:2354 inetdev_init+0x202/0x410 net/ipv4/devinet.c:262 inetdev_event+0x8b4/0x10a0 net/ipv4/devinet.c:1462 notifier_call_chain+0x108/0x1a0 kernel/notifier.c:93 call_netdevice_notifiers_info net/core/dev.c:1667 [inline] call_netdevice_notifiers net/core/dev.c:1683 [inline] register_netdevice+0xb98/0xe40 net/core/dev.c:7691 veth_newlink+0x467/0x890 drivers/net/veth.c:443 rtnl_newlink+0xfab/0x1860 net/core/rtnetlink.c:2728 rtnetlink_rcv_msg+0x3be/0xb10 net/core/rtnetlink.c:4316 netlink_rcv_skb+0x125/0x390 net/netlink/af_netlink.c:2433 netlink_unicast_kernel net/netlink/af_netlink.c:1287 [inline] netlink_unicast+0x437/0x610 net/netlink/af_netlink.c:1313 netlink_sendmsg+0x62e/0xb80 net/netlink/af_netlink.c:1878 sock_sendmsg_nosec net/socket.c:646 [inline] sock_sendmsg+0xb5/0x100 net/socket.c:656 SYSC_sendto net/socket.c:1763 [inline] SyS_sendto+0x1c7/0x2c0 net/socket.c:1731 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x4193ec RSP: 002b:00007ffe0b667fc0 EFLAGS: 00000293 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00000000014a4320 RCX: 00000000004193ec RDX: 000000000000006c RSI: 00000000014a4370 RDI: 0000000000000003 RBP: 0000000000000000 R08: 00007ffe0b668014 R09: 000000000000000c R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 00000000014a4370 R14: 0000000000000003 R15: 0000000000000000 Allocated by task 7980: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551 kmem_cache_alloc+0x124/0x3c0 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/0x720 kernel/nsproxy.c:107 unshare_nsproxy_namespaces+0xa1/0x1d0 kernel/nsproxy.c:206 SYSC_unshare kernel/fork.c:2412 [inline] SyS_unshare+0x308/0x7f0 kernel/fork.c:2362 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb Freed by task 22: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xc3/0x1a0 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+0x526/0x840 net/core/net_namespace.c:502 process_one_work+0x793/0x14a0 kernel/workqueue.c:2116 worker_thread+0x5cc/0xff0 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 ffff888051484140 which belongs to the cache net_namespace of size 8832 The buggy address is located 504 bytes inside of 8832-byte region [ffff888051484140, ffff8880514863c0) The buggy address belongs to the page: page:ffffea0001452100 count:1 mapcount:0 mapping:ffff888051484140 index:0x0 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffff888051484140 0000000000000000 0000000100000001 raw: ffffea0001452020 ffffea0001451720 ffff8880b5f92b40 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888051484200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888051484280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888051484300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888051484380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888051484400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================