syzbot


KCSAN: data-race in next_uptodate_page / simple_write_end

Status: auto-closed as invalid on 2021/11/27 16:17
Reported-by: syzbot+736923f26ebfb8f2bd09@syzkaller.appspotmail.com
First crash: 625d, last: 403d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in next_uptodate_page / simple_write_end (2) 120 8d07h 220d 0/24 moderation: reported on 2022/04/24 17:40

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

write to 0xffff88810487b9f0 of 8 bytes by task 20623 on cpu 1:
 i_size_write include/linux/fs.h:916 [inline]
 simple_write_end+0x293/0x330 fs/libfs.c:591
 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 0xffff88810487b9f0 of 8 bytes by task 20630 on cpu 0:
 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: 0x0000000000bfa000 -> 0x0000000000c00000

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

Crashes (122):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2021/10/23 16:16 upstream 9c0c4d24ac00 282f03fb .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/10/10 01:54 upstream 7fd2bf83d59a 838e7e2c .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/10/08 20:14 upstream 741668ef7832 efe0f24d .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/10/07 13:47 upstream 5af4055fa813 62ee0987 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/10/06 18:30 upstream 60a9483534ed 62ee0987 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/10/01 19:10 upstream 24f67d82c43c cc80db95 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/09/26 07:53 upstream a3b397b4fffb 8cac236e .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/09/22 17:20 upstream cf1d2c3e7e2f 8cac236e .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/09/21 13:36 upstream d9fb678414c0 169724fe .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/09/21 07:03 upstream e8f71f89236e af796c18 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/09/20 08:37 upstream e4e737bb5c17 3d9c9a2a .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/09/18 06:44 upstream 4357f03d6611 70b76c1d .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/09/17 14:15 upstream bdb575f87217 70b76c1d .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/09/15 05:46 upstream 3ca706c189db 07e953c1 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/09/14 10:14 upstream d0ee23f9d78b 58d09404 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/09/13 19:33 upstream 316346243be6 58d09404 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/09/13 17:07 upstream 6880fa6c5660 58d09404 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/09/13 02:47 upstream 6880fa6c5660 3ce60af8 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/09/12 13:05 upstream 78e709522d2c 3ce60af8 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/09/12 01:02 upstream c605c39677b9 3ce60af8 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/09/11 10:52 upstream 926de8c4326c 3ce60af8 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/09/10 01:28 upstream bf9f243f23e6 e2776ee4 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/09/09 12:14 upstream a3fa7a101dcf e2776ee4 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/09/09 09:55 upstream 2d338201d531 e2776ee4 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/09/07 19:28 upstream 0bcfe68b8767 6ca60148 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/09/06 23:12 upstream 4b93c544e90e 6ca60148 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/09/05 03:02 upstream a9c9a6f741cd d236a457 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/09/02 22:04 upstream 4ac6d90867a4 f62a5829 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/09/02 10:45 upstream 4ac6d90867a4 d0f0970b .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/09/01 19:15 upstream 835d31d319d9 7eb7e152 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/08/31 15:33 upstream b91db6a0b52e 7eb7e152 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/08/30 23:39 upstream 8596e589b787 8f58a0ef .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/08/30 10:20 upstream 7d2a07b76933 8f58a0ef .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/08/29 17:47 upstream 3f5ad13cb012 be2c130d .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/08/28 05:10 upstream 64b4fc45bea6 d5a29e53 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/08/27 18:40 upstream 1a6436f37512 57b01c6e .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/08/27 17:32 upstream 77dd11439b86 57b01c6e .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/08/26 18:50 upstream 73f3af7b4611 b318694d .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/08/26 09:35 upstream 73f3af7b4611 b599f2fc .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/08/26 03:22 upstream fe67f4dd8daa b599f2fc .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/08/20 16:47 upstream d992fe5318d8 b599f2fc .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/08/20 03:25 upstream f87d64319e6f b599f2fc .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/08/19 15:14 upstream d6d09a694205 e2da378b .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/06/27 19:56 upstream 625acffd7ae2 9d2ab5df .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/06/24 20:55 upstream 4a09d388f2ab 0edbbe31 .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
ci2-upstream-kcsan-gce 2021/03/15 16:46 upstream 1e28eed17697 fdb2bb2c .config log report info KCSAN: data-race in next_uptodate_page / simple_write_end
* Struck through repros no longer work on HEAD.