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: 292d, last: 21h37m
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 345d 462d 0/24 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 0xffff88812dd945e0 of 8 bytes by task 7925 on cpu 0:
 i_size_write include/linux/fs.h:886 [inline]
 simple_write_end+0x11e/0x2f0 fs/libfs.c:618
 generic_perform_write+0x264/0x3f0 mm/filemap.c:3749
 __generic_file_write_iter+0xe3/0x280 mm/filemap.c:3866
 generic_file_write_iter+0x79/0x1c0 mm/filemap.c:3898
 call_write_iter include/linux/fs.h:2187 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x468/0x760 fs/read_write.c:584
 ksys_write+0xe8/0x1a0 fs/read_write.c:637
 __do_sys_write fs/read_write.c:649 [inline]
 __se_sys_write fs/read_write.c:646 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:646
 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+0x63/0xcd

read to 0xffff88812dd945e0 of 8 bytes by task 7930 on cpu 1:
 i_size_read include/linux/fs.h:864 [inline]
 next_uptodate_page+0x2d4/0x520 mm/filemap.c:3293
 next_map_page mm/filemap.c:3318 [inline]
 filemap_map_pages+0x9d1/0xae0 mm/filemap.c:3390
 do_fault_around mm/memory.c:4493 [inline]
 do_read_fault mm/memory.c:4519 [inline]
 do_fault+0x433/0xb20 mm/memory.c:4653
 handle_pte_fault mm/memory.c:4917 [inline]
 __handle_mm_fault mm/memory.c:5059 [inline]
 handle_mm_fault+0x889/0xa90 mm/memory.c:5157
 faultin_page mm/gup.c:990 [inline]
 __get_user_pages+0x34a/0xc40 mm/gup.c:1219
 populate_vma_page_range mm/gup.c:1576 [inline]
 __mm_populate+0x26e/0x3a0 mm/gup.c:1689
 mm_populate include/linux/mm.h:2663 [inline]
 vm_mmap_pgoff+0x160/0x1f0 mm/util.c:557
 ksys_mmap_pgoff+0x265/0x320 mm/mmap.c:1586
 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+0x63/0xcd

value changed: 0x0000000000fc0000 -> 0x0000000000fc5000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 7930 Comm: syz-executor.0 Not tainted 6.0.0-rc7-syzkaller-00250-ga962b54e162c-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
==================================================================

Crashes (110):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/10/02 22:37 upstream a962b54e162c feb56351 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/09/23 14:05 upstream bf682942cd26 0042f2b4 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/09/21 12:33 upstream 60891ec99e14 380f82fb .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/09/20 17:53 upstream 521a547ced64 c4b8ccfd .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/09/20 07:44 upstream 521a547ced64 7c41a9ba .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/09/12 10:54 upstream 80e78fcce86d 356d8217 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/09/10 19:32 upstream b96fbd602d35 356d8217 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/09/09 10:53 upstream 506357871c18 90058bdc .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/09/08 07:12 upstream 0066f1b0e275 435aeef7 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/09/07 20:03 upstream 0066f1b0e275 c5b7bc57 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/09/04 03:46 upstream 42cf58c272ee 28811d0a .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/09/01 05:17 upstream c5e4d5e99162 b01ec571 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/08/31 07:17 upstream dcf8e5633e2e 4a380809 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/08/24 19:45 upstream c40e8341e3b3 514514f6 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/08/24 12:10 upstream c40e8341e3b3 514514f6 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/08/21 08:29 upstream 15b3f48a4339 26a13b38 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/08/20 18:38 upstream f31c32efd57c 26a13b38 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/08/16 21:12 upstream 7ebfc85e2cd7 9e4b39c2 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/08/14 08:41 upstream 7ebfc85e2cd7 8dfcaa3d .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/08/10 10:12 upstream d4252071b97d aaa9eaa0 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/08/09 16:50 upstream eb555cb5b794 c2a623d6 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/08/08 19:30 upstream 3466f49dd0dd da700653 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/08/07 00:32 upstream 6614a3c3164a 88e3a122 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/08/05 22:02 upstream 9e2f40233670 e853abd9 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/08/05 07:59 upstream c040862bfbd9 a65a7ce9 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/08/05 01:53 upstream c040862bfbd9 1c9013ac .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/07/31 08:10 upstream 6a010258447d fef302b1 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/07/26 11:23 upstream e0dccc3b76fb 279b89c2 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/07/25 22:34 upstream e0dccc3b76fb 34795c51 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/07/25 09:33 upstream e0dccc3b76fb 664c519c .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/07/22 10:54 upstream 68e77ffbfd06 22343af4 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/07/21 08:29 upstream 353f7988dd84 6e67af9d .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/07/19 09:20 upstream ca85855bdcae 72a3cc0c .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/07/18 15:11 upstream ff6992735ade ff988920 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/07/12 00:42 upstream 5a29232d870d da3d6955 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/07/09 22:06 upstream e5524c2a1fc4 b5765a15 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/07/04 14:42 upstream 88084a3df167 bff65f44 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/06/25 09:24 upstream 8c23f235a6a8 a371c43c .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/06/23 23:29 upstream 92f20ff72066 912f5df7 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/06/21 21:17 upstream ca1fdab7fd27 0fc5c330 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/06/21 18:06 upstream 78ca55889a54 0fc5c330 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/06/20 16:49 upstream 78ca55889a54 b9406563 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/06/17 08:08 upstream 47700948a4ab cb58b3b2 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/06/15 12:06 upstream 018ab4fabddd 1719ee24 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/06/12 21:50 upstream 997952851843 0d5abf15 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/06/12 03:33 upstream 7a68065eb9cd 0d5abf15 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/06/09 03:07 upstream 34f4335c16a5 0d5abf15 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
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/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 05:59 upstream c00c5e1d157b 131df97d .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
* Struck through repros no longer work on HEAD.