syzbot


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

Status: auto-obsoleted due to no activity on 2023/09/26 18:46
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+e67dc043a513bfe90e09@syzkaller.appspotmail.com
First crash: 957d, last: 329d
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 ext4 70 997d 1087d 0/27 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 0xffff8881020d25f8 of 8 bytes by task 18390 on cpu 0:
 i_size_write include/linux/fs.h:932 [inline]
 generic_write_end+0x9f/0x240 fs/buffer.c:2304
 ext4_da_write_end+0x49e/0x700 fs/ext4/inode.c:2988
 generic_perform_write+0x26d/0x410 mm/filemap.c:3939
 ext4_buffered_write_iter+0x1f6/0x370 fs/ext4/file.c:299
 ext4_file_write_iter+0x283/0x1230
 call_write_iter include/linux/fs.h:1985 [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 0xffff8881020d25f8 of 8 bytes by task 18393 on cpu 1:
 i_size_read include/linux/fs.h:910 [inline]
 next_uptodate_page+0x47b/0x560 mm/filemap.c:3470
 next_map_page mm/filemap.c:3495 [inline]
 filemap_map_pages+0x6df/0x890 mm/filemap.c:3572
 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:963 [inline]
 __get_user_pages+0x42e/0xd20 mm/gup.c:1262
 populate_vma_page_range mm/gup.c:1653 [inline]
 __mm_populate+0x23b/0x360 mm/gup.c:1762
 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: 0x0000000000e2b000 -> 0x0000000000e2e000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 18393 Comm: syz-executor.4 Not tainted 6.5.0-syzkaller-01810-gf97e18a3f2fb #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
==================================================================

Crashes (386):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/29 18:45 upstream f97e18a3f2fb ce731e62 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/08/14 00:14 upstream 2ccdd1b13c59 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/08/10 11:58 upstream 374a7f47bf40 da3c3ef8 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/08/08 10:18 upstream 14f9643dc90a 9552ae77 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/08/07 05:44 upstream 52a93d39b17d 4ffcc9ef .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/08/04 08:12 upstream c1a515d3c027 74621247 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/08/02 20:26 upstream 4b954598a47b b178af49 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/07/28 03:04 upstream 57012c57536f 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/07/26 19:30 upstream 5f0bc0b042fc 41fe1bae .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/07/25 14:53 upstream 0b5547c51827 6756545c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/07/25 09:34 upstream 0b5547c51827 3b91ad04 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/07/19 07:24 upstream ccff6d117d8d 022df2bb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/07/02 02:01 upstream dfab92f27c60 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/06/30 14:49 upstream e55e5df193d2 01298212 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/06/24 00:02 upstream 61dabacdad4e 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/06/22 01:41 upstream dad9774deaf1 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/06/17 19:36 upstream 1b29d271614a f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/06/17 02:39 upstream 1639fae5132b f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/06/07 17:26 upstream a27648c74210 058b3a5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/06/04 07:05 upstream e5282a7d8f6b a4ae4f42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/05/25 04:30 upstream 933174ae28ba 4bce1a3e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/05/22 22:08 upstream 421ca22e3138 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/05/21 01:15 upstream 0dd2a6fb1e34 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/05/17 20:55 upstream 1b66c114d161 3bb7af1d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/05/10 05:16 upstream 16a8829130ca 1964022b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/05/08 09:11 upstream ac9a78681b92 90c93c40 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/05/04 13:59 upstream 1a5304fecee5 518a39a6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/05/04 04:51 upstream fa31fc82fb77 5b7ff9dd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/05/03 12:15 upstream 348551ddaf31 48e0a81d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/05/01 20:46 upstream c8c655c34e33 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/04/28 16:47 upstream 33afd4b76393 62df2017 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/04/26 02:47 upstream 0cfd8703e7da 65320f8e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/04/25 13:45 upstream 173ea743bf7a 65320f8e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/04/18 19:03 upstream af67688dca57 d931e9f0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/04/17 08:06 upstream 6a8f57ae2eb0 c6ec7083 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/04/17 00:47 upstream 6a8f57ae2eb0 ec410564 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/04/13 12:29 upstream de4664485abb 3cfcaa1b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/04/13 09:29 upstream de4664485abb 82d5e53e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/04/06 19:29 upstream f2afccfefe7b 08707520 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/03/26 07:49 upstream da8e7da11e4b fbf0499a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/03/13 12:06 upstream eeac8ede1755 026e2200 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/03/11 20:53 upstream 81ff855485a3 5205ef30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/02/25 16:03 upstream 489fa31ea873 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/02/23 10:02 upstream 307e14c03906 9e2ebb3c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/02/16 22:19 upstream 3ac88fa4605e 851bc19a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/01/31 00:47 upstream 6d796c50f84c b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2023/01/29 00:15 upstream c96618275234 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2022/01/18 21:45 upstream 99613159ad74 731a2d23 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
2021/12/09 20:21 upstream ded746bfc943 b54aa474 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in generic_write_end / next_uptodate_page
* Struck through repros no longer work on HEAD.