syzbot


KCSAN: data-race in filemap_read / generic_write_end (3)

Status: moderation: reported on 2022/01/31 16:57
Reported-by: syzbot+e1ffd4430e9e7942349a@syzkaller.appspotmail.com
First crash: 449d, last: 2d06h
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in filemap_read / generic_write_end 3 621d 630d 0/24 auto-closed as invalid on 2021/06/25 01:21
upstream KCSAN: data-race in filemap_read / generic_write_end (2) 8 491d 564d 0/24 auto-closed as invalid on 2021/11/02 13:17

Sample crash report:
==================================================================
BUG: KCSAN: data-race in filemap_read / generic_write_end

write to 0xffff88810ab692b8 of 8 bytes by task 10144 on cpu 0:
 i_size_write include/linux/fs.h:886 [inline]
 generic_write_end+0xb1/0x350 fs/buffer.c:2168
 ext4_da_write_end+0x26c/0x620 fs/ext4/inode.c:3175
 generic_perform_write+0x264/0x3f0 mm/filemap.c:3783
 ext4_buffered_write_iter+0x235/0x3e0 fs/ext4/file.c:285
 ext4_file_write_iter+0x2bb/0x11b0
 call_write_iter include/linux/fs.h:2189 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x468/0x760 fs/read_write.c:584
 ksys_write+0xe8/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+0x3e/0x50 fs/read_write.c:646
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88810ab692b8 of 8 bytes by task 10148 on cpu 1:
 i_size_read include/linux/fs.h:864 [inline]
 filemap_read+0x1e2/0x1510 mm/filemap.c:2691
 generic_file_read_iter+0x72/0x320 mm/filemap.c:2840
 ext4_file_read_iter+0x1c8/0x280
 call_read_iter include/linux/fs.h:2183 [inline]
 generic_file_splice_read+0xde/0x2b0 fs/splice.c:309
 do_splice_to fs/splice.c:793 [inline]
 splice_direct_to_actor+0x26c/0x620 fs/splice.c:865
 do_splice_direct+0xfb/0x180 fs/splice.c:974
 do_sendfile+0x3bf/0x910 fs/read_write.c:1255
 __do_sys_sendfile64 fs/read_write.c:1323 [inline]
 __se_sys_sendfile64 fs/read_write.c:1309 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1309
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000000db7000 -> 0x0000000000db8000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 10148 Comm: syz-executor.5 Not tainted 6.2.0-rc6-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
==================================================================

Crashes (263):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2023/01/30 10:04 upstream 6d796c50f84c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2023/01/18 11:30 upstream c1649ec55708 4620c2d9 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2023/01/11 13:29 upstream 7dd4b804e080 96166539 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2023/01/11 02:01 upstream 40c18f363a08 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/12/25 22:37 upstream 1b929c02afd3 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/12/22 11:56 upstream 0a924817d2ed 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/11/28 11:18 upstream b7b275e60bcd 247de55b .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/11/06 21:37 upstream 089d1c31224e 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/10/28 18:36 upstream 05c31d25cc96 8168b69e .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/10/28 00:08 upstream 23758867219c 5c716ff6 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/10/25 21:54 upstream 1a2dcbdde82e 45645420 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/10/24 08:21 upstream 247f34f7b803 faae2fda .config console log report info [disk image] [vmlinux] KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/10/17 01:59 upstream 2df76606db9d 67cb024c .config console log report info [disk image] [vmlinux] KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/10/10 23:35 upstream e2302539dd4f 5bcf0c31 .config console log report info [disk image] [vmlinux] KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/09/09 10:42 upstream 506357871c18 90058bdc .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/09/08 13:13 upstream 26b1224903b3 f3027468 .config console log report info [disk image] [vmlinux] KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/09/04 20:45 upstream 7e18e42e4b28 28811d0a .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/09/02 19:27 upstream 0b3acd1cc022 25194605 .config console log report info [disk image] [vmlinux] KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/09/02 03:20 upstream 42e66b1cc3a0 a805568e .config console log report info [disk image] [vmlinux] KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/08/28 20:45 upstream 8379c0b31fbc 07177916 .config console log report info [disk image] [vmlinux] KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/08/23 01:55 upstream 072e51356cd5 26a13b38 .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/08/21 21:13 upstream e3f259d33c0e 26a13b38 .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/08/18 08:39 upstream 3b06a2755758 d58e263f .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/08/17 20:15 upstream 274a2eebf80c a9409d47 .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/08/16 00:27 upstream 7ebfc85e2cd7 7a7cb304 .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/08/09 15:27 upstream eb555cb5b794 c2a623d6 .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/08/02 19:15 upstream 7d0d3fa7339e 1c9013ac .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/07/31 06:57 upstream 6a010258447d fef302b1 .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/07/28 20:23 upstream 33ea1340bafe fb95c74d .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/07/27 10:15 upstream 39c3c396f813 da9d0366 .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/07/17 21:04 upstream ff6992735ade 95cb00d1 .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/07/17 07:50 upstream 972a278fe60c 95cb00d1 .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/07/12 14:37 upstream 5a29232d870d d91dd8ea .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/07/11 23:04 upstream 5a29232d870d da3d6955 .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/07/09 10:18 upstream e5524c2a1fc4 b5765a15 .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/07/08 20:37 upstream a471da3100ef b5765a15 .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/07/04 17:28 upstream 88084a3df167 bff65f44 .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/06/30 17:48 upstream 1a0e93df1e10 1434eec0 .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/06/29 15:52 upstream 941e3e791269 1434eec0 .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/06/20 15:29 upstream 78ca55889a54 b9406563 .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/06/17 19:28 upstream 462abc9de7a1 8f633d84 .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/06/17 06:54 upstream 47700948a4ab cb58b3b2 .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/06/13 08:40 upstream b13baccc3850 0d5abf15 .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/06/01 14:43 upstream 700170bf6b4d b4bc6a3d .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/01/31 07:57 upstream 26291c54e111 a491ad2d .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/01/29 21:14 upstream f8c7e4ede46f 495e00c5 .config console log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2021/11/09 13:53 upstream d2f38a3c6507 59bcaf9a .config console log report info KCSAN: data-race in filemap_read / generic_write_end
* Struck through repros no longer work on HEAD.