syzbot


KCSAN: data-race in __add_to_page_cache_locked / filemap_write_and_wait

Status: closed as invalid on 2019/11/19 13:24
Subsystems: ext4
[Documentation on labels]
First crash: 1635d, last: 1635d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __add_to_page_cache_locked / filemap_write_and_wait (2) ext4 8 1554d 1600d 0/26 auto-closed as invalid on 2020/04/02 19:42

Sample crash report:
==================================================================
BUG: KCSAN: data-race in __add_to_page_cache_locked / filemap_write_and_wait

read to 0xffff8881245bb330 of 8 bytes by task 9443 on cpu 1:
 mapping_needs_writeback mm/filemap.c:631 [inline]
 filemap_write_and_wait+0x65/0x150 mm/filemap.c:638
 ext4_ioctl_get_es_cache fs/ext4/ioctl.c:805 [inline]
 ext4_ioctl+0x2574/0x3130 fs/ext4/ioctl.c:1238
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:509 [inline]
 do_vfs_ioctl+0x991/0xc60 fs/ioctl.c:696
 ksys_ioctl+0xbd/0xe0 fs/ioctl.c:713
 __do_sys_ioctl fs/ioctl.c:720 [inline]
 __se_sys_ioctl fs/ioctl.c:718 [inline]
 __x64_sys_ioctl+0x4c/0x60 fs/ioctl.c:718
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

write to 0xffff8881245bb330 of 8 bytes by task 9441 on cpu 0:
 __add_to_page_cache_locked+0x298/0x780 mm/filemap.c:889
 add_to_page_cache_lru+0xe2/0x2d0 mm/filemap.c:942
 pagecache_get_page+0x2ab/0x760 mm/filemap.c:1681
 grab_cache_page_write_begin+0x5d/0x90 mm/filemap.c:3254
 ext4_da_write_begin+0x175/0x7e0 fs/ext4/inode.c:3063
 generic_perform_write+0x136/0x320 mm/filemap.c:3304
 __generic_file_write_iter+0x251/0x380 mm/filemap.c:3433
 ext4_file_write_iter+0x1bd/0xa00 fs/ext4/file.c:268
 call_write_iter include/linux/fs.h:1895 [inline]
 new_sync_write+0x388/0x4a0 fs/read_write.c:483
 __vfs_write+0xb1/0xc0 fs/read_write.c:496
 vfs_write fs/read_write.c:558 [inline]
 vfs_write+0x18a/0x390 fs/read_write.c:542
 ksys_write+0xd5/0x1b0 fs/read_write.c:611
 __do_sys_write fs/read_write.c:623 [inline]
 __se_sys_write fs/read_write.c:620 [inline]
 __x64_sys_write+0x4c/0x60 fs/read_write.c:620

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 9441 Comm: syz-executor.5 Not tainted 5.4.0-rc3+ #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
2019/11/03 04:48 https://github.com/google/ktsan.git kcsan 05f2236801fe d603afc9 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.