================================================================== BUG: KCSAN: data-race in yama_task_free / yama_task_free write to 0xffff888082bcae90 of 1 bytes by interrupt on cpu 1: yama_ptracer_del security/yama/yama_lsm.c:191 [inline] yama_task_free+0xc3/0x160 security/yama/yama_lsm.c:207 security_task_free+0x3f/0xa0 security/security.c:1610 __put_task_struct+0xc2/0x3a0 kernel/fork.c:736 put_task_struct include/linux/sched/task.h:113 [inline] delayed_put_task_struct+0x4e/0x130 kernel/exit.c:173 rcu_do_batch kernel/rcu/tree.c:2559 [inline] rcu_core+0x6e3/0xc70 kernel/rcu/tree.c:2794 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2807 __do_softirq+0x13c/0x2c3 kernel/softirq.c:345 invoke_softirq kernel/softirq.c:221 [inline] __irq_exit_rcu+0xb4/0xc0 kernel/softirq.c:422 sysvec_apic_timer_interrupt+0x6e/0x80 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:632 smap_restore arch/x86/include/asm/smap.h:70 [inline] kcsan_setup_watchpoint+0x436/0x470 kernel/kcsan/core.c:590 find_inode_bit+0x2ac/0x3a0 fs/ext4/ialloc.c:729 __ext4_new_inode+0xb6c/0x2fe0 fs/ext4/ialloc.c:1063 ext4_symlink+0x2d1/0x780 fs/ext4/namei.c:3347 vfs_symlink+0xbe/0x170 fs/namei.c:4176 do_symlinkat+0x11e/0x2b0 fs/namei.c:4206 __do_sys_symlink fs/namei.c:4227 [inline] __se_sys_symlink fs/namei.c:4225 [inline] __x64_sys_symlink+0x32/0x40 fs/namei.c:4225 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff888082bcae90 of 1 bytes by interrupt on cpu 0: yama_ptracer_del security/yama/yama_lsm.c:187 [inline] yama_task_free+0x5c/0x160 security/yama/yama_lsm.c:207 security_task_free+0x3f/0xa0 security/security.c:1610 __put_task_struct+0xc2/0x3a0 kernel/fork.c:736 put_task_struct include/linux/sched/task.h:113 [inline] delayed_put_task_struct+0x4e/0x130 kernel/exit.c:173 rcu_do_batch kernel/rcu/tree.c:2559 [inline] rcu_core+0x6e3/0xc70 kernel/rcu/tree.c:2794 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2807 __do_softirq+0x13c/0x2c3 kernel/softirq.c:345 invoke_softirq kernel/softirq.c:221 [inline] __irq_exit_rcu+0xb4/0xc0 kernel/softirq.c:422 sysvec_apic_timer_interrupt+0x6e/0x80 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:632 smap_restore arch/x86/include/asm/smap.h:70 [inline] kcsan_setup_watchpoint+0x436/0x470 kernel/kcsan/core.c:590 tomoyo_domain_quota_is_ok+0x79/0x2f0 security/tomoyo/util.c:1059 tomoyo_supervisor+0x1f4/0xb40 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_perm+0x261/0x330 security/tomoyo/file.c:838 tomoyo_path_unlink+0x43/0x60 security/tomoyo/tomoyo.c:150 security_path_unlink+0x82/0xd0 security/security.c:1110 do_unlinkat+0x231/0x4f0 fs/namei.c:4092 __do_sys_unlink fs/namei.c:4143 [inline] __se_sys_unlink fs/namei.c:4141 [inline] __x64_sys_unlink+0x2c/0x30 fs/namei.c:4141 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 8388 Comm: syz-executor.5 Not tainted 5.12.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================