syzbot


KCSAN: data-race in next_uptodate_page / simple_write_end (2)
Status: moderation: reported on 2022/04/24 17:40
Reported-by: syzbot+bac38a023cc33a71abc3@syzkaller.appspotmail.com
First crash: 163d, last: 9d00h
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in next_uptodate_page / simple_write_end 122 216d 333d 0/22 auto-closed as invalid on 2021/11/27 16:17

Sample crash report:
==================================================================
BUG: KCSAN: data-race in next_uptodate_page / simple_write_end

write to 0xffff88812abcf090 of 8 bytes by task 5321 on cpu 1:
 i_size_write include/linux/fs.h:878 [inline]
 simple_write_end+0x11e/0x2f0 fs/libfs.c:618
 generic_perform_write+0x26a/0x3f0 mm/filemap.c:3798
 __generic_file_write_iter+0xe3/0x280 mm/filemap.c:3915
 generic_file_write_iter+0x75/0x130 mm/filemap.c:3947
 call_write_iter include/linux/fs.h:2050 [inline]
 new_sync_write fs/read_write.c:504 [inline]
 vfs_write+0x71c/0x890 fs/read_write.c:591
 ksys_write+0xe8/0x1a0 fs/read_write.c:644
 __do_sys_write fs/read_write.c:656 [inline]
 __se_sys_write fs/read_write.c:653 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:653
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88812abcf090 of 8 bytes by task 5324 on cpu 0:
 i_size_read include/linux/fs.h:856 [inline]
 next_uptodate_page+0x26f/0x4e0 mm/filemap.c:3311
 next_map_page mm/filemap.c:3336 [inline]
 filemap_map_pages+0x9d1/0xae0 mm/filemap.c:3403
 do_fault_around mm/memory.c:4219 [inline]
 do_read_fault mm/memory.c:4234 [inline]
 do_fault+0x433/0xb20 mm/memory.c:4369
 handle_pte_fault mm/memory.c:4627 [inline]
 __handle_mm_fault mm/memory.c:4763 [inline]
 handle_mm_fault+0x825/0xa40 mm/memory.c:4861
 faultin_page mm/gup.c:878 [inline]
 __get_user_pages+0x306/0xb80 mm/gup.c:1099
 populate_vma_page_range mm/gup.c:1442 [inline]
 __mm_populate+0x26e/0x3a0 mm/gup.c:1555
 mm_populate include/linux/mm.h:2701 [inline]
 vm_mmap_pgoff+0x160/0x1f0 mm/util.c:524
 ksys_mmap_pgoff+0x265/0x320 mm/mmap.c:1628
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000fc0000 -> 0x0000000000fc9000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 5324 Comm: syz-executor.0 Not tainted 5.18.0-rc7-syzkaller-00015-gef1302160bfb-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (63):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/18 17:33 upstream ef1302160bfb 50c53f39 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/05/15 16:23 upstream bc403203d65a 744a39e2 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/05/12 14:31 upstream feb9c5e19e91 9ad6612a .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/05/09 18:19 upstream 9be9ed2612b5 8b277b8e .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/05/09 06:44 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/05/08 04:12 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/05/06 00:20 upstream 0f5d752b1395 efeff0a5 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/05/03 00:15 upstream 9050ba3a61a4 2df221f6 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/04/30 10:02 upstream 8013d1d3d2e3 2df221f6 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/04/30 06:41 upstream 8013d1d3d2e3 ad6b95d8 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/04/25 14:42 upstream af2d861d4cd2 131df97d .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/04/24 13:02 upstream 22da5264abf4 131df97d .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/04/23 18:56 upstream 13bc32bad705 131df97d .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/04/23 05:59 upstream c00c5e1d157b 131df97d .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/04/17 18:20 upstream a2c29ccd9477 8bcc32a6 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/04/13 11:41 upstream a19944809fe9 b17b2923 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/04/10 18:10 upstream 1862a69c9174 e22c3da3 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/04/08 20:17 upstream 1831fed55973 e22c3da3 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/04/07 23:41 upstream 42e7a03d3bad c6ff3e05 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/04/05 23:20 upstream ce4c854ee868 0127c10f .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/04/01 18:20 upstream d0d642a5d365 79a2a8fc .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/03/29 22:43 upstream 1930a6e739c4 6bdac766 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/03/28 23:14 upstream ae085d7f9365 6bdac766 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/03/24 00:41 upstream 6b1f86f8e9c7 5ff41e94 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/03/23 05:07 upstream 3bf03b9a0839 5ff41e94 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/03/21 20:37 upstream eaa54b1458ca e2d91b1d .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/03/20 17:38 upstream 14702b3b2438 e2d91b1d .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/03/19 20:35 upstream 97e9c8eb4bb1 e2d91b1d .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/03/16 17:06 upstream 56e337f2cf13 46cc3b21 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/03/14 11:22 upstream 09688c0166e7 9e8eaa75 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/03/11 07:59 upstream 79b00034e9dc 9e8eaa75 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/03/10 17:42 upstream 1db333d9a51f 9e8eaa75 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/03/07 23:23 upstream ea4424be1688 7bdd8b2c .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/03/07 14:22 upstream ffb217a13a2e 7bdd8b2c .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/03/03 15:26 upstream 5859a2b19911 45a13a73 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/03/02 09:56 upstream fb184c4af9b9 45a13a73 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/03/01 22:05 upstream 575115360652 45a13a73 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/03/01 00:34 upstream 719fce7539cd 45a13a73 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/02/28 11:05 upstream 7e57714cd0ad 45a13a73 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/02/25 06:22 upstream 53ab78cd6d5a 7c337266 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/02/21 21:48 upstream 038101e6b2cd 6e821dbf .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/02/20 12:38 upstream 4f12b742eb2b 3cd800e4 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/02/17 15:37 upstream f71077a4d84b 2bea8a27 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/02/16 06:59 upstream c5d9ae265b10 8b9ca619 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/02/14 22:32 upstream d567f5db412e 8b9ca619 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/02/14 00:27 upstream 42964a18f81c 8b9ca619 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/02/11 22:11 upstream 1d41d2e82623 8b9ca619 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/02/11 05:21 upstream f1baf68e1383 0b33604d .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/02/10 16:58 upstream e3c85076d7a6 0b33604d .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/02/08 18:15 upstream 555f3d7be91a 0b33604d .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/02/08 11:16 upstream 555f3d7be91a a7dab638 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/02/04 10:31 upstream dcb85f85fa6f a3e470b2 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/02/04 09:34 upstream dcb85f85fa6f 30646bfe .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/02/01 07:17 upstream 26291c54e111 6b7c57fe .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/01/29 08:59 upstream 169387e2aa29 495e00c5 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/01/28 05:07 upstream 23a46422c561 495e00c5 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/01/27 23:22 upstream 626b2dda7651 64a8e201 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/01/25 13:12 upstream dd81e1c7d5fb 2cbffd88 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/01/23 14:35 upstream e783362eb54c 214351e1 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/01/03 23:33 upstream c9e6606c7fe9 4a3f34f2 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/01/02 11:42 upstream 278218f6778b e1768e9c .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/12/23 20:15 upstream 996a18eb796a 6caa12e4 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/12/14 21:56 upstream 5472f14a3742 d018dd31 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end