syzbot


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

Status: auto-closed as invalid on 2021/03/26 14:55
Reported-by: syzbot+f019ed0076eb4b161808@syzkaller.appspotmail.com
First crash: 894d, last: 649d
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 1 1094d 1094d 0/24 auto-closed as invalid on 2020/02/10 18:15
upstream KCSAN: data-race in filemap_map_pages / generic_write_end (2) 3 900d 956d 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 0xffff88810dbab2d0 of 8 bytes by task 14042 on cpu 0:
 i_size_write include/linux/fs.h:870 [inline]
 generic_write_end+0x99/0x240 fs/buffer.c:2186
 ext4_da_write_end+0x59b/0x760 fs/ext4/inode.c:3111
 generic_perform_write+0x23e/0x3a0 mm/filemap.c:3423
 ext4_buffered_write_iter+0x2e5/0x3e0 fs/ext4/file.c:270
 ext4_file_write_iter+0x47a/0x1060 fs/ext4/file.c:503
 call_write_iter include/linux/fs.h:1901 [inline]
 new_sync_write fs/read_write.c:518 [inline]
 vfs_write+0x6f0/0x7e0 fs/read_write.c:605
 ksys_write+0xce/0x180 fs/read_write.c:658
 __do_sys_write fs/read_write.c:670 [inline]
 __se_sys_write fs/read_write.c:667 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:667
 do_syscall_64+0x39/0x80 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9

read to 0xffff88810dbab2d0 of 8 bytes by task 14050 on cpu 1:
 i_size_read include/linux/fs.h:848 [inline]
 filemap_map_pages+0x481/0x9b0 mm/filemap.c:2960
 do_fault_around mm/memory.c:3980 [inline]
 do_read_fault+0x22f/0x720 mm/memory.c:4014
 do_fault mm/memory.c:4147 [inline]
 handle_pte_fault mm/memory.c:4387 [inline]
 __handle_mm_fault mm/memory.c:4522 [inline]
 handle_mm_fault+0x100c/0x1810 mm/memory.c:4620
 faultin_page mm/gup.c:851 [inline]
 __get_user_pages+0xa42/0x1000 mm/gup.c:1070
 populate_vma_page_range mm/gup.c:1403 [inline]
 __mm_populate+0x24d/0x380 mm/gup.c:1451
 mm_populate include/linux/mm.h:2591 [inline]
 vm_mmap_pgoff+0x14c/0x1d0 mm/util.c:524
 ksys_mmap_pgoff+0x2a8/0x380 mm/mmap.c:1634
 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: 1 PID: 14050 Comm: syz-executor.5 Not tainted 5.11.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (103):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/02/19 14:55 upstream f40ddce88593 f689d40a .config log report info KCSAN: data-race in filemap_map_pages / generic_write_end
