syzbot


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

Status: auto-obsoleted due to no activity on 2023/09/05 00:39
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+bac38a023cc33a71abc3@syzkaller.appspotmail.com
First crash: 1107d, last: 513d
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 fs 122 1160d 1277d 0/28 auto-closed as invalid on 2021/11/27 16:17

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

write to 0xffff88810a5213d0 of 8 bytes by task 14652 on cpu 1:
 i_size_write include/linux/fs.h:901 [inline]
 simple_write_end+0x22d/0x410 fs/libfs.c:614
 generic_perform_write+0x26d/0x410 mm/filemap.c:3934
 __generic_file_write_iter+0xa1/0x120 mm/filemap.c:4018
 generic_file_write_iter+0x7d/0x1c0 mm/filemap.c:4044
 call_write_iter include/linux/fs.h:1871 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x4ab/0x7d0 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 0xffff88810a5213d0 of 8 bytes by task 14735 on cpu 0:
 i_size_read include/linux/fs.h:879 [inline]
 next_uptodate_page+0x47b/0x560 mm/filemap.c:3465
 next_map_page mm/filemap.c:3490 [inline]
 filemap_map_pages+0x6df/0x890 mm/filemap.c:3567
 do_fault_around mm/memory.c:4510 [inline]
 do_read_fault mm/memory.c:4542 [inline]
 do_fault mm/memory.c:4670 [inline]
 do_pte_missing mm/memory.c:3664 [inline]
 handle_pte_fault mm/memory.c:4939 [inline]
 __handle_mm_fault mm/memory.c:5079 [inline]
 handle_mm_fault+0x104d/0x2c10 mm/memory.c:5233
 faultin_page mm/gup.c:959 [inline]
 __get_user_pages+0x42e/0xd20 mm/gup.c:1258
 populate_vma_page_range mm/gup.c:1649 [inline]
 __mm_populate+0x23b/0x360 mm/gup.c:1758
 mm_populate include/linux/mm.h:3213 [inline]
 vm_mmap_pgoff+0x1a3/0x240 mm/util.c:548
 ksys_mmap_pgoff+0x2b8/0x330 mm/mmap.c:1409
 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: 0x00000000008b1000 -> 0x00000000008b4000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 14735 Comm: syz-executor.1 Tainted: G        W          6.5.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
==================================================================

Crashes (189):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/01 00:39 upstream 5d0c230f1de8 2a0d0f29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/07/03 10:19 upstream a901a3568fd2 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/06/02 10:21 upstream 1874a42a7d74 a4ae4f42 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/05/26 22:14 upstream 0d85b27b0cc6 cf184559 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/05/18 13:07 upstream 4d6d4c7f541d 3bb7af1d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/05/17 22:26 upstream 1b66c114d161 3bb7af1d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/05/16 18:10 upstream f1fcbaa18b28 11c89444 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/05/13 08:50 upstream 9a48d6046722 2b9ba477 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/05/12 16:14 upstream cc3c44c9fda2 ecca8a24 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/05/07 23:12 upstream 17784de648be 90c93c40 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/05/07 06:59 upstream fc4354c6e5c2 90c93c40 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/05/06 14:55 upstream 2e1e1337881b 90c93c40 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/05/05 16:44 upstream 78b421b6a7c6 de870ca5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/05/05 07:10 upstream 78b421b6a7c6 518a39a6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/05/04 17:10 upstream 1a5304fecee5 518a39a6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/05/04 06:31 upstream fa31fc82fb77 5b7ff9dd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/05/04 03:04 upstream fa31fc82fb77 b5918830 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/05/03 17:23 upstream 348551ddaf31 b5918830 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/05/03 02:06 upstream 7df047b3f0aa 48e0a81d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/04/29 07:36 upstream 89d77f71f493 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/04/28 18:43 upstream 33afd4b76393 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/04/28 07:38 upstream 35fab9271b7e 70a605de .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/04/27 20:17 upstream 6e98b09da931 6f3d6fa7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/04/27 01:45 upstream 5c7ecada25d2 19a3dabe .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/04/26 10:25 upstream 0cfd8703e7da 8d843721 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/04/21 12:00 upstream 2af3e53a4dc0 2b32bd34 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/04/20 08:41 upstream cb0856346a60 a219f34e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/04/17 08:31 upstream 6a8f57ae2eb0 c6ec7083 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/04/16 12:26 upstream 3e7bb4f24617 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/04/15 22:38 upstream a7a55e27ad72 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/04/14 13:26 upstream 44149752e998 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/04/14 10:38 upstream 44149752e998 3cfcaa1b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/04/07 23:11 upstream aa318c48808c 71147e29 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/04/07 10:50 upstream f2afccfefe7b f7ba566d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/04/06 21:49 upstream f2afccfefe7b 00ce4c67 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/04/05 10:53 upstream 76f598ba7d8e 831373d3 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/04/04 20:14 upstream 148341f0a2f5 928dd177 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/04/03 06:50 upstream 7e364e56293b 41147e3e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/04/02 20:59 upstream 6ab608fe852b f325deb0 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/04/02 02:10 upstream 00c7b5f4ddc5 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/04/01 13:26 upstream 7b50567bdcad f325deb0 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/04/01 01:45 upstream 5a57b48fdfcb f325deb0 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/03/30 19:36 upstream 8bb95a1662f8 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/03/29 23:42 upstream ffe78bbd5121 f325deb0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/03/28 18:37 upstream 3a93e40326c8 fc067f05 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/03/28 02:48 upstream 3a93e40326c8 47f3aaf1 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/03/27 13:14 upstream 197b6b60ae7b f8f96aa9 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/03/25 19:26 upstream 4bdec23f971b fbf0499a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/03/25 11:38 upstream 65aca32efdcb fbf0499a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2023/03/24 14:30 upstream 1e760fa3596e f94b4a29 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2022/04/24 13:02 upstream 22da5264abf4 131df97d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2022/04/23 05:59 upstream c00c5e1d157b 131df97d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
2021/12/14 21:56 upstream 5472f14a3742 d018dd31 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in next_uptodate_page / simple_write_end
* Struck through repros no longer work on HEAD.