================================================================== BUG: KCSAN: data-race in bpf_prog_run_clear_cb / tracing_gen_ctx_irq_test read to 0xffff888101de15b8 of 2 bytes by interrupt on cpu 1: migration_disable_value kernel/trace/trace.c:1718 [inline] tracing_gen_ctx_irq_test+0xdd/0x110 kernel/trace/trace.c:1747 tracing_gen_ctx_flags include/linux/trace_events.h:204 [inline] tracing_gen_ctx include/linux/trace_events.h:211 [inline] tracing_gen_ctx_dec include/linux/trace_events.h:218 [inline] trace_event_buffer_reserve+0xe4/0x180 kernel/trace/trace_events.c:720 do_trace_event_raw_event_bpf_trace_printk kernel/trace/bpf_trace.h:11 [inline] trace_event_raw_event_bpf_trace_printk+0x9d/0x190 kernel/trace/bpf_trace.h:11 __do_trace_bpf_trace_printk kernel/trace/bpf_trace.h:11 [inline] trace_bpf_trace_printk kernel/trace/bpf_trace.h:11 [inline] ____bpf_trace_printk kernel/trace/bpf_trace.c:409 [inline] bpf_trace_printk+0x1b9/0x1e0 kernel/trace/bpf_trace.c:392 bpf_prog_484c593dea3d67e5+0x3b/0x41 bpf_dispatcher_nop_func include/linux/bpf.h:1547 [inline] __bpf_prog_run include/linux/filter.h:813 [inline] bpf_prog_run include/linux/filter.h:820 [inline] bpf_overflow_handler kernel/events/core.c:10822 [inline] __perf_event_overflow+0x331/0x950 kernel/events/core.c:10921 perf_event_overflow kernel/events/core.c:11004 [inline] perf_swevent_hrtimer+0x293/0x320 kernel/events/core.c:12424 __run_hrtimer kernel/time/hrtimer.c:2079 [inline] __hrtimer_run_queues+0x1f8/0x540 kernel/time/hrtimer.c:2136 hrtimer_interrupt+0x27b/0x870 kernel/time/hrtimer.c:2255 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1051 [inline] __sysvec_apic_timer_interrupt+0x5f/0x1f0 arch/x86/kernel/apic/apic.c:1068 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline] sysvec_apic_timer_interrupt+0x32/0x80 arch/x86/kernel/apic/apic.c:1062 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 __preempt_count_add arch/x86/include/asm/preempt.h:98 [inline] delay_tsc+0x4b/0xa0 arch/x86/lib/delay.c:77 udelay include/asm-generic/delay.h:64 [inline] delay_access kernel/kcsan/core.c:332 [inline] kcsan_setup_watchpoint+0x255/0x3f0 kernel/kcsan/core.c:622 __migrate_enable include/linux/sched.h:2475 [inline] migrate_enable include/linux/sched.h:2517 [inline] bpf_prog_run_pin_on_cpu include/linux/filter.h:838 [inline] bpf_prog_run_clear_cb+0x17a/0x290 include/linux/filter.h:1119 run_filter net/packet/af_packet.c:2111 [inline] packet_rcv+0x26e/0xba0 net/packet/af_packet.c:2184 deliver_skb+0x10b/0x170 net/core/dev.c:2564 deliver_ptype_list_skb net/core/dev.c:2579 [inline] __netif_receive_skb_core+0x13e0/0x19a0 net/core/dev.c:6391 __netif_receive_skb_list_core+0x112/0x520 net/core/dev.c:6522 __netif_receive_skb_list net/core/dev.c:6589 [inline] netif_receive_skb_list_internal+0x471/0x5e0 net/core/dev.c:6680 gro_normal_list include/net/gro.h:539 [inline] gro_flush_normal include/net/gro.h:547 [inline] napi_complete_done+0x19c/0x410 net/core/dev.c:7048 virtqueue_napi_complete drivers/net/virtio_net.c:736 [inline] virtnet_poll+0x1a9a/0x1f60 drivers/net/virtio_net.c:3048 __napi_poll+0x73/0x350 net/core/dev.c:7997 napi_poll net/core/dev.c:8060 [inline] net_rx_action+0x33f/0x850 net/core/dev.c:8217 handle_softirqs+0x109/0x310 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0x40/0xf0 kernel/softirq.c:786 common_interrupt+0x83/0x90 arch/x86/kernel/irq.c:273 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:665 page_counter_charge+0x0/0x120 mm/page_counter.c:48 memcg1_account_kmem+0x1e/0x40 mm/memcontrol-v1.c:2185 obj_cgroup_charge_pages mm/memcontrol.c:3230 [inline] __memcg_kmem_charge_page+0x23d/0x3e0 mm/memcontrol.c:3269 __alloc_frozen_pages_noprof+0x1ff/0x3d0 mm/page_alloc.c:5514 __alloc_pages_noprof mm/page_alloc.c:5532 [inline] alloc_pages_node_noprof+0x56/0xb0 mm/page_alloc.c:5546 bpf_ringbuf_area_alloc kernel/bpf/ringbuf.c:128 [inline] bpf_ringbuf_alloc+0xff/0x360 kernel/bpf/ringbuf.c:176 ringbuf_map_alloc+0x182/0x1e0 kernel/bpf/ringbuf.c:219 map_create_alloc kernel/bpf/syscall.c:1553 [inline] map_create+0xb14/0x1050 kernel/bpf/syscall.c:1663 __sys_bpf+0x8e0/0xc50 kernel/bpf/syscall.c:6437 __do_sys_bpf kernel/bpf/syscall.c:6582 [inline] __se_sys_bpf kernel/bpf/syscall.c:6579 [inline] __x64_sys_bpf+0x69/0x80 kernel/bpf/syscall.c:6579 x64_sys_call+0xf26/0x2550 arch/x86/include/generated/asm/syscalls_64.h:322 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f write to 0xffff888101de15b8 of 2 bytes by interrupt on cpu 1: __migrate_enable include/linux/sched.h:2475 [inline] migrate_enable include/linux/sched.h:2517 [inline] bpf_prog_run_pin_on_cpu include/linux/filter.h:838 [inline] bpf_prog_run_clear_cb+0x17a/0x290 include/linux/filter.h:1119 run_filter net/packet/af_packet.c:2111 [inline] packet_rcv+0x26e/0xba0 net/packet/af_packet.c:2184 deliver_skb+0x10b/0x170 net/core/dev.c:2564 deliver_ptype_list_skb net/core/dev.c:2579 [inline] __netif_receive_skb_core+0x13e0/0x19a0 net/core/dev.c:6391 __netif_receive_skb_list_core+0x112/0x520 net/core/dev.c:6522 __netif_receive_skb_list net/core/dev.c:6589 [inline] netif_receive_skb_list_internal+0x471/0x5e0 net/core/dev.c:6680 gro_normal_list include/net/gro.h:539 [inline] gro_flush_normal include/net/gro.h:547 [inline] napi_complete_done+0x19c/0x410 net/core/dev.c:7048 virtqueue_napi_complete drivers/net/virtio_net.c:736 [inline] virtnet_poll+0x1a9a/0x1f60 drivers/net/virtio_net.c:3048 __napi_poll+0x73/0x350 net/core/dev.c:7997 napi_poll net/core/dev.c:8060 [inline] net_rx_action+0x33f/0x850 net/core/dev.c:8217 handle_softirqs+0x109/0x310 kernel/softirq.c:669 __do_softirq kernel/softirq.c:703 [inline] invoke_softirq kernel/softirq.c:542 [inline] __irq_exit_rcu+0x40/0xf0 kernel/softirq.c:786 common_interrupt+0x83/0x90 arch/x86/kernel/irq.c:273 asm_common_interrupt+0x26/0x40 arch/x86/include/asm/idtentry.h:665 page_counter_charge+0x0/0x120 mm/page_counter.c:48 memcg1_account_kmem+0x1e/0x40 mm/memcontrol-v1.c:2185 obj_cgroup_charge_pages mm/memcontrol.c:3230 [inline] __memcg_kmem_charge_page+0x23d/0x3e0 mm/memcontrol.c:3269 __alloc_frozen_pages_noprof+0x1ff/0x3d0 mm/page_alloc.c:5514 __alloc_pages_noprof mm/page_alloc.c:5532 [inline] alloc_pages_node_noprof+0x56/0xb0 mm/page_alloc.c:5546 bpf_ringbuf_area_alloc kernel/bpf/ringbuf.c:128 [inline] bpf_ringbuf_alloc+0xff/0x360 kernel/bpf/ringbuf.c:176 ringbuf_map_alloc+0x182/0x1e0 kernel/bpf/ringbuf.c:219 map_create_alloc kernel/bpf/syscall.c:1553 [inline] map_create+0xb14/0x1050 kernel/bpf/syscall.c:1663 __sys_bpf+0x8e0/0xc50 kernel/bpf/syscall.c:6437 __do_sys_bpf kernel/bpf/syscall.c:6582 [inline] __se_sys_bpf kernel/bpf/syscall.c:6579 [inline] __x64_sys_bpf+0x69/0x80 kernel/bpf/syscall.c:6579 x64_sys_call+0xf26/0x2550 arch/x86/include/generated/asm/syscalls_64.h:322 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x11e/0x3a0 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f Reported by Kernel Concurrency Sanitizer on: CPU: 1 UID: 0 PID: 4655 Comm: syz.0.449 Not tainted syzkaller #0 PREEMPT(lazy) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 ==================================================================