================================================================== BUG: KASAN: slab-out-of-bounds in tcp_probe_timer net/ipv4/tcp_timer.c:360 [inline] BUG: KASAN: slab-out-of-bounds in tcp_write_timer_handler+0x8c6/0x8d0 net/ipv4/tcp_timer.c:596 Read of size 4 at addr ffff88808cd88610 by task blkid/2974 CPU: 1 PID: 2974 Comm: blkid Not tainted 5.3.0-rc6+ #179 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+0x172/0x1f0 lib/dump_stack.c:113 print_address_description.cold+0xd4/0x306 mm/kasan/report.c:351 __kasan_report.cold+0x1b/0x36 mm/kasan/report.c:482 kasan_report+0x12/0x17 mm/kasan/common.c:618 __asan_report_load4_noabort+0x14/0x20 mm/kasan/generic_report.c:131 tcp_probe_timer net/ipv4/tcp_timer.c:360 [inline] tcp_write_timer_handler+0x8c6/0x8d0 net/ipv4/tcp_timer.c:596 tcp_write_timer+0xa8/0x1e0 net/ipv4/tcp_timer.c:612 call_timer_fn+0x1ac/0x780 kernel/time/timer.c:1322 expire_timers kernel/time/timer.c:1366 [inline] __run_timers kernel/time/timer.c:1685 [inline] __run_timers kernel/time/timer.c:1653 [inline] run_timer_softirq+0x697/0x17a0 kernel/time/timer.c:1698 __do_softirq+0x262/0x98c kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x19b/0x1e0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:537 [inline] smp_apic_timer_interrupt+0x1a3/0x610 arch/x86/kernel/apic/apic.c:1133 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:830 RIP: 0010:__read_once_size include/linux/compiler.h:199 [inline] RIP: 0010:get_link fs/namei.c:1069 [inline] RIP: 0010:trailing_symlink+0x239/0x990 fs/namei.c:2261 Code: 85 b6 06 00 00 41 c7 44 24 44 04 00 00 00 49 8d be 78 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 <0f> 85 74 06 00 00 4d 8b ae 78 03 00 00 31 ff 4c 89 ee e8 e0 76 b9 RSP: 0018:ffff88806291fa98 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13 RAX: dffffc0000000000 RBX: ffff88806291fcf8 RCX: ffffffff81b8fe27 RDX: 1ffff11014439795 RSI: ffffffff81b8fe35 RDI: ffff8880a21cbca8 RBP: ffff88806291fad0 R08: ffff88806907a180 R09: fffffbfff134afe0 R10: fffffbfff134afdf R11: ffffffff89a57eff R12: ffff88806291fca0 R13: 0000000000000000 R14: ffff8880a21cb930 R15: ffff8880a207d1a0 path_openat+0xa95/0x4630 fs/namei.c:3535 do_filp_open+0x1a1/0x280 fs/namei.c:3563 do_sys_open+0x3fe/0x5d0 fs/open.c:1089 __do_sys_open fs/open.c:1107 [inline] __se_sys_open fs/open.c:1102 [inline] __x64_sys_open+0x7e/0xc0 fs/open.c:1102 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fed86f361a7 Code: c3 66 90 c7 05 fa af 20 00 16 00 00 00 b8 ff ff ff ff c3 f7 d8 89 05 ec af 20 00 83 c8 ff c3 90 90 90 90 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8d 0d cd af 20 00 31 d2 48 29 c2 89 RSP: 002b:00007ffdb6183f28 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007fed871411c8 RCX: 00007fed86f361a7 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007fed8713c0ee RBP: 00007ffdb6183fa0 R08: 00007ffdb618439f R09: 0000000000000000 R10: 00007fed8713c0ee R11: 0000000000000246 R12: 0000000000000008 R13: 00007fed87140040 R14: 0000000000000000 R15: 00007ffdb618439f Allocated by task 2379: save_stack+0x23/0x90 mm/kasan/common.c:69 set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc mm/kasan/common.c:493 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:466 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:507 __do_kmalloc mm/slab.c:3655 [inline] __kmalloc_track_caller+0x15f/0x760 mm/slab.c:3670 kmemdup+0x27/0x60 mm/util.c:120 kmemdup include/linux/string.h:432 [inline] __devinet_sysctl_register+0xa5/0x2c0 net/ipv4/devinet.c:2562 devinet_sysctl_register net/ipv4/devinet.c:2614 [inline] devinet_sysctl_register+0x167/0x220 net/ipv4/devinet.c:2604 inetdev_init+0x22e/0x470 net/ipv4/devinet.c:276 inetdev_event+0x15d/0x1470 net/ipv4/devinet.c:1530 notifier_call_chain+0xc2/0x230 kernel/notifier.c:95 __raw_notifier_call_chain kernel/notifier.c:396 [inline] raw_notifier_call_chain+0x2e/0x40 kernel/notifier.c:403 call_netdevice_notifiers_info+0x3f/0x90 net/core/dev.c:1749 call_netdevice_notifiers_extack net/core/dev.c:1761 [inline] call_netdevice_notifiers net/core/dev.c:1775 [inline] register_netdevice+0xa5c/0xff0 net/core/dev.c:8757 __ip_tunnel_create+0x36b/0x530 net/ipv4/ip_tunnel.c:269 ip_tunnel_init_net+0x375/0x9e0 net/ipv4/ip_tunnel.c:1060 ipgre_init_net+0x25/0x30 net/ipv4/ip_gre.c:988 ops_init+0xb3/0x420 net/core/net_namespace.c:137 setup_net+0x2cc/0x880 net/core/net_namespace.c:334 copy_net_ns+0x290/0x41f net/core/net_namespace.c:475 create_new_namespaces+0x400/0x7b0 kernel/nsproxy.c:103 unshare_nsproxy_namespaces+0xc2/0x200 kernel/nsproxy.c:202 ksys_unshare+0x444/0x980 kernel/fork.c:2831 __do_sys_unshare kernel/fork.c:2899 [inline] __se_sys_unshare kernel/fork.c:2897 [inline] __x64_sys_unshare+0x31/0x40 kernel/fork.c:2897 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 2379: save_stack+0x23/0x90 mm/kasan/common.c:69 set_track mm/kasan/common.c:77 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:455 kasan_slab_free+0xe/0x10 mm/kasan/common.c:463 __cache_free mm/slab.c:3425 [inline] kfree+0x10a/0x2c0 mm/slab.c:3756 __devinet_sysctl_unregister.isra.0+0x6b/0xb0 net/ipv4/devinet.c:2598 devinet_sysctl_unregister+0x92/0xf0 net/ipv4/devinet.c:2625 inetdev_destroy net/ipv4/devinet.c:323 [inline] inetdev_event+0xfb3/0x1470 net/ipv4/devinet.c:1598 notifier_call_chain+0xc2/0x230 kernel/notifier.c:95 __raw_notifier_call_chain kernel/notifier.c:396 [inline] raw_notifier_call_chain+0x2e/0x40 kernel/notifier.c:403 call_netdevice_notifiers_info+0x3f/0x90 net/core/dev.c:1749 call_netdevice_notifiers_extack net/core/dev.c:1761 [inline] call_netdevice_notifiers net/core/dev.c:1775 [inline] rollback_registered_many+0x8ba/0xdd0 net/core/dev.c:8201 unregister_netdevice_many.part.0+0x1b/0x1f0 net/core/dev.c:9309 unregister_netdevice_many+0x3b/0x50 net/core/dev.c:9308 ip_tunnel_delete_nets+0x41e/0x5f0 net/ipv4/ip_tunnel.c:1113 ipgre_exit_batch_net+0x23/0x30 net/ipv4/ip_gre.c:993 ops_exit_list.isra.0+0xfc/0x150 net/core/net_namespace.c:175 setup_net+0x521/0x880 net/core/net_namespace.c:357 copy_net_ns+0x290/0x41f net/core/net_namespace.c:475 create_new_namespaces+0x400/0x7b0 kernel/nsproxy.c:103 unshare_nsproxy_namespaces+0xc2/0x200 kernel/nsproxy.c:202 ksys_unshare+0x444/0x980 kernel/fork.c:2831 __do_sys_unshare kernel/fork.c:2899 [inline] __se_sys_unshare kernel/fork.c:2897 [inline] __x64_sys_unshare+0x31/0x40 kernel/fork.c:2897 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88808cd88b40 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 1328 bytes to the left of 4096-byte region [ffff88808cd88b40, ffff88808cd89b40) The buggy address belongs to the page: page:ffffea0002336200 refcount:1 mapcount:0 mapping:ffff8880aa402000 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea000267a208 ffffea0002803888 ffff8880aa402000 raw: 0000000000000000 ffff88808cd88b40 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808cd88500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88808cd88580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88808cd88600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88808cd88680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88808cd88700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================