syzbot


KCSAN: data-race in filemap_map_pages / generic_write_end

Status: auto-closed as invalid on 2020/02/10 18:15
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 1032d, last: 1032d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in filemap_map_pages / generic_write_end (3) 103 588d 724d 0/24 auto-closed as invalid on 2021/03/26 14:55
upstream KCSAN: data-race in filemap_map_pages / generic_write_end (2) 3 838d 895d 0/24 closed as invalid on 2020/06/18 14:24

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

write to 0xffff8881252027b8 of 8 bytes by task 10059 on cpu 0:
 i_size_write include/linux/fs.h:888 [inline]
 generic_write_end+0xd0/0x1f0 fs/buffer.c:2143
 ext4_da_write_end+0x158/0x620 fs/ext4/inode.c:3189
 generic_perform_write+0x1d3/0x320 mm/filemap.c:3316
 __generic_file_write_iter+0x251/0x380 mm/filemap.c:3434
 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
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8881252027b8 of 8 bytes by task 10067 on cpu 1:
 filemap_map_pages+0x812/0x990 mm/filemap.c:2664
 do_fault_around mm/memory.c:3450 [inline]
 do_read_fault mm/memory.c:3484 [inline]
 do_fault mm/memory.c:3618 [inline]
 handle_pte_fault mm/memory.c:3849 [inline]
 __handle_mm_fault+0x2544/0x2c70 mm/memory.c:3973
 handle_mm_fault+0x21b/0x530 mm/memory.c:4010
 faultin_page mm/gup.c:640 [inline]
 __get_user_pages+0x485/0x1160 mm/gup.c:845
 populate_vma_page_range+0xe6/0x100 mm/gup.c:1223
 __mm_populate+0x168/0x2a0 mm/gup.c:1271
 mm_populate include/linux/mm.h:2357 [inline]
 vm_mmap_pgoff+0x181/0x190 mm/util.c:501
 ksys_mmap_pgoff+0x2d8/0x420 mm/mmap.c:1629
 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:100 [inline]
 __se_sys_mmap arch/x86/kernel/sys_x86_64.c:91 [inline]
 __x64_sys_mmap+0x2e/0x40 arch/x86/kernel/sys_x86_64.c:91
 do_syscall_64+0xcc/0x370 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 10067 Comm: syz-executor.2 Not tainted 5.4.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2019/12/02 18:13 https://github.com/google/ktsan.git kcsan ef798c30ba4e ab342da3 .config log report
* Struck through repros no longer work on HEAD.