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: 298d, last: 10d
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 337d 428d 0/24 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 0xffff8881220acad8 of 8 bytes by task 2989 on cpu 0:
 i_size_write include/linux/fs.h:886 [inline]
 generic_write_end+0xb1/0x350 fs/buffer.c:2183
 ext4_da_write_end+0x26c/0x620 fs/ext4/inode.c:3089
 generic_perform_write+0x264/0x3f0 mm/filemap.c:3749
 ext4_buffered_write_iter+0x235/0x3e0 fs/ext4/file.c:270
 ext4_file_write_iter+0x2e3/0x1210
 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:578
 ksys_write+0xe8/0x1a0 fs/read_write.c:631
 __do_sys_write fs/read_write.c:643 [inline]
 __se_sys_write fs/read_write.c:640 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:640
 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 0xffff8881220acad8 of 8 bytes by task 2993 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:4487 [inline]
 do_read_fault mm/memory.c:4513 [inline]
 do_fault+0x433/0xb20 mm/memory.c:4647
 handle_pte_fault mm/memory.c:4911 [inline]
 __handle_mm_fault mm/memory.c:5053 [inline]
 handle_mm_fault+0x889/0xa90 mm/memory.c:5151
 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: 0x0000000000bf9000 -> 0x0000000000bfa000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 2993 Comm: syz-executor.1 Not tainted 6.0.0-rc6-syzkaller-00210-gbf682942cd26-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
==================================================================

Crashes (324):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/09/23 14:26 upstream bf682942cd26 0042f2b4 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/09/21 17:23 upstream 06f7db949993 380f82fb .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/09/20 16:28 upstream 521a547ced64 c4b8ccfd .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/08/28 20:46 upstream 8379c0b31fbc 07177916 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/08/16 20:55 upstream 7ebfc85e2cd7 9e4b39c2 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/08/09 07:39 upstream eb555cb5b794 da700653 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/08/01 09:31 upstream 3d7cb6b04c3f fef302b1 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/07/31 06:57 upstream 6a010258447d fef302b1 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/07/11 09:49 upstream 32346491ddf2 f3f217ff .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/07/07 18:21 upstream e8a4e1c1bb69 bff65f44 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/07/05 16:51 upstream e35e5b6f695d bff65f44 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/07/04 12:33 upstream 88084a3df167 bff65f44 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/07/02 22:39 upstream 69cb6c6556ad 1434eec0 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/06/21 18:51 upstream ca1fdab7fd27 0fc5c330 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/06/18 09:08 upstream 4b35035bcf80 8f633d84 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/06/13 16:56 upstream b13baccc3850 0f087040 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/06/08 00:50 upstream 9886142c7a22 b2706118 .config log report info KCSAN: data-race in generic_write_end / next_uptodate_page
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/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
* Struck through repros no longer work on HEAD.