================================================================== BUG: KCSAN: data-race in fasync_remove_entry / kill_fasync write to 0xffff88811fb37700 of 8 bytes by task 7247 on cpu 0: fasync_remove_entry+0xba/0x120 fs/fcntl.c:882 fasync_helper+0xcf/0xdc fs/fcntl.c:981 perf_fasync+0x6c/0xa0 kernel/events/core.c:6002 __fput+0x46a/0x520 fs/file_table.c:277 ____fput+0x1f/0x30 fs/file_table.c:313 task_work_run+0xf6/0x130 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x2b4/0x2c0 arch/x86/entry/common.c:164 prepare_exit_to_usermode arch/x86/entry/common.c:195 [inline] syscall_return_slowpath arch/x86/entry/common.c:278 [inline] do_syscall_64+0x384/0x3a0 arch/x86/entry/common.c:304 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff88811fb37700 of 8 bytes by interrupt on cpu 1: kill_fasync+0x3f/0x180 fs/fcntl.c:1019 perf_event_wakeup+0x11f/0x160 kernel/events/core.c:6042 perf_pending_event+0x12d/0x170 kernel/events/core.c:6098 irq_work_run_list+0x136/0x190 kernel/irq_work.c:156 irq_work_run+0x48/0xa0 kernel/irq_work.c:172 smp_irq_work_interrupt+0x3f/0x100 arch/x86/kernel/irq_work.c:21 irq_work_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:860 arch_local_irq_restore arch/x86/include/asm/paravirt.h:752 [inline] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] _raw_spin_unlock_irqrestore+0x51/0x80 kernel/locking/spinlock.c:191 note_gp_changes+0x114/0x160 kernel/rcu/tree.c:1449 rcu_check_quiescent_state kernel/rcu/tree.c:2021 [inline] rcu_core+0xa7/0x4c0 kernel/rcu/tree.c:2392 rcu_core_si+0x12/0x20 kernel/rcu/tree.c:2417 __do_softirq+0x115/0x33f kernel/softirq.c:292 invoke_softirq kernel/softirq.c:373 [inline] irq_exit+0xbb/0xe0 kernel/softirq.c:413 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0xe6/0x280 arch/x86/kernel/apic/apic.c:1137 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 __sanitizer_cov_trace_pc+0x0/0x50 kernel/kcov.c:915 sctp_cmp_addr_exact+0x2f/0x70 net/sctp/associola.c:891 sctp_assoc_lookup_paddr net/sctp/associola.c:763 [inline] sctp_assoc_add_peer+0x103/0x830 net/sctp/associola.c:605 sctp_process_param net/sctp/sm_make_chunk.c:2524 [inline] sctp_process_init+0xc10/0x1620 net/sctp/sm_make_chunk.c:2345 sctp_cmd_process_init net/sctp/sm_sideeffect.c:672 [inline] sctp_cmd_interpreter net/sctp/sm_sideeffect.c:1379 [inline] sctp_side_effects net/sctp/sm_sideeffect.c:1189 [inline] sctp_do_sm+0x1798/0x2f10 net/sctp/sm_sideeffect.c:1160 sctp_assoc_bh_rcv+0x2d7/0x460 net/sctp/associola.c:1045 sctp_inq_push+0x107/0x1a0 net/sctp/inqueue.c:80 sctp_backlog_rcv+0x112/0x7d0 net/sctp/input.c:344 sk_backlog_rcv include/net/sock.h:949 [inline] __release_sock+0x135/0x1e0 net/core/sock.c:2437 release_sock+0x61/0x160 net/core/sock.c:2953 sctp_wait_for_connect+0x21c/0x330 net/sctp/socket.c:9282 __sctp_connect+0x5af/0x670 net/sctp/socket.c:1226 sctp_connect net/sctp/socket.c:4895 [inline] sctp_inet_connect+0xd7/0x120 net/sctp/socket.c:4910 __sys_connect_file+0xf4/0x100 net/socket.c:1844 __sys_connect+0x121/0x150 net/socket.c:1861 __do_sys_connect net/socket.c:1872 [inline] __se_sys_connect net/socket.c:1869 [inline] __x64_sys_connect+0x4c/0x60 net/socket.c:1869 do_syscall_64+0xcc/0x3a0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 7250 Comm: syz-executor.2 Not tainted 5.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================