syzbot


KCSAN: data-race in test_clear_page_writeback / writeout_period (3)

Status: auto-closed as invalid on 2021/09/18 07:36
Subsystems: fs mm
[Documentation on labels]
First crash: 1339d, last: 1262d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in test_clear_page_writeback / writeout_period (2) fs mm 1 1379d 1379d 0/28 auto-closed as invalid on 2021/05/24 05:51
upstream KCSAN: data-race in test_clear_page_writeback / writeout_period (4) fs mm 4 1185d 1199d 0/28 auto-closed as invalid on 2021/12/04 05:47
upstream KCSAN: data-race in test_clear_page_writeback / writeout_period fs mm 3 1696d 1788d 0/28 closed as invalid on 2020/06/18 14:24

Sample crash report:
==================================================================
BUG: KCSAN: data-race in test_clear_page_writeback / writeout_period

write to 0xffffffff8418e3f8 of 8 bytes by interrupt on cpu 0:
 writeout_period+0xa6/0xe0 mm/page-writeback.c:623
 call_timer_fn+0x2e/0x1d0 kernel/time/timer.c:1421
 expire_timers+0x135/0x240 kernel/time/timer.c:1466
 __run_timers+0x358/0x420 kernel/time/timer.c:1734
 run_timer_softirq+0x2d/0x30 kernel/time/timer.c:1749
 __do_softirq+0x12c/0x26e kernel/softirq.c:558
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x9a/0xb0 kernel/softirq.c:636
 sysvec_apic_timer_interrupt+0x69/0x80 arch/x86/kernel/apic/apic.c:1100
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
 native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
 arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
 acpi_safe_halt drivers/acpi/processor_idle.c:109 [inline]
 acpi_idle_do_entry drivers/acpi/processor_idle.c:553 [inline]
 acpi_idle_enter+0x258/0x2e0 drivers/acpi/processor_idle.c:688
 cpuidle_enter_state+0x2b6/0x750 drivers/cpuidle/cpuidle.c:237
 cpuidle_enter+0x3c/0x60 drivers/cpuidle/cpuidle.c:351
 call_cpuidle kernel/sched/idle.c:158 [inline]
 cpuidle_idle_call kernel/sched/idle.c:239 [inline]
 do_idle+0x1a3/0x240 kernel/sched/idle.c:306
 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:403
 rest_init+0xee/0x100 init/main.c:714
 arch_call_rest_init+0xa/0xb
 start_kernel+0x5ae/0x633 init/main.c:1120
 secondary_startup_64_no_verify+0xb0/0xbb

read to 0xffffffff8418e3f8 of 8 bytes by task 858 on cpu 1:
 wb_domain_writeout_inc mm/page-writeback.c:572 [inline]
 __wb_writeout_inc mm/page-writeback.c:593 [inline]
 test_clear_page_writeback+0x387/0x560 mm/page-writeback.c:2754
 end_page_writeback+0xd7/0x1b0 mm/filemap.c:1548
 ext4_finish_bio+0x3e2/0x430 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+0x3e9/0x8f0 kernel/workqueue.c:2276
 worker_thread+0x636/0xae0 kernel/workqueue.c:2422
 kthread+0x262/0x280 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295

value changed: 0x00000000ffffd4f5 -> 0x00000000ffffd621

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 858 Comm: kworker/u4:3 Not tainted 5.14.0-rc5-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
==================================================================

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/08/14 07:35 upstream dfa377c35d70 2489ab88 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in test_clear_page_writeback / writeout_period
2021/07/27 08:02 upstream ff1176468d36 fd511809 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in test_clear_page_writeback / writeout_period
2021/07/20 14:47 upstream 8cae8cd89f05 1b201b48 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in test_clear_page_writeback / writeout_period
2021/07/06 06:45 upstream 3dbdb38e2869 6c4484eb .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in test_clear_page_writeback / writeout_period
2021/06/23 10:52 upstream 0c18f29aae7c aba2b2fb .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in test_clear_page_writeback / writeout_period
2021/05/29 17:25 upstream f956cb99b938 325a8dab .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in test_clear_page_writeback / writeout_period
* Struck through repros no longer work on HEAD.