================================================================== 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 ffff88808b8a0610 by task ps/31330 CPU: 0 PID: 31330 Comm: ps Not tainted 5.3.0-rc7+ #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+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:618 __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:1133 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:830 RIP: 0010:tomoyo_domain_quota_is_ok+0x335/0x540 security/tomoyo/util.c:1068 Code: 89 f7 e8 5e 5d 6c fe 45 85 ff 74 09 e8 d4 5b 6c fe 41 83 c6 01 e8 cb 5b 6c fe 8d 73 01 bf 10 00 00 00 83 c3 01 e8 fb 5c 6c fe <83> fb 10 75 bf e9 a5 fd ff ff 41 bc 01 00 00 00 eb 93 45 31 ed eb RSP: 0018:ffff88805df874f0 EFLAGS: 00000293 ORIG_RAX: ffffffffffffff13 RAX: 0000000000000000 RBX: 000000000000000c RCX: ffffffff83061995 RDX: 000000000000000c RSI: 0000000000000010 RDI: 0000000000000001 RBP: ffff88805df87530 R08: ffff888066ebe680 R09: ffffed100bbf0eb3 R10: ffffed100bbf0eb2 R11: 0000000000000000 R12: ffff8880a86c0780 R13: 0000000000000020 R14: 00000000000000d0 R15: 0000000000000000 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_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:0x7f66e4353120 Code: 48 8b 15 1b 4d 2b 00 f7 d8 64 89 02 83 c8 ff c3 90 90 90 90 90 90 90 90 90 90 83 3d d5 a4 2b 00 00 75 10 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 5e 8c 01 00 48 89 04 24 RSP: 002b:00007ffdf19d22f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 0000000000616760 RCX: 00007f66e4353120 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00007f66e4821d00 RBP: 0000000000001000 R08: 0000000000000000 R09: 00007f66e461ba10 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f66e4820d00 R13: 0000000001f491e0 R14: 0000000000000005 R15: 0000000000000000 Allocated by task 9732: save_stack+0x23/0x90 mm/kasan/common.c:69 set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc mm/kasan/common.c:493 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:466 kasan_slab_alloc+0xf/0x20 mm/kasan/common.c:501 slab_post_alloc_hook mm/slab.h:520 [inline] slab_alloc_node mm/slab.c:3262 [inline] kmem_cache_alloc_node+0x138/0x740 mm/slab.c:3574 alloc_task_struct_node kernel/fork.c:160 [inline] dup_task_struct kernel/fork.c:851 [inline] copy_process+0x46d1/0x6b00 kernel/fork.c:1856 _do_fork+0x146/0xfa0 kernel/fork.c:2369 kernel_thread+0xbb/0xf0 kernel/fork.c:2456 call_usermodehelper_exec_sync kernel/umh.c:135 [inline] call_usermodehelper_exec_work+0xc3/0x280 kernel/umh.c:187 process_one_work+0x9af/0x1740 kernel/workqueue.c:2269 worker_thread+0x98/0xe40 kernel/workqueue.c:2415 kthread+0x361/0x430 kernel/kthread.c:255 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Freed by task 16: 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:455 kasan_slab_free+0xe/0x10 mm/kasan/common.c:463 __cache_free mm/slab.c:3425 [inline] kmem_cache_free+0x86/0x320 mm/slab.c:3693 free_task_struct kernel/fork.c:165 [inline] free_task+0xdd/0x120 kernel/fork.c:464 __put_task_struct+0x202/0x4c0 kernel/fork.c:736 put_task_struct include/linux/sched/task.h:115 [inline] delayed_put_task_struct+0x220/0x370 kernel/exit.c:182 __rcu_reclaim kernel/rcu/rcu.h:222 [inline] rcu_do_batch kernel/rcu/tree.c:2114 [inline] rcu_core+0x67f/0x1580 kernel/rcu/tree.c:2314 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2323 __do_softirq+0x262/0x98c kernel/softirq.c:292 The buggy address belongs to the object at ffff88808b8a0700 which belongs to the cache task_struct of size 6080 The buggy address is located 240 bytes to the left of 6080-byte region [ffff88808b8a0700, ffff88808b8a1ec0) The buggy address belongs to the page: page:ffffea00022e2800 refcount:1 mapcount:0 mapping:ffff88821bc428c0 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea0001524588 ffffea0002738188 ffff88821bc428c0 raw: 0000000000000000 ffff88808b8a0700 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808b8a0500: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88808b8a0580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88808b8a0600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88808b8a0680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88808b8a0700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================