================================================================== BUG: KCSAN: data-race in do_select / pollwake write to 0xffffc9000128fa00 of 4 bytes by interrupt on cpu 1: __pollwake fs/select.c:198 [inline] pollwake+0xbe/0x110 fs/select.c:218 __wake_up_common kernel/sched/wait.c:89 [inline] __wake_up_common_lock kernel/sched/wait.c:106 [inline] __wake_up+0x65/0xb0 kernel/sched/wait.c:127 bpf_ringbuf_notify+0x22/0x30 kernel/bpf/ringbuf.c:152 irq_work_single kernel/irq_work.c:221 [inline] irq_work_run_list kernel/irq_work.c:252 [inline] irq_work_run+0xdf/0x2c0 kernel/irq_work.c:261 __sysvec_irq_work+0x23/0x1a0 arch/x86/kernel/irq_work.c:22 instr_sysvec_irq_work arch/x86/kernel/irq_work.c:17 [inline] sysvec_irq_work+0x66/0x80 arch/x86/kernel/irq_work.c:17 asm_sysvec_irq_work+0x1a/0x20 arch/x86/include/asm/idtentry.h:738 finish_task_switch+0xbf/0x2b0 kernel/sched/core.c:5283 context_switch kernel/sched/core.c:5412 [inline] __schedule+0x5e8/0x940 kernel/sched/core.c:6746 preempt_schedule_common kernel/sched/core.c:6925 [inline] __cond_resched+0x28/0x50 kernel/sched/core.c:8590 might_resched include/linux/kernel.h:73 [inline] might_alloc include/linux/sched/mm.h:315 [inline] prepare_alloc_pages mm/page_alloc.c:4346 [inline] __alloc_pages+0xff/0x360 mm/page_alloc.c:4564 alloc_pages_mpol+0xb1/0x1e0 mm/mempolicy.c:2264 vma_alloc_folio+0x17c/0x2a0 mm/mempolicy.c:2303 alloc_anon_folio mm/memory.c:4375 [inline] do_anonymous_page mm/memory.c:4433 [inline] do_pte_missing mm/memory.c:3878 [inline] handle_pte_fault mm/memory.c:5300 [inline] __handle_mm_fault mm/memory.c:5441 [inline] handle_mm_fault+0xd08/0x27e0 mm/memory.c:5606 faultin_page mm/gup.c:958 [inline] __get_user_pages+0x403/0xe50 mm/gup.c:1241 populate_vma_page_range mm/gup.c:1681 [inline] __mm_populate+0x204/0x340 mm/gup.c:1790 mm_populate include/linux/mm.h:3411 [inline] __do_sys_mlockall mm/mlock.c:777 [inline] __se_sys_mlockall+0x28e/0x320 mm/mlock.c:753 __x64_sys_mlockall+0x1f/0x30 mm/mlock.c:753 x64_sys_call+0x2a41/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:152 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f read to 0xffffc9000128fa00 of 4 bytes by task 28402 on cpu 0: poll_schedule_timeout fs/select.c:243 [inline] do_select+0xeb0/0xfa0 fs/select.c:607 core_sys_select+0x362/0x530 fs/select.c:681 do_pselect fs/select.c:763 [inline] __do_sys_pselect6 fs/select.c:804 [inline] __se_sys_pselect6+0x213/0x280 fs/select.c:795 __x64_sys_pselect6+0x78/0x90 fs/select.c:795 x64_sys_call+0xe7b/0x2d30 arch/x86/include/generated/asm/syscalls_64.h:271 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f value changed: 0x00000000 -> 0x00000001 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 28402 Comm: syz-executor.3 Tainted: G W 6.9.0-rc3-syzkaller-00344-g8f2c057754b2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 ==================================================================