================================================================== BUG: KCSAN: data-race in yama_task_free / yama_task_free write to 0xffff88803ffa4350 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+0x4e/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 compound_head include/linux/page-flags.h:185 [inline] lock_page_memcg+0x15/0xf0 mm/memcontrol.c:2129 page_add_file_rmap+0x1c/0x3e0 mm/rmap.c:1206 alloc_set_pte+0x398/0x980 mm/memory.c:3824 filemap_map_pages+0x52f/0x9a0 mm/filemap.c:2887 do_fault_around mm/memory.c:3967 [inline] do_read_fault+0x233/0x760 mm/memory.c:4001 do_fault mm/memory.c:4134 [inline] handle_pte_fault mm/memory.c:4374 [inline] __handle_mm_fault mm/memory.c:4509 [inline] handle_mm_fault+0xfeb/0x1770 mm/memory.c:4607 do_user_addr_fault+0x33e/0x730 arch/x86/mm/fault.c:1372 handle_page_fault arch/x86/mm/fault.c:1429 [inline] exc_page_fault+0x91/0x290 arch/x86/mm/fault.c:1485 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:583 read to 0xffff88803ffa4350 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:1596 __put_task_struct+0xc2/0x3a0 kernel/fork.c:735 put_task_struct include/linux/sched/task.h:113 [inline] delayed_put_task_struct+0x4e/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 __tsan_read2+0xa/0x180 kernel/kcsan/core.c:840 ipv4_dst_check+0x15/0x90 net/ipv4/route.c:1202 __sk_dst_check+0x67/0xe0 net/core/sock.c:533 inet_sk_rebuild_header+0x30/0x9d0 net/ipv4/af_inet.c:1269 tcp_connect+0xba/0xff0 net/ipv4/tcp_output.c:3826 tcp_v4_connect+0xac7/0xba0 net/ipv4/tcp_ipv4.c:312 __inet_stream_connect+0x586/0x690 net/ipv4/af_inet.c:661 inet_stream_connect+0x44/0x70 net/ipv4/af_inet.c:725 rds_tcp_conn_path_connect+0x360/0x430 net/rds/tcp_connect.c:172 rds_connect_worker+0x125/0x1a0 net/rds/threads.c:176 process_one_work+0x3e1/0x950 kernel/workqueue.c:2272 worker_thread+0x635/0xb90 kernel/workqueue.c:2418 kthread+0x1fd/0x220 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 26 Comm: kworker/u4:2 Not tainted 5.10.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: krdsd rds_connect_worker ==================================================================