syzbot


KCSAN: data-race in filemap_fault / generic_write_end (2)

Status: auto-closed as invalid on 2020/08/26 18:57
Subsystems: ext4
[Documentation on labels]
First crash: 1508d, last: 1508d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in filemap_fault / generic_write_end (3) ext4 2 1449d 1450d 0/27 auto-closed as invalid on 2020/10/24 13:06
upstream KCSAN: data-race in filemap_fault / generic_write_end (8) ext4 2 593d 596d 0/27 auto-obsoleted due to no activity on 2023/03/17 09:30
upstream KCSAN: data-race in filemap_fault / generic_write_end (10) exfat 2 308d 272d 0/27 auto-obsoleted due to no activity on 2023/12/25 00:01
upstream KCSAN: data-race in filemap_fault / generic_write_end (9) ext4 3 488d 490d 0/27 auto-obsoleted due to no activity on 2023/06/12 19:56
upstream KCSAN: data-race in filemap_fault / generic_write_end (4) ext4 3 1192d 1275d 0/27 auto-closed as invalid on 2021/07/08 19:40
upstream KCSAN: data-race in filemap_fault / generic_write_end (6) ext4 43 837d 942d 0/27 auto-closed as invalid on 2022/06/28 10:53
upstream KCSAN: data-race in filemap_fault / generic_write_end (7) ext4 1 707d 707d 0/27 auto-obsoleted due to no activity on 2022/11/05 12:50
upstream KCSAN: data-race in filemap_fault / generic_write_end ext4 1 1680d 1618d 0/27 auto-closed as invalid on 2020/04/17 11:16
upstream KCSAN: data-race in filemap_fault / generic_write_end (5) ext4 3 1115d 1150d 0/27 auto-closed as invalid on 2021/09/23 14:23

Sample crash report:
==================================================================
BUG: KCSAN: data-race in filemap_fault / generic_write_end

write to 0xffff88811599b6b8 of 8 bytes by task 23655 on cpu 1:
 i_size_write include/linux/fs.h:897 [inline]
 generic_write_end+0x99/0x220 fs/buffer.c:2187
 ext4_da_write_end+0x57e/0x760 fs/ext4/inode.c:3092
 generic_perform_write+0x23b/0x390 mm/filemap.c:3329
 ext4_buffered_write_iter+0x2cc/0x3b0 fs/ext4/file.c:270
 ext4_file_write_iter+0x76f/0x1010 include/linux/fs.h:805
 call_write_iter include/linux/fs.h:1908 [inline]
 new_sync_write fs/read_write.c:503 [inline]
 vfs_write+0x607/0x690 fs/read_write.c:578
 ksys_write+0xce/0x180 fs/read_write.c:631
 __do_sys_write fs/read_write.c:643 [inline]
 __se_sys_write fs/read_write.c:640 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:640
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88811599b6b8 of 8 bytes by task 23663 on cpu 0:
 i_size_read include/linux/fs.h:875 [inline]
 filemap_fault+0x9b9/0x11e0 mm/filemap.c:2554
 ext4_filemap_fault+0x4b/0x60 fs/ext4/inode.c:6060
 __do_fault mm/memory.c:3464 [inline]
 do_cow_fault+0x1e6/0x770 mm/memory.c:3886
 do_fault mm/memory.c:3987 [inline]
 handle_pte_fault mm/memory.c:4225 [inline]
 __handle_mm_fault mm/memory.c:4357 [inline]
 handle_mm_fault+0x1561/0x1930 mm/memory.c:4394
 faultin_page mm/gup.c:887 [inline]
 __get_user_pages+0xac6/0x1150 mm/gup.c:1113
 populate_vma_page_range mm/gup.c:1452 [inline]
 __mm_populate+0x256/0x340 mm/gup.c:1500
 mm_populate include/linux/mm.h:2605 [inline]
 vm_mmap_pgoff+0x13b/0x170 mm/util.c:511
 ksys_mmap_pgoff+0x342/0x3a0 mm/mmap.c:1595
 do_syscall_64+0x51/0xb0 arch/x86/entry/common.c:384
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 23663 Comm: syz-executor.1 Not tainted 5.8.0-rc6-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/07/22 18:56 upstream 8c26c87b0532 128cd85f .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.