================================================================== BUG: KCSAN: data-race in kthread_is_per_cpu / page_cache_ra_unbounded write to 0xffff8881094b702c of 4 bytes by task 25094 on cpu 1: memalloc_nofs_save include/linux/sched/mm.h:249 [inline] page_cache_ra_unbounded+0xa8/0x410 mm/readahead.c:193 do_page_cache_ra mm/readahead.c:267 [inline] force_page_cache_ra+0x246/0x280 mm/readahead.c:299 page_cache_sync_ra+0xcc/0xe0 mm/readahead.c:573 page_cache_sync_readahead include/linux/pagemap.h:879 [inline] filemap_get_pages mm/filemap.c:2467 [inline] filemap_read+0x388/0x1230 mm/filemap.c:2550 generic_file_read_iter+0x75/0x2c0 mm/filemap.c:2701 blkdev_read_iter+0xb9/0xf0 fs/block_dev.c:1730 call_read_iter include/linux/fs.h:2108 [inline] new_sync_read fs/read_write.c:415 [inline] vfs_read+0x565/0x5d0 fs/read_write.c:496 ksys_read+0xce/0x180 fs/read_write.c:634 __do_sys_read fs/read_write.c:644 [inline] __se_sys_read fs/read_write.c:642 [inline] __x64_sys_read+0x3e/0x50 fs/read_write.c:642 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae read to 0xffff8881094b702c of 4 bytes by task 25858 on cpu 0: __to_kthread kernel/kthread.c:101 [inline] kthread_is_per_cpu+0x2d/0x80 kernel/kthread.c:540 can_migrate_task+0xf/0x180 kernel/sched/fair.c:7615 detach_tasks+0xab/0x380 kernel/sched/fair.c:7779 load_balance+0x768/0xcc0 kernel/sched/fair.c:9679 newidle_balance+0x10b/0x310 kernel/sched/fair.c:10643 pick_next_task_fair+0x37/0x270 kernel/sched/fair.c:7203 pick_next_task kernel/sched/core.c:4960 [inline] __schedule+0x256/0x5b0 kernel/sched/core.c:5111 schedule+0x67/0x90 kernel/sched/core.c:5226 schedule_timeout+0x42/0x240 kernel/time/timer.c:1868 do_wait_for_common kernel/sched/completion.c:85 [inline] __wait_for_common kernel/sched/completion.c:106 [inline] wait_for_common+0xc3/0x150 kernel/sched/completion.c:117 wait_for_completion_killable+0x14/0x30 kernel/sched/completion.c:243 __kthread_create_on_node+0x19e/0x290 kernel/kthread.c:378 kthread_create_on_node+0x72/0xa0 kernel/kthread.c:447 loop_prepare_queue drivers/block/loop.c:939 [inline] loop_configure+0x597/0xcb0 drivers/block/loop.c:1130 lo_ioctl+0x555/0x11f0 drivers/block/loop.c:1690 blkdev_ioctl+0x1d0/0x3c0 block/ioctl.c:585 block_ioctl+0x6d/0x80 fs/block_dev.c:1662 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:1069 [inline] __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:1055 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:1055 do_syscall_64+0x4a/0x90 arch/x86/entry/common.c:47 entry_SYSCALL_64_after_hwframe+0x44/0xae value changed: 0x00404140 -> 0x00444140 Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 25858 Comm: syz-executor.2 Not tainted 5.13.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 ================================================================== loop2: detected capacity change from 0 to 218