================================================================== BUG: KASAN: slab-out-of-bounds in tcp_retransmit_timer+0x2d30/0x3220 net/ipv4/tcp_timer.c:500 Read of size 8 at addr ffff88808e5dc490 by task syz-executor.1/25768 CPU: 1 PID: 25768 Comm: syz-executor.1 Not tainted 5.9.0-rc1-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/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+0x2ed/0xab4 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:debug_lockdep_rcu_enabled+0x6/0x30 kernel/rcu/update.c:291 Code: 00 00 00 00 0f 1f 44 00 00 65 81 05 60 bf fb 77 00 00 00 f0 c3 cc cc cc cc cc cc cc cc cc cc cc cc cc cc cc 8b 05 ea 52 2e 03 <85> c0 74 21 8b 05 5c 84 2e 03 85 c0 74 17 65 48 8b 04 25 c0 fe 01 RSP: 0018:ffffc900066efbe8 EFLAGS: 00000293 RAX: 0000000000000002 RBX: 0000000000000000 RCX: ffffffff86636d16 RDX: ffff88805f608580 RSI: ffffffff86636eca RDI: 0000000000000001 RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff8ce329e7 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: ffff888090fc6930 rcu_read_lock_held_common kernel/rcu/update.c:115 [inline] rcu_read_lock_held+0x5/0x40 kernel/rcu/update.c:320 bpf_sk_storage_free+0x27f/0x3d0 net/core/bpf_sk_storage.c:66 __sk_destruct+0x1a4/0x860 net/core/sock.c:1776 sk_destruct+0xbd/0xe0 net/core/sock.c:1808 __sk_free+0xef/0x3d0 net/core/sock.c:1819 sk_free+0x78/0xa0 net/core/sock.c:1830 sock_put include/net/sock.h:1781 [inline] tcp_close+0xb4c/0x1210 net/ipv4/tcp.c:2580 inet_release+0x12e/0x280 net/ipv4/af_inet.c:431 __sock_release net/socket.c:596 [inline] sock_release+0x87/0x1b0 net/socket.c:624 smc_clcsock_release+0xb3/0xe0 net/smc/smc_close.c:34 __smc_release+0x393/0x580 net/smc/af_smc.c:161 smc_release+0x167/0x490 net/smc/af_smc.c:196 __sock_release+0xcd/0x280 net/socket.c:596 sock_close+0x18/0x20 net/socket.c:1277 __fput+0x285/0x920 fs/file_table.c:281 task_work_run+0xdd/0x190 kernel/task_work.c:141 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop kernel/entry/common.c:140 [inline] exit_to_user_mode_prepare+0x195/0x1c0 kernel/entry/common.c:167 syscall_exit_to_user_mode+0x59/0x2b0 kernel/entry/common.c:242 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x416f41 Code: 75 14 b8 03 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 04 1b 00 00 c3 48 83 ec 08 e8 0a fc ff ff 48 89 04 24 b8 03 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 53 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007fff77094e00 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000008 RCX: 0000000000416f41 RDX: 0000000000000000 RSI: 00000000000005aa RDI: 0000000000000007 RBP: 0000000000000001 R08: 00000000c9b7a5ad R09: 0000000000000000 R10: 00007fff77094ef0 R11: 0000000000000293 R12: 000000000118d940 R13: 000000000118d940 R14: ffffffffffffffff R15: 000000000118cf4c Allocated by task 3912: 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+0x138/0x3e0 mm/slab.c:3482 getname_flags.part.0+0x50/0x4f0 fs/namei.c:138 getname_flags fs/namei.c:2646 [inline] user_path_at_empty+0xa1/0x100 fs/namei.c:2646 user_path_at include/linux/namei.h:59 [inline] vfs_statx+0x14e/0x390 fs/stat.c:202 vfs_lstat include/linux/fs.h:3175 [inline] __do_sys_newlstat+0x91/0x110 fs/stat.c:374 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 3912: 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+0x67/0x1f0 mm/slab.c:3693 putname+0xe1/0x120 fs/namei.c:259 filename_lookup+0x3b1/0x560 fs/namei.c:2376 user_path_at include/linux/namei.h:59 [inline] vfs_statx+0x14e/0x390 fs/stat.c:202 vfs_lstat include/linux/fs.h:3175 [inline] __do_sys_newlstat+0x91/0x110 fs/stat.c:374 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 ffff88808e5dcc40 which belongs to the cache names_cache of size 4096 The buggy address is located 1968 bytes to the left of 4096-byte region [ffff88808e5dcc40, ffff88808e5ddc40) The buggy address belongs to the page: page:000000002e5b0d67 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x8e5dc head:000000002e5b0d67 order:1 compound_mapcount:0 flags: 0xfffe0000010200(slab|head) raw: 00fffe0000010200 ffffea000270c708 ffffea0002432988 ffff8880aa221c00 raw: 0000000000000000 ffff88808e5dcc40 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808e5dc380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88808e5dc400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88808e5dc480: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88808e5dc500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88808e5dc580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================