================================================================== BUG: KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch read-write to 0xffff8881001cf948 of 8 bytes by task 316 on cpu 0: percpu_counter_add_batch+0xc9/0x140 lib/percpu_counter.c:96 wb_stat_mod include/linux/backing-dev.h:66 [inline] __wb_writeout_add+0x4c/0x1e0 mm/page-writeback.c:583 __folio_end_writeback+0x21b/0x4a0 mm/page-writeback.c:3017 folio_end_writeback+0x74/0x1f0 mm/filemap.c:1608 ext4_finish_bio+0x47b/0x8f0 fs/ext4/page-io.c:145 ext4_release_io_end+0x8c/0x1f0 fs/ext4/page-io.c:160 ext4_end_io_end fs/ext4/page-io.c:194 [inline] ext4_do_flush_completed_IO fs/ext4/page-io.c:259 [inline] ext4_end_io_rsv_work+0x2d3/0x370 fs/ext4/page-io.c:273 process_one_work kernel/workqueue.c:3254 [inline] process_scheduled_works+0x465/0x990 kernel/workqueue.c:3335 worker_thread+0x526/0x730 kernel/workqueue.c:3416 kthread+0x1d1/0x210 kernel/kthread.c:388 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:243 read to 0xffff8881001cf948 of 8 bytes by task 1884 on cpu 1: percpu_counter_read include/linux/percpu_counter.h:110 [inline] __wb_update_bandwidth+0x9b/0x5d0 mm/page-writeback.c:1462 wb_update_bandwidth mm/page-writeback.c:1489 [inline] do_writepages+0x443/0x480 mm/page-writeback.c:2638 filemap_fdatawrite_wbc+0xdb/0x100 mm/filemap.c:397 __filemap_fdatawrite_range mm/filemap.c:430 [inline] __filemap_fdatawrite mm/filemap.c:436 [inline] filemap_flush+0x61/0x90 mm/filemap.c:463 ext4_alloc_da_blocks+0x50/0x130 fs/ext4/inode.c:3072 ext4_release_file+0x5f/0x1c0 fs/ext4/file.c:169 __fput+0x2c1/0x660 fs/file_table.c:422 ____fput+0x15/0x20 fs/file_table.c:450 task_work_run+0x13a/0x1a0 kernel/task_work.c:180 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x5fd/0x1740 kernel/exit.c:878 do_group_exit+0x102/0x150 kernel/exit.c:1027 get_signal+0xf2f/0x1080 kernel/signal.c:2911 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:105 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] irqentry_exit_to_user_mode+0x94/0x130 kernel/entry/common.c:225 irqentry_exit+0x12/0x50 kernel/entry/common.c:328 exc_general_protection+0x33d/0x4d0 arch/x86/kernel/traps.c:644 asm_exc_general_protection+0x26/0x30 arch/x86/include/asm/idtentry.h:617 value changed: 0x00000000003eef90 -> 0x00000000003eefa0 Reported by Kernel Concurrency Sanitizer on: CPU: 1 PID: 1884 Comm: syz-executor.3 Not tainted 6.8.0-syzkaller-11752-gdba89d1b81df #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 ==================================================================