================================================================== BUG: KCSAN: data-race in yama_task_free / yama_task_free write to 0xffff8880ac078b90 of 1 bytes by interrupt on cpu 1: yama_ptracer_del security/yama/yama_lsm.c:191 [inline] yama_task_free+0xc6/0x150 security/yama/yama_lsm.c:207 security_task_free+0x3f/0xa0 security/security.c:1595 __put_task_struct+0x96/0x370 kernel/fork.c:733 put_task_struct include/linux/sched/task.h:113 [inline] delayed_put_task_struct+0x4b/0x150 kernel/exit.c:172 rcu_do_batch kernel/rcu/tree.c:2430 [inline] rcu_core+0x5a6/0xb30 kernel/rcu/tree.c:2658 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2667 __do_softirq+0x198/0x360 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+0x5b/0x70 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:393 [inline] __irq_exit_rcu+0x115/0x120 kernel/softirq.c:423 sysvec_apic_timer_interrupt+0xba/0xd0 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:581 get_current arch/x86/include/asm/current.h:15 [inline] get_ctx kernel/kcsan/core.c:193 [inline] check_access kernel/kcsan/core.c:601 [inline] __tsan_read4+0x111/0x180 kernel/kcsan/core.c:800 tomoyo_pathcmp security/tomoyo/common.h:1168 [inline] tomoyo_path_matches_pattern+0xb9/0x120 security/tomoyo/util.c:924 tomoyo_compare_name_union security/tomoyo/file.c:87 [inline] tomoyo_check_path_acl+0x9b/0xe0 security/tomoyo/file.c:260 tomoyo_check_acl+0xcc/0x220 security/tomoyo/domain.c:175 tomoyo_path_permission security/tomoyo/file.c:586 [inline] tomoyo_path_perm+0x22f/0x330 security/tomoyo/file.c:838 tomoyo_inode_getattr+0x18/0x20 security/tomoyo/tomoyo.c:123 security_inode_getattr+0x7f/0xd0 security/security.c:1278 vfs_getattr fs/stat.c:121 [inline] vfs_statx+0x118/0x2b0 fs/stat.c:206 vfs_lstat include/linux/fs.h:3178 [inline] __do_sys_newlstat fs/stat.c:374 [inline] __se_sys_newlstat+0x46/0x250 fs/stat.c:368 __x64_sys_newlstat+0x2d/0x40 fs/stat.c:368 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff8880ac078b90 of 1 bytes by interrupt on cpu 0: yama_ptracer_del security/yama/yama_lsm.c:187 [inline] yama_task_free+0x61/0x150 security/yama/yama_lsm.c:207 security_task_free+0x3f/0xa0 security/security.c:1595 __put_task_struct+0x96/0x370 kernel/fork.c:733 put_task_struct include/linux/sched/task.h:113 [inline] delayed_put_task_struct+0x4b/0x150 kernel/exit.c:172 rcu_do_batch kernel/rcu/tree.c:2430 [inline] rcu_core+0x5a6/0xb30 kernel/rcu/tree.c:2658 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2667 __do_softirq+0x198/0x360 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+0x5b/0x70 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:393 [inline] __irq_exit_rcu+0x115/0x120 kernel/softirq.c:423 sysvec_apic_timer_interrupt+0xba/0xd0 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:581 __begin_current_label_crit_section security/apparmor/include/cred.h:142 [inline] common_file_perm security/apparmor/lsm.c:465 [inline] apparmor_file_permission+0xce/0x270 security/apparmor/lsm.c:480 security_file_permission+0x42/0xa0 security/security.c:1446 rw_verify_area+0x12c/0x240 fs/read_write.c:400 vfs_write+0xfd/0x6f0 fs/read_write.c:577 ksys_write+0xce/0x180 fs/read_write.c:639 __do_sys_write fs/read_write.c:651 [inline] __se_sys_write fs/read_write.c:648 [inline] __x64_sys_write+0x3e/0x50 fs/read_write.c:648 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: 8715 Comm: syz-executor.0 Not tainted 5.9.0-rc8-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================