syzbot


KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch (6)

Status: auto-closed as invalid on 2021/12/29 06:33
Subsystems: fs mm
[Documentation on labels]
First crash: 958d, last: 882d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch (3) fs mm 2 1220d 1234d 0/26 auto-closed as invalid on 2021/01/24 22:24
upstream KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch (7) fs mm 278 17h17m 139d 0/26 moderation: reported on 2023/12/07 10:04
upstream KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch (5) fs mm 3 998d 1031d 0/26 auto-closed as invalid on 2021/09/04 14:56
upstream KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch (4) fs mm 6 1076d 1175d 0/26 auto-closed as invalid on 2021/06/18 08:34
upstream KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch (2) fs mm 3 1298d 1337d 0/26 auto-closed as invalid on 2020/11/08 10:33
upstream KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch mm fs 9 1440d 1599d 0/26 closed as invalid on 2020/06/18 14:24

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch

write to 0xffff888102b05d18 of 8 bytes by task 8402 on cpu 0:
 percpu_counter_add_batch+0xb4/0x130 lib/percpu_counter.c:91
 wb_stat_mod include/linux/backing-dev.h:70 [inline]
 folio_account_dirtied+0x1d9/0x300 mm/page-writeback.c:2466
 __folio_mark_dirty+0x8e/0x130 mm/page-writeback.c:2509
 __set_page_dirty include/linux/pagemap.h:867 [inline]
 mark_buffer_dirty+0x14f/0x260 fs/buffer.c:1108
 __block_commit_write fs/buffer.c:2083 [inline]
 block_write_end+0x13d/0x260 fs/buffer.c:2162
 generic_write_end+0x5e/0x180 fs/buffer.c:2176
 ext4_da_write_end+0x4de/0x630 fs/ext4/inode.c:3059
 generic_perform_write+0x261/0x400 mm/filemap.c:3767
 ext4_buffered_write_iter+0x25b/0x380 fs/ext4/file.c:269
 ext4_file_write_iter+0x2e7/0x1200
 call_write_iter include/linux/fs.h:2162 [inline]
 do_iter_readv_writev+0x2de/0x380 fs/read_write.c:725
 do_iter_write+0x192/0x5c0 fs/read_write.c:851
 vfs_iter_write+0x4c/0x70 fs/read_write.c:892
 iter_file_splice_write+0x43a/0x790 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:936
 splice_direct_to_actor+0x345/0x650 fs/splice.c:891
 do_splice_direct+0x106/0x190 fs/splice.c:979
 do_sendfile+0x675/0xc40 fs/read_write.c:1245
 __do_sys_sendfile64 fs/read_write.c:1310 [inline]
 __se_sys_sendfile64 fs/read_write.c:1296 [inline]
 __x64_sys_sendfile64+0x102/0x140 fs/read_write.c:1296
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff888102b05d18 of 8 bytes by task 8390 on cpu 1:
 percpu_counter_read include/linux/percpu_counter.h:72 [inline]
 __wb_update_bandwidth+0x87/0x420 mm/page-writeback.c:1352
 wb_update_bandwidth mm/page-writeback.c:1380 [inline]
 do_writepages+0x306/0x330 mm/page-writeback.c:2386
 filemap_fdatawrite_wbc mm/filemap.c:407 [inline]
 __filemap_fdatawrite_range mm/filemap.c:440 [inline]
 file_write_and_wait_range+0x132/0x1d0 mm/filemap.c:824
 ext4_sync_file+0x105/0x6e0 fs/ext4/fsync.c:151
 vfs_fsync_range+0x107/0x120 fs/sync.c:182
 generic_write_sync include/linux/fs.h:2956 [inline]
 ext4_buffered_write_iter+0x322/0x380 fs/ext4/file.c:277
 ext4_file_write_iter+0x2e7/0x1200
 call_write_iter include/linux/fs.h:2162 [inline]
 do_iter_readv_writev+0x2de/0x380 fs/read_write.c:725
 do_iter_write+0x192/0x5c0 fs/read_write.c:851
 vfs_iter_write+0x4c/0x70 fs/read_write.c:892
 iter_file_splice_write+0x43a/0x790 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:936
 splice_direct_to_actor+0x345/0x650 fs/splice.c:891
 do_splice_direct+0x106/0x190 fs/splice.c:979
 do_sendfile+0x675/0xc40 fs/read_write.c:1245
 __do_sys_sendfile64 fs/read_write.c:1304 [inline]
 __se_sys_sendfile64 fs/read_write.c:1296 [inline]
 __x64_sys_sendfile64+0xb9/0x140 fs/read_write.c:1296
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x00000000000ab2b0 -> 0x00000000000ab2c0

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 8390 Comm: syz-executor.4 Not tainted 5.16.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (17):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/11/24 06:30 upstream 5d9f4cf36721 545ab074 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch
2021/11/07 16:26 upstream b5013d084e03 4c1be0be .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch
2021/11/05 00:45 upstream 7ddb58cb0eca 4c1be0be .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch
2021/11/02 22:35 upstream bfc484fe6abb 17f3edd2 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch
2021/10/17 11:55 upstream d999ade1cc86 0c5d9412 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch
2021/10/15 16:50 upstream 8fe31e0995f0 0c5d9412 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch
2021/10/13 04:42 upstream f4d0cc426f77 08362356 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch
2021/10/11 12:35 upstream 64570fbc14f8 838e7e2c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch
2021/10/02 16:29 upstream 53d5fc89d66a db0f5787 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch
2021/09/25 21:43 upstream 85736168463d 8cac236e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch
2021/09/23 13:38 upstream 58e2cf5d7946 8cac236e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch
2021/09/20 00:08 upstream 20621d2f27a0 70b76c1d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch
2021/09/17 22:22 upstream ddf21bd8ab98 70b76c1d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch
2021/09/16 20:30 upstream ff1ffd71d5f0 aae492f2 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch
2021/09/16 01:25 upstream 80be5998ad63 07e953c1 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch
2021/09/13 02:16 upstream 6880fa6c5660 3ce60af8 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch
2021/09/08 21:23 upstream ac08b1c68d1b e2776ee4 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __wb_update_bandwidth / percpu_counter_add_batch
* Struck through repros no longer work on HEAD.