syzbot


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

Status: closed as invalid on 2020/06/18 14:24
Subsystems: ext4
[Documentation on labels]
First crash: 1467d, last: 1411d
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) ext4 103 1160d 1296d 0/26 auto-closed as invalid on 2021/03/26 14:55
upstream KCSAN: data-race in filemap_map_pages / generic_write_end ext4 1 1605d 1605d 0/26 auto-closed as invalid on 2020/02/10 18:15

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

write to 0xffff88811ec84378 of 8 bytes by task 11161 on cpu 0:
 i_size_write include/linux/fs.h:894 [inline]
 generic_write_end+0xd4/0x290 fs/buffer.c:2177
 ext4_da_write_end+0x162/0x690 fs/ext4/inode.c:3090
 generic_perform_write+0x1d7/0x320 mm/filemap.c:3313
 ext4_buffered_write_iter+0x14e/0x280 fs/ext4/file.c:270
 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

read to 0xffff88811ec84378 of 8 bytes by task 11167 on cpu 1:
 filemap_map_pages+0x8da/0xa50 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+0x2ba6/0x2da0 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: 1 PID: 11167 Comm: syz-executor.3 Not tainted 5.7.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/06/13 23:10 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 a61674a5 .config console log report ci2-upstream-kcsan-gce
2020/05/02 10:57 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 58da4c35 .config console log report ci2-upstream-kcsan-gce
2020/04/18 15:07 https://github.com/google/ktsan.git kcsan 7c3cd68e5d38 365fba24 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.