syzbot


KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (11)

Status: auto-obsoleted due to no activity on 2023/02/11 11:55
Subsystems: ext4
[Documentation on labels]
First crash: 681d, last: 638d
Similar bugs (14)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (5) ext4 1 1027d 1027d 0/28 auto-closed as invalid on 2022/01/16 16:04
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes ext4 38 1580d 1800d 0/28 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (3) ext4 2 1140d 1142d 0/28 auto-closed as invalid on 2021/09/25 11:37
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (7) ext4 2 869d 901d 0/28 auto-closed as invalid on 2022/06/23 15:49
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (14) ext4 15 169d 299d 0/28 auto-obsoleted due to no activity on 2024/05/23 18:37
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (15) ext4 1 127d 127d 0/28 auto-obsoleted due to no activity on 2024/07/04 02:24
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (2) ext4 70 1207d 1432d 0/28 auto-closed as invalid on 2021/07/20 20:13
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (13) fs 1 477d 477d 0/28 auto-obsoleted due to no activity on 2023/07/20 04:17
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (4) ext4 2 1079d 1101d 0/28 auto-closed as invalid on 2021/11/25 03:42
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (8) fs 2 824d 833d 0/28 auto-closed as invalid on 2022/08/07 13:58
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (10) ext4 1 727d 727d 0/28 auto-obsoleted due to no activity on 2022/11/12 17:32
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (9) ext4 1 785d 785d 0/28 auto-closed as invalid on 2022/09/14 22:08
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (12) ext4 1 557d 557d 0/28 auto-obsoleted due to no activity on 2023/05/01 00:45
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (6) ext4 1 956d 956d 0/28 auto-closed as invalid on 2022/03/28 07:47

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

write to 0xffff88810b0dece0 of 8 bytes by task 12829 on cpu 1:
 writeback_sb_inodes+0x2ce/0xa30 fs/fs-writeback.c:1878
 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 0xffff88810b0dece0 of 8 bytes by task 15709 on cpu 0:
 __mark_inode_dirty+0x4f/0x730 fs/fs-writeback.c:2401
 mark_inode_dirty_sync include/linux/fs.h:2467 [inline]
 dquot_free_space include/linux/quotaops.h:385 [inline]
 dquot_free_block include/linux/quotaops.h:395 [inline]
 ext4_mb_new_blocks+0xcca/0x1000 fs/ext4/mballoc.c:5654
 ext4_ext_map_blocks+0xd7d/0x1bf0 fs/ext4/extents.c:4286
 ext4_map_blocks+0x72d/0x1040 fs/ext4/inode.c:651
 ext4_alloc_file_blocks+0x285/0x720 fs/ext4/extents.c:4470
 ext4_fallocate+0x349/0x440 fs/ext4/extents.c:4757
 vfs_fallocate+0x355/0x3d0 fs/open.c:323
 do_vfs_ioctl+0x12cf/0x1390 fs/ioctl.c:849
 __do_sys_ioctl fs/ioctl.c:868 [inline]
 __se_sys_ioctl+0x83/0x140 fs/ioctl.c:856
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:856
 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: 0x0000000000020007 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 15709 Comm: syz-executor.4 Not tainted 6.2.0-rc2-syzkaller-00010-g69b41ac87e4a-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/05 03:52 upstream 69b41ac87e4a 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes
2022/12/16 09:12 upstream 851f657a8642 6f9c033e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes
2022/11/22 23:03 upstream eb7081409f94 9da37ae8 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes
* Struck through repros no longer work on HEAD.