================================================================== BUG: KCSAN: data-race in yama_task_free / yama_task_free write to 0xffff88810d3e2e90 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+0x6a7/0xb80 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:629 __sanitizer_cov_trace_const_cmp4+0x0/0xa0 kernel/kcov.c:279 ext4_inode_csum_set fs/ext4/inode.c:109 [inline] ext4_do_update_inode fs/ext4/inode.c:5137 [inline] ext4_mark_iloc_dirty+0x1048/0x16f0 fs/ext4/inode.c:5725 __ext4_mark_inode_dirty+0x4d6/0x5e0 fs/ext4/inode.c:5919 add_dirent_to_buf+0x498/0x610 fs/ext4/namei.c:2031 ext4_add_entry+0x62e/0x21a0 fs/ext4/namei.c:2242 ext4_add_nondir+0x50/0x1a0 fs/ext4/namei.c:2576 ext4_symlink+0x538/0x780 fs/ext4/namei.c:3406 vfs_symlink+0x216/0x2d0 fs/namei.c:3962 do_symlinkat+0xee/0x280 fs/namei.c:3989 __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 read to 0xffff88810d3e2e90 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+0x6a7/0xb80 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:629 should_watch kernel/kcsan/core.c:262 [inline] check_access kernel/kcsan/core.c:631 [inline] __tsan_read4+0x140/0x180 kernel/kcsan/core.c:841 recently_deleted fs/ext4/ialloc.c:695 [inline] find_inode_bit+0x203/0x3a0 fs/ext4/ialloc.c:728 __ext4_new_inode+0xb52/0x3020 fs/ext4/ialloc.c:1062 ext4_symlink+0x2c2/0x780 fs/ext4/namei.c:3336 vfs_symlink+0x216/0x2d0 fs/namei.c:3962 do_symlinkat+0xee/0x280 fs/namei.c:3989 __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: 17108 Comm: syz-executor.5 Not tainted 5.11.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================