syzbot


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

Status: auto-obsoleted due to no activity on 2022/11/12 17:32
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 118d, last: 118d
similar bugs (9):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (5) 1 418d 418d 0/24 auto-closed as invalid on 2022/01/16 16:04
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes 38 971d 1191d 0/24 closed as invalid on 2020/06/18 14:24
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (3) 2 531d 533d 0/24 auto-closed as invalid on 2021/09/25 11:37
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (7) 2 260d 292d 0/24 auto-closed as invalid on 2022/06/23 15:49
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (2) 70 598d 823d 0/24 auto-closed as invalid on 2021/07/20 20:13
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (4) 2 471d 492d 0/24 auto-closed as invalid on 2021/11/25 03:42
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (8) 2 215d 224d 0/24 auto-closed as invalid on 2022/08/07 13:58
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (9) 1 177d 177d 0/24 auto-closed as invalid on 2022/09/14 22:08
upstream KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes (6) 1 347d 347d 0/24 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 0xffff88810ad3d280 of 8 bytes by task 17057 on cpu 1:
 writeback_sb_inodes+0x494/0xdd0 fs/fs-writeback.c:1859
 wb_writeback+0x26b/0x650 fs/fs-writeback.c:2044
 wb_do_writeback+0x101/0x600 fs/fs-writeback.c:2187
 wb_workfn+0x88/0x260 fs/fs-writeback.c:2227
 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:306

read to 0xffff88810ad3d280 of 8 bytes by task 23996 on cpu 0:
 __mark_inode_dirty+0x186/0x730 fs/fs-writeback.c:2422
 mark_inode_dirty include/linux/fs.h:2466 [inline]
 dquot_alloc_space include/linux/quotaops.h:320 [inline]
 dquot_alloc_block include/linux/quotaops.h:337 [inline]
 ext4_mb_new_blocks+0xd1f/0x1030 fs/ext4/mballoc.c:5573
 ext4_ext_map_blocks+0xd7d/0x1bf0 fs/ext4/extents.c:4287
 ext4_map_blocks+0x72d/0x1040 fs/ext4/inode.c:645
 ext4_alloc_file_blocks+0x281/0x730 fs/ext4/extents.c:4471
 ext4_fallocate+0x349/0x440 fs/ext4/extents.c:4758
 vfs_fallocate+0x355/0x3d0 fs/open.c:323
 do_vfs_ioctl+0x12d9/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: 23996 Comm: syz-executor.4 Not tainted 6.0.0-syzkaller-07362-g62e6e5940c0c-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2022/10/08 17:28 upstream 62e6e5940c0c aea5da89 .config console log report info [disk image] [vmlinux] KCSAN: data-race in __mark_inode_dirty / writeback_sb_inodes
* Struck through repros no longer work on HEAD.