================================================================== BUG: KCSAN: data-race in yama_ptracer_del / yama_ptracer_del write to 0xffff88808c3d31d0 of 1 bytes by interrupt on cpu 1: yama_ptracer_del+0x119/0x1a0 security/yama/yama_lsm.c:191 yama_task_free+0x22/0x30 security/yama/yama_lsm.c:207 security_task_free+0x43/0xa0 security/security.c:1550 __put_task_struct+0xcd/0x360 kernel/fork.c:751 put_task_struct include/linux/sched/task.h:122 [inline] delayed_put_task_struct+0x1a5/0x1d0 kernel/exit.c:182 rcu_do_batch kernel/rcu/tree.c:2207 [inline] rcu_core+0x533/0x9f0 kernel/rcu/tree.c:2434 rcu_core_si+0x12/0x20 kernel/rcu/tree.c:2443 __do_softirq+0x115/0x33f kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0xbb/0xe0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:546 [inline] smp_apic_timer_interrupt+0xe6/0x280 arch/x86/kernel/apic/apic.c:1146 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 arch_local_irq_restore arch/x86/include/asm/paravirt.h:752 [inline] kcsan_setup_watchpoint+0x2d6/0x400 kernel/kcsan/core.c:513 check_access kernel/kcsan/core.c:550 [inline] __tsan_read8+0xc6/0x100 kernel/kcsan/core.c:686 pte_val arch/x86/include/asm/paravirt.h:378 [inline] pte_pfn arch/x86/include/asm/pgtable.h:214 [inline] vm_normal_page+0x30/0x220 mm/memory.c:595 copy_one_pte mm/memory.c:788 [inline] copy_pte_range mm/memory.c:841 [inline] copy_pmd_range mm/memory.c:892 [inline] copy_pud_range mm/memory.c:926 [inline] copy_p4d_range mm/memory.c:948 [inline] copy_page_range+0xb0e/0x1a00 mm/memory.c:1010 dup_mmap kernel/fork.c:610 [inline] dup_mm+0x74a/0xba0 kernel/fork.c:1366 copy_mm kernel/fork.c:1422 [inline] copy_process+0x39d7/0x3b40 kernel/fork.c:2087 _do_fork+0xfe/0x7a0 kernel/fork.c:2436 __do_sys_clone kernel/fork.c:2591 [inline] __se_sys_clone kernel/fork.c:2572 [inline] __x64_sys_clone+0x130/0x170 kernel/fork.c:2572 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff88808c3d31d0 of 1 bytes by interrupt on cpu 0: yama_ptracer_del+0xd6/0x1a0 security/yama/yama_lsm.c:187 yama_task_free+0x22/0x30 security/yama/yama_lsm.c:207 security_task_free+0x43/0xa0 security/security.c:1550 __put_task_struct+0xcd/0x360 kernel/fork.c:751 put_task_struct include/linux/sched/task.h:122 [inline] delayed_put_task_struct+0x1a5/0x1d0 kernel/exit.c:182 rcu_do_batch kernel/rcu/tree.c:2207 [inline] rcu_core+0x533/0x9f0 kernel/rcu/tree.c:2434 rcu_core_si+0x12/0x20 kernel/rcu/tree.c:2443 __do_softirq+0x115/0x33f kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0xbb/0xe0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:546 [inline] smp_apic_timer_interrupt+0xe6/0x280 arch/x86/kernel/apic/apic.c:1146 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 arch_local_irq_restore arch/x86/include/asm/paravirt.h:752 [inline] kcsan_setup_watchpoint+0x2d6/0x400 kernel/kcsan/core.c:513 check_access kernel/kcsan/core.c:550 [inline] __tsan_read8+0xc6/0x100 kernel/kcsan/core.c:686 tomoyo_compare_name_union+0x26/0xa0 security/tomoyo/file.c:85 tomoyo_check_path_acl security/tomoyo/file.c:260 [inline] tomoyo_check_path_acl+0x85/0xa0 security/tomoyo/file.c:252 tomoyo_check_acl+0xf6/0x270 security/tomoyo/domain.c:175 tomoyo_path_permission security/tomoyo/file.c:586 [inline] tomoyo_path_permission+0xe3/0x160 security/tomoyo/file.c:573 tomoyo_path_perm+0x2c6/0x390 security/tomoyo/file.c:838 tomoyo_path_symlink+0x69/0xa0 security/tomoyo/tomoyo.c:206 security_path_symlink+0xab/0xe0 security/security.c:1085 do_symlinkat+0xcd/0x1e0 fs/namei.c:4226 __do_sys_symlink fs/namei.c:4247 [inline] __se_sys_symlink fs/namei.c:4245 [inline] __x64_sys_symlink+0x3f/0x50 fs/namei.c:4245 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 20412 Comm: syz-executor.0 Not tainted 5.6.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================