================================================================== BUG: KCSAN: data-race in yama_task_free / yama_task_free write to 0xffff88801e2a40d0 of 1 bytes by interrupt on cpu 0: 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 __preempt_count_dec_and_test arch/x86/include/asm/preempt.h:94 [inline] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline] _raw_spin_unlock_irq+0x2c/0x40 kernel/locking/spinlock.c:199 process_one_work+0x3ce/0x950 kernel/workqueue.c:2248 worker_thread+0x635/0xb90 kernel/workqueue.c:2421 kthread+0x1fd/0x220 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 read to 0xffff88801e2a40d0 of 1 bytes by interrupt on cpu 1: 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 is_atomic kernel/kcsan/core.c:234 [inline] should_watch kernel/kcsan/core.c:262 [inline] check_access kernel/kcsan/core.c:631 [inline] __tsan_read1+0x116/0x180 kernel/kcsan/core.c:839 tomoyo_encode2+0xa9/0x350 security/tomoyo/realpath.c:34 tomoyo_encode security/tomoyo/realpath.c:80 [inline] tomoyo_realpath_from_path+0x35e/0x3b0 security/tomoyo/realpath.c:288 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0xc6/0x330 security/tomoyo/file.c:822 tomoyo_path_symlink+0x49/0x70 security/tomoyo/tomoyo.c:200 security_path_symlink+0x95/0xf0 security/security.c:1111 do_symlinkat+0xa7/0x280 fs/namei.c:3987 __do_sys_symlink fs/namei.c:4008 [inline] __se_sys_symlink fs/namei.c:4006 [inline] __x64_sys_symlink+0x32/0x40 fs/namei.c:4006 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: 1 PID: 17704 Comm: syz-executor.0 Not tainted 5.11.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================