================================================================== BUG: KCSAN: data-race in fasync_remove_entry / perf_swevent_hrtimer write to 0xffff8881007c3700 of 8 bytes by task 10916 on cpu 0: fasync_remove_entry+0xd5/0x140 fs/fcntl.c:884 fasync_helper+0x92/0xc0 fs/fcntl.c:983 perf_fasync+0x5a/0x80 kernel/events/core.c:6190 __fput+0x420/0x460 fs/file_table.c:278 ____fput+0x11/0x20 fs/file_table.c:314 task_work_run+0x8e/0x110 kernel/task_work.c:123 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop arch/x86/entry/common.c:216 [inline] __prepare_exit_to_usermode+0x1c8/0x230 arch/x86/entry/common.c:246 __syscall_return_slowpath arch/x86/entry/common.c:329 [inline] do_syscall_64+0xb9/0x120 arch/x86/entry/common.c:368 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffff8881007c3700 of 8 bytes by interrupt on cpu 1: __perf_event_overflow kernel/events/core.c:8748 [inline] perf_swevent_hrtimer+0x378/0x4a0 kernel/events/core.c:10130 __run_hrtimer+0x154/0x4b0 kernel/time/hrtimer.c:1520 __hrtimer_run_queues kernel/time/hrtimer.c:1584 [inline] hrtimer_interrupt+0x37c/0xa40 kernel/time/hrtimer.c:1646 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1080 [inline] __sysvec_apic_timer_interrupt+0xa3/0x280 arch/x86/kernel/apic/apic.c:1097 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:711 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline] sysvec_apic_timer_interrupt+0x9f/0xf0 arch/x86/kernel/apic/apic.c:1091 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:596 fib6_age+0x35/0xe0 net/ipv6/ip6_fib.c:2287 fib6_clean_node+0x111/0x260 net/ipv6/ip6_fib.c:2176 fib6_walk_continue+0x38e/0x430 net/ipv6/ip6_fib.c:2101 fib6_walk net/ipv6/ip6_fib.c:2149 [inline] fib6_clean_tree net/ipv6/ip6_fib.c:2229 [inline] __fib6_clean_all+0x188/0x2b0 net/ipv6/ip6_fib.c:2245 fib6_clean_all net/ipv6/ip6_fib.c:2256 [inline] fib6_run_gc+0xb5/0x190 net/ipv6/ip6_fib.c:2319 ndisc_netdev_event+0x79/0x2a0 net/ipv6/ndisc.c:1805 notifier_call_chain kernel/notifier.c:83 [inline] __raw_notifier_call_chain kernel/notifier.c:361 [inline] raw_notifier_call_chain+0x53/0xb0 kernel/notifier.c:368 call_netdevice_notifiers_info net/core/dev.c:2027 [inline] call_netdevice_notifiers_extack net/core/dev.c:2039 [inline] call_netdevice_notifiers net/core/dev.c:2053 [inline] dev_close_many+0x1ff/0x310 net/core/dev.c:1628 dev_close+0xc2/0x130 net/core/dev.c:1650 team_port_add drivers/net/team/team.c:1305 [inline] team_add_slave+0xff9/0x16f0 drivers/net/team/team.c:1967 do_set_master net/core/rtnetlink.c:2476 [inline] do_setlink+0x8ac/0x2080 net/core/rtnetlink.c:2611 rtnl_setlink+0x227/0x270 net/core/rtnetlink.c:2902 rtnetlink_rcv_msg+0x71b/0x7b0 net/core/rtnetlink.c:5460 netlink_rcv_skb+0x13e/0x240 net/netlink/af_netlink.c:2469 rtnetlink_rcv+0x18/0x20 net/core/rtnetlink.c:5478 netlink_unicast_kernel net/netlink/af_netlink.c:1303 [inline] netlink_unicast+0x5e2/0x6b0 net/netlink/af_netlink.c:1329 netlink_sendmsg+0x6d8/0x7a0 net/netlink/af_netlink.c:1918 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg net/socket.c:672 [inline] ____sys_sendmsg+0x360/0x4d0 net/socket.c:2352 ___sys_sendmsg net/socket.c:2406 [inline] __sys_sendmsg+0x1df/0x260 net/socket.c:2439 __do_sys_sendmsg net/socket.c:2448 [inline] __se_sys_sendmsg net/socket.c:2446 [inline] __x64_sys_sendmsg+0x42/0x50 net/socket.c:2446 do_syscall_64+0x71/0x120 arch/x86/entry/common.c:359 entry_SYSCALL_64_after_hwframe+0x44/0xa9 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 10922 Comm: syz-executor.5 Not tainted 5.8.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================