================================================================== BUG: KCSAN: data-race in yama_ptracer_del / yama_ptracer_del write to 0xffff888091086550 of 1 bytes by interrupt on cpu 0: yama_ptracer_del+0x117/0x1a0 security/yama/yama_lsm.c:191 yama_task_free+0x1e/0x30 security/yama/yama_lsm.c:207 security_task_free+0x3f/0xa0 security/security.c:1569 __put_task_struct+0xc3/0x350 kernel/fork.c:748 put_task_struct include/linux/sched/task.h:126 [inline] delayed_put_task_struct+0x19b/0x1c0 kernel/exit.c:173 rcu_do_batch kernel/rcu/tree.c:2206 [inline] rcu_core+0x533/0x9f0 kernel/rcu/tree.c:2433 rcu_core_si+0x12/0x20 kernel/rcu/tree.c:2442 __do_softirq+0x118/0x34a kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0xb5/0xd0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:546 [inline] smp_apic_timer_interrupt+0xe2/0x270 arch/x86/kernel/apic/apic.c:1140 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 arch_local_irq_restore arch/x86/include/asm/paravirt.h:759 [inline] kcsan_setup_watchpoint+0x25a/0x440 kernel/kcsan/core.c:542 xt_target_to_user+0x29/0xf0 net/netfilter/x_tables.c:323 copy_entries_to_user net/ipv6/netfilter/ip6_tables.c:876 [inline] get_entries net/ipv6/netfilter/ip6_tables.c:1041 [inline] do_ip6t_get_ctl+0x562/0x650 net/ipv6/netfilter/ip6_tables.c:1709 nf_sockopt net/netfilter/nf_sockopt.c:104 [inline] nf_getsockopt+0x6a/0xa0 net/netfilter/nf_sockopt.c:122 ipv6_getsockopt net/ipv6/ipv6_sockglue.c:1406 [inline] ipv6_getsockopt+0x189/0x1f0 net/ipv6/ipv6_sockglue.c:1386 tcp_getsockopt net/ipv4/tcp.c:3726 [inline] tcp_getsockopt+0x6c/0xb0 net/ipv4/tcp.c:3720 sock_common_getsockopt+0x5d/0x80 net/core/sock.c:3131 __sys_getsockopt+0xed/0x210 net/socket.c:2177 __do_sys_getsockopt net/socket.c:2192 [inline] __se_sys_getsockopt net/socket.c:2189 [inline] __x64_sys_getsockopt+0x6b/0x80 net/socket.c:2189 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff888091086550 of 1 bytes by interrupt on cpu 1: yama_ptracer_del+0xd4/0x1a0 security/yama/yama_lsm.c:187 yama_task_free+0x1e/0x30 security/yama/yama_lsm.c:207 security_task_free+0x3f/0xa0 security/security.c:1569 __put_task_struct+0xc3/0x350 kernel/fork.c:748 put_task_struct include/linux/sched/task.h:126 [inline] delayed_put_task_struct+0x19b/0x1c0 kernel/exit.c:173 rcu_do_batch kernel/rcu/tree.c:2206 [inline] rcu_core+0x533/0x9f0 kernel/rcu/tree.c:2433 rcu_core_si+0x12/0x20 kernel/rcu/tree.c:2442 __do_softirq+0x118/0x34a kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0xb5/0xd0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:546 [inline] smp_apic_timer_interrupt+0xe2/0x270 arch/x86/kernel/apic/apic.c:1140 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 do_user_addr_fault arch/x86/mm/fault.c:1372 [inline] do_page_fault+0x206/0xa96 arch/x86/mm/fault.c:1535 page_fault+0x34/0x40 arch/x86/entry/entry_64.S:1203 __put_user_4+0x1c/0x30 arch/x86/lib/putuser.S:68 schedule_tail+0x50/0x70 kernel/sched/core.c:3312 ret_from_fork+0x8/0x30 arch/x86/entry/entry_64.S:336 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 21098 Comm: syz-executor.1 Not tainted 5.7.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================