================================================================== BUG: KCSAN: data-race in wq_worker_tick / wq_worker_tick read-write to 0xffff8881010a5eb8 of 8 bytes by interrupt on cpu 1: wq_worker_tick+0x63/0x240 kernel/workqueue.c:1474 sched_tick+0xd7/0x140 kernel/sched/core.c:5668 update_process_times+0x161/0x190 kernel/time/timer.c:2524 tick_sched_handle kernel/time/tick-sched.c:276 [inline] tick_nohz_handler+0x250/0x2d0 kernel/time/tick-sched.c:297 __run_hrtimer kernel/time/hrtimer.c:1739 [inline] __hrtimer_run_queues+0x20d/0x5e0 kernel/time/hrtimer.c:1803 hrtimer_interrupt+0x235/0x4a0 kernel/time/hrtimer.c:1865 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline] __sysvec_apic_timer_interrupt+0x5c/0x1d0 arch/x86/kernel/apic/apic.c:1055 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0x6e/0x80 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 __bpf_trace_run kernel/trace/bpf_trace.c:2342 [inline] bpf_trace_run3+0x8f/0x1d0 kernel/trace/bpf_trace.c:2393 __traceiter_kmem_cache_free+0x33/0x50 include/trace/events/kmem.h:114 trace_kmem_cache_free include/trace/events/kmem.h:114 [inline] kmem_cache_free+0x237/0x2d0 mm/slub.c:4680 io_destroy_buffers+0x22c/0x270 io_uring/kbuf.c:417 io_ring_ctx_free+0x45a/0x710 io_uring/io_uring.c:2711 io_ring_exit_work+0x4e2/0x510 io_uring/io_uring.c:2939 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3310 worker_thread+0x51d/0x6f0 kernel/workqueue.c:3391 kthread+0x1d1/0x210 kernel/kthread.c:389 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 read-write to 0xffff8881010a5eb8 of 8 bytes by interrupt on cpu 0: wq_worker_tick+0x63/0x240 kernel/workqueue.c:1474 sched_tick+0xd7/0x140 kernel/sched/core.c:5668 update_process_times+0x161/0x190 kernel/time/timer.c:2524 tick_sched_handle kernel/time/tick-sched.c:276 [inline] tick_nohz_handler+0x250/0x2d0 kernel/time/tick-sched.c:297 __run_hrtimer kernel/time/hrtimer.c:1739 [inline] __hrtimer_run_queues+0x20d/0x5e0 kernel/time/hrtimer.c:1803 hrtimer_interrupt+0x235/0x4a0 kernel/time/hrtimer.c:1865 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1038 [inline] __sysvec_apic_timer_interrupt+0x5c/0x1d0 arch/x86/kernel/apic/apic.c:1055 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1049 [inline] sysvec_apic_timer_interrupt+0x6e/0x80 arch/x86/kernel/apic/apic.c:1049 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 native_save_fl arch/x86/include/asm/irqflags.h:32 [inline] arch_local_save_flags arch/x86/include/asm/irqflags.h:87 [inline] arch_local_irq_save arch/x86/include/asm/irqflags.h:123 [inline] __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:108 [inline] _raw_spin_lock_irqsave+0x40/0xb0 kernel/locking/spinlock.c:162 __stack_map_get kernel/bpf/queue_stack_maps.c:140 [inline] stack_map_peek_elem+0xa4/0x1e0 kernel/bpf/queue_stack_maps.c:173 bpf_prog_00798911c748094f+0x43/0x47 bpf_dispatcher_nop_func include/linux/bpf.h:1290 [inline] __bpf_prog_run include/linux/filter.h:701 [inline] bpf_prog_run include/linux/filter.h:708 [inline] __bpf_trace_run kernel/trace/bpf_trace.c:2351 [inline] bpf_trace_run3+0x10c/0x1d0 kernel/trace/bpf_trace.c:2393 __traceiter_kmem_cache_free+0x33/0x50 include/trace/events/kmem.h:114 trace_kmem_cache_free include/trace/events/kmem.h:114 [inline] kmem_cache_free+0x237/0x2d0 mm/slub.c:4680 io_destroy_buffers+0x22c/0x270 io_uring/kbuf.c:417 io_ring_ctx_free+0x45a/0x710 io_uring/io_uring.c:2711 io_ring_exit_work+0x4e2/0x510 io_uring/io_uring.c:2939 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0x483/0x9a0 kernel/workqueue.c:3310 worker_thread+0x51d/0x6f0 kernel/workqueue.c:3391 kthread+0x1d1/0x210 kernel/kthread.c:389 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 value changed: 0x000000000d1993a0 -> 0x000000000d19bab0 Reported by Kernel Concurrency Sanitizer on: CPU: 0 UID: 0 PID: 6212 Comm: kworker/u8:15 Tainted: G W 6.12.0-syzkaller-07834-g06afb0f36106 #0 Tainted: [W]=WARN Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 Workqueue: iou_exit io_ring_exit_work ==================================================================