================================================================== BUG: KCSAN: data-race in do_select / pollwake write to 0xffffc900003bba50 of 4 bytes by interrupt on cpu 1: __pollwake fs/select.c:198 [inline] pollwake+0xbe/0x110 fs/select.c:218 __wake_up_common+0xb3/0x130 kernel/sched/wait.c:107 __wake_up_common_lock kernel/sched/wait.c:138 [inline] __wake_up_sync_key+0x82/0xc0 kernel/sched/wait.c:208 sock_def_readable+0x70/0x1b0 net/core/sock.c:3293 tcp_data_ready+0x1aa/0x290 net/ipv4/tcp_input.c:5006 tcp_data_queue+0x132e/0x2c00 net/ipv4/tcp_input.c:5080 tcp_rcv_established+0x658/0xe50 net/ipv4/tcp_input.c:6017 tcp_v4_do_rcv+0x2ac/0x600 net/ipv4/tcp_ipv4.c:1721 tcp_v4_rcv+0x1856/0x1ab0 net/ipv4/tcp_ipv4.c:2143 ip_protocol_deliver_rcu+0x356/0x6d0 net/ipv4/ip_input.c:205 ip_local_deliver_finish+0x13d/0x1b0 net/ipv4/ip_input.c:233 NF_HOOK include/linux/netfilter.h:302 [inline] ip_local_deliver+0xec/0x1c0 net/ipv4/ip_input.c:254 dst_input include/net/dst.h:454 [inline] ip_sublist_rcv_finish net/ipv4/ip_input.c:580 [inline] ip_list_rcv_finish net/ipv4/ip_input.c:630 [inline] ip_sublist_rcv+0x4e1/0x5b0 net/ipv4/ip_input.c:638 ip_list_rcv+0x25e/0x290 net/ipv4/ip_input.c:673 __netif_receive_skb_list_ptype net/core/dev.c:5523 [inline] __netif_receive_skb_list_core+0x356/0x460 net/core/dev.c:5571 __netif_receive_skb_list net/core/dev.c:5623 [inline] netif_receive_skb_list_internal+0x4e6/0x660 net/core/dev.c:5714 gro_normal_list include/net/gro.h:433 [inline] napi_complete_done+0x1b8/0x3d0 net/core/dev.c:6054 virtqueue_napi_complete drivers/net/virtio_net.c:405 [inline] virtnet_poll+0x729/0x9a0 drivers/net/virtio_net.c:1855 __napi_poll+0x60/0x3b0 net/core/dev.c:6483 napi_poll net/core/dev.c:6550 [inline] net_rx_action+0x31a/0x6c0 net/core/dev.c:6660 __do_softirq+0xc1/0x265 kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x57/0xa0 kernel/softirq.c:650 common_interrupt+0x42/0x90 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:636 read to 0xffffc900003bba50 of 4 bytes by task 3102 on cpu 0: poll_schedule_timeout fs/select.c:243 [inline] do_select+0xea3/0xf90 fs/select.c:607 core_sys_select+0x361/0x520 fs/select.c:681 do_pselect fs/select.c:763 [inline] __do_sys_pselect6 fs/select.c:804 [inline] __se_sys_pselect6+0x220/0x290 fs/select.c:795 __x64_sys_pselect6+0x78/0x90 fs/select.c:795 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x00000000 -> 0x00000001 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 3102 Comm: sshd Not tainted 6.3.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 ==================================================================