syzbot


KCSAN: data-race in __wb_writeout_inc / writeout_period (2)

Status: auto-closed as invalid on 2020/09/15 07:28
Subsystems: fs mm
[Documentation on labels]
First crash: 1831d, last: 1831d
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __wb_writeout_inc / writeout_period fs mm 6 1 1871d 1871d 0/29 auto-closed as invalid on 2020/08/06 05:06

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

write to 0xffffffff89315ee0 of 8 bytes by interrupt on cpu 1:
 writeout_period+0xa6/0xe0 mm/page-writeback.c:629
 call_timer_fn+0x30/0x2a0 kernel/time/timer.c:1413
 expire_timers+0x116/0x290 kernel/time/timer.c:1458
 __run_timers+0x348/0x3e0 kernel/time/timer.c:1755
 run_timer_softirq+0x56/0x60 kernel/time/timer.c:1770
 __do_softirq+0x198/0x360 kernel/softirq.c:298
 asm_call_on_stack+0xf/0x20 arch/x86/entry/entry_64.S:706
 __run_on_irqstack arch/x86/include/asm/irq_stack.h:22 [inline]
 run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:48 [inline]
 do_softirq_own_stack+0x5d/0x80 arch/x86/kernel/irq_64.c:77
 invoke_softirq kernel/softirq.c:393 [inline]
 __irq_exit_rcu+0x115/0x120 kernel/softirq.c:423
 sysvec_apic_timer_interrupt+0xba/0xd0 arch/x86/kernel/apic/apic.c:1090
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:581
 arch_local_irq_restore arch/x86/include/asm/paravirt.h:770 [inline]
 kcsan_setup_watchpoint+0x44b/0x4a0 kernel/kcsan/core.c:563
 tomoyo_check_acl+0x9a/0x220 security/tomoyo/domain.c:173
 tomoyo_path_permission security/tomoyo/file.c:586 [inline]
 tomoyo_check_open_permission+0x29f/0x370 security/tomoyo/file.c:780
 tomoyo_file_open+0xd0/0xe0 security/tomoyo/tomoyo.c:313
 security_file_open+0x3f/0x90 security/security.c:1574
 do_dentry_open+0x27c/0x8e0 fs/open.c:810
 vfs_open+0x43/0x50 fs/open.c:937
 do_open fs/namei.c:3243 [inline]
 path_openat+0x1844/0x20c0 fs/namei.c:3360
 do_filp_open+0xbd/0x1d0 fs/namei.c:3387
 do_sys_openat2+0x33b/0x500 fs/open.c:1174
 do_sys_open fs/open.c:1190 [inline]
 __do_sys_open fs/open.c:1198 [inline]
 __se_sys_open fs/open.c:1194 [inline]
 __x64_sys_open+0xe2/0x110 fs/open.c:1194
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffffffff89315ee0 of 8 bytes by task 25 on cpu 0:
 wb_domain_writeout_inc mm/page-writeback.c:578 [inline]
 __wb_writeout_inc+0x60/0x1a0 mm/page-writeback.c:599
 test_clear_page_writeback+0x2ef/0x480 mm/page-writeback.c:2745
 end_page_writeback+0xa7/0x110 mm/filemap.c:1369
 ext4_finish_bio+0x429/0x490 fs/ext4/page-io.c:146
 ext4_release_io_end+0x98/0x200 fs/ext4/page-io.c:161
 ext4_end_io_end fs/ext4/page-io.c:195 [inline]
 ext4_do_flush_completed_IO fs/ext4/page-io.c:260 [inline]
 ext4_end_io_rsv_work+0x306/0x360 fs/ext4/page-io.c:274
 process_one_work+0x3e1/0x9a0 kernel/workqueue.c:2269
 worker_thread+0x665/0xbe0 kernel/workqueue.c:2415
 kthread+0x20d/0x230 kernel/kthread.c:292
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 25 Comm: kworker/u4:2 Not tainted 5.8.0-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 (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/08/11 07:25 upstream 4bcf69e57063 d3694ffb .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.