================================================================== BUG: KCSAN: data-race in yama_task_free / yama_task_free write to 0xffff88809cb0ba10 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:1580 __put_task_struct+0x96/0x370 kernel/fork.c:750 put_task_struct include/linux/sched/task.h:126 [inline] delayed_put_task_struct+0x52/0x160 kernel/exit.c:172 rcu_do_batch kernel/rcu/tree.c:2396 [inline] rcu_core+0x606/0xb60 kernel/rcu/tree.c:2623 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2632 __do_softirq+0x198/0x360 kernel/softirq.c:292 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:711 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline] do_softirq_own_stack+0x5d/0x80 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:387 [inline] __irq_exit_rcu+0x115/0x120 kernel/softirq.c:417 sysvec_apic_timer_interrupt+0xd9/0xf0 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:596 compound_head include/linux/page-flags.h:182 [inline] get_page include/linux/mm.h:1132 [inline] copy_one_pte mm/memory.c:801 [inline] copy_pte_range+0x5a2/0x1420 mm/memory.c:850 copy_pmd_range mm/memory.c:901 [inline] copy_pud_range mm/memory.c:935 [inline] copy_p4d_range mm/memory.c:957 [inline] copy_page_range+0x999/0xbc0 mm/memory.c:1019 dup_mmap+0x6c5/0x970 kernel/fork.c:609 dup_mm+0x7c/0x210 kernel/fork.c:1371 copy_mm kernel/fork.c:1427 [inline] copy_process+0x178a/0x32b0 kernel/fork.c:2098 _do_fork+0xf1/0x660 kernel/fork.c:2443 __do_sys_clone kernel/fork.c:2599 [inline] __se_sys_clone kernel/fork.c:2580 [inline] __x64_sys_clone+0xfb/0x120 kernel/fork.c:2580 do_syscall_64+0x71/0x120 arch/x86/entry/common.c:359 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff88809cb0ba10 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:1580 __put_task_struct+0x96/0x370 kernel/fork.c:750 put_task_struct include/linux/sched/task.h:126 [inline] delayed_put_task_struct+0x52/0x160 kernel/exit.c:172 rcu_do_batch kernel/rcu/tree.c:2396 [inline] rcu_core+0x606/0xb60 kernel/rcu/tree.c:2623 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2632 __do_softirq+0x198/0x360 kernel/softirq.c:292 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:711 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline] do_softirq_own_stack+0x5d/0x80 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:387 [inline] __irq_exit_rcu+0x115/0x120 kernel/softirq.c:417 sysvec_apic_timer_interrupt+0xd9/0xf0 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:596 arch_local_irq_restore arch/x86/include/asm/paravirt.h:765 [inline] kcsan_setup_watchpoint+0x47c/0x4d0 kernel/kcsan/core.c:542 tomoyo_const_part_length security/tomoyo/util.c:620 [inline] tomoyo_fill_path_info+0x62/0x210 security/tomoyo/util.c:660 tomoyo_get_realpath security/tomoyo/file.c:153 [inline] tomoyo_path_perm+0xda/0x330 security/tomoyo/file.c:822 tomoyo_path_symlink+0x49/0x70 security/tomoyo/tomoyo.c:200 security_path_symlink+0x95/0xf0 security/security.c:1109 do_symlinkat+0xa7/0x280 fs/namei.c:3978 __do_sys_symlink fs/namei.c:3999 [inline] __se_sys_symlink fs/namei.c:3997 [inline] __x64_sys_symlink+0x32/0x40 fs/namei.c:3997 do_syscall_64+0x71/0x120 arch/x86/entry/common.c:359 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 11947 Comm: syz-executor.2 Not tainted 5.8.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================