syzbot


KCSAN: data-race in filemap_map_pages / simple_write_end

Status: auto-closed as invalid on 2020/06/18 13:43
Subsystems: fs
[Documentation on labels]
First crash: 1523d, last: 1456d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in filemap_map_pages / simple_write_end (3) fs 20 1239d 1228d 0/26 auto-closed as invalid on 2020/12/31 21:02
upstream KCSAN: data-race in filemap_map_pages / simple_write_end (2) fs 2 1385d 1386d 0/26 auto-closed as invalid on 2020/08/07 12:26
upstream KCSAN: data-race in filemap_map_pages / simple_write_end (4) fs 6 1159d 1191d 0/26 auto-closed as invalid on 2021/03/22 06:27

Sample crash report:
==================================================================
BUG: KCSAN: data-race in filemap_map_pages / simple_write_end

write to 0xffff888128e43770 of 8 bytes by task 16944 on cpu 1:
 i_size_write include/linux/fs.h:894 [inline]
 simple_write_end+0x1cc/0x370 fs/libfs.c:587
 generic_perform_write+0x1d7/0x320 mm/filemap.c:3313
 __generic_file_write_iter+0x240/0x370 mm/filemap.c:3431
 generic_file_write_iter+0x294/0x38e mm/filemap.c:3463
 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

read to 0xffff888128e43770 of 8 bytes by task 16948 on cpu 0:
 filemap_map_pages+0x859/0x9d0 mm/filemap.c:2628
 do_fault_around mm/memory.c:3807 [inline]
 do_read_fault mm/memory.c:3841 [inline]
 do_fault mm/memory.c:3975 [inline]
 handle_pte_fault mm/memory.c:4215 [inline]
 __handle_mm_fault+0x28c3/0x2ec0 mm/memory.c:4345
 handle_mm_fault+0x21c/0x540 mm/memory.c:4382
 faultin_page mm/gup.c:879 [inline]
 __get_user_pages+0x533/0x11c0 mm/gup.c:1098
 populate_vma_page_range+0xdc/0x100 mm/gup.c:1430
 __mm_populate+0x168/0x2b0 mm/gup.c:1478
 mm_populate include/linux/mm.h:2562 [inline]
 vm_mmap_pgoff+0x185/0x190 mm/util.c:511
 ksys_mmap_pgoff+0x2db/0x420 mm/mmap.c:1595
 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: 0 PID: 16948 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 (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/04/23 19:32 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 b9233cab .config console log report ci2-upstream-kcsan-gce
2020/02/16 12:38 https://github.com/google/ktsan.git kcsan b12d66a6c34f cf914200 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.