================================================================== BUG: KCSAN: data-race in yama_task_free / yama_task_free write to 0xffff888026baae90 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:1596 __put_task_struct+0xc2/0x3a0 kernel/fork.c:735 put_task_struct include/linux/sched/task.h:113 [inline] delayed_put_task_struct+0x49/0x130 kernel/exit.c:172 rcu_do_batch kernel/rcu/tree.c:2476 [inline] rcu_core+0x6bb/0xbc0 kernel/rcu/tree.c:2711 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2724 __do_softirq+0x12c/0x2b1 kernel/softirq.c:298 asm_call_irq_on_stack+0xf/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0x32/0x40 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:393 [inline] __irq_exit_rcu+0xb2/0xc0 kernel/softirq.c:423 sysvec_apic_timer_interrupt+0x74/0x90 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:631 check_kcov_mode kernel/kcov.c:165 [inline] write_comp_data kernel/kcov.c:218 [inline] __sanitizer_cov_trace_cmp1+0x31/0xa0 kernel/kcov.c:246 tomoyo_check_acl+0xb9/0x200 security/tomoyo/domain.c:173 tomoyo_path_number_perm+0x1af/0x2d0 security/tomoyo/file.c:733 tomoyo_path_mkdir+0x50/0x70 security/tomoyo/tomoyo.c:167 security_path_mkdir+0x95/0xf0 security/security.c:1086 do_mkdirat+0xf7/0x220 fs/namei.c:3671 __do_sys_mkdir fs/namei.c:3689 [inline] __se_sys_mkdir fs/namei.c:3687 [inline] __x64_sys_mkdir+0x32/0x40 fs/namei.c:3687 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff888026baae90 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:1596 __put_task_struct+0xc2/0x3a0 kernel/fork.c:735 put_task_struct include/linux/sched/task.h:113 [inline] delayed_put_task_struct+0x49/0x130 kernel/exit.c:172 rcu_do_batch kernel/rcu/tree.c:2476 [inline] rcu_core+0x6bb/0xbc0 kernel/rcu/tree.c:2711 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2724 __do_softirq+0x12c/0x2b1 kernel/softirq.c:298 asm_call_irq_on_stack+0xf/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0x32/0x40 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:393 [inline] __irq_exit_rcu+0xb2/0xc0 kernel/softirq.c:423 sysvec_apic_timer_interrupt+0x74/0x90 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:631 arch_atomic64_read arch/x86/include/asm/atomic64_64.h:22 [inline] atomic64_read include/asm-generic/atomic-instrumented.h:838 [inline] atomic_long_read include/asm-generic/atomic-long.h:29 [inline] find_watchpoint kernel/kcsan/core.c:123 [inline] check_access kernel/kcsan/core.c:616 [inline] __tsan_read8+0x24/0x180 kernel/kcsan/core.c:842 EXT4_SB fs/ext4/ext4.h:1653 [inline] ext4_get_group_desc+0xd3/0x180 fs/ext4/balloc.c:300 recently_deleted fs/ext4/ialloc.c:682 [inline] find_inode_bit+0x16a/0x3a0 fs/ext4/ialloc.c:728 __ext4_new_inode+0xd22/0x3060 fs/ext4/ialloc.c:1062 ext4_symlink+0x2bc/0x770 fs/ext4/namei.c:3336 vfs_symlink+0x216/0x2d0 fs/namei.c:3960 do_symlinkat+0xee/0x280 fs/namei.c:3987 __do_sys_symlink fs/namei.c:4006 [inline] __se_sys_symlink fs/namei.c:4004 [inline] __x64_sys_symlink+0x32/0x40 fs/namei.c:4004 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 13093 Comm: syz-executor.2 Not tainted 5.10.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================