syzbot


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

Status: auto-closed as invalid on 2022/01/16 16:04
Subsystems: ext4
[Documentation on labels]
First crash: 1029d, last: 1029d
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 (11) ext4 3 640d 684d 0/28 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 1582d 1802d 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 1142d 1144d 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 871d 903d 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 171d 302d 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 130d 130d 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 1209d 1434d 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 479d 479d 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 1081d 1103d 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 826d 835d 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 729d 729d 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 788d 788d 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 560d 560d 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 958d 958d 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 0xffff888137c8bb90 of 8 bytes by task 8 on cpu 1:
 writeback_sb_inodes+0x481/0xdf0 fs/fs-writeback.c:1870
 wb_writeback+0x26b/0x650 fs/fs-writeback.c:2054
 wb_do_writeback+0x101/0x560 fs/fs-writeback.c:2197
 wb_workfn+0xc8/0x440 fs/fs-writeback.c:2238
 process_one_work+0x3fc/0x980 kernel/workqueue.c:2298
 worker_thread+0x616/0xa70 kernel/workqueue.c:2445
 kthread+0x2c7/0x2e0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30

read to 0xffff888137c8bb90 of 8 bytes by task 9307 on cpu 0:
 __mark_inode_dirty+0xd7/0x6c0 fs/fs-writeback.c:2420
 mark_inode_dirty_sync include/linux/fs.h:2456 [inline]
 dquot_free_space include/linux/quotaops.h:382 [inline]
 dquot_free_block include/linux/quotaops.h:392 [inline]
 ext4_mb_new_blocks+0x1631/0x1ee0 fs/ext4/mballoc.c:5634
 ext4_ext_map_blocks+0x1658/0x2120 fs/ext4/extents.c:4285
 ext4_map_blocks+0x71e/0xf00 fs/ext4/inode.c:637
 ext4_alloc_file_blocks+0x281/0x730 fs/ext4/extents.c:4472
 ext4_fallocate+0x2a7/0x540 fs/ext4/extents.c:4753
 vfs_fallocate+0x486/0x720 fs/open.c:307
 ksys_fallocate fs/open.c:330 [inline]
 __do_sys_fallocate fs/open.c:338 [inline]
 __se_sys_fallocate fs/open.c:336 [inline]
 __x64_sys_fallocate+0x75/0xc0 fs/open.c:336
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 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: 9307 Comm: syz-executor.5 Not tainted 5.16.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/12/12 16:02 upstream a763d5a5abd6 49ca1f59 .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.