================================================================== 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 ffff88806f4106d0 by task syz-executor.4/10416 CPU: 1 PID: 10416 Comm: syz-executor.4 Not tainted 5.3.0-rc5+ #178 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:830 RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x50 kernel/kcov.c:95 Code: 89 25 f4 50 19 09 41 bc f4 ff ff ff e8 ed a0 e9 ff 48 c7 05 de 50 19 09 00 00 00 00 e9 77 e9 ff ff 90 90 90 90 90 90 90 90 90 <55> 48 89 e5 65 48 8b 04 25 40 fe 01 00 65 8b 15 c4 8c 8f 7e 81 e2 RSP: 0018:ffff88806e88f660 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffffff8304cea8 RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000005 RBP: ffff88806e88f690 R08: ffff88806e884380 R09: fffffbfff134af38 R10: fffffbfff134af37 R11: ffffffff89a579bf R12: ffff88806e88f7b8 R13: ffff8880a1ac7700 R14: 0000000000000000 R15: 0000000000000000 tomoyo_check_acl+0x141/0x3e0 security/tomoyo/domain.c:172 tomoyo_path_permission security/tomoyo/file.c:586 [inline] tomoyo_path_permission+0x1fb/0x360 security/tomoyo/file.c:573 tomoyo_check_open_permission+0x3ab/0x3f0 security/tomoyo/file.c:777 tomoyo_file_open security/tomoyo/tomoyo.c:319 [inline] tomoyo_file_open+0xa9/0xd0 security/tomoyo/tomoyo.c:314 security_file_open+0x71/0x300 security/security.c:1457 do_dentry_open+0x373/0x1250 fs/open.c:784 vfs_open+0xa0/0xd0 fs/open.c:906 do_last fs/namei.c:3416 [inline] path_openat+0x10e9/0x4630 fs/namei.c:3533 do_filp_open+0x1a1/0x280 fs/namei.c:3563 do_sys_open+0x3fe/0x5d0 fs/open.c:1089 __do_sys_open fs/open.c:1107 [inline] __se_sys_open fs/open.c:1102 [inline] __x64_sys_open+0x7e/0xc0 fs/open.c:1102 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4577f0 Code: 31 c0 e9 45 ff ff ff 0f 1f 00 80 3f 00 0f 84 f7 00 00 00 55 53 b9 02 00 00 00 be 00 08 09 00 89 c8 48 81 ec 98 00 00 00 0f 05 <48> 3d 00 f0 ff ff 48 89 c3 0f 87 e9 00 00 00 85 db 0f 88 2f 01 00 RSP: 002b:00007ffd28aadaa0 EFLAGS: 00000206 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 0000000000049bd8 RCX: 00000000004577f0 RDX: 000000000000000c RSI: 0000000000090800 RDI: 00007ffd28aaec80 RBP: 000000000000043d R08: 0000000000000001 R09: 0000555556d73940 R10: 0000000000000000 R11: 0000000000000206 R12: 00007ffd28aaec80 R13: 00007ffd28aaec70 R14: 0000000000000000 R15: 00007ffd28aaec80 Allocated by task 10082: 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_kmalloc+0x9/0x10 mm/kasan/common.c:501 __do_kmalloc_node mm/slab.c:3615 [inline] __kmalloc_node+0x4e/0x70 mm/slab.c:3622 kmalloc_node include/linux/slab.h:595 [inline] kvmalloc_node+0x68/0x100 mm/util.c:459 kvmalloc include/linux/mm.h:670 [inline] seq_buf_alloc fs/seq_file.c:32 [inline] seq_read+0x817/0x1110 fs/seq_file.c:204 kernfs_fop_read+0xed/0x560 fs/kernfs/file.c:251 __vfs_read+0x8a/0x110 fs/read_write.c:425 vfs_read+0x1f0/0x440 fs/read_write.c:461 ksys_read+0x14f/0x290 fs/read_write.c:587 __do_sys_read fs/read_write.c:597 [inline] __se_sys_read fs/read_write.c:595 [inline] __x64_sys_read+0x73/0xb0 fs/read_write.c:595 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 10082: 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] kfree+0x10a/0x2c0 mm/slab.c:3756 kvfree+0x61/0x70 mm/util.c:488 seq_release+0x54/0x80 fs/seq_file.c:360 kernfs_fop_release+0xf7/0x1a0 fs/kernfs/file.c:780 __fput+0x2ff/0x890 fs/file_table.c:280 ____fput+0x16/0x20 fs/file_table.c:313 task_work_run+0x145/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x316/0x380 arch/x86/entry/common.c:163 prepare_exit_to_usermode arch/x86/entry/common.c:194 [inline] syscall_return_slowpath arch/x86/entry/common.c:274 [inline] do_syscall_64+0x5a9/0x6a0 arch/x86/entry/common.c:299 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88806f410bc0 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 1264 bytes to the left of 4096-byte region [ffff88806f410bc0, ffff88806f411bc0) The buggy address belongs to the page: page:ffffea0001bd0400 refcount:1 mapcount:0 mapping:ffff8880aa402000 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea0001841c88 ffffea0002932a08 ffff8880aa402000 raw: 0000000000000000 ffff88806f410bc0 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88806f410580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806f410600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88806f410680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88806f410700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88806f410780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================