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: 413d, last: 19d
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 465d 583d 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 0xffff88810aca6620 of 8 bytes by task 16675 on cpu 1:
 i_size_write include/linux/fs.h:886 [inline]
 simple_write_end+0x11e/0x2f0 fs/libfs.c:619
 generic_perform_write+0x264/0x3f0 mm/filemap.c:3783
 __generic_file_write_iter+0xe3/0x280 mm/filemap.c:3900
 generic_file_write_iter+0x79/0x1c0 mm/filemap.c:3932
 call_write_iter include/linux/fs.h:2189 [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 0xffff88810aca6620 of 8 bytes by task 16676 on cpu 0:
 i_size_read include/linux/fs.h:864 [inline]
 next_uptodate_page+0x2d3/0x520 mm/filemap.c:3327
 next_map_page mm/filemap.c:3352 [inline]
 filemap_map_pages+0x776/0x890 mm/filemap.c:3424
 do_fault_around mm/memory.c:4483 [inline]
 do_read_fault mm/memory.c:4509 [inline]
 do_fault+0x421/0xaf0 mm/memory.c:4643
 handle_pte_fault mm/memory.c:4931 [inline]
 __handle_mm_fault mm/memory.c:5073 [inline]
 handle_mm_fault+0x8c5/0xb20 mm/memory.c:5219
 faultin_page mm/gup.c:926 [inline]
 __get_user_pages+0x348/0xc20 mm/gup.c:1153
 populate_vma_page_range mm/gup.c:1526 [inline]
 __mm_populate+0x281/0x380 mm/gup.c:1640
 mm_populate include/linux/mm.h:2874 [inline]
 vm_mmap_pgoff+0x160/0x1f0 mm/util.c:525
 ksys_mmap_pgoff+0x265/0x320 mm/mmap.c:1457
 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: 0x0000000000cdf000 -> 0x0000000000ce2000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 16676 Comm: syz-executor.3 Tainted: G        W          6.2.0-rc3-syzkaller-00060-gc757fc92a3f7-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
==================================================================

Crashes (128):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2023/01/13 07:45 upstream c757fc92a3f7 96166539 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2023/01/12 10:12 upstream e8f60cd7db24 96166539 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2023/01/03 14:17 upstream 69b41ac87e4a f0036e18 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2023/01/03 01:42 upstream 69b41ac87e4a ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2023/01/01 15:15 upstream e4cf7c25bae5 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/12/29 17:51 upstream 1b929c02afd3 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/12/23 20:49 upstream 8395ae05cb5a 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/12/11 03:17 upstream 296a7b7eb792 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/11/22 18:20 upstream eb7081409f94 9da37ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/11/07 15:29 upstream f0c4d9fc9cc9 a779b11a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/11/01 23:58 upstream f526d6a82242 08977f5d .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/10/23 04:59 upstream 4da34b7d175d c0b80a55 .config console log report info [disk image] [vmlinux] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/10/16 10:22 upstream 1501278bb7ba 67cb024c .config console log report info [disk image] [vmlinux] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/10/14 03:27 upstream 6d84c258e804 4954e4b2 .config console log report info [disk image] [vmlinux] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/10/13 06:14 upstream a185a0995518 3f6b40a1 .config console log report info [disk image] [vmlinux] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/10/12 14:40 upstream 49da07006239 16a9c9e0 .config console log report info [disk image] [vmlinux] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/10/10 23:49 upstream e2302539dd4f 5bcf0c31 .config console log report info [disk image] [vmlinux] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/10/04 10:57 upstream 4fe89d07dcc2 978d1f19 .config console log report info [disk image] [vmlinux] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/10/02 22:37 upstream a962b54e162c feb56351 .config console log report info [disk image] [vmlinux] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/09/23 14:05 upstream bf682942cd26 0042f2b4 .config console log report info [disk image] [vmlinux] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/09/21 12:33 upstream 60891ec99e14 380f82fb .config console log report info [disk image] [vmlinux] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/09/20 17:53 upstream 521a547ced64 c4b8ccfd .config console log report info [disk image] [vmlinux] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/09/20 07:44 upstream 521a547ced64 7c41a9ba .config console log report info [disk image] [vmlinux] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/09/12 10:54 upstream 80e78fcce86d 356d8217 .config console log report info [disk image] [vmlinux] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/09/10 19:32 upstream b96fbd602d35 356d8217 .config console log report info [disk image] [vmlinux] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/09/09 10:53 upstream 506357871c18 90058bdc .config console 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 console log report info [disk image] [vmlinux] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/09/07 20:03 upstream 0066f1b0e275 c5b7bc57 .config console log report info [disk image] [vmlinux] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/09/04 03:46 upstream 42cf58c272ee 28811d0a .config console log report info [disk image] [vmlinux] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/09/01 05:17 upstream c5e4d5e99162 b01ec571 .config console log report info [disk image] [vmlinux] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/08/31 07:17 upstream dcf8e5633e2e 4a380809 .config console log report info [disk image] [vmlinux] KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2022/08/24 19:45 upstream c40e8341e3b3 514514f6 .config console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console log report info KCSAN: data-race in next_uptodate_page / simple_write_end
* Struck through repros no longer work on HEAD.