syzbot


KCSAN: data-race in fprop_reflect_period_percpu.isra.0 / fprop_reflect_period_percpu.isra.0

Status: auto-closed as invalid on 2020/01/23 17:36
Subsystems: fs mm
[Documentation on labels]
First crash: 1622d, last: 1622d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in fprop_reflect_period_percpu.isra.0 / fprop_reflect_period_percpu.isra.0 (2) fs mm 1 1437d 1437d 0/26 closed as invalid on 2020/06/18 14:13

Sample crash report:
protocol 88fb is buggy, dev hsr_slave_1
net_ratelimit: 18 callbacks suppressed
protocol 88fb is buggy, dev hsr_slave_0
protocol 88fb is buggy, dev hsr_slave_1
==================================================================
BUG: KCSAN: data-race in fprop_reflect_period_percpu.isra.0 / fprop_reflect_period_percpu.isra.0

read to 0xffff8881299455e0 of 4 bytes by task 7606 on cpu 0:
 fprop_reflect_period_percpu.isra.0+0x31/0x1d0 lib/flex_proportions.c:196
 fprop_fraction_percpu+0x82/0x1c0 lib/flex_proportions.c:236
 __wb_calc_thresh+0x6f/0x250 mm/page-writeback.c:775
 wb_calc_thresh+0x96/0xc0 mm/page-writeback.c:795
 wb_over_bg_thresh+0x287/0x490 mm/page-writeback.c:1949
 wb_check_background_flush fs/fs-writeback.c:1952 [inline]
 wb_do_writeback fs/fs-writeback.c:2050 [inline]
 wb_workfn+0x3b3/0x970 fs/fs-writeback.c:2078
 process_one_work+0x3d4/0x890 kernel/workqueue.c:2269
 worker_thread+0xa0/0x800 kernel/workqueue.c:2415
 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

write to 0xffff8881299455e0 of 4 bytes by interrupt on cpu 1:
 fprop_reflect_period_percpu.isra.0+0x134/0x1d0 lib/flex_proportions.c:215
 __fprop_inc_percpu_max+0x69/0x150 lib/flex_proportions.c:270
 wb_domain_writeout_inc mm/page-writeback.c:581 [inline]
 __wb_writeout_inc mm/page-writeback.c:605 [inline]
 test_clear_page_writeback+0x543/0x790 mm/page-writeback.c:2737
 end_page_writeback+0x9e/0x190 mm/filemap.c:1339
 ext4_finish_bio+0x40d/0x520 fs/ext4/page-io.c:110
 ext4_end_bio+0xd2/0x320 fs/ext4/page-io.c:334
 bio_endio+0x3a8/0x4f0 block/bio.c:1818
 req_bio_endio block/blk-core.c:242 [inline]
 blk_update_request+0x427/0x7b0 block/blk-core.c:1462
 scsi_end_request+0x6b/0x3e0 drivers/scsi/scsi_lib.c:579
 scsi_io_completion+0x11d/0xc80 drivers/scsi/scsi_lib.c:963
 scsi_finish_command+0x280/0x380 drivers/scsi/scsi.c:228
 scsi_softirq_done+0x259/0x280 drivers/scsi/scsi_lib.c:1477
 blk_done_softirq+0x1eb/0x250 block/blk-softirq.c:37
 __do_softirq+0x115/0x33f kernel/softirq.c:292
 run_ksoftirqd+0x46/0x60 kernel/softirq.c:603
 smpboot_thread_fn+0x37d/0x4a0 kernel/smpboot.c:165
 kthread+0x1d4/0x200 drivers/block/aoe/aoecmd.c:1253
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 16 Comm: ksoftirqd/1 Not tainted 5.4.0-rc7+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/11/14 17:26 https://github.com/google/ktsan.git kcsan 7f2955e0d056 048f2d49 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.