================================================================== BUG: KCSAN: data-race in yama_task_free / yama_task_free write to 0xffff88803d01e390 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:1610 __put_task_struct+0xc2/0x3a0 kernel/fork.c:736 put_task_struct include/linux/sched/task.h:113 [inline] delayed_put_task_struct+0x49/0x130 kernel/exit.c:173 rcu_do_batch kernel/rcu/tree.c:2559 [inline] rcu_core+0x6e3/0xc70 kernel/rcu/tree.c:2794 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2807 __do_softirq+0x13c/0x2c3 kernel/softirq.c:345 invoke_softirq kernel/softirq.c:221 [inline] __irq_exit_rcu+0xb4/0xc0 kernel/softirq.c:422 sysvec_apic_timer_interrupt+0x6e/0x80 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:632 __preempt_count_dec_and_test arch/x86/include/asm/preempt.h:95 [inline] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline] _raw_spin_unlock_irq+0x2c/0x40 kernel/locking/spinlock.c:199 spin_unlock_irq include/linux/spinlock.h:404 [inline] shmem_add_to_page_cache+0x605/0x6e0 mm/shmem.c:722 shmem_getpage_gfp+0x86a/0x1980 mm/shmem.c:1929 shmem_fault+0x16c/0x450 mm/shmem.c:2116 __do_fault mm/memory.c:3637 [inline] do_read_fault+0x2e1/0x530 mm/memory.c:3939 do_fault mm/memory.c:4067 [inline] handle_pte_fault mm/memory.c:4318 [inline] __handle_mm_fault mm/memory.c:4453 [inline] handle_mm_fault+0x1019/0x1840 mm/memory.c:4551 faultin_page mm/gup.c:850 [inline] __get_user_pages+0xa47/0x1000 mm/gup.c:1069 populate_vma_page_range mm/gup.c:1402 [inline] __mm_populate+0x24d/0x380 mm/gup.c:1450 mm_populate include/linux/mm.h:2570 [inline] vm_mmap_pgoff+0x14c/0x1d0 mm/util.c:524 ksys_mmap_pgoff+0xe1/0x380 mm/mmap.c:1632 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff88803d01e390 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:1610 __put_task_struct+0xc2/0x3a0 kernel/fork.c:736 put_task_struct include/linux/sched/task.h:113 [inline] delayed_put_task_struct+0x49/0x130 kernel/exit.c:173 rcu_do_batch kernel/rcu/tree.c:2559 [inline] rcu_core+0x6e3/0xc70 kernel/rcu/tree.c:2794 rcu_core_si+0x9/0x10 kernel/rcu/tree.c:2807 __do_softirq+0x13c/0x2c3 kernel/softirq.c:345 invoke_softirq kernel/softirq.c:221 [inline] __irq_exit_rcu+0xb4/0xc0 kernel/softirq.c:422 sysvec_apic_timer_interrupt+0x6e/0x80 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:632 smap_restore arch/x86/include/asm/smap.h:70 [inline] kcsan_setup_watchpoint+0x436/0x470 kernel/kcsan/core.c:590 terminate_walk+0x1e2/0x270 fs/namei.c:646 path_lookupat+0x2eb/0x570 fs/namei.c:2437 filename_lookup+0xf2/0x380 fs/namei.c:2453 user_path_at_empty+0x3b/0x50 fs/namei.c:2733 user_path_at include/linux/namei.h:60 [inline] vfs_statx+0x98/0x290 fs/stat.c:195 vfs_fstatat fs/stat.c:217 [inline] vfs_lstat include/linux/fs.h:3240 [inline] __do_sys_newlstat fs/stat.c:372 [inline] __se_sys_newlstat+0x46/0x250 fs/stat.c:366 __x64_sys_newlstat+0x2d/0x40 fs/stat.c:366 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xae Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 4846 Comm: systemd-udevd Not tainted 5.12.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================