================================================================== BUG: KCSAN: data-race in mem_cgroup_flush_stats_delayed / tick_do_update_jiffies64 read-write to 0xffffffff85a079c0 of 8 bytes by interrupt on cpu 1: tick_do_update_jiffies64+0x112/0x1b0 kernel/time/tick-sched.c:118 tick_sched_do_timer kernel/time/tick-sched.c:199 [inline] tick_sched_timer+0x76/0x2b0 kernel/time/tick-sched.c:1473 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x217/0x700 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x20d/0x7b0 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1096 [inline] __sysvec_apic_timer_interrupt+0x73/0x210 arch/x86/kernel/apic/apic.c:1113 sysvec_apic_timer_interrupt+0x68/0x80 arch/x86/kernel/apic/apic.c:1107 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 kcsan_setup_watchpoint+0x3fe/0x410 kernel/kcsan/core.c:696 bvec_iter_advance_single include/linux/bvec.h:173 [inline] bio_advance_iter_single include/linux/bio.h:120 [inline] __blk_bios_map_sg block/blk-merge.c:537 [inline] __blk_rq_map_sg+0x57d/0x8a0 block/blk-merge.c:575 scsi_alloc_sgtables+0x1cf/0x4b0 drivers/scsi/scsi_lib.c:1049 sd_setup_read_write_cmnd drivers/scsi/sd.c:1133 [inline] sd_init_command+0x484/0xe40 drivers/scsi/sd.c:1257 scsi_prepare_cmd drivers/scsi/scsi_lib.c:1604 [inline] scsi_queue_rq+0x12f8/0x1990 drivers/scsi/scsi_lib.c:1738 blk_mq_dispatch_rq_list+0x7b1/0x11f0 block/blk-mq.c:2057 __blk_mq_do_dispatch_sched block/blk-mq-sched.c:172 [inline] blk_mq_do_dispatch_sched+0x4de/0x820 block/blk-mq-sched.c:186 __blk_mq_sched_dispatch_requests+0x1c1/0x260 blk_mq_sched_dispatch_requests+0x93/0x100 block/blk-mq-sched.c:338 __blk_mq_run_hw_queue+0x8e/0x110 block/blk-mq.c:2175 __blk_mq_delay_run_hw_queue+0xb3/0x3a0 block/blk-mq.c:2251 blk_mq_run_hw_queue+0x19f/0x330 block/blk-mq.c:2299 blk_mq_sched_insert_requests+0x1da/0x2c0 block/blk-mq-sched.c:492 blk_mq_dispatch_plug_list block/blk-mq.c:2746 [inline] blk_mq_flush_plug_list+0x519/0x660 block/blk-mq.c:2788 __blk_flush_plug+0x223/0x280 block/blk-core.c:1153 blk_finish_plug+0x47/0x60 block/blk-core.c:1177 wb_writeback+0x685/0x6c0 fs/fs-writeback.c:2102 wb_check_start_all fs/fs-writeback.c:2192 [inline] wb_do_writeback fs/fs-writeback.c:2218 [inline] wb_workfn+0x4ea/0x8d0 fs/fs-writeback.c:2251 process_one_work+0x3e6/0x750 kernel/workqueue.c:2390 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2537 kthread+0x1a6/0x1e0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 read to 0xffffffff85a079c0 of 8 bytes by task 13542 on cpu 0: mem_cgroup_flush_stats_delayed+0x38/0x140 mm/memcontrol.c:658 workingset_refault+0x2ec/0x740 mm/workingset.c:465 filemap_add_folio+0xe6/0x150 mm/filemap.c:953 page_cache_ra_unbounded+0x15e/0x2e0 mm/readahead.c:251 do_page_cache_ra mm/readahead.c:300 [inline] page_cache_ra_order mm/readahead.c:560 [inline] ondemand_readahead+0x550/0x6c0 mm/readahead.c:682 page_cache_sync_ra+0x284/0x2a0 mm/readahead.c:709 page_cache_sync_readahead include/linux/pagemap.h:1214 [inline] filemap_get_pages+0x257/0xea0 mm/filemap.c:2598 filemap_read+0x223/0x680 mm/filemap.c:2693 generic_file_read_iter+0x76/0x320 mm/filemap.c:2840 ext4_file_read_iter+0x1cc/0x290 do_iter_read+0x3fd/0x6d0 fs/read_write.c:796 vfs_readv fs/read_write.c:916 [inline] do_preadv+0x159/0x230 fs/read_write.c:1008 __do_sys_preadv fs/read_write.c:1058 [inline] __se_sys_preadv fs/read_write.c:1053 [inline] __x64_sys_preadv+0x58/0x60 fs/read_write.c:1053 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x00000000fffff919 -> 0x00000000fffff91a Reported by Kernel Concurrency Sanitizer on: CPU: 0 PID: 13542 Comm: syz-executor.2 Not tainted 6.3.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 ==================================================================