================================================================== BUG: KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu read-write to 0xffffffff883134f0 of 4 bytes by interrupt on cpu 0: fprop_new_period+0xd7/0x130 lib/flex_proportions.c:83 writeout_period+0x55/0xe0 mm/page-writeback.c:628 call_timer_fn+0x2e/0x240 kernel/time/timer.c:1417 expire_timers+0x116/0x260 kernel/time/timer.c:1462 __run_timers+0x338/0x3d0 kernel/time/timer.c:1731 run_timer_softirq+0x2d/0x30 kernel/time/timer.c:1746 __do_softirq+0x13c/0x2c3 kernel/softirq.c:343 asm_call_irq_on_stack+0xf/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0x32/0x40 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:226 [inline] __irq_exit_rcu+0xb4/0xc0 kernel/softirq.c:420 sysvec_apic_timer_interrupt+0x74/0x90 arch/x86/kernel/apic/apic.c:1096 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:628 xas_next_entry include/linux/xarray.h:1635 [inline] find_get_pages_range+0x372/0x600 mm/filemap.c:1981 pagevec_lookup_range+0x30/0x50 mm/swap.c:1112 mpage_map_and_submit_buffers fs/ext4/inode.c:2332 [inline] mpage_map_and_submit_extent fs/ext4/inode.c:2488 [inline] ext4_writepages+0xb2e/0x1e50 fs/ext4/inode.c:2801 do_writepages+0x7b/0x150 mm/page-writeback.c:2352 __filemap_fdatawrite_range+0x19d/0x1d0 mm/filemap.c:422 filemap_write_and_wait_range+0x8b/0x2a0 mm/filemap.c:655 filemap_write_and_wait include/linux/fs.h:2647 [inline] ext4_bmap+0x124/0x220 fs/ext4/inode.c:3201 bmap+0x56/0x80 fs/inode.c:1704 ioctl_fibmap fs/ioctl.c:74 [inline] file_ioctl fs/ioctl.c:531 [inline] do_vfs_ioctl+0xd2d/0xec0 fs/ioctl.c:732 __do_sys_ioctl fs/ioctl.c:751 [inline] __se_sys_ioctl+0x83/0x140 fs/ioctl.c:739 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:739 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 read to 0xffffffff883134f0 of 4 bytes by task 22 on cpu 1: fprop_reflect_period_percpu+0x22/0x1a0 lib/flex_proportions.c:192 __fprop_inc_percpu lib/flex_proportions.c:222 [inline] __fprop_inc_percpu_max+0x3f/0x1f0 lib/flex_proportions.c:271 wb_domain_writeout_inc mm/page-writeback.c:575 [inline] __wb_writeout_inc+0x7b/0x1c0 mm/page-writeback.c:599 test_clear_page_writeback+0x3a4/0x520 mm/page-writeback.c:2745 end_page_writeback+0xd7/0x260 mm/filemap.c:1494 ext4_finish_bio+0x429/0x480 fs/ext4/page-io.c:143 ext4_release_io_end+0x98/0x200 fs/ext4/page-io.c:158 ext4_end_io_end fs/ext4/page-io.c:192 [inline] ext4_do_flush_completed_IO fs/ext4/page-io.c:257 [inline] ext4_end_io_rsv_work+0x306/0x360 fs/ext4/page-io.c:271 process_one_work+0x3e1/0x950 kernel/workqueue.c:2275 worker_thread+0x635/0xb90 kernel/workqueue.c:2421 kthread+0x1fd/0x220 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 22 Comm: kworker/u4:1 Not tainted 5.11.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: ext4-rsv-conversion ext4_end_io_rsv_work ==================================================================