syzbot


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

Status: auto-obsoleted due to no activity on 2023/05/01 00:45
Subsystems: ext4
[Documentation on labels]
First crash: 382d, last: 382d
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 852d 852d 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 463d 506d 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 1404d 1625d 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 965d 967d 0/26 auto-closed as invalid on 2021/09/25 11:37
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (7) ext4 2 694d 726d 0/26 auto-closed as invalid on 2022/06/23 15:49
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (14) ext4 14 4d00h 124d 0/26 moderation: reported on 2023/12/10 00:03
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (2) ext4 70 1031d 1257d 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 302d 302d 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 904d 925d 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 649d 658d 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 552d 552d 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 610d 610d 0/26 auto-closed as invalid on 2022/09/14 22:08
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (6) ext4 1 781d 781d 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 0xffff88810a710280 of 8 bytes by task 16572 on cpu 1:
 writeback_sb_inodes+0x2db/0xaa0 fs/fs-writeback.c:1880
 wb_writeback+0x23b/0x6c0 fs/fs-writeback.c:2065
 wb_do_writeback fs/fs-writeback.c:2208 [inline]
 wb_workfn+0x1a8/0x8d0 fs/fs-writeback.c:2248
 process_one_work+0x3e6/0x750 kernel/workqueue.c:2390
 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2537
 kthread+0x1ac/0x1e0 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

read to 0xffff88810a710280 of 8 bytes by task 21996 on cpu 0:
 __mark_inode_dirty+0x199/0x7d0 fs/fs-writeback.c:2443
 mark_inode_dirty include/linux/fs.h:2127 [inline]
 dquot_alloc_space include/linux/quotaops.h:320 [inline]
 dquot_alloc_block include/linux/quotaops.h:337 [inline]
 ext4_mb_new_blocks+0x1047/0x21c0 fs/ext4/mballoc.c:5571
 ext4_ext_map_blocks+0xe1f/0x36c0 fs/ext4/extents.c:4286
 ext4_map_blocks+0x738/0x1050 fs/ext4/inode.c:651
 ext4_alloc_file_blocks+0x272/0x6d0 fs/ext4/extents.c:4470
 ext4_fallocate+0x802/0x12b0 fs/ext4/extents.c:4757
 vfs_fallocate+0x369/0x3d0 fs/open.c:324
 do_vfs_ioctl+0x12a1/0x1360 fs/ioctl.c:849
 __do_sys_ioctl fs/ioctl.c:868 [inline]
 __se_sys_ioctl+0x81/0x140 fs/ioctl.c:856
 __x64_sys_ioctl+0x43/0x50 fs/ioctl.c:856
 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: 0x0000000000020001 -> 0x0000000000000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 21996 Comm: syz-executor.2 Not tainted 6.3.0-rc3-syzkaller-00394-g0ec57cfa721f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/27 00:39 upstream 0ec57cfa721f fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes
* Struck through repros no longer work on HEAD.