syzbot


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

Status: auto-obsoleted due to no activity on 2023/09/29 00:10
Subsystems: ext4
[Documentation on labels]
First crash: 413d, last: 278d
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 (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
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 0xffff888109c92640 of 8 bytes by task 3546 on cpu 1:
 redirty_tail_locked+0x56/0x270 fs/fs-writeback.c:1305
 requeue_inode fs/fs-writeback.c:1561 [inline]
 writeback_sb_inodes+0x7b2/0xaa0 fs/fs-writeback.c:1923
 wb_writeback+0x252/0x6e0 fs/fs-writeback.c:2070
 wb_do_writeback fs/fs-writeback.c:2217 [inline]
 wb_workfn+0x1a8/0x8d0 fs/fs-writeback.c:2257
 process_one_work+0x434/0x860 kernel/workqueue.c:2600
 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2751
 kthread+0x1d7/0x210 kernel/kthread.c:389
 ret_from_fork+0x2e/0x40 arch/x86/kernel/process.c:145
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304

read to 0xffff888109c92640 of 8 bytes by task 4176 on cpu 0:
 __mark_inode_dirty+0x199/0x7d0 fs/fs-writeback.c:2452
 mark_buffer_dirty+0x165/0x240 fs/buffer.c:1221
 __block_commit_write fs/buffer.c:2202 [inline]
 block_write_end+0x158/0x2e0 fs/buffer.c:2280
 generic_write_end+0x61/0x240 fs/buffer.c:2294
 ext4_da_write_end+0x49e/0x700 fs/ext4/inode.c:2988
 generic_perform_write+0x26d/0x410 mm/filemap.c:3934
 ext4_buffered_write_iter+0x1f6/0x370 fs/ext4/file.c:299
 ext4_file_write_iter+0x283/0x1230
 __kernel_write_iter+0x162/0x3c0 fs/read_write.c:517
 dump_emit_page fs/coredump.c:888 [inline]
 dump_user_range+0x25d/0x490 fs/coredump.c:915
 elf_core_dump+0x1a85/0x1ba0 fs/binfmt_elf.c:2142
 do_coredump+0x1029/0x1890 fs/coredump.c:764
 get_signal+0xd65/0xff0 kernel/signal.c:2867
 arch_do_signal_or_restart+0x89/0x2a0 arch/x86/kernel/signal.c:308
 exit_to_user_mode_loop+0x6f/0xe0 kernel/entry/common.c:168
 exit_to_user_mode_prepare+0x6c/0xb0 kernel/entry/common.c:204
 irqentry_exit_to_user_mode+0x9/0x20 kernel/entry/common.c:310
 irqentry_exit+0x12/0x40 kernel/entry/common.c:413
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:570

value changed: 0x0000000000020084 -> 0x0000000000000004

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 4176 Comm: syz-executor.4 Not tainted 6.5.0-rc7-syzkaller-00024-g93f5de5f648d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
==================================================================
syz-executor.4 (4176) used greatest stack depth: 10296 bytes left

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/25 00:10 upstream 93f5de5f648d 49be837e .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/08/18 20:13 upstream 0e8860d2125f acb1ba71 .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/08/10 03:56 upstream cacc6e22932f 13ca4cd6 .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/08/07 16:37 upstream 52a93d39b17d b1b6ae3d .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/07/13 21:11 upstream eb26cbb1a754 55eda22f .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/06/25 23:02 upstream 547cc9be86f4 79782afc .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/05/23 12:52 upstream ae8373a5add4 4bce1a3e .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/05/22 08:49 upstream 44c026a73be8 4bce1a3e .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/04/29 20:06 upstream 1ae78a14516b 62df2017 .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/04/12 05:47 upstream e62252bc55b6 49faf98d .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.