syzbot


KCSAN: data-race in next_uptodate_page / shmem_write_end (4)

Status: auto-obsoleted due to no activity on 2023/06/05 21:51
Subsystems: mm
[Documentation on labels]
First crash: 654d, last: 638d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in next_uptodate_page / shmem_write_end mm 17 1375d 1424d 0/28 auto-closed as invalid on 2021/05/29 18:32
upstream KCSAN: data-race in next_uptodate_page / shmem_write_end (5) mm 60 518d 590d 0/28 auto-obsoleted due to no activity on 2023/09/26 18:47
upstream KCSAN: data-race in next_uptodate_page / shmem_write_end (2) mm 20 1188d 1322d 0/28 auto-closed as invalid on 2021/12/02 06:35
upstream KCSAN: data-race in next_uptodate_page / shmem_write_end (3) mm 110 700d 1116d 0/28 auto-obsoleted due to no activity on 2023/04/08 11:16

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

write to 0xffff888129cc24c8 of 8 bytes by task 16684 on cpu 0:
 i_size_write include/linux/fs.h:905 [inline]
 shmem_write_end+0x9a/0x4a0 mm/shmem.c:2598
 generic_perform_write+0x253/0x3d0 mm/filemap.c:3934
 __generic_file_write_iter+0xe6/0x290 mm/filemap.c:4051
 generic_file_write_iter+0x7d/0x1c0 mm/filemap.c:4083
 call_write_iter include/linux/fs.h:1868 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x463/0x760 fs/read_write.c:584
 ksys_write+0xeb/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+0x42/0x50 fs/read_write.c:646
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888129cc24c8 of 8 bytes by task 16686 on cpu 1:
 i_size_read include/linux/fs.h:883 [inline]
 next_uptodate_page+0x47b/0x560 mm/filemap.c:3454
 next_map_page mm/filemap.c:3479 [inline]
 filemap_map_pages+0x73c/0x860 mm/filemap.c:3551
 do_fault_around mm/memory.c:4493 [inline]
 do_read_fault mm/memory.c:4525 [inline]
 do_fault mm/memory.c:4659 [inline]
 do_pte_missing mm/memory.c:3647 [inline]
 handle_pte_fault mm/memory.c:4947 [inline]
 __handle_mm_fault mm/memory.c:5089 [inline]
 handle_mm_fault+0x1120/0x2c60 mm/memory.c:5243
 faultin_page mm/gup.c:925 [inline]
 __get_user_pages+0x363/0xc30 mm/gup.c:1147
 populate_vma_page_range mm/gup.c:1543 [inline]
 __mm_populate+0x23d/0x370 mm/gup.c:1652
 mm_populate include/linux/mm.h:3153 [inline]
 vm_mmap_pgoff+0x1a3/0x240 mm/util.c:548
 ksys_mmap_pgoff+0x2ac/0x320 mm/mmap.c:1440
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000000b8f000 -> 0x0000000000b90000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 16686 Comm: syz-executor.1 Not tainted 6.3.0-syzkaller-12378-gc8c655c34e33 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
==================================================================

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/01 21:41 upstream c8c655c34e33 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2023/04/20 10:30 upstream cb0856346a60 a219f34e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
2023/04/15 15:21 upstream 7a934f4bd7d6 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / shmem_write_end
* Struck through repros no longer work on HEAD.