ci2-upstream-kcsan-gce 2021/02/12 19:01 upstream dcc0b49040c7 98682e5e .config log report info KCSAN: data-race in filemap_map_pages / generic_write_end
ci2-upstream-kcsan-gce 2021/02/11 17:53 upstream 291009f656e8 a5f86b15 .config log report info KCSAN: data-race in filemap_map_pages / generic_write_end
ci2-upstream-kcsan-gce 2021/02/10 08:37 upstream e0756cfc7d7c 9c8b8541 .config log report info KCSAN: data-race in filemap_map_pages / generic_write_end
ci2-upstream-kcsan-gce 2021/01/30 22:31 upstream 8c947645151c fc9fd31e .config log report info KCSAN: data-race in filemap_map_pages / generic_write_end
ci2-upstream-kcsan-gce 2021/01/28 06:12 upstream 76c057c84d28 eefc07f2 .config log report info KCSAN: data-race in filemap_map_pages / generic_write_end
ci2-upstream-kcsan-gce 2021/01/24 19:18 upstream e68061375f79 52e37319 .config log report info KCSAN: data-race in filemap_map_pages / generic_write_end
ci2-upstream-kcsan-gce 2021/01/17 10:12 upstream 0da0a8a0a0e1 813be542 .config log report info
ci2-upstream-kcsan-gce 2021/01/15 17:29 upstream 5ee88057889b 65a7a854 .config log report info
ci2-upstream-kcsan-gce 2021/01/12 18:52 upstream e609571b5ffa 0cdd6185 .config log report info
ci2-upstream-kcsan-gce 2021/01/06 11:05 upstream 9f1abbe97c08 fff20c29 .config log report info
ci2-upstream-kcsan-gce 2021/01/05 10:05 upstream 36bbbd0e234d a0234d98 .config log report info
ci2-upstream-kcsan-gce 2020/12/30 13:36 upstream 139711f033f6 ecb8c012 .config log report info
ci2-upstream-kcsan-gce 2020/12/29 10:55 upstream dea8dcf2a9fa 8259d56c .config log report info
ci2-upstream-kcsan-gce 2020/12/29 08:52 upstream dea8dcf2a9fa 8259d56c .config log report info
ci2-upstream-kcsan-gce 2020/12/29 06:28 upstream dea8dcf2a9fa 8259d56c .config log report info
ci2-upstream-kcsan-gce 2020/12/29 05:20 upstream dea8dcf2a9fa 8259d56c .config log report info
ci2-upstream-kcsan-gce 2020/12/29 03:56 upstream dea8dcf2a9fa 8259d56c .config log report info
ci2-upstream-kcsan-gce 2020/12/28 21:11 upstream c76e02c59e13 8259d56c .config log report info
ci2-upstream-kcsan-gce 2020/12/25 09:06 upstream 71c5f03154ac b982b3ea .config log report info
ci2-upstream-kcsan-gce 2020/12/21 08:47 upstream e37b12e4bb21 04201c06 .config log report info
ci2-upstream-kcsan-gce 2020/12/19 21:49 upstream 467f8165a2b0 04201c06 .config log report info
ci2-upstream-kcsan-gce 2020/12/17 22:15 upstream d64c6f96ba86 04201c06 .config log report info
ci2-upstream-kcsan-gce 2020/12/16 19:44 upstream 5e60366d56c6 04201c06 .config log report info
ci2-upstream-kcsan-gce 2020/12/16 08:18 upstream d01e7f10dae2 649595c6 .config log report info
ci2-upstream-kcsan-gce 2020/12/15 22:01 upstream d635a69dd498 f213e07e .config log report info
ci2-upstream-kcsan-gce 2020/12/13 20:06 upstream ec6f5e0e5ca0 8f160dd5 .config log report info
ci2-upstream-kcsan-gce 2020/12/13 09:00 upstream 6bff9bb8a292 bca53db9 .config log report info
ci2-upstream-kcsan-gce 2020/12/12 19:35 upstream 7b1b868e1d91 bca53db9 .config log report info
ci2-upstream-kcsan-gce 2020/12/11 11:33 upstream 33dc9614dc20 ba24ffcd .config log report info
ci2-upstream-kcsan-gce 2020/12/10 23:37 upstream 9fca90cf2892 f900b48c .config log report info
ci2-upstream-kcsan-gce 2020/12/09 08:49 upstream a68a0262abda 99917735 .config log report info
ci2-upstream-kcsan-gce 2020/12/08 08:26 upstream cd796ed33450 9af51e31 .config log report info
ci2-upstream-kcsan-gce 2020/12/02 21:15 upstream 3bb61aa61828 eff43e99 .config log report info
ci2-upstream-kcsan-gce 2020/11/28 12:01 upstream c84e1efae022 3c7136c0 .config log report info
ci2-upstream-kcsan-gce 2020/11/17 21:33 upstream 111e91a6df50 09323409 .config log report info
ci2-upstream-kcsan-gce 2020/11/17 20:02 upstream 111e91a6df50 bd2a760b .config log report info
ci2-upstream-kcsan-gce 2020/11/13 23:57 upstream 9e6a39eae450 1bf9a662 .config log report info
ci2-upstream-kcsan-gce 2020/11/09 08:31 upstream f8394f232b1e cba33199 .config log report info
ci2-upstream-kcsan-gce 2020/11/05 21:01 upstream 521b619acdc8 cba33199 .config log report info
ci2-upstream-kcsan-gce 2020/10/29 18:25 upstream 23859ae44402 a0c7169a .config log report info
ci2-upstream-kcsan-gce 2020/10/22 20:27 upstream 96485e446260 4e740c00 .config log report info
ci2-upstream-kcsan-gce 2020/10/21 09:25 upstream c4d6fe731176 e761439e .config log report info
ci2-upstream-kcsan-gce 2020/10/20 12:33 upstream 270315b8235e ff4a3345 .config log report info
ci2-upstream-kcsan-gce 2020/10/19 08:59 upstream 7cf726a59435 ff4a3345 .config log report info
ci2-upstream-kcsan-gce 2020/10/04 09:17 upstream 22fbc037cd32 5ef9c291 .config log report info
ci2-upstream-kcsan-gce 2020/10/03 20:33 upstream 22fbc037cd32 1a3f9408 .config log report info
ci2-upstream-kcsan-gce 2020/06/19 13:36 upstream 5e857ce6eae7 123cf502 .config log report
* Struck through repros no longer work on HEAD.