syzbot


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

Status: auto-closed as invalid on 2020/11/04 19:23
Subsystems: ext4
[Documentation on labels]
First crash: 1303d, last: 1303d
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 (2) ext4 1 1346d 1346d 0/26 auto-closed as invalid on 2020/09/23 02:15
upstream KCSAN: data-race in ext4_setattr / filemap_map_pages ext4 2 1433d 1462d 0/26 closed as invalid on 2020/06/18 14:24

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

write to 0xffff88811daf2840 of 8 bytes by task 22395 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+0xe0/0x120 fs/open.c:64
 handle_truncate fs/namei.c:2909 [inline]
 do_open fs/namei.c:3255 [inline]
 path_openat+0x1a31/0x20a0 fs/namei.c:3368
 do_filp_open+0xbd/0x1d0 fs/namei.c:3395
 do_sys_openat2+0x33b/0x500 fs/open.c:1168
 do_sys_open fs/open.c:1184 [inline]
 __do_sys_openat fs/open.c:1200 [inline]
 __se_sys_openat fs/open.c:1195 [inline]
 __x64_sys_openat+0xef/0x110 fs/open.c:1195
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88811daf2840 of 8 bytes by task 22397 on cpu 0:
 i_size_read include/linux/fs.h:854 [inline]
 filemap_map_pages+0x649/0x9a0 mm/filemap.c:2826
 do_fault_around mm/memory.c:3993 [inline]
 do_read_fault+0x22f/0x760 mm/memory.c:4027
 do_fault mm/memory.c:4160 [inline]
 handle_pte_fault mm/memory.c:4400 [inline]
 __handle_mm_fault mm/memory.c:4535 [inline]
 handle_mm_fault+0x14e9/0x1af0 mm/memory.c:4633
 faultin_page mm/gup.c:878 [inline]
 __get_user_pages+0xa3d/0x1010 mm/gup.c:1090
 populate_vma_page_range mm/gup.c:1423 [inline]
 __mm_populate+0x24d/0x340 mm/gup.c:1471
 mm_populate include/linux/mm.h:2566 [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: 22397 Comm: syz-executor.4 Not tainted 5.9.0-rc7-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/09/30 19:14 upstream 02de58b24d2e a9767fb2 .config console log report info ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.