================================================================== BUG: KCSAN: data-race in yama_task_free / yama_task_free write to 0xffff88802e1d5790 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: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 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+0x1ec/0x4d0 kernel/kcsan/core.c:591 vm_start_gap include/linux/mm.h:2663 [inline] vma_compute_gap mm/mmap.c:299 [inline] vma_gap_callbacks_compute_max mm/mmap.c:434 [inline] vma_gap_callbacks_rotate+0x3f/0x150 mm/mmap.c:434 __rb_insert include/linux/rbtree_augmented.h:165 [inline] __rb_insert_augmented+0x2c5/0x2f0 lib/rbtree.c:459 rb_insert_augmented include/linux/rbtree_augmented.h:50 [inline] vma_rb_insert mm/mmap.c:458 [inline] __vma_link_rb+0x3c2/0x3e0 mm/mmap.c:654 dup_mmap+0x704/0x9e0 kernel/fork.c:587 dup_mm+0x7c/0x210 kernel/fork.c:1357 copy_mm kernel/fork.c:1413 [inline] copy_process+0x1223/0x2d70 kernel/fork.c:2095 kernel_clone+0x14b/0x680 kernel/fork.c:2456 __do_sys_clone kernel/fork.c:2573 [inline] __se_sys_clone kernel/fork.c:2557 [inline] __x64_sys_clone+0xc8/0xf0 kernel/fork.c:2557 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 write to 0xffff88802e1d5790 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 native_safe_halt arch/x86/include/asm/irqflags.h:60 [inline] arch_safe_halt arch/x86/include/asm/irqflags.h:103 [inline] acpi_safe_halt drivers/acpi/processor_idle.c:111 [inline] acpi_idle_do_entry drivers/acpi/processor_idle.c:517 [inline] acpi_idle_enter+0x25b/0x2e0 drivers/acpi/processor_idle.c:648 cpuidle_enter_state+0x2bd/0x750 drivers/cpuidle/cpuidle.c:237 cpuidle_enter+0x3c/0x60 drivers/cpuidle/cpuidle.c:351 call_cpuidle kernel/sched/idle.c:132 [inline] cpuidle_idle_call kernel/sched/idle.c:213 [inline] do_idle+0x193/0x230 kernel/sched/idle.c:273 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:369 secondary_startup_64_no_verify+0xb0/0xbb Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.10.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================