syzbot


KCSAN: data-race in generic_write_end / next_uptodate_page (2)
Status: moderation: reported on 2022/01/19 09:37
Reported-by: syzbot+e67dc043a513bfe90e09@syzkaller.appspotmail.com
First crash: 168d, last: 10h40m
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in generic_write_end / next_uptodate_page 70 208d 299d 0/22 auto-closed as invalid on 2021/12/04 21:58

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

write to 0xffff88811e49f338 of 8 bytes by task 7371 on cpu 0:
 i_size_write include/linux/fs.h:871 [inline]
 generic_write_end+0x98/0x230 fs/buffer.c:2183
 ext4_da_write_end+0x26c/0x620 fs/ext4/inode.c:3078
 generic_perform_write+0x264/0x3f0 mm/filemap.c:3780
 ext4_buffered_write_iter+0x222/0x330 fs/ext4/file.c:270
 ext4_file_write_iter+0x2e3/0x1210
 call_write_iter include/linux/fs.h:2060 [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+0x46/0xb0

read to 0xffff88811e49f338 of 8 bytes by task 7373 on cpu 1:
 i_size_read include/linux/fs.h:849 [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:3408
 do_fault_around mm/memory.c:4469 [inline]
 do_read_fault mm/memory.c:4495 [inline]
 do_fault+0x433/0xb20 mm/memory.c:4629
 handle_pte_fault mm/memory.c:4892 [inline]
 __handle_mm_fault mm/memory.c:5031 [inline]
 handle_mm_fault+0x889/0xa90 mm/memory.c:5129
 faultin_page mm/gup.c:953 [inline]
 __get_user_pages+0x34a/0xbf0 mm/gup.c:1174
 populate_vma_page_range mm/gup.c:1518 [inline]
 __mm_populate+0x26e/0x3a0 mm/gup.c:1631
 mm_populate include/linux/mm.h:2701 [inline]
 vm_mmap_pgoff+0x160/0x1f0 mm/util.c:557
 ksys_mmap_pgoff+0x265/0x320 mm/mmap.c:1633
 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+0x46/0xb0

value changed: 0x0000000000b67000 -> 0x0000000000b68000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 7373 Comm: syz-executor.2 Not tainted 5.18.0-syzkaller-10037-g7e284070abe5-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (307):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/27 08:26 upstream 7e284070abe5 116e7a7b .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/24 22:27 upstream 0350785b0a09 647c0e27 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/23 23:36 upstream 140e40e39a29 e7f9308d .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/22 06:56 upstream eaea45fc0e7b 7268fa62 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/21 20:01 upstream 6c3f5bec9b40 7268fa62 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/20 16:10 upstream 3d7285a335ed bd37ad7e .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/20 14:31 upstream 3d7285a335ed cb1ac2e7 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/20 01:19 upstream b015dcd62b86 cb1ac2e7 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/19 12:36 upstream f993aed406ea cb1ac2e7 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/19 07:00 upstream f993aed406ea 50c53f39 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/18 16:59 upstream ef1302160bfb 50c53f39 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/18 13:55 upstream 210e04ff7681 50c53f39 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/18 00:36 upstream 210e04ff7681 744a39e2 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/16 04:37 upstream 42226c989789 744a39e2 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/15 14:44 upstream bc403203d65a 744a39e2 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/15 00:36 upstream 2fe1020d73ca 744a39e2 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/14 10:47 upstream ec7f49619d8e 744a39e2 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/13 22:13 upstream f2dd007445b1 107f6434 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/13 08:54 upstream f3f19f939c11 9ad6612a .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/12 19:15 upstream 0ac824f379fb 9ad6612a .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/09 08:54 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/09 06:44 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/08 23:11 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/08 22:54 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/08 18:33 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/08 16:58 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/08 14:50 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/08 13:32 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/08 11:23 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/08 09:48 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/08 08:43 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/08 06:37 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/08 04:24 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/08 01:38 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/07 22:08 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/07 22:07 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/07 18:42 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/07 16:19 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/07 14:16 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/07 12:48 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/07 11:45 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/07 09:57 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/07 08:08 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/07 06:52 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/07 05:27 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/07 04:14 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/07 02:34 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/05/07 01:19 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/01/18 21:45 upstream 99613159ad74 731a2d23 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2021/12/09 20:21 upstream ded746bfc943 b54aa474 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page