================================================================== BUG: KCSAN: data-race in fasync_remove_entry / kill_fasync write to 0xffff8880a1f66f00 of 8 bytes by task 11760 on cpu 1: fasync_remove_entry+0xb7/0x120 fs/fcntl.c:884 fasync_helper+0xc9/0xd6 fs/fcntl.c:983 perf_fasync+0x64/0x90 kernel/events/core.c:6187 __fput+0x455/0x500 fs/file_table.c:277 ____fput+0x1b/0x30 fs/file_table.c:313 task_work_run+0xba/0x120 kernel/task_work.c:123 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x2ae/0x2c0 arch/x86/entry/common.c:165 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline] syscall_return_slowpath arch/x86/entry/common.c:279 [inline] do_syscall_64+0x38b/0x3b0 arch/x86/entry/common.c:305 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff8880a1f66f00 of 8 bytes by interrupt on cpu 0: kill_fasync+0x3c/0x170 fs/fcntl.c:1021 perf_event_wakeup+0x115/0x160 kernel/events/core.c:6227 perf_pending_event+0x129/0x170 kernel/events/core.c:6283 irq_work_run_list+0x13e/0x190 kernel/irq_work.c:157 irq_work_run+0x43/0x90 kernel/irq_work.c:174 smp_irq_work_interrupt+0x3b/0xf0 arch/x86/kernel/irq_work.c:21 irq_work_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:860 nf_conntrack_lock+0x0/0xd0 include/linux/compiler.h:232 get_next_corpse net/netfilter/nf_conntrack_core.c:2139 [inline] nf_ct_iterate_cleanup+0xde/0x2e0 net/netfilter/nf_conntrack_core.c:2173 nf_ct_iterate_cleanup_net net/netfilter/nf_conntrack_core.c:2258 [inline] nf_ct_iterate_cleanup_net+0xe2/0xf0 net/netfilter/nf_conntrack_core.c:2243 masq_device_event+0x84/0xa0 net/netfilter/nf_nat_masquerade.c:88 notifier_call_chain+0xda/0x160 kernel/notifier.c:83 __raw_notifier_call_chain kernel/notifier.c:361 [inline] raw_notifier_call_chain+0x33/0x50 kernel/notifier.c:368 call_netdevice_notifiers_info net/core/dev.c:1948 [inline] call_netdevice_notifiers_info+0x96/0x110 net/core/dev.c:1933 call_netdevice_notifiers_extack net/core/dev.c:1960 [inline] call_netdevice_notifiers net/core/dev.c:1974 [inline] dev_close_many+0x251/0x390 net/core/dev.c:1549 dev_close.part.0+0xcd/0x160 net/core/dev.c:1571 dev_close+0x4f/0x60 net/core/dev.c:1574 team_port_add drivers/net/team/team.c:1301 [inline] team_add_slave+0x948/0xcd0 drivers/net/team/team.c:1962 do_set_master net/core/rtnetlink.c:2470 [inline] do_set_master+0x15c/0x180 net/core/rtnetlink.c:2443 do_setlink+0x670/0x1f40 net/core/rtnetlink.c:2605 rtnl_setlink+0x19f/0x280 net/core/rtnetlink.c:2896 rtnetlink_rcv_msg+0x1d0/0x4e0 net/core/rtnetlink.c:5454 netlink_rcv_skb+0xaf/0x260 net/netlink/af_netlink.c:2469 rtnetlink_rcv+0x22/0x30 net/core/rtnetlink.c:5472 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline] netlink_unicast+0x390/0x4c0 net/netlink/af_netlink.c:1329 netlink_sendmsg+0x4cf/0x8a0 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0x98/0xc0 net/socket.c:672 ____sys_sendmsg+0x493/0x4c0 net/socket.c:2362 ___sys_sendmsg+0xb5/0x100 net/socket.c:2416 __sys_sendmsg+0x9b/0x150 net/socket.c:2449 __do_sys_sendmsg net/socket.c:2458 [inline] __se_sys_sendmsg net/socket.c:2456 [inline] __x64_sys_sendmsg+0x4c/0x60 net/socket.c:2456 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 11761 Comm: syz-executor.3 Not tainted 5.7.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================