syzbot


KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu (6)

Status: auto-closed as invalid on 2022/04/01 06:25
Subsystems: fs mm
[Documentation on labels]
First crash: 1023d, last: 1023d
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu (7) fs mm 5 905d 984d 0/28 auto-closed as invalid on 2022/07/28 18:16
upstream KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu (2) fs mm 2 1487d 1468d 0/28 auto-closed as invalid on 2020/12/23 11:14
upstream KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu (5) fs mm 2 1232d 1233d 0/28 auto-closed as invalid on 2021/09/04 07:15
upstream KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu (3) fs mm 2 1409d 1441d 0/28 auto-closed as invalid on 2021/03/11 15:36
upstream KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu (9) fs mm 8 493d 575d 0/28 auto-obsoleted due to no activity on 2023/09/13 06:09
upstream KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu (8) fs mm 20 619d 819d 0/28 auto-obsoleted due to no activity on 2023/05/10 03:18
upstream KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu (11) fs mm 1 167d 167d 0/28 auto-obsoleted due to no activity on 2024/08/04 03:47
upstream KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu fs mm 1 1556d 1556d 0/28 auto-closed as invalid on 2020/10/15 13:11
upstream KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu (4) mm fs 3 1296d 1364d 0/28 auto-closed as invalid on 2021/07/02 00:21
upstream KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu (10) fs mm 31 210d 370d 0/28 auto-obsoleted due to no activity on 2024/06/22 10:03

Sample crash report:
==================================================================
BUG: KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu

write to 0xffffffff86dea2b0 of 4 bytes by interrupt on cpu 0:
 fprop_new_period+0x113/0x190 lib/flex_proportions.c:83
 writeout_period+0x55/0xe0 mm/page-writeback.c:622
 call_timer_fn+0x2e/0x240 kernel/time/timer.c:1421
 expire_timers+0x116/0x240 kernel/time/timer.c:1466
 __run_timers+0x368/0x410 kernel/time/timer.c:1734
 run_timer_softirq+0x56/0x60 kernel/time/timer.c:1749
 __do_softirq+0x158/0x2de kernel/softirq.c:558
 run_ksoftirqd+0x1f/0x30 kernel/softirq.c:921
 smpboot_thread_fn+0x308/0x4a0 kernel/smpboot.c:164
 kthread+0x1bf/0x1e0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30

read to 0xffffffff86dea2b0 of 4 bytes by task 1851 on cpu 1:
 fprop_reflect_period_percpu+0x22/0x1a0 lib/flex_proportions.c:192
 __fprop_add_percpu lib/flex_proportions.c:223 [inline]
 __fprop_add_percpu_max+0x42/0x250 lib/flex_proportions.c:281
 wb_domain_writeout_add mm/page-writeback.c:569 [inline]
 __wb_writeout_add mm/page-writeback.c:593 [inline]
 __folio_end_writeback+0x2a7/0x580 mm/page-writeback.c:2825
 folio_end_writeback+0x57/0x130 mm/filemap.c:1644
 end_page_writeback+0x37/0x50 mm/folio-compat.c:25
 ext4_finish_bio+0x30e/0x360 fs/ext4/page-io.c:143
 ext4_release_io_end+0x5f/0x140 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+0x1f6/0x240 fs/ext4/page-io.c:271
 process_one_work+0x3f6/0x960 kernel/workqueue.c:2307
 worker_thread+0x616/0xa70 kernel/workqueue.c:2454
 kthread+0x1bf/0x1e0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30

value changed: 0x00000015 -> 0x00000016

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1851 Comm: kworker/u4:5 Not tainted 5.17.0-rc5-syzkaller-00189-g53ab78cd6d5a-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: ext4-rsv-conversion ext4_end_io_rsv_work
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/02/25 06:21 upstream 53ab78cd6d5a 7c337266 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in fprop_new_period / fprop_reflect_period_percpu
* Struck through repros no longer work on HEAD.