syzbot


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

Status: auto-closed as invalid on 2020/09/23 02:15
Subsystems: ext4
[Documentation on labels]
First crash: 1779d, last: 1779d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in ext4_setattr / filemap_map_pages (3) ext4 1 1737d 1737d 0/29 auto-closed as invalid on 2020/11/04 19:23
upstream KCSAN: data-race in ext4_setattr / filemap_map_pages ext4 2 1867d 1896d 0/29 closed as invalid on 2020/06/18 14:24

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

write to 0xffff8880bb13f738 of 8 bytes by task 10161 on cpu 1:
 i_size_write include/linux/fs.h:876 [inline]
 ext4_setattr+0xd63/0xec0 fs/ext4/inode.c:5386
 notify_change+0x7d7/0xa80 fs/attr.c:336
 do_truncate fs/open.c:64 [inline]
 do_sys_ftruncate+0x39f/0x3e0 fs/open.c:195
 __do_sys_ftruncate fs/open.c:205 [inline]
 __se_sys_ftruncate fs/open.c:203 [inline]
 __x64_sys_ftruncate+0x2f/0x40 fs/open.c:203
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff8880bb13f738 of 8 bytes by task 10149 on cpu 0:
 i_size_read include/linux/fs.h:854 [inline]
 filemap_map_pages+0x649/0x9a0 mm/filemap.c:2728
 do_fault_around mm/memory.c:3817 [inline]
 do_read_fault+0x22f/0x760 mm/memory.c:3851
 do_fault mm/memory.c:3984 [inline]
 handle_pte_fault mm/memory.c:4224 [inline]
 __handle_mm_fault mm/memory.c:4359 [inline]
 handle_mm_fault+0x14e9/0x1af0 mm/memory.c:4457
 faultin_page mm/gup.c:887 [inline]
 __get_user_pages+0xac0/0x1080 mm/gup.c:1105
 populate_vma_page_range mm/gup.c:1435 [inline]
 __mm_populate+0x24d/0x340 mm/gup.c:1483
 mm_populate include/linux/mm.h:2559 [inline]
 vm_mmap_pgoff+0x133/0x170 mm/util.c:511
 ksys_mmap_pgoff+0x2a8/0x380 mm/mmap.c:1596
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 10149 Comm: syz-executor.1 Not tainted 5.9.0-rc1-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/08/19 02:10 upstream 18445bf405cb e1c29030 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.