================================================================== BUG: KCSAN: data-race in tick_nohz_next_event / tick_sched_timer write to 0xffffffff838c6260 of 4 bytes by interrupt on cpu 0: tick_sched_do_timer kernel/time/tick-sched.c:191 [inline] tick_sched_timer+0x201/0x220 kernel/time/tick-sched.c:1414 __run_hrtimer+0x163/0x460 kernel/time/hrtimer.c:1685 __hrtimer_run_queues kernel/time/hrtimer.c:1749 [inline] hrtimer_interrupt+0x37e/0xac0 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline] __sysvec_apic_timer_interrupt+0xa3/0x240 arch/x86/kernel/apic/apic.c:1103 sysvec_apic_timer_interrupt+0x88/0xb0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 kcsan_setup_watchpoint+0x94/0x3f0 kernel/kcsan/core.c:437 ___bpf_prog_run+0x3077/0x30c0 kernel/bpf/core.c:1592 __bpf_prog_run32+0x70/0xa0 kernel/bpf/core.c:1776 bpf_dispatcher_nop_func include/linux/bpf.h:718 [inline] __bpf_prog_run include/linux/filter.h:626 [inline] bpf_prog_run include/linux/filter.h:633 [inline] bpf_prog_run_pin_on_cpu include/linux/filter.h:653 [inline] bpf_prog_run_clear_cb include/linux/filter.h:787 [inline] run_filter net/packet/af_packet.c:2037 [inline] packet_rcv+0x267/0xa40 net/packet/af_packet.c:2110 dev_queue_xmit_nit+0x5b4/0x600 net/core/dev.c:2320 xmit_one+0x71/0x2f0 net/core/dev.c:3577 dev_hard_start_xmit+0x72/0x120 net/core/dev.c:3598 sch_direct_xmit+0x18b/0x550 net/sched/sch_generic.c:342 __dev_xmit_skb+0x8d5/0x1470 net/core/dev.c:3809 __dev_queue_xmit+0x4c3/0xac0 net/core/dev.c:4177 dev_queue_xmit+0x13/0x20 net/core/dev.c:4242 neigh_hh_output include/net/neighbour.h:499 [inline] neigh_output include/net/neighbour.h:508 [inline] ip_finish_output2+0xa33/0xaa0 net/ipv4/ip_output.c:221 ip_finish_output+0x3b5/0x510 net/ipv4/ip_output.c:309 NF_HOOK_COND include/linux/netfilter.h:296 [inline] ip_output+0xf3/0x1a0 net/ipv4/ip_output.c:423 dst_output include/net/dst.h:450 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] __ip_queue_xmit+0xa1c/0xa40 net/ipv4/ip_output.c:525 ip_queue_xmit+0x34/0x40 net/ipv4/ip_output.c:539 __tcp_transmit_skb+0x142a/0x1a00 net/ipv4/tcp_output.c:1405 __tcp_send_ack+0x20a/0x300 net/ipv4/tcp_output.c:3972 tcp_send_ack+0x23/0x30 net/ipv4/tcp_output.c:3978 tcp_cleanup_rbuf+0x1c4/0x310 net/ipv4/tcp.c:1598 tcp_recvmsg_locked+0x1159/0x1760 net/ipv4/tcp.c:2519 tcp_recvmsg+0x16c/0x460 net/ipv4/tcp.c:2549 inet_recvmsg+0xa3/0x210 net/ipv4/af_inet.c:852 sock_recvmsg_nosec net/socket.c:944 [inline] sock_recvmsg net/socket.c:962 [inline] sock_read_iter+0x19d/0x1e0 net/socket.c:1035 call_read_iter include/linux/fs.h:2155 [inline] new_sync_read fs/read_write.c:400 [inline] vfs_read+0x66c/0x750 fs/read_write.c:481 ksys_read+0xd9/0x190 fs/read_write.c:619 __do_sys_read fs/read_write.c:629 [inline] __se_sys_read fs/read_write.c:627 [inline] __x64_sys_read+0x3e/0x50 fs/read_write.c:627 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffffffff838c6260 of 4 bytes by task 0 on cpu 1: tick_nohz_next_event+0x236/0x320 kernel/time/tick-sched.c:838 tick_nohz_get_sleep_length+0xca/0x140 kernel/time/tick-sched.c:1192 menu_select+0x34d/0x10a0 drivers/cpuidle/governors/menu.c:283 cpuidle_select+0x3d/0x50 drivers/cpuidle/cpuidle.c:322 cpuidle_idle_call kernel/sched/idle.c:232 [inline] do_idle+0x17e/0x250 kernel/sched/idle.c:306 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:403 secondary_startup_64_no_verify+0xb1/0xbb value changed: 0xffffffff -> 0x00000000 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.15.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ==================================================================