================================================================== BUG: KASAN: slab-out-of-bounds in tcp_probe_timer net/ipv4/tcp_timer.c:372 [inline] BUG: KASAN: slab-out-of-bounds in tcp_write_timer_handler+0x9d0/0xa60 net/ipv4/tcp_timer.c:615 Read of size 4 at addr ffff8880650a477c by task syz-executor.0/1619 CPU: 0 PID: 1619 Comm: syz-executor.0 Not tainted 5.8.0-syzkaller #0 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+0x18f/0x20d lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xae/0x436 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:530 tcp_probe_timer net/ipv4/tcp_timer.c:372 [inline] tcp_write_timer_handler+0x9d0/0xa60 net/ipv4/tcp_timer.c:615 tcp_write_timer+0xa2/0x2b0 net/ipv4/tcp_timer.c:631 call_timer_fn+0x1ac/0x760 kernel/time/timer.c:1413 expire_timers kernel/time/timer.c:1458 [inline] __run_timers.part.0+0x67c/0xaa0 kernel/time/timer.c:1755 __run_timers kernel/time/timer.c:1736 [inline] run_timer_softirq+0xae/0x1a0 kernel/time/timer.c:1768 __do_softirq+0x2de/0xa24 kernel/softirq.c:298 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:706 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline] do_softirq_own_stack+0x9d/0xd0 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:393 [inline] __irq_exit_rcu kernel/softirq.c:423 [inline] irq_exit_rcu+0x1f3/0x230 kernel/softirq.c:435 sysvec_apic_timer_interrupt+0x51/0xf0 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:581 RIP: 0010:kasan_mem_to_shadow include/linux/kasan.h:28 [inline] RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:134 [inline] RIP: 0010:memory_is_poisoned mm/kasan/generic.c:165 [inline] RIP: 0010:check_memory_region_inline mm/kasan/generic.c:183 [inline] RIP: 0010:check_memory_region+0x34/0x180 mm/kasan/generic.c:192 Code: 89 f9 41 54 44 0f b6 c2 49 01 f1 55 53 0f 82 18 01 00 00 48 b8 ff ff ff ff ff 7f ff ff 48 39 c7 0f 86 05 01 00 00 49 83 e9 01 <48> 89 fd 48 b8 00 00 00 00 00 fc ff df 4d 89 ca 48 c1 ed 03 49 c1 RSP: 0018:ffffc900065278d8 EFLAGS: 00000286 RAX: ffff7fffffffffff RBX: dffffc0000000000 RCX: ffffffff8194ba0e RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffea0001e25a80 RBP: ffffea0001e25a80 R08: 0000000000000000 R09: ffffea0001e25a87 R10: ffffffffffffffff R11: 0000000000000000 R12: 000000000000076f R13: ffffea0001e25a88 R14: 000000000000076a R15: 00fffe0000080016 instrument_atomic_read include/linux/instrumented.h:56 [inline] test_bit include/asm-generic/bitops/instrumented-non-atomic.h:110 [inline] PageHead include/linux/page-flags.h:566 [inline] PageTransHuge include/linux/page-flags.h:615 [inline] hpage_nr_pages include/linux/huge_mm.h:270 [inline] find_subpage include/linux/pagemap.h:384 [inline] find_subpage include/linux/pagemap.h:378 [inline] filemap_map_pages+0x4ce/0x1280 mm/filemap.c:2702 do_fault_around mm/memory.c:3818 [inline] do_read_fault mm/memory.c:3852 [inline] do_fault mm/memory.c:3985 [inline] handle_pte_fault mm/memory.c:4225 [inline] __handle_mm_fault mm/memory.c:4357 [inline] handle_mm_fault+0x39b7/0x43f0 mm/memory.c:4394 faultin_page mm/gup.c:887 [inline] __get_user_pages+0x733/0x1760 mm/gup.c:1113 populate_vma_page_range+0x251/0x330 mm/gup.c:1452 __mm_populate+0x1ea/0x350 mm/gup.c:1500 mm_populate include/linux/mm.h:2605 [inline] vm_mmap_pgoff+0x1e2/0x200 mm/util.c:511 ksys_mmap_pgoff+0xde/0x5a0 mm/mmap.c:1595 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45ce69 Code: 2d b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 fb b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f4c011ffc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 000000000001ff40 RCX: 000000000045ce69 RDX: 0000000000000003 RSI: 0000000000b36000 RDI: 0000000020000000 RBP: 000000000118c158 R08: ffffffffffffffff R09: 0000000000000000 R10: 0000000000008031 R11: 0000000000000246 R12: 000000000118c10c R13: 00007ffebf4f0faf R14: 00007f4c012009c0 R15: 000000000118c10c Allocated by task 934: save_stack+0x1b/0x40 mm/kasan/common.c:48 set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc.constprop.0+0xc2/0xd0 mm/kasan/common.c:494 slab_post_alloc_hook mm/slab.h:586 [inline] slab_alloc mm/slab.c:3320 [inline] kmem_cache_alloc+0x12c/0x3b0 mm/slab.c:3484 getname_flags.part.0+0x50/0x4f0 fs/namei.c:138 getname_flags include/linux/audit.h:320 [inline] getname+0x8e/0xd0 fs/namei.c:209 do_sys_openat2+0xf7/0x3b0 fs/open.c:1173 do_sys_open fs/open.c:1195 [inline] ksys_open include/linux/syscalls.h:1390 [inline] __do_sys_open fs/open.c:1201 [inline] __se_sys_open fs/open.c:1199 [inline] __x64_sys_open+0x119/0x1c0 fs/open.c:1199 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 934: save_stack+0x1b/0x40 mm/kasan/common.c:48 set_track mm/kasan/common.c:56 [inline] kasan_set_free_info mm/kasan/common.c:316 [inline] __kasan_slab_free+0xf5/0x140 mm/kasan/common.c:455 __cache_free mm/slab.c:3426 [inline] kmem_cache_free+0x7f/0x310 mm/slab.c:3694 putname+0xe1/0x120 fs/namei.c:259 do_sys_openat2+0x155/0x3b0 fs/open.c:1188 do_sys_open fs/open.c:1195 [inline] ksys_open include/linux/syscalls.h:1390 [inline] __do_sys_open fs/open.c:1201 [inline] __se_sys_open fs/open.c:1199 [inline] __x64_sys_open+0x119/0x1c0 fs/open.c:1199 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 The buggy address belongs to the object at ffff8880650a4cc0 which belongs to the cache names_cache of size 4096 The buggy address is located 1348 bytes to the left of 4096-byte region [ffff8880650a4cc0, ffff8880650a5cc0) The buggy address belongs to the page: page:ffffea0001942900 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 head:ffffea0001942900 order:1 compound_mapcount:0 flags: 0xfffe0000010200(slab|head) raw: 00fffe0000010200 ffffea0001394908 ffffea0001156c08 ffff8880aa20de00 raw: 0000000000000000 ffff8880650a4cc0 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880650a4600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880650a4680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880650a4700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880650a4780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880650a4800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================