================================================================== BUG: KCSAN: data-race in yama_task_free / yama_task_free write to 0xffff8880115aa1d0 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:1597 __put_task_struct+0xc2/0x3a0 kernel/fork.c:736 put_task_struct include/linux/sched/task.h:111 [inline] delayed_put_task_struct+0x4e/0x130 kernel/exit.c:173 rcu_do_batch kernel/rcu/tree.c:2489 [inline] rcu_core+0x69b/0xb90 kernel/rcu/tree.c:2723 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2736 __do_softirq+0x13c/0x2c3 kernel/softirq.c:343 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:226 [inline] __irq_exit_rcu+0xb4/0xc0 kernel/softirq.c:420 sysvec_apic_timer_interrupt+0x74/0x90 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:628 __sanitizer_cov_trace_switch+0x71/0x100 kernel/kcov.c:320 tomoyo_domain_quota_is_ok+0xbc/0x2d0 security/tomoyo/util.c:1061 tomoyo_supervisor+0x1f4/0xb20 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_inode_getattr+0x18/0x20 security/tomoyo/tomoyo.c:123 security_inode_getattr+0x7f/0xd0 security/security.c:1280 vfs_getattr fs/stat.c:121 [inline] vfs_fstat+0x45/0x390 fs/stat.c:146 __do_sys_newfstat fs/stat.c:386 [inline] __se_sys_newfstat+0x35/0x240 fs/stat.c:383 __x64_sys_newfstat+0x2d/0x40 fs/stat.c:383 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff8880115aa1d0 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:1597 __put_task_struct+0xc2/0x3a0 kernel/fork.c:736 put_task_struct include/linux/sched/task.h:111 [inline] delayed_put_task_struct+0x4e/0x130 kernel/exit.c:173 rcu_do_batch kernel/rcu/tree.c:2489 [inline] rcu_core+0x69b/0xb90 kernel/rcu/tree.c:2723 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2736 __do_softirq+0x13c/0x2c3 kernel/softirq.c:343 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:226 [inline] __irq_exit_rcu+0xb4/0xc0 kernel/softirq.c:420 sysvec_apic_timer_interrupt+0x74/0x90 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:628 native_restore_fl arch/x86/include/asm/irqflags.h:41 [inline] arch_local_irq_restore arch/x86/include/asm/irqflags.h:84 [inline] kcsan_setup_watchpoint+0x1fc/0x4e0 kernel/kcsan/core.c:591 link_path_walk+0x4e/0x730 fs/namei.c:2112 path_lookupat+0x7b/0x550 fs/namei.c:2335 filename_lookup+0xf2/0x380 fs/namei.c:2369 user_path_at_empty+0x3b/0x50 fs/namei.c:2649 user_path_at include/linux/namei.h:59 [inline] do_mount fs/namespace.c:3218 [inline] __do_sys_mount fs/namespace.c:3429 [inline] __se_sys_mount+0x209/0x2e0 fs/namespace.c:3406 __x64_sys_mount+0x63/0x70 fs/namespace.c:3406 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: 28607 Comm: syz-executor.5 Not tainted 5.11.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================