================================================================== BUG: KASAN: slab-out-of-bounds in tcp_retransmit_timer+0x2a66/0x2e80 net/ipv4/tcp_timer.c:500 Read of size 8 at addr ffff888062dea3d0 by task kworker/u4:0/7 CPU: 0 PID: 7 Comm: kworker/u4:0 Not tainted 5.7.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: bat_events batadv_nc_worker Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x188/0x20d lib/dump_stack.c:118 print_address_description.constprop.0.cold+0xd3/0x413 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+0x2a66/0x2e80 net/ipv4/tcp_timer.c:500 tcp_write_timer_handler+0x686/0x8a0 net/ipv4/tcp_timer.c:611 tcp_write_timer+0xa2/0x2b0 net/ipv4/tcp_timer.c:631 call_timer_fn+0x1ac/0x780 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers kernel/time/timer.c:1773 [inline] __run_timers kernel/time/timer.c:1740 [inline] run_timer_softirq+0x623/0x1600 kernel/time/timer.c:1786 __do_softirq+0x26c/0x9f7 kernel/softirq.c:292 do_softirq_own_stack+0x2a/0x40 arch/x86/entry/entry_64.S:1082 do_softirq.part.0+0x10f/0x160 kernel/softirq.c:337 do_softirq kernel/softirq.c:329 [inline] __local_bh_enable_ip+0x20e/0x270 kernel/softirq.c:189 spin_unlock_bh include/linux/spinlock.h:398 [inline] batadv_nc_purge_paths+0x264/0x380 net/batman-adv/network-coding.c:470 batadv_nc_worker+0x2c6/0x760 net/batman-adv/network-coding.c:721 process_one_work+0x965/0x16a0 kernel/workqueue.c:2268 worker_thread+0x96/0xe20 kernel/workqueue.c:2414 kthread+0x388/0x470 kernel/kthread.c:268 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:351 Allocated by task 3885: save_stack+0x1b/0x40 mm/kasan/common.c:48 set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc mm/kasan/common.c:494 [inline] __kasan_kmalloc.constprop.0+0xbf/0xd0 mm/kasan/common.c:467 slab_post_alloc_hook mm/slab.h:586 [inline] slab_alloc mm/slab.c:3320 [inline] kmem_cache_alloc+0x11b/0x740 mm/slab.c:3484 getname_flags fs/namei.c:138 [inline] getname_flags+0xd2/0x5b0 fs/namei.c:128 user_path_at_empty+0x2a/0x50 fs/namei.c:2632 do_readlinkat+0xcd/0x300 fs/stat.c:419 __do_sys_readlinkat fs/stat.c:446 [inline] __se_sys_readlinkat fs/stat.c:443 [inline] __x64_sys_readlinkat+0x93/0xf0 fs/stat.c:443 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 Freed by task 3885: 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+0xf7/0x140 mm/kasan/common.c:455 __cache_free mm/slab.c:3426 [inline] kmem_cache_free+0x7f/0x320 mm/slab.c:3694 putname+0xe1/0x120 fs/namei.c:259 filename_lookup+0x282/0x3e0 fs/namei.c:2362 do_readlinkat+0xcd/0x300 fs/stat.c:419 __do_sys_readlinkat fs/stat.c:446 [inline] __se_sys_readlinkat fs/stat.c:443 [inline] __x64_sys_readlinkat+0x93/0xf0 fs/stat.c:443 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 The buggy address belongs to the object at ffff888062dead80 which belongs to the cache names_cache of size 4096 The buggy address is located 2480 bytes to the left of 4096-byte region [ffff888062dead80, ffff888062debd80) The buggy address belongs to the page: page:ffffea00018b7a80 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 head:ffffea00018b7a80 order:1 compound_mapcount:0 flags: 0xfffe0000010200(slab|head) raw: 00fffe0000010200 ffffea0002483908 ffffea0001711e88 ffff8880aa1ec000 raw: 0000000000000000 ffff888062dead80 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888062dea280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888062dea300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888062dea380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888062dea400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888062dea480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================