================================================================== BUG: KASAN: slab-out-of-bounds in tcp_probe_timer net/ipv4/tcp_timer.c:372 [inline] BUG: KASAN: slab-out-of-bounds in tcp_write_timer_handler+0x9d0/0xa60 net/ipv4/tcp_timer.c:615 Read of size 4 at addr ffff888068bb477c by task systemd-udevd/3888 CPU: 1 PID: 3888 Comm: systemd-udevd Not tainted 5.8.0-rc4-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/0x436 mm/kasan/report.c:383 __kasan_report mm/kasan/report.c:513 [inline] kasan_report.cold+0x1f/0x37 mm/kasan/report.c:530 tcp_probe_timer net/ipv4/tcp_timer.c:372 [inline] tcp_write_timer_handler+0x9d0/0xa60 net/ipv4/tcp_timer.c:615 tcp_write_timer+0xa2/0x2b0 net/ipv4/tcp_timer.c:631 call_timer_fn+0x1ac/0x760 kernel/time/timer.c:1404 expire_timers kernel/time/timer.c:1449 [inline] __run_timers.part.0+0x54c/0xa20 kernel/time/timer.c:1773 __run_timers kernel/time/timer.c:1745 [inline] run_timer_softirq+0xae/0x1a0 kernel/time/timer.c:1786 __do_softirq+0x34c/0xa60 kernel/softirq.c:292 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:711 __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+0x111/0x170 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:387 [inline] __irq_exit_rcu kernel/softirq.c:417 [inline] irq_exit_rcu+0x229/0x270 kernel/softirq.c:429 sysvec_apic_timer_interrupt+0x54/0x120 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:587 RIP: 0010:tomoyo_domain_quota_is_ok+0x307/0x550 security/tomoyo/util.c:1071 Code: 41 5d 41 5e 41 5f c3 41 bc 01 00 00 00 31 db e8 4f 2e 11 fe 89 d9 44 89 e0 31 ff d3 f8 83 e0 01 41 89 c7 89 c6 e8 b9 2a 11 fe <45> 85 ff 74 09 e8 2f 2e 11 fe 41 83 c5 01 e8 26 2e 11 fe 8d 73 01 RSP: 0018:ffffc900014775a8 EFLAGS: 00000293 RAX: 0000000000000000 RBX: 000000000000000f RCX: ffffffff83628bc7 RDX: 0000000000000000 RSI: ffff88809f3565c0 RDI: 0000000000000005 RBP: ffff8880a7268c00 R08: 0000000000000001 R09: ffffffff8cac26e7 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000002 R13: 00000000000001c2 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_check_open_permission+0x33e/0x380 security/tomoyo/file.c:777 tomoyo_file_open security/tomoyo/tomoyo.c:313 [inline] tomoyo_file_open+0xa3/0xd0 security/tomoyo/tomoyo.c:308 security_file_open+0x52/0x3f0 security/security.c:1574 do_dentry_open+0x3a0/0x1290 fs/open.c:815 do_open fs/namei.c:3243 [inline] path_openat+0x1bb9/0x2750 fs/namei.c:3360 do_filp_open+0x17e/0x3c0 fs/namei.c:3387 do_sys_openat2+0x16f/0x3b0 fs/open.c:1179 do_sys_open fs/open.c:1195 [inline] ksys_open include/linux/syscalls.h:1388 [inline] __do_sys_open fs/open.c:1201 [inline] __se_sys_open fs/open.c:1199 [inline] __x64_sys_open+0x119/0x1c0 fs/open.c:1199 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:384 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f50bafd39b1 Code: Bad RIP value. RSP: 002b:00007ffd13216318 EFLAGS: 00000202 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00005560dbba26e0 RCX: 00007f50bafd39b1 RDX: 00000000000000ff RSI: 0000000000090800 RDI: 00005560dbb920c0 RBP: 00007f50bc188710 R08: 00005560dbb924c0 R09: 0000000000001010 R10: 00007f50bb2b9b58 R11: 0000000000000202 R12: 0000000000000000 R13: 00005560dbb920c0 R14: 00000000000000ff R15: 00005560dbb920c0 Allocated by task 3888: save_stack+0x1b/0x40 mm/kasan/common.c:48 set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc.constprop.0+0xc2/0xd0 mm/kasan/common.c:494 slab_post_alloc_hook mm/slab.h:586 [inline] slab_alloc mm/slab.c:3320 [inline] kmem_cache_alloc+0x12c/0x3b0 mm/slab.c:3484 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:3302 [inline] __do_sys_newlstat+0x91/0x110 fs/stat.c:374 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:384 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Freed by task 3888: 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+0xf5/0x140 mm/kasan/common.c:455 __cache_free mm/slab.c:3426 [inline] kmem_cache_free+0x7f/0x310 mm/slab.c:3694 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:3302 [inline] __do_sys_newlstat+0x91/0x110 fs/stat.c:374 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:384 entry_SYSCALL_64_after_hwframe+0x44/0xa9 The buggy address belongs to the object at ffff888068bb4dc0 which belongs to the cache names_cache of size 4096 The buggy address is located 1604 bytes to the left of 4096-byte region [ffff888068bb4dc0, ffff888068bb5dc0) The buggy address belongs to the page: page:ffffea0001a2ed00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 head:ffffea0001a2ed00 order:1 compound_mapcount:0 flags: 0xfffe0000010200(slab|head) raw: 00fffe0000010200 ffffea0002483588 ffffea00014e3808 ffff8880aa1d0000 raw: 0000000000000000 ffff888068bb4dc0 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888068bb4600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888068bb4680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888068bb4700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888068bb4780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888068bb4800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================