================================================================== BUG: KCSAN: data-race in __perf_event_overflow / fasync_remove_entry write to 0xffff88809e5c4700 of 8 bytes by task 16798 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 0xffff88809e5c4700 of 8 bytes by interrupt on cpu 0: __perf_event_overflow+0x116/0x200 kernel/events/core.c:8738 perf_swevent_hrtimer+0x261/0x280 kernel/events/core.c:10120 __run_hrtimer kernel/time/hrtimer.c:1520 [inline] __hrtimer_run_queues+0x271/0x600 kernel/time/hrtimer.c:1584 hrtimer_interrupt+0x226/0x490 kernel/time/hrtimer.c:1646 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1113 [inline] smp_apic_timer_interrupt+0xd8/0x270 arch/x86/kernel/apic/apic.c:1138 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:829 arch_local_irq_restore arch/x86/include/asm/paravirt.h:759 [inline] __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] _raw_spin_unlock_irqrestore+0x4d/0x80 kernel/locking/spinlock.c:191 __mod_timer kernel/time/timer.c:1058 [inline] mod_timer+0x3f1/0x830 kernel/time/timer.c:1101 sk_reset_timer+0x29/0xc0 net/core/sock.c:2863 tcp_send_delayed_ack+0x1fd/0x280 net/ipv4/tcp_output.c:3742 __tcp_ack_snd_check+0x3bb/0x550 net/ipv4/tcp_input.c:5268 tcp_rcv_established+0xc95/0xee0 net/ipv4/tcp_input.c:5694 tcp_v4_do_rcv+0x396/0x4f0 net/ipv4/tcp_ipv4.c:1621 tcp_v4_rcv+0x1c55/0x1e10 net/ipv4/tcp_ipv4.c:2003 ip_protocol_deliver_rcu+0x4b/0x410 net/ipv4/ip_input.c:204 ip_local_deliver_finish+0xf3/0x120 net/ipv4/ip_input.c:231 NF_HOOK include/linux/netfilter.h:307 [inline] NF_HOOK include/linux/netfilter.h:301 [inline] ip_local_deliver+0x135/0x220 net/ipv4/ip_input.c:252 dst_input include/net/dst.h:441 [inline] ip_sublist_rcv_finish+0xf0/0x140 net/ipv4/ip_input.c:550 ip_list_rcv_finish net/ipv4/ip_input.c:600 [inline] ip_sublist_rcv+0x3f8/0x530 net/ipv4/ip_input.c:608 ip_list_rcv+0x2f3/0x321 net/ipv4/ip_input.c:643 __netif_receive_skb_list_ptype net/core/dev.c:5230 [inline] __netif_receive_skb_list_ptype net/core/dev.c:5219 [inline] __netif_receive_skb_list_core+0x368/0x5c0 net/core/dev.c:5278 __netif_receive_skb_list net/core/dev.c:5330 [inline] netif_receive_skb_list_internal+0x5c7/0x810 net/core/dev.c:5425 gro_normal_list.part.0+0x37/0xa0 net/core/dev.c:5536 gro_normal_list net/core/dev.c:5549 [inline] gro_normal_one+0x14c/0x160 net/core/dev.c:5548 napi_skb_finish net/core/dev.c:5876 [inline] napi_gro_receive+0x27d/0x2f0 net/core/dev.c:5908 receive_buf+0x24c/0x3420 drivers/net/virtio_net.c:1073 virtnet_receive drivers/net/virtio_net.c:1335 [inline] virtnet_poll+0x343/0x790 drivers/net/virtio_net.c:1440 napi_poll net/core/dev.c:6571 [inline] net_rx_action+0x3ad/0xac0 net/core/dev.c:6639 __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] do_IRQ+0x7b/0x120 arch/x86/kernel/irq.c:263 ret_from_intr+0x0/0x21 skb_release_all+0x2f/0x50 net/core/skbuff.c:663 __kfree_skb net/core/skbuff.c:678 [inline] kfree_skb net/core/skbuff.c:696 [inline] kfree_skb+0x93/0x200 net/core/skbuff.c:690 llc_sap_state_process+0x5e/0x280 net/llc/llc_sap.c:217 llc_build_and_send_test_pkt+0xbe/0xd0 net/llc/llc_sap.c:243 llc_ui_sendmsg+0x615/0x9d0 net/llc/af_llc.c:954 sock_sendmsg_nosec net/socket.c:652 [inline] sock_sendmsg+0x98/0xc0 net/socket.c:672 ____sys_sendmsg+0x207/0x4c0 net/socket.c:2362 ___sys_sendmsg+0xb5/0x100 net/socket.c:2416 __sys_sendmmsg+0x10e/0x310 net/socket.c:2506 __do_sys_sendmmsg net/socket.c:2535 [inline] __se_sys_sendmmsg net/socket.c:2532 [inline] __x64_sys_sendmmsg+0x60/0x80 net/socket.c:2532 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: 16801 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 ==================================================================