================================================================== BUG: KASAN: slab-out-of-bounds in tcp_retransmit_timer+0x2d30/0x3220 net/ipv4/tcp_timer.c:500 Read of size 8 at addr ffff888095318310 by task ksoftirqd/0/9 CPU: 0 PID: 9 Comm: ksoftirqd/0 Not tainted 5.9.0-rc3-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+0x198/0x1fd lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xae/0x497 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:530 tcp_retransmit_timer+0x2d30/0x3220 net/ipv4/tcp_timer.c:500 tcp_write_timer_handler+0x79b/0xa60 net/ipv4/tcp_timer.c:611 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+0xb3/0x1d0 kernel/time/timer.c:1768 __do_softirq+0x1f8/0xb23 kernel/softirq.c:298 run_ksoftirqd kernel/softirq.c:652 [inline] run_ksoftirqd+0xcf/0x170 kernel/softirq.c:644 smpboot_thread_fn+0x655/0x9e0 kernel/smpboot.c:165 kthread+0x3b5/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 Allocated by task 16697: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:48 kasan_set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:461 slab_post_alloc_hook mm/slab.h:518 [inline] slab_alloc mm/slab.c:3312 [inline] kmem_cache_alloc+0x13a/0x3f0 mm/slab.c:3482 getname_flags.part.0+0x50/0x4f0 fs/namei.c:138 getname_flags+0x9a/0xe0 include/linux/audit.h:320 getname fs/namei.c:209 [inline] user_path_create fs/namei.c:3524 [inline] do_symlinkat+0xce/0x2c0 fs/namei.c:3979 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 16697: kasan_save_stack+0x1b/0x40 mm/kasan/common.c:48 kasan_set_track+0x1c/0x30 mm/kasan/common.c:56 kasan_set_free_info+0x1b/0x30 mm/kasan/generic.c:355 __kasan_slab_free+0xd8/0x120 mm/kasan/common.c:422 __cache_free mm/slab.c:3418 [inline] kmem_cache_free.part.0+0x74/0x1e0 mm/slab.c:3693 putname+0xe1/0x120 fs/namei.c:259 filename_create+0x22e/0x490 fs/namei.c:3489 user_path_create fs/namei.c:3524 [inline] do_symlinkat+0xe1/0x2c0 fs/namei.c:3979 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 ffff888095318980 which belongs to the cache names_cache of size 4096 The buggy address is located 1648 bytes to the left of 4096-byte region [ffff888095318980, ffff888095319980) The buggy address belongs to the page: page:00000000d2c3f9b3 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x95318 head:00000000d2c3f9b3 order:1 compound_mapcount:0 flags: 0xfffe0000010200(slab|head) raw: 00fffe0000010200 ffffea000141b708 ffffea00015e0f88 ffff8880aa221c00 raw: 0000000000000000 ffff888095318980 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888095318200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888095318280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888095318300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888095318380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888095318400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================