syzbot


KCSAN: data-race in __mark_inode_dirty / redirty_tail_locked (3)

Status: auto-obsoleted due to no activity on 2023/12/02 13:09
Subsystems: ext4
[Documentation on labels]
First crash: 239d, last: 214d
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 (6) ext4 1 60d 60d 0/26 auto-obsoleted due to no activity on 2024/05/04 07:48
upstream KCSAN: data-race in __mark_inode_dirty / redirty_tail_locked ext4 1 481d 481d 0/26 auto-obsoleted due to no activity on 2023/03/31 02:53

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

read-write to 0xffff8881066d21b0 of 8 bytes by task 21911 on cpu 0:
 redirty_tail_locked+0x56/0x270 fs/fs-writeback.c:1305
 requeue_inode fs/fs-writeback.c:1566 [inline]
 writeback_sb_inodes+0x7dd/0xad0 fs/fs-writeback.c:1928
 wb_writeback+0x252/0x6e0 fs/fs-writeback.c:2075
 wb_do_writeback fs/fs-writeback.c:2222 [inline]
 wb_workfn+0x1a8/0x8d0 fs/fs-writeback.c:2262
 process_one_work kernel/workqueue.c:2630 [inline]
 process_scheduled_works+0x5b8/0xa30 kernel/workqueue.c:2703
 worker_thread+0x525/0x730 kernel/workqueue.c:2784
 kthread+0x1d7/0x210 kernel/kthread.c:388
 ret_from_fork+0x48/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304

read to 0xffff8881066d21b0 of 8 bytes by task 13236 on cpu 1:
 __mark_inode_dirty+0x199/0x7d0 fs/fs-writeback.c:2457
 mark_buffer_dirty+0x165/0x240 fs/buffer.c:1216
 __block_commit_write fs/buffer.c:2192 [inline]
 block_write_end+0x158/0x2e0 fs/buffer.c:2268
 ext4_da_do_write_end fs/ext4/inode.c:2951 [inline]
 ext4_da_write_end+0x1fc/0x9c0 fs/ext4/inode.c:3023
 generic_perform_write+0x267/0x410 mm/filemap.c:3980
 ext4_buffered_write_iter+0x1f6/0x370 fs/ext4/file.c:299
 ext4_file_write_iter+0xd6/0x1200
 call_write_iter include/linux/fs.h:1956 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x4ab/0x7d0 fs/read_write.c:584
 ksys_write+0xeb/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+0x42/0x50 fs/read_write.c:646
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000000020084 -> 0x0000000000000004

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 13236 Comm: syz-executor.3 Not tainted 6.6.0-rc7-syzkaller-00151-g56567a20b22b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/28 13:04 upstream 56567a20b22b 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mark_inode_dirty / redirty_tail_locked
2023/10/09 01:19 upstream 94f6f0550c62 5e837c76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mark_inode_dirty / redirty_tail_locked
2023/10/03 05:36 upstream ce36c8b14987 65faba36 .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.