syzbot


KCSAN: data-race in __vfs_setxattr_noperm / ext4_bio_write_page

Status: auto-closed as invalid on 2020/06/18 13:23
Subsystems: ext4
[Documentation on labels]
First crash: 1449d, last: 1449d

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __vfs_setxattr_noperm / ext4_bio_write_page

write to 0xffff888120aec674 of 4 bytes by task 11368 on cpu 0:
 __vfs_setxattr_noperm+0x90/0x2b0 fs/xattr.c:179
 vfs_setxattr+0xcb/0xe0 fs/xattr.c:224
 setxattr+0x22a/0x310 fs/xattr.c:451
 __do_sys_fsetxattr fs/xattr.c:506 [inline]
 __se_sys_fsetxattr fs/xattr.c:495 [inline]
 __x64_sys_fsetxattr+0x157/0x180 fs/xattr.c:495
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff888120aec674 of 4 bytes by task 11365 on cpu 1:
 ext4_bio_write_page+0x3a1/0xba5 fs/ext4/page-io.c:509
 mpage_submit_page+0xd5/0x190 fs/ext4/inode.c:2073
 mpage_map_and_submit_buffers+0x35d/0x610 fs/ext4/inode.c:2317
 mpage_map_and_submit_extent fs/ext4/inode.c:2456 [inline]
 ext4_writepages+0x11af/0x1e10 fs/ext4/inode.c:2770
 do_writepages+0x6b/0x170 mm/page-writeback.c:2344
 __filemap_fdatawrite_range+0x1bb/0x220 mm/filemap.c:421
 file_write_and_wait_range+0xfb/0x160 mm/filemap.c:760
 ext4_sync_file+0x26e/0x8b0 fs/ext4/fsync.c:153
 vfs_fsync_range+0x7c/0x150 fs/sync.c:197
 generic_write_sync include/linux/fs.h:2872 [inline]
 ext4_buffered_write_iter+0x211/0x280 fs/ext4/file.c:277
 ext4_file_write_iter+0xf4/0xd30 fs/ext4/file.c:642
 call_write_iter include/linux/fs.h:1907 [inline]
 new_sync_write+0x303/0x400 fs/read_write.c:484
 __vfs_write+0x9e/0xb0 fs/read_write.c:497
 vfs_write fs/read_write.c:559 [inline]
 vfs_write+0x189/0x380 fs/read_write.c:543
 ksys_write+0xc5/0x1a0 fs/read_write.c:612
 __do_sys_write fs/read_write.c:624 [inline]
 __se_sys_write fs/read_write.c:621 [inline]
 __x64_sys_write+0x49/0x60 fs/read_write.c:621
 do_syscall_64+0xc7/0x3b0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 11365 Comm: syz-executor.5 Not tainted 5.7.0-rc1-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
2020/05/01 04:21 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 3698959a .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.