================================================================== BUG: KASAN: slab-out-of-bounds in tcp_retransmit_timer+0x2d30/0x3220 net/ipv4/tcp_timer.c:500 Read of size 8 at addr ffff888094942290 by task systemd-udevd/3914 CPU: 0 PID: 3914 Comm: systemd-udevd 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+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:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline] RIP: 0010:_raw_spin_unlock_irq+0x4b/0x80 kernel/locking/spinlock.c:199 Code: c0 18 3c b6 89 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 31 48 83 3d 86 f6 be 01 00 74 25 fb 66 0f 1f 44 00 00 01 00 00 00 e8 cb 71 58 f9 65 8b 05 d4 b8 0a 78 85 c0 74 02 5d RSP: 0018:ffffc90000e276e0 EFLAGS: 00000286 RAX: 1ffffffff136c783 RBX: ffff8880a1038500 RCX: 1ffffffff1564b39 RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffffffff87f7456f RBP: ffff8880ae635e40 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880ae635e40 R13: ffff888048b5c240 R14: ffff88805e9c4180 R15: 0000000000000080 finish_lock_switch kernel/sched/core.c:3517 [inline] finish_task_switch+0x147/0x750 kernel/sched/core.c:3617 context_switch kernel/sched/core.c:3781 [inline] __schedule+0x8ed/0x21e0 kernel/sched/core.c:4527 preempt_schedule_irq+0xb0/0x150 kernel/sched/core.c:4785 irqentry_exit_cond_resched kernel/entry/common.c:333 [inline] irqentry_exit_cond_resched kernel/entry/common.c:325 [inline] irqentry_exit+0x65/0x90 kernel/entry/common.c:363 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:581 RIP: 0010:tomoyo_domain_quota_is_ok+0x152/0x550 security/tomoyo/util.c:1037 Code: ce 0f 85 82 03 00 00 83 e0 07 38 c2 0f 9e c1 84 d2 0f 95 c0 84 c1 0f 85 6d 03 00 00 48 8b 6d 00 48 3b 2c 24 0f 84 89 00 00 00 69 76 0d fe 48 8d 7d 18 48 89 f8 48 89 fa 48 c1 e8 03 83 e2 07 RSP: 0018:ffffc90000e27900 EFLAGS: 00000202 RAX: 0000000000000000 RBX: 0000000000000010 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffff8880a7354d80 R08: 0000000000000001 R09: ffffffff8cb27747 R10: 0000000000000010 R11: 0000000000000001 R12: 0000000000000026 R13: 000000000000034e R14: dffffc0000000000 R15: 0000000000000000 tomoyo_supervisor+0x2d4/0xeb0 security/tomoyo/common.c:2089 tomoyo_audit_path_log security/tomoyo/file.c:168 [inline] tomoyo_path_permission security/tomoyo/file.c:587 [inline] tomoyo_path_permission+0x25c/0x360 security/tomoyo/file.c:573 tomoyo_path_perm+0x2e7/0x3f0 security/tomoyo/file.c:838 security_inode_getattr+0xcf/0x140 security/security.c:1278 vfs_getattr fs/stat.c:121 [inline] vfs_statx_fd+0x70/0xf0 fs/stat.c:151 vfs_fstat include/linux/fs.h:3186 [inline] __do_sys_newfstat+0x88/0x100 fs/stat.c:398 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f055ec012e2 Code: 48 8b 05 b9 db 2b 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 83 ff 01 77 33 48 63 fe b8 05 00 00 00 48 89 d6 0f 05 <48> 3d 00 f0 ff ff 77 06 f3 c3 0f 1f 40 00 48 8b 15 81 db 2b 00 f7 RSP: 002b:00007fff6cbed908 EFLAGS: 00000246 ORIG_RAX: 0000000000000005 RAX: ffffffffffffffda RBX: 000000000000000f RCX: 00007f055ec012e2 RDX: 00007fff6cbed910 RSI: 00007fff6cbed910 RDI: 000000000000000f RBP: 00007f055fd8e710 R08: 0000557826882e40 R09: 0000000000001010 R10: 00007f055eebfb58 R11: 0000000000000246 R12: 0000000000000000 R13: 0000557826878bf0 R14: 00000000000000ff R15: 0000557826878bf0 Allocated by task 8336: 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/0x3a0 mm/slab.c:3482 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+0xf5/0x420 fs/open.c:1162 do_sys_open fs/open.c:1184 [inline] __do_sys_open fs/open.c:1192 [inline] __se_sys_open fs/open.c:1188 [inline] __x64_sys_open+0x119/0x1c0 fs/open.c:1188 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 8336: 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 do_sys_openat2+0x153/0x420 fs/open.c:1177 do_sys_open fs/open.c:1184 [inline] __do_sys_open fs/open.c:1192 [inline] __se_sys_open fs/open.c:1188 [inline] __x64_sys_open+0x119/0x1c0 fs/open.c:1188 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 ffff888094942e00 which belongs to the cache names_cache of size 4096 The buggy address is located 2928 bytes to the left of 4096-byte region [ffff888094942e00, ffff888094943e00) The buggy address belongs to the page: page:00000000ec21cc8f refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x94942 head:00000000ec21cc8f order:1 compound_mapcount:0 flags: 0xfffe0000010200(slab|head) raw: 00fffe0000010200 ffffea000157e808 ffffea0002a2f708 ffff8880aa241c00 raw: 0000000000000000 ffff888094942e00 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888094942180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888094942200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888094942280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888094942300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888094942380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================