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: 418d, last: 1d16h
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 458d 549d 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 0xffff88810b1a1608 of 8 bytes by task 5477 on cpu 1:
 i_size_write include/linux/fs.h:886 [inline]
 generic_write_end+0xb1/0x350 fs/buffer.c:2168
 ext4_da_write_end+0x26c/0x620 fs/ext4/inode.c:3175
 generic_perform_write+0x264/0x3f0 mm/filemap.c:3783
 ext4_buffered_write_iter+0x235/0x3e0 fs/ext4/file.c:285
 ext4_file_write_iter+0x2bb/0x11b0
 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 0xffff88810b1a1608 of 8 bytes by task 5478 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: 0x0000000000d1f000 -> 0x0000000000d20000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 5478 Comm: syz-executor.3 Not tainted 6.2.0-rc6-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
==================================================================

Crashes (338):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2023/01/31 00:47 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2023/01/29 00:15 upstream c96618275234 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2023/01/26 01:55 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2023/01/23 08:10 upstream 2475bf0250de 44388686 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2023/01/07 15:10 upstream 0a71553536d2 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/12/10 07:05 upstream 3ecc37918c80 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/12/02 13:41 upstream a4412fdd49dc e080de16 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/11/23 08:50 upstream eb7081409f94 52fdf57a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/11/21 19:22 upstream eb7081409f94 1c576c23 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/11/11 03:55 upstream 4bbf3422df78 f42ee5d8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/11/07 10:57 upstream f0c4d9fc9cc9 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/10/24 06:54 upstream 247f34f7b803 23bf86af .config console log report info [disk image] [vmlinux] KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/10/08 23:58 upstream a6afa4199d3d aea5da89 .config console log report info [disk image] [vmlinux] KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/09/23 14:26 upstream bf682942cd26 0042f2b4 .config console log report info [disk image] [vmlinux] KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/09/21 17:23 upstream 06f7db949993 380f82fb .config console log report info [disk image] [vmlinux] KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/09/20 16:28 upstream 521a547ced64 c4b8ccfd .config console log report info [disk image] [vmlinux] KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/08/28 20:46 upstream 8379c0b31fbc 07177916 .config console log report info [disk image] [vmlinux] KCSAN: data-race in generic_write_end / next_uptodate_page
ci2-upstream-kcsan-gce 2022/08/16 20:55 upstream 7ebfc85e2cd7 9e4b39c2 .config console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console 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 console log report info KCSAN: data-race in generic_write_end / next_uptodate_page
* Struck through repros no longer work on HEAD.