syzbot


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

Status: auto-closed as invalid on 2022/06/23 15:49
Subsystems: ext4
[Documentation on labels]
First crash: 735d, last: 703d
Similar bugs (13)
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 861d 861d 0/26 auto-closed as invalid on 2022/01/16 16:04
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (11) ext4 3 473d 516d 0/26 auto-obsoleted due to no activity on 2023/02/11 11:55
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes ext4 38 1414d 1634d 0/26 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (3) ext4 2 974d 976d 0/26 auto-closed as invalid on 2021/09/25 11:37
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (14) ext4 15 3d10h 134d 0/26 moderation: reported on 2023/12/10 00:03
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (2) ext4 70 1041d 1266d 0/26 auto-closed as invalid on 2021/07/20 20:13
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (13) fs 1 312d 312d 0/26 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 914d 935d 0/26 auto-closed as invalid on 2021/11/25 03:42
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (8) fs 2 658d 667d 0/26 auto-closed as invalid on 2022/08/07 13:58
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (10) ext4 1 561d 561d 0/26 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 620d 620d 0/26 auto-closed as invalid on 2022/09/14 22:08
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (12) ext4 1 392d 392d 0/26 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 790d 790d 0/26 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 0xffff8881368e2ce0 of 8 bytes by task 1847 on cpu 1:
 writeback_sb_inodes+0x494/0xdd0 fs/fs-writeback.c:1847
 wb_writeback+0x26b/0x650 fs/fs-writeback.c:2030
 wb_do_writeback+0x101/0x600 fs/fs-writeback.c:2173
 wb_workfn+0x88/0x260 fs/fs-writeback.c:2213
 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

read to 0xffff8881368e2ce0 of 8 bytes by task 20466 on cpu 0:
 __mark_inode_dirty+0xd5/0x5f0 fs/fs-writeback.c:2392
 mark_inode_dirty_sync include/linux/fs.h:2329 [inline]
 dquot_free_space include/linux/quotaops.h:382 [inline]
 dquot_free_block include/linux/quotaops.h:392 [inline]
 ext4_mb_new_blocks+0x845/0xae0 fs/ext4/mballoc.c:5664
 ext4_ext_map_blocks+0x9e2/0x1560 fs/ext4/extents.c:4281
 ext4_map_blocks+0x57e/0xbb0 fs/ext4/inode.c:636
 ext4_alloc_file_blocks+0x1b3/0x580 fs/ext4/extents.c:4466
 ext4_fallocate+0x2eb/0x3a0 fs/ext4/extents.c:4751
 vfs_fallocate+0x355/0x3d0 fs/open.c:308
 ksys_fallocate fs/open.c:331 [inline]
 __do_sys_fallocate fs/open.c:339 [inline]
 __se_sys_fallocate fs/open.c:337 [inline]
 __x64_sys_fallocate+0x75/0xc0 fs/open.c:337
 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+0x44/0xae

value changed: 0x0000000000020007 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 20466 Comm: syz-executor.2 Not tainted 5.18.0-rc7-syzkaller-00048-gf993aed406ea-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/05/19 15:46 upstream f993aed406ea cb1ac2e7 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes
2022/04/17 15:15 upstream 90ea17a9e27b 8bcc32a6 .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.