syzbot


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

Status: auto-closed as invalid on 2021/12/02 06:35
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 528d, last: 394d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in next_uptodate_page / shmem_write_end 17 581d 630d 0/24 auto-closed as invalid on 2021/05/29 18:32

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

write to 0xffff88813cf224d8 of 8 bytes by task 25707 on cpu 0:
 i_size_write include/linux/fs.h:916 [inline]
 shmem_write_end+0x60/0x3d0 mm/shmem.c:2480
 generic_perform_write+0x251/0x3e0 mm/filemap.c:3781
 __generic_file_write_iter+0x174/0x310 mm/filemap.c:3897
 generic_file_write_iter+0x75/0x130 mm/filemap.c:3929
 call_write_iter include/linux/fs.h:2163 [inline]
 new_sync_write fs/read_write.c:507 [inline]
 vfs_write+0x7bc/0x900 fs/read_write.c:594
 ksys_write+0xd9/0x190 fs/read_write.c:647
 __do_sys_write fs/read_write.c:659 [inline]
 __se_sys_write fs/read_write.c:656 [inline]
 __x64_sys_write+0x3e/0x50 fs/read_write.c:656
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

read to 0xffff88813cf224d8 of 8 bytes by task 25712 on cpu 1:
 i_size_read include/linux/fs.h:894 [inline]
 next_uptodate_page+0x323/0x670 mm/filemap.c:3256
 next_map_page mm/filemap.c:3281 [inline]
 filemap_map_pages+0x771/0x880 mm/filemap.c:3337
 do_fault_around mm/memory.c:4152 [inline]
 do_read_fault mm/memory.c:4167 [inline]
 do_fault mm/memory.c:4301 [inline]
 handle_pte_fault mm/memory.c:4559 [inline]
 __handle_mm_fault mm/memory.c:4694 [inline]
 handle_mm_fault+0xb08/0x1580 mm/memory.c:4792
 faultin_page mm/gup.c:937 [inline]
 __get_user_pages+0x381/0xc50 mm/gup.c:1158
 populate_vma_page_range mm/gup.c:1490 [inline]
 __mm_populate+0x24d/0x370 mm/gup.c:1599
 mm_populate include/linux/mm.h:2624 [inline]
 vm_mmap_pgoff+0x160/0x1f0 mm/util.c:524
 ksys_mmap_pgoff+0x284/0x350 mm/mmap.c:1624
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae

value changed: 0x0000000000c85000 -> 0x0000000000c8b000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 25712 Comm: syz-executor.4 Tainted: G        W         5.15.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (20):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/10/28 06:29 upstream 1fc596a56b33 be531bb4 .config log report info KCSAN: data-race in next_uptodate_page / shmem_write_end
ci2-upstream-kcsan-gce 2021/10/03 15:21 upstream 7b66f4393ad4 db0f5787 .config log report info KCSAN: data-race in next_uptodate_page / shmem_write_end
ci2-upstream-kcsan-gce 2021/09/19 22:46 upstream d4d016caa4b8 70b76c1d .config log report info KCSAN: data-race in next_uptodate_page / shmem_write_end
ci2-upstream-kcsan-gce 2021/09/17 12:51 upstream bdb575f87217 5b989942 .config log report info KCSAN: data-race in next_uptodate_page / shmem_write_end
ci2-upstream-kcsan-gce 2021/09/16 14:31 upstream ff1ffd71d5f0 aae492f2 .config log report info KCSAN: data-race in next_uptodate_page / shmem_write_end
ci2-upstream-kcsan-gce 2021/09/15 19:47 upstream 80be5998ad63 07e953c1 .config log report info KCSAN: data-race in next_uptodate_page / shmem_write_end
ci2-upstream-kcsan-gce 2021/09/14 17:00 upstream 1619b69edce1 07e953c1 .config log report info KCSAN: data-race in next_uptodate_page / shmem_write_end
ci2-upstream-kcsan-gce 2021/09/14 15:56 upstream d0ee23f9d78b 07e953c1 .config log report info KCSAN: data-race in next_uptodate_page / shmem_write_end
ci2-upstream-kcsan-gce 2021/09/10 21:41 upstream e99f23c5bf59 3ce60af8 .config log report info KCSAN: data-race in next_uptodate_page / shmem_write_end
ci2-upstream-kcsan-gce 2021/09/10 21:05 upstream e99f23c5bf59 5ae8508a .config log report info KCSAN: data-race in next_uptodate_page / shmem_write_end
ci2-upstream-kcsan-gce 2021/09/08 20:40 upstream ac08b1c68d1b e2776ee4 .config log report info KCSAN: data-race in next_uptodate_page / shmem_write_end
ci2-upstream-kcsan-gce 2021/09/07 20:54 upstream 0bcfe68b8767 064c9eb7 .config log report info KCSAN: data-race in next_uptodate_page / shmem_write_end
ci2-upstream-kcsan-gce 2021/09/06 10:24 upstream 27151f177827 6ca60148 .config log report info KCSAN: data-race in next_uptodate_page / shmem_write_end
ci2-upstream-kcsan-gce 2021/08/29 22:10 upstream 537b57bd5a20 be2c130d .config log report info KCSAN: data-race in next_uptodate_page / shmem_write_end
ci2-upstream-kcsan-gce 2021/08/05 19:59 upstream e04480920d1e d2d6e680 .config log report info KCSAN: data-race in next_uptodate_page / shmem_write_end
ci2-upstream-kcsan-gce 2021/07/28 22:13 upstream 4010a528219e 9a4781d4 .config log report info KCSAN: data-race in next_uptodate_page / shmem_write_end
ci2-upstream-kcsan-gce 2021/07/19 17:28 upstream 2734d6c1b1a0 e6a17580 .config log report info KCSAN: data-race in next_uptodate_page / shmem_write_end
ci2-upstream-kcsan-gce 2021/06/30 04:48 upstream c54b245d0118 a4fccb01 .config log report info KCSAN: data-race in next_uptodate_page / shmem_write_end
ci2-upstream-kcsan-gce 2021/06/17 21:25 upstream 70585216fe77 aba2b2fb .config log report info KCSAN: data-race in next_uptodate_page / shmem_write_end
ci2-upstream-kcsan-gce 2021/06/16 04:56 upstream 94f0b2d4a1d0 990d3cbe .config log report info KCSAN: data-race in next_uptodate_page / shmem_write_end
* Struck through repros no longer work on HEAD.