syzbot


KCSAN: data-race in shmem_file_read_iter / shmem_write_end
Status: moderation: reported on 2020/01/03 23:05
Reported-by: syzbot+5e4613548335cf05bf0e@syzkaller.appspotmail.com
First crash: 947d, last: 6h52m

Sample crash report:
==================================================================
BUG: KCSAN: data-race in shmem_file_read_iter / shmem_write_end

write to 0xffff88812a8399e8 of 8 bytes by task 28046 on cpu 1:
 i_size_write include/linux/fs.h:871 [inline]
 shmem_write_end+0x59/0x380 mm/shmem.c:2457
 generic_perform_write+0x264/0x3f0 mm/filemap.c:3780
 __generic_file_write_iter+0xe3/0x280 mm/filemap.c:3897
 generic_file_write_iter+0x75/0x130 mm/filemap.c:3929
 do_iter_readv_writev+0x27b/0x300
 do_iter_write+0x16f/0x5c0 fs/read_write.c:852
 vfs_iter_write+0x4c/0x70 fs/read_write.c:893
 iter_file_splice_write+0x44a/0x7c0 fs/splice.c:689
 do_splice_from fs/splice.c:767 [inline]
 direct_splice_actor+0x80/0xa0 fs/splice.c:936
 splice_direct_to_actor+0x345/0x660 fs/splice.c:891
 do_splice_direct+0xfb/0x180 fs/splice.c:979
 do_sendfile+0x3ad/0x900 fs/read_write.c:1246
 __do_sys_sendfile64 fs/read_write.c:1305 [inline]
 __se_sys_sendfile64 fs/read_write.c:1297 [inline]
 __x64_sys_sendfile64+0xb9/0x150 fs/read_write.c:1297
 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+0x46/0xb0

read to 0xffff88812a8399e8 of 8 bytes by task 28040 on cpu 0:
 i_size_read include/linux/fs.h:849 [inline]
 shmem_file_read_iter+0x8d/0x6a0 mm/shmem.c:2503
 call_read_iter include/linux/fs.h:2054 [inline]
 generic_file_splice_read+0x1de/0x2c0 fs/splice.c:311
 do_splice_to fs/splice.c:796 [inline]
 splice_direct_to_actor+0x2ac/0x660 fs/splice.c:870
 do_splice_direct+0xfb/0x180 fs/splice.c:979
 do_sendfile+0x3ad/0x900 fs/read_write.c:1246
 __do_sys_sendfile64 fs/read_write.c:1305 [inline]
 __se_sys_sendfile64 fs/read_write.c:1297 [inline]
 __x64_sys_sendfile64+0xb9/0x150 fs/read_write.c:1297
 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+0x46/0xb0

value changed: 0x00000000000002cd -> 0x00000000000002ce

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 28040 Comm: syz-executor.1 Not tainted 5.18.0-syzkaller-10037-g7e284070abe5-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (808):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/27 09:03 upstream 7e284070abe5 116e7a7b .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/26 21:34 upstream 16477cdfefdb 3037caa9 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/26 16:08 upstream d7227785e384 3037caa9 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/25 14:50 upstream fdaf9a5840ac 3037caa9 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/25 12:46 upstream fdaf9a5840ac 647c0e27 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/24 23:57 upstream 0350785b0a09 647c0e27 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/24 12:11 upstream 143a6252e1b8 fcfad4ff .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/23 23:43 upstream 140e40e39a29 e7f9308d .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/23 10:52 upstream 4b0986a3613c 4c7657cb .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/22 08:20 upstream eaea45fc0e7b 7268fa62 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/21 18:02 upstream 6c3f5bec9b40 7268fa62 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/20 17:37 upstream 3d7285a335ed bd37ad7e .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/20 15:16 upstream 3d7285a335ed cb1ac2e7 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/20 03:12 upstream b015dcd62b86 cb1ac2e7 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/18 18:36 upstream ef1302160bfb 50c53f39 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/16 03:33 upstream 42226c989789 744a39e2 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/15 14:12 upstream bc403203d65a 744a39e2 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/15 00:16 upstream 2fe1020d73ca 744a39e2 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/14 11:04 upstream ec7f49619d8e 744a39e2 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/14 00:24 upstream f2dd007445b1 107f6434 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/13 08:24 upstream f3f19f939c11 9ad6612a .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/12 20:45 upstream 0ac824f379fb 9ad6612a .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/11 16:57 upstream feb9c5e19e91 beb0b407 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/10 23:21 upstream feb9c5e19e91 8d7b3b67 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/10 17:38 upstream 9be9ed2612b5 8b277b8e .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/09 12:27 upstream c5eb0a61238d 8b277b8e .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/09 07:27 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/09 03:38 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/09 02:13 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/09 01:06 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/08 22:39 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/08 16:37 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/08 15:10 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/08 10:23 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/08 07:36 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/08 01:53 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/08 00:43 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/07 19:33 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/07 18:11 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/07 13:38 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/07 11:12 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/07 04:21 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/07 03:35 upstream 4b97bac0756a e60b1103 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/06 20:36 upstream 64267926e01b e60b1103 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/06 17:56 upstream 64267926e01b e60b1103 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/06 04:17 upstream fe27d189e3f4 efeff0a5 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/06 01:00 upstream 0f5d752b1395 efeff0a5 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/05 21:52 upstream 0f5d752b1395 efeff0a5 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/05/04 20:55 upstream a7391ad35724 dc9e5259 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2021/01/16 02:32 upstream 5ee88057889b 65a7a854 .config log report info
ci2-upstream-kcsan-gce 2020/01/03 10:49 https://github.com/google/ktsan.git kcsan 245a43005292 9dcc1191 .config log report
ci2-upstream-kcsan-gce 2019/12/30 22:48 https://github.com/google/ktsan.git kcsan 245a43005292 6b36d338 .config log report
ci2-upstream-kcsan-gce 2019/10/23 05:39 https://github.com/google/ktsan.git kcsan 05f2236801fe d0686497 .config log report