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: 1076d, last: 4h36m

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

write to 0xffff8881318a4cc0 of 8 bytes by task 9683 on cpu 1:
 i_size_write include/linux/fs.h:886 [inline]
 shmem_write_end+0x59/0x380 mm/shmem.c:2535
 generic_perform_write+0x264/0x3f0 mm/filemap.c:3749
 __generic_file_write_iter+0xe3/0x280 mm/filemap.c:3866
 generic_file_write_iter+0x79/0x1c0 mm/filemap.c:3898
 do_iter_write+0x494/0x750 fs/read_write.c:861
 vfs_iter_write+0x4c/0x70 fs/read_write.c:902
 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:1255
 __do_sys_sendfile64 fs/read_write.c:1317 [inline]
 __se_sys_sendfile64 fs/read_write.c:1309 [inline]
 __x64_sys_sendfile64+0xb9/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

read to 0xffff8881318a4cc0 of 8 bytes by task 9675 on cpu 0:
 i_size_read include/linux/fs.h:864 [inline]
 shmem_file_read_iter+0x1b7/0x6c0 mm/shmem.c:2613
 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:1255
 __do_sys_sendfile64 fs/read_write.c:1317 [inline]
 __se_sys_sendfile64 fs/read_write.c:1309 [inline]
 __x64_sys_sendfile64+0xb9/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: 0x0000000000000b87 -> 0x0000000000000b8c

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 9675 Comm: syz-executor.4 Not tainted 6.0.0-syzkaller-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
==================================================================

Crashes (1017):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/10/03 16:51 upstream 4fe89d07dcc2 feb56351 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/10/02 21:21 upstream a962b54e162c feb56351 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/10/02 08:37 upstream b357fd1c2afc feb56351 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/30 19:01 upstream 70575e77839f feb56351 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/30 09:19 upstream 987a926c1d8a 45fd7169 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/29 14:59 upstream c3e0e1e23c70 45fd7169 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/28 11:57 upstream 46452d3786a8 75c78242 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/27 05:25 upstream 3800a713b607 10323ddf .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/26 08:37 upstream f76349cf4145 d59ba983 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/25 23:03 upstream 5e049663f678 0042f2b4 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/24 09:42 upstream a63f2e7cb110 0042f2b4 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/23 20:45 upstream bf682942cd26 0042f2b4 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/22 15:59 upstream dc164f4fb00a 0042f2b4 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/22 12:51 upstream dc164f4fb00a 60af5050 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/21 23:25 upstream 06f7db949993 60af5050 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/21 10:32 upstream 60891ec99e14 380f82fb .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/20 19:56 upstream 60891ec99e14 c4b8ccfd .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/20 16:12 upstream 521a547ced64 7c41a9ba .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/20 01:49 upstream 521a547ced64 dd9a85ff .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/19 08:24 upstream 521a547ced64 dd9a85ff .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/19 01:03 upstream 38eddeedbbea dd9a85ff .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/17 08:15 upstream a335366bad13 dd9a85ff .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/16 16:36 upstream 6879c2d3b960 dd9a85ff .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/15 07:58 upstream 3245cb65fd91 dd9a85ff .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/14 11:18 upstream 3245cb65fd91 b884348d .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/13 20:06 upstream d1221cea11fc b884348d .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/13 14:28 upstream d1221cea11fc a08652b0 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/13 08:00 upstream e839a756012b a08652b0 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/13 00:16 upstream e839a756012b f371ed7e .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/12 09:28 upstream 80e78fcce86d 356d8217 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/11 22:15 upstream 4ed9c1e971b1 356d8217 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/10 17:59 upstream b96fbd602d35 356d8217 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/09 23:37 upstream ce888220d5c7 356d8217 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/09 15:20 upstream 9b4509495418 90058bdc .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/09 03:09 upstream 506357871c18 f3027468 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/08 13:48 upstream 26b1224903b3 f3027468 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/08 12:27 upstream 0066f1b0e275 f3027468 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/07 20:47 upstream 0066f1b0e275 c5b7bc57 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/07 05:24 upstream d2ec799d1c1b 5fc30c37 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/06 12:40 upstream 53e99dcff61e 65aea2b9 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/05 23:54 upstream 53e99dcff61e 9dcd38fc .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/05 12:05 upstream 7e18e42e4b28 922294ab .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/04 20:59 upstream 7e18e42e4b28 28811d0a .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/04 14:19 upstream 7726d4c3e60b 28811d0a .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/02 16:38 upstream 42e66b1cc3a0 25194605 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/01 18:03 upstream 2880e1a175b9 86c46e46 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/01 16:12 upstream c5e4d5e99162 86c46e46 .config log report info KCSAN: data-race in shmem_file_read_iter / shmem_write_end
ci2-upstream-kcsan-gce 2022/09/01 03:57 upstream c5e4d5e99162 b01ec571 .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
* Struck through repros no longer work on HEAD.