================================================================== BUG: KASAN: slab-out-of-bounds in tcp_probe_timer net/ipv4/tcp_timer.c:360 [inline] BUG: KASAN: slab-out-of-bounds in tcp_write_timer_handler+0x8c6/0x8d0 net/ipv4/tcp_timer.c:596 Read of size 4 at addr ffff888096c22690 by task syz-executor.1/8748 CPU: 1 PID: 8748 Comm: syz-executor.1 Not tainted 5.2.0+ #67 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+0x172/0x1f0 lib/dump_stack.c:113 print_address_description.cold+0xd4/0x306 mm/kasan/report.c:351 __kasan_report.cold+0x1b/0x36 mm/kasan/report.c:482 kasan_report+0x12/0x17 mm/kasan/common.c:612 __asan_report_load4_noabort+0x14/0x20 mm/kasan/generic_report.c:131 tcp_probe_timer net/ipv4/tcp_timer.c:360 [inline] tcp_write_timer_handler+0x8c6/0x8d0 net/ipv4/tcp_timer.c:596 tcp_write_timer+0xa8/0x1e0 net/ipv4/tcp_timer.c:612 call_timer_fn+0x1ac/0x780 kernel/time/timer.c:1322 expire_timers kernel/time/timer.c:1366 [inline] __run_timers kernel/time/timer.c:1685 [inline] __run_timers kernel/time/timer.c:1653 [inline] run_timer_softirq+0x697/0x17a0 kernel/time/timer.c:1698 __do_softirq+0x262/0x98c kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0x19b/0x1e0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:537 [inline] smp_apic_timer_interrupt+0x1a3/0x610 arch/x86/kernel/apic/apic.c:1095 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:828 RIP: 0010:tomoyo_domain_quota_is_ok+0x325/0x540 security/tomoyo/util.c:1068 Code: a2 6c fe 89 d9 44 89 ee 31 ff d3 fe 83 e6 01 41 89 f7 e8 1e a4 6c fe 45 85 ff 74 09 e8 94 a2 6c fe 41 83 c6 01 e8 8b a2 6c fe <8d> 73 01 bf 10 00 00 00 83 c3 01 e8 bb a3 6c fe 83 fb 10 75 bf e9 RSP: 0018:ffff88808698f7e0 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13 RAX: ffff888087644000 RBX: 0000000000000005 RCX: ffffffff8305e242 RDX: 0000000000000000 RSI: ffffffff8305e255 RDI: 0000000000000005 RBP: ffff88808698f820 R08: ffff888087644000 R09: ffffed1010d31f11 R10: ffffed1010d31f10 R11: 0000000000000000 R12: ffff8880a80a9180 R13: 0000000000000030 R14: 00000000000001cb R15: 0000000000000001 tomoyo_supervisor+0x2e8/0xef0 security/tomoyo/common.c:2087 tomoyo_audit_path_log security/tomoyo/file.c:168 [inline] tomoyo_path_permission security/tomoyo/file.c:587 [inline] tomoyo_path_permission+0x263/0x360 security/tomoyo/file.c:573 tomoyo_path_perm+0x31d/0x430 security/tomoyo/file.c:838 tomoyo_inode_getattr+0x1d/0x30 security/tomoyo/tomoyo.c:129 security_inode_getattr+0xf2/0x150 security/security.c:1182 vfs_getattr+0x25/0x70 fs/stat.c:115 vfs_statx+0x157/0x200 fs/stat.c:191 vfs_lstat include/linux/fs.h:3187 [inline] __do_sys_newlstat+0xa4/0x130 fs/stat.c:354 __se_sys_newlstat fs/stat.c:348 [inline] __x64_sys_newlstat+0x54/0x80 fs/stat.c:348 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x458be5 Code: d4 ff ff ff 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 83 ff 01 48 89 f0 77 30 48 89 c7 48 89 d6 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 03 f3 c3 90 48 c7 c2 d4 ff ff ff f7 d8 64 89 RSP: 002b:00007fff97422028 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000458be5 RDX: 00007fff97422040 RSI: 00007fff97422040 RDI: 00007fff974220d0 RBP: 0000000000000a05 R08: 0000000000000000 R09: 0000000000000010 R10: 000000000000000a R11: 0000000000000246 R12: 00007fff97423160 R13: 00005555573da940 R14: 0000000000000000 R15: 00007fff97423160 Allocated by task 20986: save_stack+0x23/0x90 mm/kasan/common.c:69 set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc mm/kasan/common.c:487 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:460 kasan_slab_alloc+0xf/0x20 mm/kasan/common.c:495 slab_post_alloc_hook mm/slab.h:520 [inline] slab_alloc mm/slab.c:3319 [inline] kmem_cache_alloc+0x121/0x710 mm/slab.c:3483 getname_flags fs/namei.c:138 [inline] getname_flags+0xd6/0x5b0 fs/namei.c:128 getname fs/namei.c:209 [inline] __do_sys_unlink fs/namei.c:4110 [inline] __se_sys_unlink fs/namei.c:4108 [inline] __x64_sys_unlink+0x35/0x50 fs/namei.c:4108 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 20986: save_stack+0x23/0x90 mm/kasan/common.c:69 set_track mm/kasan/common.c:77 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:449 kasan_slab_free+0xe/0x10 mm/kasan/common.c:457 __cache_free mm/slab.c:3425 [inline] kmem_cache_free+0x86/0x320 mm/slab.c:3693 putname+0xef/0x130 fs/namei.c:259 do_unlinkat+0x146/0x6d0 fs/namei.c:4084 __do_sys_unlink fs/namei.c:4110 [inline] __se_sys_unlink fs/namei.c:4108 [inline] __x64_sys_unlink+0x42/0x50 fs/namei.c:4108 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff888096c226c0 which belongs to the cache names_cache of size 4096 The buggy address is located 48 bytes to the left of 4096-byte region [ffff888096c226c0, ffff888096c236c0) The buggy address belongs to the page: page:ffffea00025b0880 refcount:1 mapcount:0 mapping:ffff88821bc46380 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea0001885b08 ffffea0002845e08 ffff88821bc46380 raw: 0000000000000000 ffff888096c226c0 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888096c22580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888096c22600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888096c22680: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ^ ffff888096c22700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888096c22780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================