syzbot


KCSAN: data-race in __mark_inode_dirty / redirty_tail_locked

Status: auto-obsoleted due to no activity on 2023/03/31 02:53
Subsystems: ext4
[Documentation on labels]
First crash: 481d, last: 481d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __mark_inode_dirty / redirty_tail_locked (4) ext4 1 176d 174d 0/26 auto-obsoleted due to no activity on 2024/01/09 20:12
upstream KCSAN: data-race in __mark_inode_dirty / redirty_tail_locked (2) ext4 10 278d 413d 0/26 auto-obsoleted due to no activity on 2023/09/29 00:10
upstream KCSAN: data-race in __mark_inode_dirty / redirty_tail_locked (5) ext4 1 120d 120d 0/26 auto-obsoleted due to no activity on 2024/03/05 08:43
upstream KCSAN: data-race in __mark_inode_dirty / redirty_tail_locked (3) ext4 3 214d 239d 0/26 auto-obsoleted due to no activity on 2023/12/02 13:09
upstream KCSAN: data-race in __mark_inode_dirty / redirty_tail_locked (6) ext4 1 60d 60d 0/26 auto-obsoleted due to no activity on 2024/05/04 07:48

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __mark_inode_dirty / redirty_tail_locked

read-write to 0xffff88810a956650 of 8 bytes by task 25 on cpu 0:
 redirty_tail_locked+0x56/0x270 fs/fs-writeback.c:1300
 requeue_inode fs/fs-writeback.c:1556 [inline]
 writeback_sb_inodes+0x890/0xa30 fs/fs-writeback.c:1918
 wb_writeback+0x26b/0x650 fs/fs-writeback.c:2063
 wb_do_writeback+0x101/0x600 fs/fs-writeback.c:2206
 wb_workfn+0x88/0x260 fs/fs-writeback.c:2246
 process_one_work+0x3d3/0x720 kernel/workqueue.c:2289
 worker_thread+0x618/0xa70 kernel/workqueue.c:2436
 kthread+0x1a9/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

read to 0xffff88810a956650 of 8 bytes by task 5237 on cpu 1:
 __mark_inode_dirty+0x4f/0x730 fs/fs-writeback.c:2401
 mark_inode_dirty include/linux/fs.h:2465 [inline]
 generic_write_end+0x175/0x350 fs/buffer.c:2184
 ext4_da_write_end+0x26c/0x620 fs/ext4/inode.c:3175
 generic_perform_write+0x264/0x3f0 mm/filemap.c:3783
 ext4_buffered_write_iter+0x235/0x3e0 fs/ext4/file.c:285
 ext4_file_write_iter+0x2bb/0x11b0
 call_write_iter include/linux/fs.h:2189 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x468/0x760 fs/read_write.c:584
 ksys_write+0xe8/0x1a0 fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:646
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000000020087 -> 0x0000000000000007

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 5237 Comm: syz-executor.2 Not tainted 6.2.0-rc6-syzkaller-00083-ge7368fd30165-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/03 02:33 upstream e7368fd30165 33fc5c09 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mark_inode_dirty / redirty_tail_locked
* Struck through repros no longer work on HEAD.