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: 328d, last: 24d
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 500d 509d 0/24 auto-closed as invalid on 2021/06/25 01:21
upstream KCSAN: data-race in filemap_read / generic_write_end (2) 8 370d 443d 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 0xffff888121245468 of 8 bytes by task 4956 on cpu 1:
 i_size_write include/linux/fs.h:886 [inline]
 generic_write_end+0xb1/0x350 fs/buffer.c:2183
 fat_write_end+0x4a/0x150 fs/fat/inode.c:249
 generic_perform_write+0x264/0x3f0 mm/filemap.c:3749
 __generic_file_write_iter+0x172/0x280 mm/filemap.c:3834
 generic_file_write_iter+0x79/0x1c0 mm/filemap.c:3898
 do_iter_write+0x494/0x750 fs/read_write.c:855
 vfs_iter_write+0x4c/0x70 fs/read_write.c:896
 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:686
 do_splice_from fs/splice.c:764 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:931
 splice_direct_to_actor+0x305/0x620 fs/splice.c:886
 do_splice_direct+0xfb/0x180 fs/splice.c:974
 do_sendfile+0x3bf/0x910 fs/read_write.c:1249
 __do_sys_sendfile64 fs/read_write.c:1317 [inline]
 __se_sys_sendfile64 fs/read_write.c:1303 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1303
 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 0xffff888121245468 of 8 bytes by task 4965 on cpu 0:
 i_size_read include/linux/fs.h:864 [inline]
 filemap_read+0xd95/0x1430 mm/filemap.c:2672
 generic_file_read_iter+0x72/0x320 mm/filemap.c:2806
 call_read_iter include/linux/fs.h:2181 [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:1249
 __do_sys_sendfile64 fs/read_write.c:1317 [inline]
 __se_sys_sendfile64 fs/read_write.c:1303 [inline]
 __x64_sys_sendfile64+0x10c/0x150 fs/read_write.c:1303
 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: 0x00000000001cb000 -> 0x00000000001cd000

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 4965 Comm: syz-executor.0 Not tainted 6.0.0-rc4-syzkaller-00137-g506357871c18-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
==================================================================

Crashes (249):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/09/09 10:42 upstream 506357871c18 90058bdc .config 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 log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/09/04 20:45 upstream 7e18e42e4b28 28811d0a .config 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 log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/09/02 03:20 upstream 42e66b1cc3a0 a805568e .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/08/28 20:45 upstream 8379c0b31fbc 07177916 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/08/23 01:55 upstream 072e51356cd5 26a13b38 .config 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/06/01 10:54 upstream 700170bf6b4d 3666edfe .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/30 07:54 upstream b00ed48bb0a7 a46af346 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/26 06:20 upstream d7227785e384 3037caa9 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/24 10:34 upstream 143a6252e1b8 fcfad4ff .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/23 09:10 upstream 4b0986a3613c 7268fa62 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/22 20:00 upstream 978df3e15846 7268fa62 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/21 17:28 upstream 6c3f5bec9b40 7268fa62 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/21 04:13 upstream 3b5e1590a267 7268fa62 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/20 14:15 upstream 3d7285a335ed cb1ac2e7 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/20 00:55 upstream b015dcd62b86 cb1ac2e7 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/19 12:09 upstream f993aed406ea cb1ac2e7 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/18 16:51 upstream ef1302160bfb 50c53f39 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/18 13:53 upstream 210e04ff7681 50c53f39 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/16 03:36 upstream 42226c989789 744a39e2 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/15 14:15 upstream bc403203d65a 744a39e2 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/15 00:19 upstream 2fe1020d73ca 744a39e2 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/13 08:22 upstream f3f19f939c11 9ad6612a .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/12 18:59 upstream 0ac824f379fb 9ad6612a .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/09 09:11 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in filemap_read / generic_write_end
ci2-upstream-kcsan-gce 2022/05/08 22:50 upstream 379c72654524 e60b1103 .config 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 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 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 log report info KCSAN: data-race in filemap_read / generic_write_end
* Struck through repros no longer work on HEAD.